From 66d97e9b2f17bf98f22a6a63c050cbbaec116b0c Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Mon, 15 Mar 2021 08:29:06 -0700 Subject: [PATCH 001/210] Make maps data-plane swagger files compile when taken from api to sdk. --- .../Alias/preview/1.0/alias.json | 156 +- .../Microsoft.Maps/Common/common.json | 526 +++ .../DEM/preview/1.0/elevation.json | 257 +- .../Microsoft.Maps/Data/preview/1.0/data.json | 292 +- .../Dataset/preview/1.0/dataset.json | 244 +- .../preview/1.0/dwgconversion.json | 231 +- .../preview/1.0/featurestate.json | 212 +- .../Feedback/preview/1.0/feedback.json | 215 +- .../Geolocation/preview/1.0/geolocation.json | 140 +- .../Mobility/preview/1.0/mobility.json | 424 +- .../Route/preview/1.0/route.json | 313 +- .../Search/preview/1.0/search.json | 3420 +++-------------- .../Spatial/preview/1.0/spatial.json | 230 +- .../Tileset/preview/1.0/tileset.json | 113 +- .../Timezone/preview/1.0/timezone.json | 46 +- .../Traffic/preview/1.0/traffic.json | 46 +- .../Microsoft.Maps/WFS/preview/1.0/wfs.json | 63 +- .../Weather/preview/1.0/weather.json | 46 +- 18 files changed, 1534 insertions(+), 5440 deletions(-) create mode 100644 specification/maps/data-plane/Microsoft.Maps/Common/common.json diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json index 5f6ef30ed777..4eccf5c79c8e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json @@ -46,53 +46,6 @@ "apiKeyQuery": [] } ], - "responses": { - "202": { - "description": "Request Accepted: The request has been accepted for processing. Please use the URL in the Location Header to retry or access the results.", - "headers": { - "Location": { - "type": "string", - "description": "New URL to check for the results of the long running process." - } - } - }, - "400": { - "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - }, - "401": { - "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - }, - "headers": { - "WWW-Authenticate": { - "type": "string", - "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" - } - } - }, - "403": { - "description": "Permission, capacity, or authentication issues.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - }, - "404": { - "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - }, - "500": { - "description": "An error occurred while processing the request. Please try again later.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - } - }, "parameters": { "GeographicResourceLocation": { "name": "geography", @@ -121,23 +74,6 @@ }, "x-ms-parameter-location": "client" }, - "SubscriptionKey": { - "name": "subscription-key", - "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", - "type": "string", - "in": "query", - "required": false, - "x-ms-parameter-location": "client" - }, - "ApiVersion": { - "name": "api-version", - "description": "Version number of Azure Maps API. Current version is 1.0", - "type": "string", - "in": "query", - "required": true, - "default": "1.0", - "x-ms-parameter-location": "client" - }, "CreateResourceId": { "name": "resourceId", "description": "The unique id that references a resource to be aliased.", @@ -176,10 +112,10 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/common.json#/parameters/ApiVersion" } ], "responses": { @@ -196,19 +132,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/common.json#/responses/500" } } }, @@ -223,10 +159,10 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/common.json#/parameters/ApiVersion" } ], "responses": { @@ -237,19 +173,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/common.json#/responses/500" } } } @@ -266,10 +202,10 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/AliasId" @@ -286,19 +222,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/common.json#/responses/500" } } } @@ -315,10 +251,10 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/AliasId" @@ -332,61 +268,25 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/common.json#/responses/500" } } } } }, "definitions": { - "ODataErrorResponse": { - "type": "object", - "description": "This response object is returned when an error occurs in the Maps API.", - "properties": { - "error": { - "$ref": "#/definitions/ODataError" - } - } - }, - "ODataError": { - "type": "object", - "description": "This object is returned when an error occurs in the Maps API.", - "properties": { - "code": { - "type": "string", - "readOnly": true, - "description": "The ODataError code." - }, - "message": { - "type": "string", - "readOnly": true, - "description": "If available, a human readable description of the error." - }, - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/ODataError" - } - }, - "target": { - "type": "string", - "readOnly": true, - "description": "If available, the target causing the error." - } - } - }, "AliasCreateResponse": { "description": "The response model for the Alias Create API for the case when the alias was successfully created.", "type": "object", diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/common.json new file mode 100644 index 000000000000..0ffd119df31a --- /dev/null +++ b/specification/maps/data-plane/Microsoft.Maps/Common/common.json @@ -0,0 +1,526 @@ +{ + "swagger": "2.0", + "info": { + "version": "2.0", + "title": "Common types" + }, + "produces": [ + "application/json", + "application/xml" + ], + "paths": {}, + "definitions": { + "LongRunningOperationResult": { + "description": "The response model for a Long-Running Operations API.", + "type": "object", + "properties": { + "operationId": { + "description": "The Id for this long-running operation.", + "type": "string" + }, + "status": { + "description": "The status state of the request.", + "type": "string", + "enum": [ + "NotStarted", + "Running", + "Failed", + "Succeeded" + ], + "x-ms-enum": { + "name": "type", + "modelAsString": false, + "values": [ + { + "value": "NotStarted", + "description": "The request has not started processing yet." + }, + { + "value": "Running", + "description": "The request has started processing." + }, + { + "value": "Failed", + "description": "The request has one or more failures." + }, + { + "value": "Succeeded", + "description": "The request has successfully completed." + } + ] + }, + "readOnly": true + }, + "created": { + "description": "The created timestamp.", + "type": "string", + "readOnly": true + }, + "resourceLocation": { + "description": "The location URI for details about the created resource. This is only provided when the request was successfully completed.", + "type": "string", + "readOnly": true + }, + "error": { + "$ref": "#/definitions/ODataErrorResponse" + }, + "warning": { + "$ref": "#/definitions/ODataErrorResponse" + } + } + }, + "ODataErrorResponse": { + "type": "object", + "description": "This response object is returned when an error occurs in the Maps API.", + "properties": { + "error": { + "$ref": "#/definitions/ODataError" + } + } + }, + "ODataError": { + "type": "object", + "description": "This object is returned when an error occurs in the Maps API.", + "properties": { + "code": { + "type": "string", + "readOnly": true, + "description": "The ODataError code." + }, + "message": { + "type": "string", + "readOnly": true, + "description": "If available, a human readable description of the error." + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/ODataError" + } + }, + "target": { + "type": "string", + "readOnly": true, + "description": "If available, the target causing the error." + } + } + }, + "BatchResponse": { + "description": "This object is returned from a successful Batch service call", + "type": "object", + "properties": { + "summary": { + "description": "Summary for the batch request", + "type": "object", + "readOnly": true, + "properties": { + "successfulRequests": { + "description": "Number of successful requests in the batch", + "type": "integer", + "readOnly": true + }, + "totalRequests": { + "description": "Total number of requests in the batch", + "type": "integer", + "readOnly": true + } + } + }, + "batchItems": { + "description": "Array containing the batch results", + "type": "array", + "readOnly": true, + "items": { + "type": "object" + } + } + } + }, + "CoordinateAbbreviated": { + "description": "A location represented as a latitude and longitude.", + "type": "object", + "properties": { + "lat": { + "description": "Latitude property", + "type": "number", + "format": "double", + "readOnly": true + }, + "lon": { + "description": "Longitude property", + "type": "number", + "format": "double", + "readOnly": true + } + } + }, + "Geometry": { + "description": "This represents the geometry for one or more geographical features (parks, state boundary etc.) and should be a `GeoJSON` compliant type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946) for details.", + "type": "object" + }, + "GeoJSONGeometry": { + "description": "A valid `GeoJSON` geometry object. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1) for details.", + "type": "object", + "discriminator": "type", + "required": [ + "type" + ], + "properties": { + "type": { + "description": "Specifies the `GeoJSON` geometry type. Must be one of the seven valid GeoJSON geometry types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon and GeometryCollection.", + "type": "string", + "enum": [ + "Point", + "MultiPoint", + "LineString", + "MultiLineString", + "Polygon", + "MultiPolygon", + "GeometryCollection" + ], + "x-ms-enum": { + "name": "GeoJSONGeometryType", + "modelAsString": false, + "values": [ + { + "value": "Point", + "description": "`GeoJSON Point` geometry." + }, + { + "value": "MultiPoint", + "description": "`GeoJSON MultiPoint` geometry." + }, + { + "value": "LineString", + "description": "`GeoJSON LineString` geometry." + }, + { + "value": "MultiLineString", + "description": "`GeoJSON MultiLineString` geometry." + }, + { + "value": "Polygon", + "description": "`GeoJSON Polygon` geometry." + }, + { + "value": "MultiPolygon", + "description": "`GeoJSON MultiPolygon` geometry." + }, + { + "value": "GeometryCollection", + "description": "`GeoJSON GeometryCollection` geometry." + } + ] + } + } + } + }, + "MultiPoint": { + "description": "A valid `GeoJSON MultiPoint` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.3) for details.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJSONGeometry" + }, + { + "properties": { + "coordinates": { + "description": "Coordinates for the `MultiPoint` geometry.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJSONPosition" + } + } + }, + "required": [ + "coordinates" + ] + } + ] + }, + "LineString": { + "description": "A valid `GeoJSON LineString` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.4) for details.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJSONGeometry" + }, + { + "properties": { + "coordinates": { + "description": "Coordinates for the `LineString` geometry.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJSONPosition" + } + } + }, + "required": [ + "coordinates" + ] + } + ] + }, + "GeoJSONLinearRing": { + "description": "Though a linear ring is not explicitly represented as a GeoJSON geometry type, it helps in defining the polygon as an array of linear rings. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.6) for details.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJSONPosition" + } + }, + "GeoJSONPosition": { + "description": "A valid `GeoJSON Position` geometry type. A `Position` is an array of numbers with two or more elements. The first two elements are _longitude_ and _latitude_, precisely in that order. _Altitude/Elevation_ is an optional third element. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.1) for details.", + "type": "array", + "items": { + "type": "number", + "format": "double" + } + }, + "Point": { + "description": "A valid `GeoJSON Point` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.2) for details.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJSONGeometry" + }, + { + "properties": { + "coordinates": { + "$ref": "#/definitions/GeoJSONPosition" + } + }, + "required": [ + "coordinates" + ] + } + ] + }, + "MultiPolygon": { + "description": "A valid `GeoJSON MultiPolygon` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.7) for details.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJSONGeometry" + }, + { + "properties": { + "coordinates": { + "description": "Contains a list of valid `GeoJSON` Polygon objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude).", + "type": "array", + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/GeoJSONLinearRing" + } + } + } + }, + "required": [ + "coordinates" + ] + } + ] + }, + "Polygon": { + "description": "A valid `GeoJSON Polygon` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.6) for details.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJSONGeometry" + }, + { + "properties": { + "coordinates": { + "description": "Coordinates for the `Polygon` geometry type.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJSONLinearRing" + } + } + }, + "required": [ + "coordinates" + ] + } + ] + }, + "GeoJSONGeometryCollection": { + "description": "A valid `GeoJSON GeometryCollection` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.8) for details.", + "type": "object", + "properties": { + "geometries": { + "description": "Contains a list of valid `GeoJSON` geometry objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude).", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJSONGeometry" + } + } + }, + "required": [ + "geometries" + ] + }, + "BatchRequestBody": { + "description": "This type represents the request body for the Batch service.", + "type": "object", + "properties": { + "batchItems": { + "description": "The list of queries/requests to process", + "type": "array", + "items": { + "description": "Batch Query object", + "type": "object", + "properties": { + "query": { + "description": "Partial query string", + "type": "string" + } + } + } + } + } + }, + "Coordinate": { + "description": "A location represented as a latitude and longitude.", + "type": "object", + "properties": { + "latitude": { + "description": "Latitude property", + "type": "number", + "format": "double", + "readOnly": true + }, + "longitude": { + "description": "Longitude property", + "type": "number", + "format": "double", + "readOnly": true + } + } + } + }, + "parameters": { + "SubscriptionKey": { + "name": "subscription-key", + "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", + "type": "string", + "in": "query", + "required": false, + "x-ms-parameter-location": "client" + }, + "ApiVersion": { + "name": "api-version", + "description": "Version number of Azure Maps API. Current version is 1.0", + "type": "string", + "in": "query", + "required": true, + "default": "1.0", + "x-ms-parameter-location": "client" + }, + "ClientId": { + "name": "x-ms-client-id", + "description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.", + "type": "string", + "in": "header", + "required": false, + "x-ms-parameter-location": "client" + }, + "JsonFormat": { + "name": "format", + "description": "Desired format of the response. Only `json` format is supported.", + "type": "string", + "in": "path", + "required": true, + "enum": [ + "json" + ], + "x-ms-enum": { + "name": "JsonFormat", + "modelAsString": false, + "values": [ + { + "value": "json", + "description": "[The JavaScript Object Notation Data Interchange Format](https://tools.ietf.org/html/rfc8259)" + } + ] + }, + "x-ms-parameter-location": "method" + } + }, + "responses": { + "400": { + "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", + "schema": { + "$ref": "#/definitions/ODataErrorResponse" + }, + "x-ms-error-response": true + }, + "401": { + "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", + "schema": { + "$ref": "#/definitions/ODataErrorResponse" + }, + "headers": { + "WWW-Authenticate": { + "type": "string", + "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" + } + }, + "x-ms-error-response": true + }, + "403": { + "description": "Permission, capacity, or authentication issues.", + "schema": { + "$ref": "#/definitions/ODataErrorResponse" + }, + "x-ms-error-response": true + }, + "404": { + "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", + "schema": { + "$ref": "#/definitions/ODataErrorResponse" + }, + "x-ms-error-response": true + }, + "409": { + "description": "The request could not be completed due to a conflict with the current state of the resource. Likely caused by a parallel update to the same resource.", + "schema": { + "$ref": "#/definitions/ODataErrorResponse" + } + }, + "500": { + "description": "An error occurred while processing the request. Please try again later.", + "schema": { + "$ref": "#/definitions/ODataErrorResponse" + }, + "x-ms-error-response": true + }, + "200Async": { + "description": "The operation's status response.", + "schema": { + "$ref": "#/definitions/LongRunningOperationResult" + } + }, + "201Async": { + "description": "The resource has been created successfully.", + "schema": { + "$ref": "#/definitions/LongRunningOperationResult" + }, + "headers": { + "Location": { + "type": "string", + "description": "A URI where details on the newly created resource can be found." + } + } + }, + "202Async": { + "description": "**Supported only for async request.**\nRequest Accepted: The request has been accepted for processing. Please use the URL in the Location Header to retry or access the results.", + "headers": { + "Location": { + "type": "string", + "description": "New URL to check for the results of the long running process." + } + } + } + } +} diff --git a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json index d5cbc47fbca0..ab73f48bc540 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json +++ b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json @@ -39,97 +39,6 @@ "apiKeyQuery": [] } ], - "responses": { - "400": { - "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - }, - "x-ms-error-response": true - }, - "401": { - "description": "Access denied due to invalid subscription key or invalid Azure Active Directory (Azure AD) bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided Azure AD bearer token.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - }, - "headers": { - "WWW-Authenticate": { - "type": "string", - "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" - } - }, - "x-ms-error-response": true - }, - "403": { - "description": "Permission, capacity, or authentication issues.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - }, - "x-ms-error-response": true - }, - "404": { - "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - }, - "x-ms-error-response": true - }, - "500": { - "description": "An error occurred while processing the request. Please try again later.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - }, - "x-ms-error-response": true - } - }, - "parameters": { - "ClientId": { - "name": "x-ms-client-id", - "description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from the Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.", - "type": "string", - "in": "header", - "required": false, - "x-ms-parameter-location": "client" - }, - "SubscriptionKey": { - "name": "subscription-key", - "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", - "type": "string", - "in": "query", - "required": false, - "x-ms-parameter-location": "client" - }, - "JsonFormat": { - "name": "format", - "description": "Desired format of the response. Only `json` format is supported.", - "type": "string", - "in": "path", - "required": true, - "enum": [ - "json" - ], - "x-ms-enum": { - "name": "JsonFormat", - "modelAsString": true, - "values": [ - { - "value": "json", - "description": "[The JavaScript Object Notation Data Interchange Format](https://tools.ietf.org/html/rfc8259)" - } - ] - }, - "x-ms-parameter-location": "method" - }, - "ApiVersion": { - "name": "api-version", - "description": "Version number of Azure Maps API. Current version is 1.0", - "type": "string", - "in": "query", - "required": true, - "default": "1.0", - "x-ms-parameter-location": "client" - } - }, "paths": { "/elevation/point/{format}": { "get": { @@ -143,16 +52,16 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "../../../Common/common.json#/parameters/JsonFormat" }, { "name": "points", @@ -181,19 +90,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/common.json#/responses/500" } } }, @@ -208,16 +117,16 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "../../../Common/common.json#/parameters/JsonFormat" }, { "name": "pointsRequestBody", @@ -240,19 +149,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/common.json#/responses/500" } } } @@ -269,16 +178,16 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "../../../Common/common.json#/parameters/JsonFormat" }, { "name": "lines", @@ -317,19 +226,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/common.json#/responses/500" } } }, @@ -344,16 +253,16 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "../../../Common/common.json#/parameters/JsonFormat" }, { "name": "linesRequestBody", @@ -386,19 +295,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/common.json#/responses/500" } } } @@ -415,16 +324,16 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "../../../Common/common.json#/parameters/JsonFormat" }, { "name": "bounds", @@ -467,95 +376,25 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/common.json#/responses/500" } } } } }, "definitions": { - "ODataErrorResponse": { - "type": "object", - "description": "This response object is returned when an error occurs in the Azure Maps API.", - "properties": { - "error": { - "$ref": "#/definitions/ODataError" - } - } - }, - "ODataError": { - "type": "object", - "description": "This object is returned when an error occurs in the Azure Maps API.", - "properties": { - "code": { - "type": "string", - "readOnly": true, - "description": "The ODataError code." - }, - "message": { - "type": "string", - "readOnly": true, - "description": "If available, a human-readable description of the error." - }, - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/ODataError" - } - }, - "target": { - "type": "string", - "readOnly": true, - "description": "If available, the target causing the error." - } - } - }, - "Coordinate": { - "description": "A location represented as a latitude and longitude.", - "type": "object", - "properties": { - "latitude": { - "description": "Latitude property", - "type": "number", - "format": "double", - "readOnly": true - }, - "longitude": { - "description": "Longitude property", - "type": "number", - "format": "double", - "readOnly": true - } - } - }, - "CoordinateAbbreviated": { - "description": "A location represented as a latitude and longitude.", - "type": "object", - "properties": { - "lat": { - "description": "Latitude property", - "type": "number", - "format": "double" - }, - "lon": { - "description": "Longitude property", - "type": "number", - "format": "double" - } - } - }, "ElevationPointResponse": { "description": "The response for point/points elevation API. The result will be in same sequence of points listed in request.", "type": "array", @@ -569,7 +408,7 @@ "description": "The elevation data.", "properties": { "coordinate": { - "$ref": "#/definitions/Coordinate" + "$ref": "../../../Common/common.json#/definitions/Coordinate" }, "elevationInMeter": { "description": "The elevation value in meters.", @@ -625,14 +464,14 @@ "type": "array", "description": "The post elevation points array request body. The length of the array ranges from 2 to 2000.", "items": { - "$ref": "#/definitions/CoordinateAbbreviated" + "$ref": "../../../Common/common.json#/definitions/CoordinateAbbreviated" } }, "LinesInRequestBody": { "type": "array", "description": "The post elevation lines request body.", "items": { - "$ref": "#/definitions/CoordinateAbbreviated" + "$ref": "../../../Common/common.json#/definitions/CoordinateAbbreviated" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json index 329cb1ec6e98..0ee30cb9a229 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json @@ -45,65 +45,6 @@ "apiKeyQuery": [] } ], - "responses": { - "400": { - "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - }, - "401": { - "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - }, - "headers": { - "WWW-Authenticate": { - "type": "string", - "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" - } - } - }, - "403": { - "description": "Permission, capacity, or authentication issues.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - }, - "404": { - "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - }, - "500": { - "description": "An error occurred while processing the request. Please try again later.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - }, - "201Async": { - "description": "The resource has been created successfully.", - "schema": { - "$ref": "#/definitions/LongRunningOperationResult" - }, - "headers": { - "Location": { - "type": "string", - "description": "A URI where details on the newly created resource can be found." - } - } - }, - "202Async": { - "description": "**Supported only for async request.**\nRequest Accepted: The request has been accepted for processing. Please use the URL in the Location Header to retry or access the results.", - "headers": { - "Location": { - "type": "string", - "description": "New URL to check for the results of the long running process." - } - } - } - }, "parameters": { "GeographicResourceLocation": { "name": "geography", @@ -132,52 +73,6 @@ }, "x-ms-parameter-location": "client" }, - "ClientId": { - "name": "x-ms-client-id", - "description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.", - "type": "string", - "in": "header", - "required": false, - "x-ms-parameter-location": "client" - }, - "SubscriptionKey": { - "name": "subscription-key", - "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", - "type": "string", - "in": "query", - "required": false, - "x-ms-parameter-location": "client" - }, - "ApiVersion": { - "name": "api-version", - "description": "Version number of Azure Maps API. Current version is 1.0", - "type": "string", - "in": "query", - "required": true, - "default": "1.0", - "x-ms-parameter-location": "client" - }, - "JsonFormat": { - "name": "format", - "description": "Desired format of the response. Only `json` format is supported.", - "type": "string", - "in": "path", - "required": true, - "enum": [ - "json" - ], - "x-ms-enum": { - "name": "JsonFormat", - "modelAsString": true, - "values": [ - { - "value": "json", - "description": "[The JavaScript Object Notation Data Interchange Format](https://tools.ietf.org/html/rfc8259)" - } - ] - }, - "x-ms-parameter-location": "method" - }, "UploadDataFormat": { "name": "dataFormat", "description": "Data format of the content being uploaded.", @@ -230,13 +125,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/UploadDataFormat" @@ -255,29 +150,29 @@ "200": { "description": "Data upload failed. The uploaded content did not satisfy all the validation checks. The response body contains all the errors that were encountered.", "schema": { - "$ref": "#/definitions/ODataErrorResponse" + "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" } }, "201": { - "$ref": "#/responses/201Async" + "$ref": "../../../Common/common.json#/responses/201Async" }, "202": { - "$ref": "#/responses/202Async" + "$ref": "../../../Common/common.json#/responses/202Async" }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/common.json#/responses/500" } } } @@ -298,13 +193,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/Udid" @@ -323,29 +218,29 @@ "200": { "description": "Data update failed. The uploaded content did not satisfy all the validation checks. The response body contains all the errors that were encountered.", "schema": { - "$ref": "#/definitions/ODataErrorResponse" + "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" } }, "201": { - "$ref": "#/responses/201Async" + "$ref": "../../../Common/common.json#/responses/201Async" }, "202": { - "$ref": "#/responses/202Async" + "$ref": "../../../Common/common.json#/responses/202Async" }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/common.json#/responses/500" } } }, @@ -360,13 +255,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/Udid" @@ -386,19 +281,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/common.json#/responses/500" } } }, @@ -413,13 +308,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/Udid" @@ -433,19 +328,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/common.json#/responses/500" } } } @@ -462,13 +357,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/common.json#/parameters/ApiVersion" } ], "responses": { @@ -485,120 +380,25 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/common.json#/responses/500" } } } } }, "definitions": { - "ODataErrorResponse": { - "type": "object", - "description": "This response object is returned when an error occurs in the Maps API.", - "properties": { - "error": { - "$ref": "#/definitions/ODataError" - } - } - }, - "ODataError": { - "type": "object", - "description": "This object is returned when an error occurs in the Maps API.", - "properties": { - "code": { - "type": "string", - "readOnly": true, - "description": "The ODataError code." - }, - "message": { - "type": "string", - "readOnly": true, - "description": "If available, a human readable description of the error." - }, - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/ODataError" - } - }, - "target": { - "type": "string", - "readOnly": true, - "description": "If available, the target causing the error." - } - } - }, - "LongRunningOperationResult": { - "description": "The response model for a Long-Running Operations API.", - "type": "object", - "properties": { - "operationId": { - "description": "The Id for this long-running operation.", - "type": "string" - }, - "status": { - "description": "The status state of the request.", - "type": "string", - "enum": [ - "NotStarted", - "Running", - "Failed", - "Succeeded" - ], - "x-ms-enum": { - "name": "type", - "modelAsString": true, - "values": [ - { - "value": "NotStarted", - "description": "The request has not started processing yet." - }, - { - "value": "Running", - "description": "The request has started processing." - }, - { - "value": "Failed", - "description": "The request has one or more failures." - }, - { - "value": "Succeeded", - "description": "The request has successfully completed." - } - ] - }, - "readOnly": true - }, - "created": { - "description": "The created timestamp.", - "type": "string", - "readOnly": true - }, - "resourceLocation": { - "description": "The location URI for details about the created resource. This is only provided when the request was successfully completed.", - "type": "string", - "readOnly": true - }, - "error": { - "$ref": "#/definitions/ODataError" - }, - "warning": { - "$ref": "#/definitions/ODataError" - } - } - }, "MapDataDownloadResponse": { "description": "The response model for the Data Download API. The response body will contain the content for the passed in `udid`.", "type": "object" diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json index 629ca82f3036..879e57375d94 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json @@ -46,71 +46,6 @@ "apiKeyQuery": [] } ], - "responses": { - "400": { - "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - }, - "401": { - "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - }, - "headers": { - "WWW-Authenticate": { - "type": "string", - "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" - } - } - }, - "403": { - "description": "Permission, capacity, or authentication issues.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - }, - "404": { - "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - }, - "500": { - "description": "An error occurred while processing the request. Please try again later.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - }, - "200Async": { - "description": "The operation's status response.", - "schema": { - "$ref": "#/definitions/LongRunningOperationResult" - } - }, - "201Async": { - "description": "The resource has been created successfully.", - "schema": { - "$ref": "#/definitions/LongRunningOperationResult" - }, - "headers": { - "Location": { - "type": "string", - "description": "A URI where details on the newly created resource can be found." - } - } - }, - "202Async": { - "description": "**Supported only for async request.**\nRequest Accepted: The request has been accepted for processing. Please use the URL in the Location Header to retry or access the results.", - "headers": { - "Location": { - "type": "string", - "description": "New URL to check for the results of the long running process." - } - } - } - }, "parameters": { "GeographicResourceLocation": { "name": "geography", @@ -139,23 +74,6 @@ }, "x-ms-parameter-location": "client" }, - "SubscriptionKey": { - "name": "subscription-key", - "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", - "type": "string", - "in": "query", - "required": false, - "x-ms-parameter-location": "client" - }, - "ApiVersion": { - "name": "api-version", - "description": "Version number of Azure Maps API. Current version is 1.0", - "type": "string", - "in": "query", - "required": true, - "default": "1.0", - "x-ms-parameter-location": "client" - }, "ConversionIdQuery": { "name": "conversionId", "description": "The unique ID used to create the dataset. The `conversionId` must have been obtained from a successful call to the Conversion Service Convert API and must be provided with multiple query parameters with same name (if more than one is provided). May not be provided in conjunction with the `udid` query parameter.", @@ -272,10 +190,10 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/ConversionIdQuery" @@ -295,25 +213,25 @@ ], "responses": { "201": { - "$ref": "#/responses/201Async" + "$ref": "../../../Common/common.json#/responses/201Async" }, "202": { - "$ref": "#/responses/202Async" + "$ref": "../../../Common/common.json#/responses/202Async" }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/common.json#/responses/500" } } } @@ -330,10 +248,10 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/DatasetId" @@ -347,25 +265,25 @@ ], "responses": { "200": { - "$ref": "#/responses/200Async" + "$ref": "../../../Common/common.json#/responses/200Async" }, "202": { - "$ref": "#/responses/202Async" + "$ref": "../../../Common/common.json#/responses/202Async" }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/common.json#/responses/500" } } } @@ -382,10 +300,10 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/DatasetId" @@ -399,19 +317,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/common.json#/responses/500" } } } @@ -428,10 +346,10 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/common.json#/parameters/ApiVersion" } ], "responses": { @@ -442,120 +360,25 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/common.json#/responses/500" } } } } }, "definitions": { - "ODataErrorResponse": { - "type": "object", - "description": "This response object is returned when an error occurs in the Maps API.", - "properties": { - "error": { - "$ref": "#/definitions/ODataError" - } - } - }, - "ODataError": { - "type": "object", - "description": "This object is returned when an error occurs in the Maps API.", - "properties": { - "code": { - "type": "string", - "readOnly": true, - "description": "The ODataError code." - }, - "message": { - "type": "string", - "readOnly": true, - "description": "If available, a human readable description of the error." - }, - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/ODataError" - } - }, - "target": { - "type": "string", - "readOnly": true, - "description": "If available, the target causing the error." - } - } - }, - "LongRunningOperationResult": { - "description": "The response model for a Long-Running Operations API.", - "type": "object", - "properties": { - "operationId": { - "description": "The Id for this long-running operation.", - "type": "string" - }, - "status": { - "description": "The status state of the request.", - "type": "string", - "enum": [ - "NotStarted", - "Running", - "Failed", - "Succeeded" - ], - "x-ms-enum": { - "name": "type", - "modelAsString": true, - "values": [ - { - "value": "NotStarted", - "description": "The request has not started processing yet." - }, - { - "value": "Running", - "description": "The request has started processing." - }, - { - "value": "Failed", - "description": "The request has one or more failures." - }, - { - "value": "Succeeded", - "description": "The request has successfully completed." - } - ] - }, - "readOnly": true - }, - "created": { - "description": "The created timestamp.", - "type": "string", - "readOnly": true - }, - "resourceLocation": { - "description": "The location URI for details about the created resource. This is only provided when the request was successfully completed.", - "type": "string", - "readOnly": true - }, - "error": { - "$ref": "#/definitions/ODataError" - }, - "warning": { - "$ref": "#/definitions/ODataError" - } - } - }, "DatasetDeleteResponse": { "description": "The response model for the Dataset Delete API. The response body will be empty signifying there's no content available for the `datasetId` anymore.", "type": "object" @@ -634,9 +457,6 @@ "readOnly": true } } - }, - "DatasetGetDetailsResponse": { - "$ref": "#/definitions/DatasetDetailInfo" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json index 227ec56ce6ce..652a5ef73408 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json @@ -45,65 +45,6 @@ "apiKeyQuery": [] } ], - "responses": { - "400": { - "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - }, - "401": { - "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - }, - "headers": { - "WWW-Authenticate": { - "type": "string", - "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" - } - } - }, - "403": { - "description": "Permission, capacity, or authentication issues.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - }, - "404": { - "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - }, - "500": { - "description": "An error occurred while processing the request. Please try again later.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - }, - "201Async": { - "description": "The resource has been created successfully.", - "schema": { - "$ref": "#/definitions/LongRunningOperationResult" - }, - "headers": { - "Location": { - "type": "string", - "description": "A URI where details on the newly created resource can be found." - } - } - }, - "202Async": { - "description": "**Supported only for async request.**\nRequest Accepted: The request has been accepted for processing. Please use the URL in the Location Header to retry or access the results.", - "headers": { - "Location": { - "type": "string", - "description": "New URL to check for the results of the long running process." - } - } - } - }, "parameters": { "GeographicResourceLocation": { "name": "geography", @@ -132,31 +73,6 @@ }, "x-ms-parameter-location": "client" }, - "ClientId": { - "name": "x-ms-client-id", - "description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.", - "type": "string", - "in": "header", - "required": false, - "x-ms-parameter-location": "client" - }, - "SubscriptionKey": { - "name": "subscription-key", - "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", - "type": "string", - "in": "query", - "required": false, - "x-ms-parameter-location": "client" - }, - "ApiVersion": { - "name": "api-version", - "description": "Version number of Azure Maps API. Current version is 1.0", - "type": "string", - "in": "query", - "required": true, - "default": "1.0", - "x-ms-parameter-location": "client" - }, "UdidQuery": { "name": "udid", "description": "The unique data id for the content. The `udid` must have been obtained from a successful [Data Upload API](https://docs.microsoft.com/en-us/rest/api/maps/data/uploadpreview) call.", @@ -220,13 +136,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/UdidQuery" @@ -240,25 +156,25 @@ ], "responses": { "201": { - "$ref": "#/responses/201Async" + "$ref": "../../../Common/common.json#/responses/201Async" }, "202": { - "$ref": "#/responses/202Async" + "$ref": "../../../Common/common.json#/responses/202Async" }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/common.json#/responses/500" } } } @@ -275,13 +191,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/common.json#/parameters/ApiVersion" } ], "responses": { @@ -292,19 +208,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/common.json#/responses/500" } } } @@ -321,13 +237,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/ConversionId" @@ -341,120 +257,25 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/common.json#/responses/500" } } } } }, "definitions": { - "ODataErrorResponse": { - "type": "object", - "description": "This response object is returned when an error occurs in the Maps API.", - "properties": { - "error": { - "$ref": "#/definitions/ODataError" - } - } - }, - "ODataError": { - "type": "object", - "description": "This object is returned when an error occurs in the Maps API.", - "properties": { - "code": { - "type": "string", - "readOnly": true, - "description": "The ODataError code." - }, - "message": { - "type": "string", - "readOnly": true, - "description": "If available, a human readable description of the error." - }, - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/ODataError" - } - }, - "target": { - "type": "string", - "readOnly": true, - "description": "If available, the target causing the error." - } - } - }, - "LongRunningOperationResult": { - "description": "The response model for a Long-Running Operations API.", - "type": "object", - "properties": { - "operationId": { - "description": "The Id for this long-running operation.", - "type": "string" - }, - "status": { - "description": "The status state of the request.", - "type": "string", - "enum": [ - "NotStarted", - "Running", - "Failed", - "Succeeded" - ], - "x-ms-enum": { - "name": "type", - "modelAsString": true, - "values": [ - { - "value": "NotStarted", - "description": "The request has not started processing yet." - }, - { - "value": "Running", - "description": "The request has started processing." - }, - { - "value": "Failed", - "description": "The request has one or more failures." - }, - { - "value": "Succeeded", - "description": "The request has successfully completed." - } - ] - }, - "readOnly": true - }, - "created": { - "description": "The created timestamp.", - "type": "string", - "readOnly": true - }, - "resourceLocation": { - "description": "The location URI for details about the created resource. This is only provided when the request was successfully completed.", - "type": "string", - "readOnly": true - }, - "error": { - "$ref": "#/definitions/ODataError" - }, - "warning": { - "$ref": "#/definitions/ODataError" - } - } - }, "ConversionListResponse": { "description": "The response model for the Conversion List API.", "type": "object", diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json index df8b036ffb72..d875a049c05d 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json @@ -45,50 +45,6 @@ "apiKeyQuery": [] } ], - "responses": { - "400": { - "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - }, - "401": { - "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - }, - "headers": { - "WWW-Authenticate": { - "type": "string", - "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" - } - } - }, - "403": { - "description": "Permission, capacity, or authentication issues.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - }, - "404": { - "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - }, - "409": { - "description": "The request could not be completed due to a conflict with the current state of the resource. Likely caused by a parallel update to the same resource.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - }, - "500": { - "description": "An error occurred while processing the request. Please try again later.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - } - }, "parameters": { "GeographicResourceLocation": { "name": "geography", @@ -117,23 +73,6 @@ }, "x-ms-parameter-location": "client" }, - "SubscriptionKey": { - "name": "subscription-key", - "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", - "type": "string", - "in": "query", - "required": false, - "x-ms-parameter-location": "client" - }, - "ApiVersion": { - "name": "api-version", - "description": "Version number of Azure Maps API. Current version is 1.0", - "type": "string", - "in": "query", - "required": true, - "default": "1.0", - "x-ms-parameter-location": "client" - }, "DatasetIdForCreate": { "name": "datasetId", "description": "The datasetId must have been obtained from a successful [Dataset Create API](https://review.docs.microsoft.com/en-us/rest-staging/api/maps-master/dataset/createpreview?branch=lbs) call.", @@ -204,10 +143,10 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -221,19 +160,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/common.json#/responses/500" } } }, @@ -248,10 +187,10 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -262,19 +201,19 @@ "description": "Stateset Deleted." }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/common.json#/responses/500" } } }, @@ -289,10 +228,10 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -312,19 +251,19 @@ "description": "Stateset styles are updated successfully." }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/common.json#/responses/500" } } } @@ -341,10 +280,10 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/DatasetIdForCreate" @@ -367,19 +306,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/common.json#/responses/500" } } }, @@ -394,10 +333,10 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/common.json#/parameters/ApiVersion" } ], "responses": { @@ -408,19 +347,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/common.json#/responses/500" } } } @@ -437,10 +376,10 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/StatesetId" @@ -457,19 +396,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/common.json#/responses/500" } } }, @@ -484,10 +423,10 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/StatesetId" @@ -510,19 +449,19 @@ "description": "Feature states are updated successfully." }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/common.json#/responses/500" } } }, @@ -537,10 +476,10 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/StatesetId" @@ -557,64 +496,28 @@ "description": "Feature states deleted successfully." }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/common.json#/responses/404" }, "409": { - "$ref": "#/responses/409" + "$ref": "../../../Common/common.json#/responses/409" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/common.json#/responses/500" } } } } }, "definitions": { - "ODataErrorResponse": { - "type": "object", - "description": "This response object is returned when an error occurs in the Maps API.", - "properties": { - "error": { - "$ref": "#/definitions/ODataError" - } - } - }, - "ODataError": { - "type": "object", - "description": "This object is returned when an error occurs in the Maps API.", - "properties": { - "code": { - "type": "string", - "readOnly": true, - "description": "The ODataError code." - }, - "message": { - "type": "string", - "readOnly": true, - "description": "If available, a human readable description of the error." - }, - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/ODataError" - } - }, - "target": { - "type": "string", - "readOnly": true, - "description": "If available, the target causing the error." - } - } - }, "StatesetGetResponse": { "description": "The response model for the successful Stateset Get API.", "type": "object", @@ -797,6 +700,7 @@ "StyleRuleBase": { "description": "contains common properties for numeric, string and boolean style rules.", "discriminator": "type", + "type": "object", "required": [ "keyName", "type" diff --git a/specification/maps/data-plane/Microsoft.Maps/Feedback/preview/1.0/feedback.json b/specification/maps/data-plane/Microsoft.Maps/Feedback/preview/1.0/feedback.json index e32a48a67715..8bc402afbd39 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Feedback/preview/1.0/feedback.json +++ b/specification/maps/data-plane/Microsoft.Maps/Feedback/preview/1.0/feedback.json @@ -38,197 +38,8 @@ "apiKeyQuery": [] } ], - "responses": { - "400": { - "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - }, - "401": { - "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - }, - "headers": { - "WWW-Authenticate": { - "type": "string", - "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" - } - } - }, - "403": { - "description": "Permission, capacity, or authentication issues.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - }, - "404": { - "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - }, - "500": { - "description": "An error occurred while processing the request. Please try again later.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - } - }, - "parameters": { - "ClientId": { - "name": "x-ms-client-id", - "description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.", - "type": "string", - "in": "header", - "required": false, - "x-ms-parameter-location": "client" - }, - "SubscriptionKey": { - "name": "subscription-key", - "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", - "type": "string", - "in": "query", - "required": false, - "x-ms-parameter-location": "client" - }, - "ApiVersion": { - "name": "api-version", - "description": "Version number of Azure Maps API. Current version is 1.0", - "type": "string", - "in": "query", - "required": true, - "default": "1.0", - "x-ms-parameter-location": "client" - } - }, "paths": {}, "definitions": { - "ODataErrorResponse": { - "type": "object", - "description": "This response object is returned when an error occurs in the Maps API.", - "properties": { - "error": { - "$ref": "#/definitions/ODataError" - } - } - }, - "ODataError": { - "type": "object", - "description": "This object is returned when an error occurs in the Maps API.", - "properties": { - "code": { - "type": "string", - "readOnly": true, - "description": "The ODataError code." - }, - "message": { - "type": "string", - "readOnly": true, - "description": "If available, a human readable description of the error." - }, - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/ODataError" - } - }, - "target": { - "type": "string", - "readOnly": true, - "description": "If available, the target causing the error." - } - } - }, - "GeoJSONPosition": { - "description": "A valid `GeoJSON Position` geometry type. A `Position` is an array of numbers with two or more elements. The first two elements are _longitude_ and _latitude_, precisely in that order. _Altitude/Elevation_ is an optional third element. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.1) for details.", - "type": "array", - "items": { - "type": "number", - "format": "double" - } - }, - "GeoJSONGeometry": { - "description": "A valid `GeoJSON` geometry object. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1) for details.", - "type": "object", - "discriminator": "type", - "required": [ - "type" - ], - "properties": { - "type": { - "description": "Specifies the `GeoJSON` geometry type. Must be one of the seven valid GeoJSON geometry types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon and GeometryCollection.", - "type": "string", - "enum": [ - "Point", - "MultiPoint", - "LineString", - "MultiLineString", - "Polygon", - "MultiPolygon", - "GeometryCollection" - ], - "x-ms-enum": { - "name": "GeoJSONGeometryType", - "modelAsString": true, - "values": [ - { - "value": "Point", - "description": "`GeoJSON Point` geometry." - }, - { - "value": "MultiPoint", - "description": "`GeoJSON MultiPoint` geometry." - }, - { - "value": "LineString", - "description": "`GeoJSON LineString` geometry." - }, - { - "value": "MultiLineString", - "description": "`GeoJSON MultiLineString` geometry." - }, - { - "value": "Polygon", - "description": "`GeoJSON Polygon` geometry." - }, - { - "value": "MultiPolygon", - "description": "`GeoJSON MultiPolygon` geometry." - }, - { - "value": "GeometryCollection", - "description": "`GeoJSON GeometryCollection` geometry." - } - ] - } - } - } - }, - "Point": { - "description": "A valid `GeoJSON Point` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.2) for details.", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJSONGeometry" - }, - { - "properties": { - "type": { - "description": "Specifies the `type` for the geometry. Value should always be equal to \"Point\".", - "type": "string" - }, - "coordinates": { - "$ref": "#/definitions/GeoJSONPosition" - } - }, - "required": [ - "coordinates" - ] - } - ] - }, "GeoJsonBoundingBox": { "description": "Bounding Box. The bounding box is an array of length 2*n where n is\nthe number of dimensions represented in the contained geometries,\nwith all axes of the most southwesterly point followed by all axes\nof the more northeasterly point. The axes order of a bbox follows\nthe axes order of geometries.\n\nThe edges of the bounding box follow lines of constant longitude,\nlatitude, and elevation.", "type": "array", @@ -237,10 +48,6 @@ "format": "double" } }, - "Geometry": { - "description": "This represents the geometry for one or more geographical features (parks, state boundary etc.) and should be a `GeoJSON` compliant type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946) for details.", - "type": "object" - }, "FeedbackStatusResponse": { "type": "object", "required": [ @@ -289,7 +96,7 @@ "type": "boolean" }, "location": { - "$ref": "#/definitions/GeoJSONPosition" + "$ref": "../../../Common/common.json#/definitions/GeoJSONPosition" }, "bbox": { "$ref": "#/definitions/GeoJsonBoundingBox" @@ -317,7 +124,7 @@ "type": "boolean" }, "location": { - "$ref": "#/definitions/GeoJSONPosition" + "$ref": "../../../Common/common.json#/definitions/GeoJSONPosition" }, "bbox": { "$ref": "#/definitions/GeoJsonBoundingBox" @@ -345,7 +152,7 @@ "type": "boolean" }, "location": { - "$ref": "#/definitions/GeoJSONPosition" + "$ref": "../../../Common/common.json#/definitions/GeoJSONPosition" }, "bbox": { "$ref": "#/definitions/GeoJsonBoundingBox" @@ -412,7 +219,7 @@ "type": "string" }, "geometry": { - "$ref": "#/definitions/Point" + "$ref": "../../../Common/common.json#/definitions/Point" } } }, @@ -483,7 +290,7 @@ "type": "boolean" }, "location": { - "$ref": "#/definitions/GeoJSONPosition" + "$ref": "../../../Common/common.json#/definitions/GeoJSONPosition" }, "bbox": { "$ref": "#/definitions/GeoJsonBoundingBox" @@ -511,7 +318,7 @@ "type": "boolean" }, "location": { - "$ref": "#/definitions/GeoJSONPosition" + "$ref": "../../../Common/common.json#/definitions/GeoJSONPosition" }, "bbox": { "$ref": "#/definitions/GeoJsonBoundingBox" @@ -539,7 +346,7 @@ "type": "boolean" }, "location": { - "$ref": "#/definitions/GeoJSONPosition" + "$ref": "../../../Common/common.json#/definitions/GeoJSONPosition" }, "bbox": { "$ref": "#/definitions/GeoJsonBoundingBox" @@ -587,7 +394,7 @@ "type": "string" }, "geometry": { - "$ref": "#/definitions/Point" + "$ref": "../../../Common/common.json#/definitions/Point" } } }, @@ -638,7 +445,7 @@ "type": "boolean" }, "location": { - "$ref": "#/definitions/GeoJSONPosition" + "$ref": "../../../Common/common.json#/definitions/GeoJSONPosition" }, "bbox": { "$ref": "#/definitions/GeoJsonBoundingBox" @@ -674,10 +481,10 @@ "type": "object", "properties": { "current": { - "$ref": "#/definitions/Geometry" + "$ref": "../../../Common/common.json#/definitions/Geometry" }, "proposed": { - "$ref": "#/definitions/Geometry" + "$ref": "../../../Common/common.json#/definitions/Geometry" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json index 237abbe0d7c6..e19c4176a5a4 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json +++ b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json @@ -38,92 +38,6 @@ "apiKeyQuery": [] } ], - "responses": { - "400": { - "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - }, - "401": { - "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - }, - "headers": { - "WWW-Authenticate": { - "type": "string", - "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" - } - } - }, - "403": { - "description": "Permission, capacity, or authentication issues.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - }, - "404": { - "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - }, - "500": { - "description": "An error occurred while processing the request. Please try again later.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - } - }, - "parameters": { - "ClientId": { - "name": "x-ms-client-id", - "description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.", - "type": "string", - "in": "header", - "required": false, - "x-ms-parameter-location": "client" - }, - "SubscriptionKey": { - "name": "subscription-key", - "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", - "type": "string", - "in": "query", - "required": false, - "x-ms-parameter-location": "client" - }, - "ApiVersion": { - "name": "api-version", - "description": "Version number of Azure Maps API. Current version is 1.0", - "type": "string", - "in": "query", - "required": true, - "default": "1.0", - "x-ms-parameter-location": "client" - }, - "JsonFormat": { - "name": "format", - "description": "Desired format of the response. Only `json` format is supported.", - "type": "string", - "in": "path", - "required": true, - "enum": [ - "json" - ], - "x-ms-enum": { - "name": "JsonFormat", - "modelAsString": true, - "values": [ - { - "value": "json", - "description": "[The JavaScript Object Notation Data Interchange Format](https://tools.ietf.org/html/rfc8259)" - } - ] - }, - "x-ms-parameter-location": "method" - } - }, "paths": { "/geolocation/ip/{format}": { "get": { @@ -137,16 +51,16 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "../../../Common/common.json#/parameters/JsonFormat" }, { "name": "ip", @@ -164,61 +78,25 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/common.json#/responses/500" } } } } }, "definitions": { - "ODataErrorResponse": { - "type": "object", - "description": "This response object is returned when an error occurs in the Maps API.", - "properties": { - "error": { - "$ref": "#/definitions/ODataError" - } - } - }, - "ODataError": { - "type": "object", - "description": "This object is returned when an error occurs in the Maps API.", - "properties": { - "code": { - "type": "string", - "readOnly": true, - "description": "The ODataError code." - }, - "message": { - "type": "string", - "readOnly": true, - "description": "If available, a human readable description of the error." - }, - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/ODataError" - } - }, - "target": { - "type": "string", - "readOnly": true, - "description": "If available, the target causing the error." - } - } - }, "IpAddressToLocationResult": { "description": "This object is returned from a successful call to IP Address to country/region API", "type": "object", diff --git a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json index 82686274d07f..90ca417670a5 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json +++ b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json @@ -37,91 +37,7 @@ "apiKeyQuery": [] } ], - "responses": { - "400": { - "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - }, - "401": { - "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - }, - "headers": { - "WWW-Authenticate": { - "type": "string", - "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" - } - } - }, - "403": { - "description": "Permission, capacity, or authentication issues.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - }, - "404": { - "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - }, - "500": { - "description": "An error occurred while processing the request. Please try again later.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - } - }, "parameters": { - "ClientId": { - "name": "x-ms-client-id", - "description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.", - "type": "string", - "in": "header", - "required": false, - "x-ms-parameter-location": "client" - }, - "SubscriptionKey": { - "name": "subscription-key", - "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", - "type": "string", - "in": "query", - "required": false, - "x-ms-parameter-location": "client" - }, - "ApiVersion": { - "name": "api-version", - "description": "Version number of Azure Maps API. Current version is 1.0", - "type": "string", - "in": "query", - "required": true, - "default": "1.0", - "x-ms-parameter-location": "client" - }, - "JsonFormat": { - "name": "format", - "description": "Desired format of the response. Only `json` format is supported.", - "type": "string", - "in": "path", - "required": true, - "enum": [ - "json" - ], - "x-ms-enum": { - "name": "JsonFormat", - "modelAsString": true, - "values": [ - { - "value": "json", - "description": "[The JavaScript Object Notation Data Interchange Format](https://tools.ietf.org/html/rfc8259)" - } - ] - }, - "x-ms-parameter-location": "method" - }, "MetroId": { "name": "metroId", "description": "The unique id of the metro area. Can be retrieved via [Get Metro Area API](https://aka.ms/AzureMapsMobilityMetro).", @@ -153,16 +69,16 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "../../../Common/common.json#/parameters/JsonFormat" }, { "name": "query", @@ -210,19 +126,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/common.json#/responses/500" } } } @@ -239,16 +155,16 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "../../../Common/common.json#/parameters/JsonFormat" }, { "name": "query", @@ -309,19 +225,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/common.json#/responses/500" } } } @@ -338,16 +254,16 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "../../../Common/common.json#/parameters/JsonFormat" }, { "$ref": "#/parameters/MetroId" @@ -395,19 +311,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/common.json#/responses/500" } } } @@ -424,16 +340,16 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "../../../Common/common.json#/parameters/JsonFormat" }, { "$ref": "#/parameters/MetroId" @@ -505,19 +421,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/common.json#/responses/500" } } } @@ -534,16 +450,16 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "../../../Common/common.json#/parameters/JsonFormat" }, { "$ref": "#/parameters/MetroId" @@ -632,19 +548,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/common.json#/responses/500" } } } @@ -661,16 +577,16 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "../../../Common/common.json#/parameters/JsonFormat" }, { "$ref": "#/parameters/MetroId" @@ -977,19 +893,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/common.json#/responses/500" } } } @@ -1006,16 +922,16 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "../../../Common/common.json#/parameters/JsonFormat" }, { "name": "query", @@ -1065,19 +981,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/common.json#/responses/500" } } } @@ -1094,16 +1010,16 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "../../../Common/common.json#/parameters/JsonFormat" }, { "$ref": "#/parameters/MetroId" @@ -1316,205 +1232,25 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/common.json#/responses/500" } } } } }, "definitions": { - "ODataErrorResponse": { - "type": "object", - "description": "This response object is returned when an error occurs in the Maps API.", - "properties": { - "error": { - "$ref": "#/definitions/ODataError" - } - } - }, - "ODataError": { - "type": "object", - "description": "This object is returned when an error occurs in the Maps API.", - "properties": { - "code": { - "type": "string", - "readOnly": true, - "description": "The ODataError code." - }, - "message": { - "type": "string", - "readOnly": true, - "description": "If available, a human readable description of the error." - }, - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/ODataError" - } - }, - "target": { - "type": "string", - "readOnly": true, - "description": "If available, the target causing the error." - } - } - }, - "Coordinate": { - "description": "A location represented as a latitude and longitude.", - "type": "object", - "properties": { - "latitude": { - "description": "Latitude property", - "type": "number", - "format": "double", - "readOnly": true - }, - "longitude": { - "description": "Longitude property", - "type": "number", - "format": "double", - "readOnly": true - } - } - }, - "GeoJSONGeometry": { - "description": "A valid `GeoJSON` geometry object. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1) for details.", - "type": "object", - "discriminator": "type", - "required": [ - "type" - ], - "properties": { - "type": { - "description": "Specifies the `GeoJSON` geometry type. Must be one of the seven valid GeoJSON geometry types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon and GeometryCollection.", - "type": "string", - "enum": [ - "Point", - "MultiPoint", - "LineString", - "MultiLineString", - "Polygon", - "MultiPolygon", - "GeometryCollection" - ], - "x-ms-enum": { - "name": "GeoJSONGeometryType", - "modelAsString": true, - "values": [ - { - "value": "Point", - "description": "`GeoJSON Point` geometry." - }, - { - "value": "MultiPoint", - "description": "`GeoJSON MultiPoint` geometry." - }, - { - "value": "LineString", - "description": "`GeoJSON LineString` geometry." - }, - { - "value": "MultiLineString", - "description": "`GeoJSON MultiLineString` geometry." - }, - { - "value": "Polygon", - "description": "`GeoJSON Polygon` geometry." - }, - { - "value": "MultiPolygon", - "description": "`GeoJSON MultiPolygon` geometry." - }, - { - "value": "GeometryCollection", - "description": "`GeoJSON GeometryCollection` geometry." - } - ] - } - } - } - }, - "Polygon": { - "description": "A valid `GeoJSON Polygon` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.6) for details.", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJSONGeometry" - }, - { - "properties": { - "type": { - "description": "Specifies the `type` for the object. Value should always be equal to \"Polygon\".", - "type": "string" - }, - "coordinates": { - "description": "Coordinates for the `Polygon` geometry type.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJSONLinearRing" - } - } - }, - "required": [ - "coordinates" - ] - } - ] - }, - "LineString": { - "description": "A valid `GeoJSON LineString` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.4) for details.", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJSONGeometry" - }, - { - "properties": { - "type": { - "description": "Specifies the `type` for the geometry. Value should always be equal to \"LineString\".", - "type": "string" - }, - "coordinates": { - "description": "Coordinates for the `LineString` geometry.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJSONPosition" - } - } - }, - "required": [ - "coordinates" - ] - } - ] - }, - "GeoJSONLinearRing": { - "description": "Though a linear ring is not explicitly represented as a GeoJSON geometry type, it helps in defining the polygon as an array of linear rings. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.6) for details.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJSONPosition" - } - }, - "GeoJSONPosition": { - "description": "A valid `GeoJSON Position` geometry type. A `Position` is an array of numbers with two or more elements. The first two elements are _longitude_ and _latitude_, precisely in that order. _Altitude/Elevation_ is an optional third element. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.1) for details.", - "type": "array", - "items": { - "type": "number", - "format": "double" - } - }, "MetroAreaResponse": { "description": "This object is returned from a successful Get Metro Area call", "type": "object", @@ -1682,7 +1418,7 @@ "type": "string" }, "geometry": { - "$ref": "#/definitions/Polygon" + "$ref": "../../../Common/common.json#/definitions/Polygon" }, "viewport": { "$ref": "#/definitions/ResultViewport" @@ -1694,10 +1430,10 @@ "type": "object", "properties": { "topLeftPoint": { - "$ref": "#/definitions/Coordinate" + "$ref": "../../../Common/common.json#/definitions/Coordinate" }, "btmRightPoint": { - "$ref": "#/definitions/Coordinate" + "$ref": "../../../Common/common.json#/definitions/Coordinate" } } }, @@ -1718,7 +1454,7 @@ }, "position": { "description": "The transit object's position.", - "$ref": "#/definitions/Coordinate" + "$ref": "../../../Common/common.json#/definitions/Coordinate" }, "viewport": { "$ref": "#/definitions/ResultViewport" @@ -1747,7 +1483,7 @@ }, "position": { "description": "The Stop's location, latitude and longitude.", - "$ref": "#/definitions/Coordinate" + "$ref": "../../../Common/common.json#/definitions/Coordinate" }, "mainTransitType": { "description": "The transit type of most lines stopping at this stop. One of Tram, Subway, Rail, Bus, Ferry, CableCar, Gondola, Funicular", @@ -2041,7 +1777,7 @@ "$ref": "#/definitions/LegPoint" }, "geometry": { - "$ref": "#/definitions/LineString" + "$ref": "../../../Common/common.json#/definitions/LineString" }, "lineGroup": { "description": "In case of a public transit leg, the line group serving this leg.", @@ -2221,7 +1957,7 @@ "type": "object", "properties": { "position": { - "$ref": "#/definitions/Coordinate" + "$ref": "../../../Common/common.json#/definitions/Coordinate" } } }, @@ -2428,7 +2164,7 @@ }, "geometry": { "description": "Stop sequence and shape per a line in GeoJSON format.", - "$ref": "#/definitions/LineString" + "$ref": "../../../Common/common.json#/definitions/LineString" } } }, diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json index 2a974720a1c5..96a4b7d45e81 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json @@ -52,13 +52,13 @@ "400": { "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { - "$ref": "#/definitions/ODataErrorResponse" + "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" } }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", "schema": { - "$ref": "#/definitions/ODataErrorResponse" + "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" }, "headers": { "WWW-Authenticate": { @@ -70,19 +70,19 @@ "403": { "description": "Permission, capacity, or authentication issues.", "schema": { - "$ref": "#/definitions/ODataErrorResponse" + "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" } }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { - "$ref": "#/definitions/ODataErrorResponse" + "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" } }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { - "$ref": "#/definitions/ODataErrorResponse" + "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" } }, "202Async": { @@ -1638,7 +1638,7 @@ "description": "The list of route directions queries/requests to process. The list can contain a max of 700 queries for async and 100 queries for sync version and must contain at least 1 query.", "required": true, "schema": { - "$ref": "#/definitions/BatchRequestBody" + "$ref": "../../../Common/common.json#/definitions/BatchRequestBody" } } ], @@ -1646,7 +1646,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/BatchResponse" + "$ref": "../../../Common/common.json#/definitions/BatchResponse" } }, "202": { @@ -1675,287 +1675,6 @@ } }, "definitions": { - "ODataErrorResponse": { - "type": "object", - "description": "This response object is returned when an error occurs in the Maps API.", - "properties": { - "error": { - "$ref": "#/definitions/ODataError" - } - } - }, - "ODataError": { - "type": "object", - "description": "This object is returned when an error occurs in the Maps API.", - "properties": { - "code": { - "type": "string", - "readOnly": true, - "description": "The ODataError code." - }, - "message": { - "type": "string", - "readOnly": true, - "description": "If available, a human readable description of the error." - }, - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/ODataError" - } - }, - "target": { - "type": "string", - "readOnly": true, - "description": "If available, the target causing the error." - } - } - }, - "Redirect": { - "type": "object", - "description": "This object is returned when the request is accepted but the processing has not been completed. The location header in the response contains the new URL to retry." - }, - "BatchResponse": { - "description": "This object is returned from a successful Batch service call", - "type": "object", - "properties": { - "summary": { - "description": "Summary for the batch request", - "type": "object", - "readOnly": true, - "properties": { - "successfulRequests": { - "description": "Number of successful requests in the batch", - "type": "integer", - "readOnly": true - }, - "totalRequests": { - "description": "Total number of requests in the batch", - "type": "integer", - "readOnly": true - } - } - }, - "batchItems": { - "description": "Array containing the batch results", - "type": "array", - "readOnly": true, - "items": { - "type": "object" - } - } - } - }, - "GeoJSONGeometry": { - "description": "A valid `GeoJSON` geometry object. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1) for details.", - "type": "object", - "discriminator": "type", - "required": [ - "type" - ], - "properties": { - "type": { - "description": "Specifies the `GeoJSON` geometry type. Must be one of the seven valid GeoJSON geometry types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon and GeometryCollection.", - "type": "string", - "enum": [ - "Point", - "MultiPoint", - "LineString", - "MultiLineString", - "Polygon", - "MultiPolygon", - "GeometryCollection" - ], - "x-ms-enum": { - "name": "GeoJSONGeometryType", - "modelAsString": true, - "values": [ - { - "value": "Point", - "description": "`GeoJSON Point` geometry." - }, - { - "value": "MultiPoint", - "description": "`GeoJSON MultiPoint` geometry." - }, - { - "value": "LineString", - "description": "`GeoJSON LineString` geometry." - }, - { - "value": "MultiLineString", - "description": "`GeoJSON MultiLineString` geometry." - }, - { - "value": "Polygon", - "description": "`GeoJSON Polygon` geometry." - }, - { - "value": "MultiPolygon", - "description": "`GeoJSON MultiPolygon` geometry." - }, - { - "value": "GeometryCollection", - "description": "`GeoJSON GeometryCollection` geometry." - } - ] - } - } - } - }, - "MultiPoint": { - "description": "A valid `GeoJSON MultiPoint` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.3) for details.", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJSONGeometry" - }, - { - "properties": { - "type": { - "description": "Specifies the `type` for the geometry. Value should always be equal to \"MultiPoint\".", - "type": "string" - }, - "coordinates": { - "description": "Coordinates for the `MultiPoint` geometry.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJSONPosition" - } - } - }, - "required": [ - "coordinates" - ] - } - ] - }, - "GeoJSONLinearRing": { - "description": "Though a linear ring is not explicitly represented as a GeoJSON geometry type, it helps in defining the polygon as an array of linear rings. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.6) for details.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJSONPosition" - } - }, - "GeoJSONPosition": { - "description": "A valid `GeoJSON Position` geometry type. A `Position` is an array of numbers with two or more elements. The first two elements are _longitude_ and _latitude_, precisely in that order. _Altitude/Elevation_ is an optional third element. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.1) for details.", - "type": "array", - "items": { - "type": "number", - "format": "double" - } - }, - "Point": { - "description": "A valid `GeoJSON Point` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.2) for details.", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJSONGeometry" - }, - { - "properties": { - "type": { - "description": "Specifies the `type` for the geometry. Value should always be equal to \"Point\".", - "type": "string" - }, - "coordinates": { - "$ref": "#/definitions/GeoJSONPosition" - } - }, - "required": [ - "coordinates" - ] - } - ] - }, - "MultiPolygon": { - "description": "A valid `GeoJSON MultiPolygon` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.7) for details.", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJSONGeometry" - }, - { - "properties": { - "type": { - "description": "Specifies the `type` for the object. Value should always be equal to \"MultiPolygon\".", - "type": "string" - }, - "coordinates": { - "description": "Contains a list of valid `GeoJSON` Polygon objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude).", - "type": "array", - "items": { - "type": "array", - "items": { - "$ref": "#/definitions/GeoJSONLinearRing" - } - } - } - }, - "required": [ - "coordinates" - ] - } - ] - }, - "GeoJSONGeometryCollection": { - "description": "A valid `GeoJSON GeometryCollection` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.8) for details.", - "type": "object", - "properties": { - "type": { - "description": "Specifies the `type` for the object. Value should always be equal to \"GeometryCollection\".", - "type": "string" - }, - "geometries": { - "description": "Contains a list of valid `GeoJSON` geometry objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude).", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJSONGeometry" - } - } - }, - "required": [ - "geometries" - ] - }, - "BatchRequestBody": { - "description": "This type represents the request body for the Batch service.", - "type": "object", - "properties": { - "batchItems": { - "description": "The list of queries/requests to process", - "type": "array", - "items": { - "description": "Batch Query object", - "type": "object", - "properties": { - "query": { - "description": "Partial query string", - "type": "string" - } - } - } - } - } - }, - "Coordinate": { - "description": "A location represented as a latitude and longitude.", - "type": "object", - "properties": { - "latitude": { - "description": "Latitude property", - "type": "number", - "format": "double", - "readOnly": true - }, - "longitude": { - "description": "Longitude property", - "type": "number", - "format": "double", - "readOnly": true - } - } - }, "RouteDirectionsRequestBody": { "type": "object", "description": "Post body parameters for Route directions.", @@ -1964,14 +1683,14 @@ "description": "A GeoJSON Geometry collection representing sequence of coordinates used as input for route reconstruction and for calculating zero or more alternative routes to this reference route.\n - The provided sequence of supporting points is used as input for route reconstruction.\n - The alternative routes are calculated between the origin and destination points specified in the base path parameter locations.\n - If both _minDeviationDistance_ and _minDeviationTime_ are set to zero, then these origin and destination points are\n expected to be at (or very near) the beginning and end of the reference route, respectively.\n - Intermediate locations (_waypoints_) are not supported when using <_supportingPoints_>.\n - The reference route may contain traffic incidents of type _ROAD_CLOSURE_, which are\n ignored for the calculation of the reference route's travel time and traffic delay.", "allOf": [ { - "$ref": "#/definitions/GeoJSONGeometryCollection" + "$ref": "../../../Common/common.json#/definitions/GeoJSONGeometryCollection" }, { "properties": { "geometries": { "type": "array", "items": { - "$ref": "#/definitions/Point" + "$ref": "../../../Common/common.json#/definitions/Point" } } } @@ -1994,7 +1713,7 @@ }, "avoidAreas": { "description": "A GeoJSON MultiPolygon representing list of areas to avoid. Only rectangle polygons are supported. The maximum size of a rectangle is about 160x160 km. Maximum number of avoided areas is **10**. It cannot cross the 180th meridian. It must be between -80 and +80 degrees of latitude.", - "$ref": "#/definitions/MultiPolygon" + "$ref": "../../../Common/common.json#/definitions/MultiPolygon" } } }, @@ -2114,7 +1833,7 @@ "type": "array", "readOnly": true, "items": { - "$ref": "#/definitions/Coordinate" + "$ref": "../../../Common/common.json#/definitions/Coordinate" } } } @@ -2308,7 +2027,7 @@ "readOnly": true }, "point": { - "$ref": "#/definitions/Coordinate" + "$ref": "../../../Common/common.json#/definitions/Coordinate" }, "pointIndex": { "description": "The index of the point in the list of polyline \"points\" corresponding to the point of the instruction.", @@ -2719,14 +2438,14 @@ "properties": { "center": { "description": "Center point of the reachable range", - "$ref": "#/definitions/Coordinate" + "$ref": "../../../Common/common.json#/definitions/Coordinate" }, "boundary": { "description": "Polygon boundary of the reachable range represented as a list of points.", "type": "array", "readOnly": true, "items": { - "$ref": "#/definitions/Coordinate" + "$ref": "../../../Common/common.json#/definitions/Coordinate" } } } @@ -2834,10 +2553,10 @@ "type": "object", "properties": { "origins": { - "$ref": "#/definitions/MultiPoint" + "$ref": "../../../Common/common.json#/definitions/MultiPoint" }, "destinations": { - "$ref": "#/definitions/MultiPoint" + "$ref": "../../../Common/common.json#/definitions/MultiPoint" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json index 55803cc5462c..823e94bc5400 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json @@ -1,9 +1,9 @@ { "swagger": "2.0", "info": { - "title": "Azure Maps Search Service", + "title": "Azure Maps Spatial Service", "version": "1.0", - "description": "Azure Maps Search REST APIs" + "description": "Azure Maps Spatial REST APIs" }, "host": "atlas.microsoft.com", "schemes": [ @@ -52,13 +52,13 @@ "400": { "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { - "$ref": "#/definitions/ODataErrorResponse" + "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" } }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", "schema": { - "$ref": "#/definitions/ODataErrorResponse" + "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" }, "headers": { "WWW-Authenticate": { @@ -70,28 +70,19 @@ "403": { "description": "Permission, capacity, or authentication issues.", "schema": { - "$ref": "#/definitions/ODataErrorResponse" + "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" } }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { - "$ref": "#/definitions/ODataErrorResponse" + "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" } }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - }, - "202Async": { - "description": "**Supported only for async request.**\nRequest Accepted: The request has been accepted for processing. Please use the URL in the Location Header to retry or access the results.", - "headers": { - "Location": { - "type": "string", - "description": "New URL to check for the results of the long running process." - } + "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" } } }, @@ -168,328 +159,56 @@ }, "x-ms-parameter-location": "method" }, - "LimitSearch": { - "name": "limit", - "in": "query", - "description": "Maximum number of responses that will be returned. Default: 10, minimum: 1 and maximum: 100", - "required": false, - "type": "integer", - "default": 10, - "minimum": 1, - "maximum": 100, - "x-ms-parameter-location": "method" - }, - "Offset": { - "name": "ofs", - "in": "query", - "description": "Starting offset of the returned results within the full result set. Default: 0, minimum: 0 and maximum: 1900", - "required": false, - "type": "integer", - "default": 0, - "minimum": 0, - "maximum": 1900, - "x-ms-parameter-location": "method" - }, - "OptionalBiasLat": { - "name": "lat", - "in": "query", - "description": "Latitude where results should be biased. E.g. 37.337", - "required": false, - "type": "number", - "x-ms-parameter-location": "method" - }, - "OptionalBiasLon": { - "name": "lon", - "in": "query", - "description": "Longitude where results should be biased. E.g. -121.89", - "required": false, - "type": "number", - "x-ms-parameter-location": "method" - }, - "BoundingBoxTopLeft": { - "x-client-name": "BoundingBoxTopLeft", - "name": "topLeft", - "in": "query", - "description": "Top left position of the bounding box. E.g. 37.553,-122.453", - "required": false, - "type": "string", - "x-ms-parameter-location": "method" - }, - "BoundingBoxBottomRight": { - "x-client-name": "BoundingBoxBottomRight", - "name": "btmRight", - "in": "query", - "description": "Bottom right position of the bounding box. E.g. 37.553,-122.453", - "required": false, - "type": "string", - "x-ms-parameter-location": "method" - }, - "RequiredBiasLat": { - "name": "lat", - "in": "query", - "description": "Latitude where results should be biased. E.g. 37.337.", - "required": true, - "type": "number", - "x-ms-parameter-location": "method" - }, - "RequiredBiasLon": { - "name": "lon", - "in": "query", - "description": "Longitude where results should be biased. E.g. -121.89.", - "required": true, - "type": "number", - "x-ms-parameter-location": "method" - }, - "Language": { - "name": "language", - "in": "query", - "description": "Language in which search results should be returned. Should be one of supported IETF language tags, case insensitive. When data in specified language is not available for a specific field, default language is used.\n\nPlease refer to [Supported Languages](https://docs.microsoft.com/en-us/azure/azure-maps/supported-languages) for details.", - "required": false, - "type": "string", - "x-ms-parameter-location": "method" - }, - "Query": { - "name": "query", - "in": "query", - "description": "The applicable query string. Must be properly URL encoded.", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "Position": { - "name": "query", - "in": "query", - "description": "The applicable query specified as a comma separated string composed by latitude followed by longitude e.g. \"47.641268,-122.125679\".", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "View": { - "name": "view", - "in": "query", - "description": "The View parameter specifies which set of geopolitically disputed content is returned via Azure Maps services, including borders and labels displayed on the map. The View parameter (also referred to as “user region parameter”) will show the correct maps for that country/region. By default, the View parameter is set to “Unified” even if you haven’t defined it in the request. It is your responsibility to determine the location of your users, and then set the View parameter correctly for that location. Alternatively, you have the option to set ‘View=Auto’, which will return the map data based on the IP address of the request. The View parameter in Azure Maps must be used in compliance with applicable laws, including those regarding mapping, of the country where maps, images and other data and third party content that you are authorized to access via Azure Maps is made available. Example: view=IN.\n\nPlease refer to [Supported Views](https://aka.ms/AzureMapsLocalizationViews) for details and to see the available Views.", - "required": false, - "type": "string", - "x-ms-parameter-location": "method" - }, - "SearchIndexSet": { - "name": "idxSet", - "in": "query", - "description": "A comma separated list of indexes which should be utilized for the search. Item order does not matter. Available indexes are: Addr = Address range interpolation, Geo = Geographies, PAD = Point Addresses, POI = Points of interest, Str = Streets, Xstr = Cross Streets (intersections)", - "required": false, - "type": "array", - "items": { - "type": "string", - "enum": [ - "Addr", - "Geo", - "PAD", - "POI", - "Str", - "Xstr" - ], - "x-ms-enum": { - "name": "SearchIndexSet", - "modelAsString": true, - "values": [ - { - "value": "Addr", - "description": "Address range interpolation" - }, - { - "value": "Geo", - "description": "Geographies" - }, - { - "value": "PAD", - "description": "Point Addresses" - }, - { - "value": "POI", - "description": "Points of interest" - }, - { - "value": "Str", - "description": "Streets" - }, - { - "value": "Xstr", - "description": "Cross Streets (Intersections)" - } - ] - } - }, - "collectionFormat": "csv", - "x-ms-parameter-location": "method" - }, - "ExtendedPostalCodesFor": { - "name": "extendedPostalCodesFor", - "in": "query", - "description": "Indexes for which extended postal codes should be included in the results.\n\nAvailable indexes are: \n\n **Addr** = Address ranges \n\n **Geo** = Geographies \n\n **PAD** = Point Addresses \n\n **POI** = Points of Interest \n\n **Str** = Streets \n\n **XStr** = Cross Streets (intersections)\n\nValue should be a comma separated list of index types (in any order) or **None** for no indexes.\n\nBy default extended postal codes are included for all indexes except Geo. Extended postal code lists for geographies can be quite long so they have to be explicitly requested when needed.\n\nUsage examples:\n\n extendedPostalCodesFor=POI \n\n extendedPostalCodesFor=PAD,Addr,POI \n\n extendedPostalCodesFor=None\n\nExtended postal code is returned as an **extendedPostalCode** property of an address. Availability is region-dependent.", - "required": false, - "type": "string", - "x-ms-parameter-location": "method" - }, - "ExtendedPostalCodesForPoi": { - "name": "extendedPostalCodesFor", + "Mode": { + "name": "mode", "in": "query", - "description": "Indexes for which extended postal codes should be included in the results.\n\nAvailable indexes are: \n\n **POI** = Points of Interest \n\nValue should be **POI** or **None** to disable extended postal codes.\n\nBy default extended postal codes are included.\n\nUsage examples:\n\n extendedPostalCodesFor=POI \n\n extendedPostalCodesFor=None\n\nExtended postal code is returned as an **extendedPostalCode** property of an address. Availability is region-dependent.", + "description": "Mode of the geofencing async event mechanism.", "required": false, "type": "string", - "x-ms-parameter-location": "method" - }, - "Typeahead": { - "name": "typeahead", - "in": "query", - "description": "Boolean. If the typeahead flag is set, the query will be interpreted as a partial input and the search will enter predictive mode", - "required": false, - "type": "boolean", - "default": false, - "x-ms-parameter-location": "method" - }, - "CategorySet": { - "name": "categorySet", - "in": "query", - "description": "A comma-separated list of category set IDs which could be used to restrict the result to specific Points of Interest categories. ID order does not matter. When multiple category identifiers are provided, only POIs that belong to (at least) one of the categories from the provided list will be returned. The list of supported categories can be discovered using  [POI Categories API](https://aka.ms/AzureMapsPOICategoryTree). Usage examples: \n\n* **categorySet=7315** (Search Points of Interest from category Restaurant)\n\n* **categorySet=7315025,7315017** (Search Points of Interest of category either Italian or French Restaurant) ", - "required": false, - "type": "array", - "items": { - "type": "integer" - }, - "collectionFormat": "csv", - "x-ms-parameter-location": "method" - }, - "CountrySet": { - "name": "countrySet", - "in": "query", - "description": "Comma separated string of country codes, e.g. FR,ES. This will limit the search to the specified countries", - "required": false, - "type": "array", - "items": { - "type": "string" + "enum": [ + "All", + "EnterAndExit" + ], + "x-ms-enum": { + "name": "GeofenceMode", + "modelAsString": false, + "values": [ + { + "value": "All", + "description": "Publish all the query results to Azure Maps account event subscription." + }, + { + "value": "EnterAndExit", + "description": "Only publish result when user location is considered as crossing geofencing boarder." + } + ] }, - "collectionFormat": "csv", - "x-ms-parameter-location": "method" - }, - "Radius": { - "name": "radius", - "in": "query", - "description": "The radius in meters to for the results to be constrained to the defined area", - "required": false, - "type": "number", "x-ms-parameter-location": "method" }, - "PoiQuery": { - "name": "query", + "UdidSpatial": { + "name": "udid", "in": "query", - "description": "The POI name to search for (e.g., \"statue of liberty\", \"starbucks\", \"pizza\"). Must be properly URL encoded.", + "description": "The unique id returned from [Data Upload API](https://docs.microsoft.com/en-us/rest/api/maps/data/uploadPreview) after uploading a valid GeoJSON FeatureCollection object. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.3) for details. All the feature's properties should contain `geometryId`, which is used for identifying the geometry and is case-sensitive.", "required": true, "type": "string", "x-ms-parameter-location": "method" }, - "BrandSet": { - "name": "brandSet", - "in": "query", - "description": "A comma-separated list of brand names which could be used to restrict the result to specific brands. Item order does not matter. When multiple brands are provided, only results that belong to (at least) one of the provided list will be returned. Brands that contain a \",\" in their name should be put into quotes.\n\nUsage examples:\n\n brandSet=Foo\n\n brandSet=Foo,Bar\n\n brandSet=\"A,B,C Comma\",Bar", - "required": false, - "type": "array", - "items": { - "type": "string" - }, - "collectionFormat": "csv", - "x-ms-parameter-location": "method" - }, - "ConnectorSet": { - "name": "connectorSet", - "in": "query", - "description": "A comma-separated list of connector types which could be used to restrict the result to Electric Vehicle Station supporting specific connector types. Item order does not matter. When multiple connector types are provided, only results that belong to (at least) one of the provided list will be returned.\n\nAvailable connector types are:\n * `StandardHouseholdCountrySpecific` - These are the standard household connectors for a certain region. They are all AC single phase and the standard Voltage and standard Amperage. See also: [Plug & socket types - World Standards](https://www.worldstandards.eu/electricity/plugs-and-sockets).\n * `IEC62196Type1` - Type 1 connector as defined in the IEC 62196-2 standard. Also called Yazaki after the original manufacturer or SAE J1772 after the standard that first published it. Mostly used in combination with 120V single phase or up to 240V single phase infrastructure.\n * `IEC62196Type1CCS` - Type 1 based combo connector as defined in the IEC 62196-3 standard. The connector is based on the Type 1 connector – as defined in the IEC 62196-2 standard – with two additional direct current (DC) contacts to allow DC fast charging.\n * `IEC62196Type2CableAttached` - Type 2 connector as defined in the IEC 62196-2 standard. Provided as a cable and plug attached to the charging point.\n * `IEC62196Type2Outlet` - Type 2 connector as defined in the IEC 62196-2 standard. Provided as a socket set into the charging point.\n * `IEC62196Type2CCS` - Type 2 based combo connector as defined in the IEC 62196-3 standard. The connector is based on the Type 2 connector – as defined in the IEC 62196-2 standard – with two additional direct current (DC) contacts to allow DC fast charging.\n * `IEC62196Type3` - Type 3 connector as defined in the IEC 62196-2 standard. Also called Scame after the original manufacturer. Mostly used in combination with up to 240V single phase or up to 420V three phase infrastructure.\n * `Chademo` - CHAdeMO connector named after an association formed by the Tokyo Electric Power Company and industrial partners. Because of this is is also known as the TEPCO's connector. It supports fast DC charging.\n * `IEC60309AC1PhaseBlue` - Industrial Blue connector is a connector defined in the IEC 60309 standard. It is sometime referred to as by some combination of the standard, the color and the fact that is a single phase connector. The connector usually has the \"P+N+E, 6h\" configuration.\n * `IEC60309DCWhite` - Industrial White connector is a DC connector defined in the IEC 60309 standard.\n * `Tesla` - The Tesla connector is the regionally specific Tesla Supercharger connector. I.e. it refers to either Tesla's proprietary connector, sometimes referred to as Tesla Port mostly limited to North America or the modified Type 2 (DC over Type 2) in Europe.\n\nUsage examples:\n\n connectorSet=IEC62196Type2CableAttached\n connectorSet=IEC62196Type2Outlet,IEC62196Type2CableAttached", - "required": false, - "type": "array", - "items": { - "type": "string", - "enum": [ - "StandardHouseholdCountrySpecific", - "IEC62196Type1", - "IEC62196Type1CCS", - "IEC62196Type2CableAttached", - "IEC62196Type2Outlet", - "IEC62196Type2CCS", - "IEC62196Type3", - "Chademo", - "IEC60309AC1PhaseBlue", - "IEC60309DCWhite", - "Tesla" - ], - "x-ms-enum": { - "name": "ConnectorSet", - "modelAsString": true, - "values": [ - { - "value": "StandardHouseholdCountrySpecific", - "description": "These are the standard household connectors for a certain region. They are all AC single phase and the standard Voltage and standard Amperage.\n\nSee also: [Plug & socket types - World Standards](https://www.worldstandards.eu/electricity/plugs-and-sockets)" - }, - { - "value": "IEC62196Type1", - "description": "Type 1 connector as defined in the IEC 62196-2 standard. Also called Yazaki after the original manufacturer or SAE J1772 after the standard that first published it. Mostly used in combination with 120V single phase or up to 240V single phase infrastructure." - }, - { - "value": "IEC62196Type1CCS", - "description": "Type 1 based combo connector as defined in the IEC 62196-3 standard. The connector is based on the Type 1 connector – as defined in the IEC 62196-2 standard – with two additional direct current (DC) contacts to allow DC fast charging." - }, - { - "value": "IEC62196Type2CableAttached", - "description": "Type 2 connector as defined in the IEC 62196-2 standard. Provided as a cable and plug attached to the charging point" - }, - { - "value": "IEC62196Type2Outlet", - "description": "Type 2 connector as defined in the IEC 62196-2 standard. Provided as a socket set into the charging point." - }, - { - "value": "IEC62196Type2CCS", - "description": "Type 2 based combo connector as defined in the IEC 62196-3 standard. The connector is based on the Type 2 connector – as defined in the IEC 62196-2 standard – with two additional direct current (DC) contacts to allow DC fast charging." - }, - { - "value": "IEC62196Type3", - "description": "Type 3 connector as defined in the IEC 62196-2 standard. Also called Scame after the original manufacturer. Mostly used in combination with up to 240V single phase or up to 420V three phase infrastructure." - }, - { - "value": "Chademo", - "description": "CHAdeMO connector named after an association formed by the Tokyo Electric Power Company and industrial partners. Because of this is is also known as the TEPCO's connector. It supports fast DC charging." - }, - { - "value": "IEC60309AC1PhaseBlue", - "description": "Industrial Blue connector is a connector defined in the IEC 60309 standard. It is sometime referred to as by some combination of the standard, the color and the fact that is a single phase connector. The connector usually has the \"P+N+E, 6h\" configuration." - }, - { - "value": "IEC60309DCWhite", - "description": "Industrial White connector is a DC connector defined in the IEC 60309 standard." - }, - { - "value": "Tesla", - "description": "The Tesla connector is the regionally specific Tesla Supercharger connector. I.e. it refers to either Tesla's proprietary connector, sometimes referred to as Tesla Port mostly limited to North America or the modified Type 2 (DC over Type 2) in Europe." - } - ] - } - }, - "collectionFormat": "csv", - "x-ms-parameter-location": "method" - }, - "OpeningHours": { - "name": "openingHours", - "description": "Hours of operation for a POI (Points of Interest). The availability of hours of operation will vary based on the data available.\nSupported value: nextSevenDays", + "SpatialDataUploadFormat": { + "name": "dataFormat", + "description": "Data format of the content being uploaded. Currently, only `geojson` format is supported.", "type": "string", "in": "query", - "required": false, + "required": true, "enum": [ - "nextSevenDays" + "geojson" ], "x-ms-enum": { - "name": "OpeningHours", + "name": "SpatialDataUploadFormat", "modelAsString": true, "values": [ { - "value": "nextSevenDays", - "description": "Shows the hours of operation for the next week, starting with the current day in the local time of the POI." + "value": "geojson", + "description": "[GeoJSON](https://tools.ietf.org/html/rfc7946) is a JSON based geospatial data interchange format." } ] }, @@ -497,14 +216,14 @@ } }, "paths": { - "/search/polygon/{format}": { + "/spatial/geofence/{format}": { "get": { "x-publish": true, - "description": "**Get Polygon**\n\n\n**Applies to**: S1 pricing tier.\n\n\nThe Get Polygon service allows you to request the geometry data such as a city or country outline for a set of entities, previously retrieved from an Online Search request in GeoJSON format. The geometry ID is returned in the dataSources object under \"geometry\" and \"id\" in either a Search Address or Search Fuzzy call.\n\nPlease note that any geometry ID retrieved from an Online Search endpoint has a limited lifetime. The client should not store geometry IDs in persistent storage for later referral, as the stability of these identifiers is not guaranteed for a long period of time. It is expected that a request to the Polygon method is made within a few minutes of the request to the Online Search method that provided the ID. The service allows for batch requests up to 20 identifiers.", - "operationId": "Search_GetSearchPolygon", + "description": "**Search Geofence Get API**\n\n**Applies to:** S1 Pricing tier.\n\nThe Geofence Get API allows you to retrieve the proximity of a coordinate to a \ngeofence that has been uploaded to the Data service. You can use the \n[Data Upload API](https://docs.microsoft.com/en-us/rest/api/maps/data/uploadPreview) to upload \na geofence or set of fences. See [Geofencing GeoJSON data](https://docs.microsoft.com/en-us/azure/azure-maps/geofence-geojson) \nfor more details on the geofence data format. To query the proximity of a coordinate, you supply the location of the object you are tracking as well\nas the ID for the fence or set of fences, and the response will contain information about\nthe distance from the outer edge of the geofence. A negative value signifies that the \ncoordinate is inside of the fence while a positive value means that it is outside of the\nfence.

This API can be used for a variety of scenarios that include things like asset \ntracking, fleet management, or setting up alerts for moving objects.\n\nThe API supports [integration with Event Grid](https://docs.microsoft.com/azure/azure-maps/azure-maps-event-grid-integration). The isAsync parameter is used to enable integration with Event Grid (disabled by default).\nTo test this API, you can upload the sample data from Post Geofence API examples(Request Body) via Data Upload API and replace the [udid] from the sample request below with the udid returned by Data Upload API.\n\n\n### Geofencing InnerError code\n\nIn geofencing response error contract, `innererror` is an object containing service specific information about the error. `code` is a property in `innererror` which can map to a specific geofencing error type. The table belows shows the code mapping between all the known client error type to the corresponding geofencing error `message`.\n\ninnererror.code | error.message\n---------------------------- | -------------------------------------- \nNullDeviceId | Device Id should not be null.\nNullUdid\t | Udid should not be null.\nUdidWrongFormat| Udid should be acquired from user data ingestion API.\nInvalidUserTime| Usertime is invalid.\nInvalidSearchBuffer| Searchbuffer is invalid.\nInvalidSearchRange| The value range of searchbuffer should be from 0 to 500 meters.\nInvalidLatLon| Lat and/or lon parameters are invalid.\nInvalidIsAsyncValue| The IsAsync parameter is invalid.\nInvalidModeValue| The mode parameter invalid.\nInvalidJson| Geofencing data is not a valid json file.\nNotSupportedGeoJson| Geofencing data can't be read as a Feature or FeatureCollections.\nInvalidGeoJson| Geofencing data is invalid.\nNoUserDataWithAccountOrSubscription| Can't find user geofencing data with provided account-id and/or subscription-id.\nNoUserDataWithUdid|\tCan't find user geofencing data with provided udId.", + "operationId": "Spatial_GetGeofence", "x-ms-examples": { - "Get the Geometry using the geometry id returned by the previous Search": { - "$ref": "./examples/GetSearchPolygon.json" + "Geofence": { + "$ref": "./examples/GetGeofence.json" } }, "parameters": [ @@ -521,19 +240,83 @@ "$ref": "#/parameters/JsonFormat" }, { - "name": "geometries", + "name": "deviceId", + "in": "query", + "description": "ID of the device", + "required": true, + "type": "string" + }, + { + "name": "udId", + "in": "query", + "description": "The unique id returned from [Data Upload API](https://docs.microsoft.com/en-us/rest/api/maps/data/uploadPreview) after uploading a valid GeoJSON FeatureCollection object. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.3) for details. All the feature's properties should contain `geometryId`, which is used for identifying the geometry and is case-sensitive.", + "required": true, + "type": "string" + }, + { + "name": "lat", + "in": "query", + "description": "The latitude of the location being passed. Example: 48.36.", + "required": true, + "type": "number" + }, + { + "name": "lon", "in": "query", - "description": "Comma separated list of geometry UUIDs, previously retrieved from an Online Search request.", + "description": "The longitude of the location being passed. Example: -124.63.", "required": true, - "type": "string", - "x-ms-parameter-location": "method" + "type": "number" + }, + { + "name": "z", + "in": "query", + "description": "The sea level in meter of the location being passed. If this parameter is presented, 2D extrusion is used. Example: 200.", + "required": false, + "type": "number" + }, + { + "name": "userTime", + "in": "query", + "description": "The user request time. If not presented in the request, the default value is DateTime.Now.", + "required": false, + "type": "string" + }, + { + "name": "searchBuffer", + "in": "query", + "description": "The radius of the buffer around the geofence in meters that defines how far to search inside and outside the border of the fence against the coordinate that was provided when calculating the result. The minimum value is 0, and the maximum is 500. The default value is 50.", + "required": false, + "type": "number", + "minimum": 0, + "maximum": 500, + "default": 50 + }, + { + "name": "isAsync", + "in": "query", + "description": "If true, the request will use async event mechanism; if false, the request will be synchronized and do not trigger any event. The default value is false.", + "required": false, + "type": "boolean", + "default": false + }, + { + "$ref": "#/parameters/Mode" } ], + "produces": [ + "application/json" + ], "responses": { "200": { - "description": "OK", + "description": "OK The X-Correlation-id header value is present in an async call's response and the Event Grid event data. It helps correlate the async call’s response with the corresponding Event Grid event.", + "headers": { + "X-Correlation-id": { + "description": "Value present in an async call's response and the Event Grid event data. It helps correlate the async call’s response with the corresponding Event Grid event.", + "type": "string" + } + }, "schema": { - "$ref": "#/definitions/SearchPolygonResponse" + "$ref": "#/definitions/GeofenceResponse" } }, "400": { @@ -551,20 +334,15 @@ "500": { "$ref": "#/responses/500" } - }, - "produces": [ - "application/json" - ] - } - }, - "/search/fuzzy/{format}": { - "get": { + } + }, + "post": { "x-publish": true, - "description": "\n**Free Form Search**\n\n**Applies to**: S0 and S1 pricing tiers.\n\n\nThe basic default API is Free Form Search which handles the most fuzzy of inputs handling any combination of address or POI tokens. This search API is the canonical 'single line search'. The Free Form Search API is a seamless combination of POI search and geocoding. The API can also be weighted with a contextual position (lat./lon. pair), or fully constrained by a coordinate and radius, or it can be executed more generally without any geo biasing anchor point.

We strongly advise you to use the 'countrySet' parameter to specify only the countries for which your application needs coverage, as the default behavior will be to search the entire world, potentially returning unnecessary results.

E.g.: `countrySet`=US,FR

Please see [Search Coverage](https://docs.microsoft.com/azure/location-based-services/geocoding-coverage) for a complete list of all the supported countries.

Most Search queries default to `maxFuzzyLevel`=2 to gain performance and also reduce unusual results. This new default can be overridden as needed per request by passing in the query param `maxFuzzyLevel`=3 or 4.", - "operationId": "Search_GetSearchFuzzy", + "description": "**Search Geofence Post API**\n**Applies to:** S1 Pricing tier.\nThe Geofence Post API allows you to retrieve the proximity of a coordinate to a provided geofence or set of fences. With POST call, you do not have to upload the fence data in advance, instead you supply the location of the object you are tracking in query parameters as well as the fence or set of fences data in post request body. See [Geofencing GeoJSON data](https://docs.microsoft.com/en-us/azure/azure-maps/geofence-geojson) for more details on the geofence data format. The response will contain information about the distance from the outer edge of the geofence. A negative value signifies that the coordinate is inside of the fence while a positive value means that it is outside of the fence.

This API can be used for a variety of scenarios that include things like asset tracking, fleet management, or setting up alerts for moving objects.\n\nThe API supports [integration with Event Grid](https://docs.microsoft.com/azure/azure-maps/azure-maps-event-grid-integration). The isAsync parameter is used to enable integration with Event Grid (disabled by default).", + "operationId": "Spatial_PostGeofence", "x-ms-examples": { - "Search City Seattle": { - "$ref": "./examples/GetSearchFuzzy.json" + "Geofence": { + "$ref": "./examples/PostGeofence.json" } }, "parameters": [ @@ -578,93 +356,88 @@ "$ref": "#/parameters/ApiVersion" }, { - "$ref": "#/parameters/TextFormat" + "$ref": "#/parameters/JsonFormat" }, { - "name": "query", + "name": "deviceId", "in": "query", - "description": "The applicable query string (e.g., \"seattle\", \"pizza\"). Can _also_ be specified as a comma separated string composed by latitude followed by longitude (e.g., \"47.641268, -122.125679\"). Must be properly URL encoded.", + "description": "ID of the device", "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - { - "$ref": "#/parameters/Typeahead" - }, - { - "$ref": "#/parameters/LimitSearch" - }, - { - "$ref": "#/parameters/Offset" - }, - { - "$ref": "#/parameters/CategorySet" - }, - { - "$ref": "#/parameters/CountrySet" - }, - { - "$ref": "#/parameters/OptionalBiasLat" - }, - { - "$ref": "#/parameters/OptionalBiasLon" - }, - { - "$ref": "#/parameters/Radius" - }, - { - "$ref": "#/parameters/BoundingBoxTopLeft" - }, - { - "$ref": "#/parameters/BoundingBoxBottomRight" + "type": "string" }, { - "$ref": "#/parameters/Language" + "name": "lat", + "in": "query", + "description": "The latitude of the location being passed. Example: 48.36.", + "required": true, + "type": "number" }, { - "$ref": "#/parameters/ExtendedPostalCodesFor" + "name": "lon", + "in": "query", + "description": "The longitude of the location being passed. Example: -124.63.", + "required": true, + "type": "number" }, { - "name": "minFuzzyLevel", + "name": "z", "in": "query", - "description": "Minimum fuzziness level to be used. Default: 1, minimum: 1 and maximum: 4\n\n* Level 1 has no spell checking.\n\n* Level 2 uses normal n-gram spell checking. For example, query \"restrant\" can be matched to \"restaurant.\"\n\n* Level 3 uses sound-like spell checking, and shingle spell checking. Sound-like spell checking is for \"rstrnt\" to \"restaurant\" matching. Shingle spell checking is for \"mountainview\" to \"mountain view\" matching.\n\n* Level 4 doesn’t add any more spell checking functions.\n\n\n\nThe search engine will start looking for a match on the level defined by minFuzzyLevel, and will stop searching at the level specified by maxFuzzyLevel.", + "description": "The sea level in meter of the location being passed. If this parameter is presented, 2D extrusion geofencing is applied. Example: 200.", "required": false, - "type": "integer", - "default": 1, - "minimum": 1, - "maximum": 4 + "type": "number" }, { - "name": "maxFuzzyLevel", + "name": "userTime", "in": "query", - "description": "Maximum fuzziness level to be used. Default: 2, minimum: 1 and maximum: 4\n\n* Level 1 has no spell checking.\n\n* Level 2 uses normal n-gram spell checking. For example, query \"restrant\" can be matched to \"restaurant.\"\n\n* Level 3 uses sound-like spell checking, and shingle spell checking. Sound-like spell checking is for \"rstrnt\" to \"restaurant\" matching. Shingle spell checking is for \"mountainview\" to \"mountain view\" matching.\n\n* Level 4 doesn’t add any more spell checking functions.\n\n\n\nThe search engine will start looking for a match on the level defined by minFuzzyLevel, and will stop searching at the level specified by maxFuzzyLevel.", + "description": "The user request time. If not presented in the request, the default value is DateTime.UtcNow.", "required": false, - "type": "integer", - "default": 2, - "minimum": 1, - "maximum": 4 - }, - { - "$ref": "#/parameters/SearchIndexSet" + "type": "string" }, { - "$ref": "#/parameters/BrandSet" + "name": "searchBuffer", + "in": "query", + "description": "The radius of the buffer around the geofence in meters that defines how far to search inside and outside the border of the fence against the coordinate that was provided when calculating the result. The minimum value is 0, and the maximum is 500. The default value is 50.", + "required": false, + "type": "number", + "minimum": 0, + "maximum": 500, + "default": 50 }, { - "$ref": "#/parameters/ConnectorSet" + "name": "isAsync", + "in": "query", + "description": "If true, the request will use async event mechanism; if false, the request will be synchronized and do not trigger any event. The default value is false.", + "required": false, + "type": "boolean", + "default": false }, { - "$ref": "#/parameters/View" + "$ref": "#/parameters/Mode" }, { - "$ref": "#/parameters/OpeningHours" + "name": "searchGeofenceRequestBody", + "in": "body", + "description": "The geofencing GeoJSON data.", + "required": true, + "schema": { + "$ref": "#/definitions/GeoJSONFeatureCollection" + } } ], + "produces": [ + "application/json" + ], "responses": { "200": { - "description": "OK", + "description": "OK The X-Correlation-id header value is present in an async call's response and the Event Grid event data. It helps correlate the async call’s response with the corresponding Event Grid event.", + "headers": { + "X-Correlation-id": { + "description": "Value present in an async call's response and the Event Grid event data. It helps correlate the async call’s response with the corresponding Event Grid event.", + "type": "string" + } + }, "schema": { - "$ref": "#/definitions/SearchFuzzyResponse" + "$ref": "#/definitions/GeofenceResponse" } }, "400": { @@ -685,14 +458,14 @@ } } }, - "/search/poi/{format}": { - "get": { + "/spatial/buffer/{format}": { + "post": { "x-publish": true, - "description": "**Get POI by Name**\n\n**Applies to**: S0 and S1 pricing tiers.\n\n\nPoints of Interest (POI) Search allows you to request POI results by name. Search supports additional query parameters such as language and filtering results by area of interest driven by country or bounding box. Endpoint will return only POI results matching the query string. Response includes POI details such as address, coordinate location and category.", - "operationId": "Search_GetSearchPOI", + "description": "**Applies to**: S1 pricing tier.\n\nThis API returns a FeatureCollection where each Feature is a buffer around the corresponding indexed Feature of the input. The buffer could be either on the outside or the inside of the provided Feature, depending on the distance provided in the input. There must be either one distance provided per Feature in the FeatureCollection input, or if only one distance is provided, then that distance is applied to every Feature in the collection. The positive (or negative) buffer of a geometry is defined as the Minkowski sum (or difference) of the geometry with a circle of radius equal to the absolute value of the buffer distance. The buffer API always returns a polygonal result. The negative or zero-distance buffer of lines and points is always an empty polygon. The input may contain a collection of Point, MultiPoint, Polygon, MultiPolygon, LineString and MultiLineString. GeometryCollection will be ignored if provided.", + "operationId": "Spatial_PostBuffer", "x-ms-examples": { - "Search for juice bars within 5 miles of Seattle Downtown and limit the response to 5 results": { - "$ref": "./examples/GetSearchPOI.json" + "PostBuffer": { + "$ref": "./examples/PostBuffer.json" } }, "parameters": [ @@ -706,70 +479,26 @@ "$ref": "#/parameters/ApiVersion" }, { - "$ref": "#/parameters/TextFormat" + "$ref": "#/parameters/JsonFormat" }, { - "name": "query", - "in": "query", - "description": "The POI name to search for (e.g., \"statue of liberty\", \"starbucks\"), must be properly URL encoded.", + "name": "bufferRequestBody", + "in": "body", + "description": "The FeatureCollection and the list of distances (one per feature or one for all features).", "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - { - "$ref": "#/parameters/Typeahead" - }, - { - "$ref": "#/parameters/LimitSearch" - }, - { - "$ref": "#/parameters/Offset" - }, - { - "$ref": "#/parameters/CategorySet" - }, - { - "$ref": "#/parameters/CountrySet" - }, - { - "$ref": "#/parameters/OptionalBiasLat" - }, - { - "$ref": "#/parameters/OptionalBiasLon" - }, - { - "$ref": "#/parameters/Radius" - }, - { - "$ref": "#/parameters/BoundingBoxTopLeft" - }, - { - "$ref": "#/parameters/BoundingBoxBottomRight" - }, - { - "$ref": "#/parameters/Language" - }, - { - "$ref": "#/parameters/ExtendedPostalCodesForPoi" - }, - { - "$ref": "#/parameters/BrandSet" - }, - { - "$ref": "#/parameters/ConnectorSet" - }, - { - "$ref": "#/parameters/View" - }, - { - "$ref": "#/parameters/OpeningHours" + "schema": { + "$ref": "#/definitions/BufferRequestBody" + } } ], + "produces": [ + "application/json" + ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/SearchPoiResponse" + "$ref": "#/definitions/BufferResponse" } }, "400": { @@ -788,16 +517,14 @@ "$ref": "#/responses/500" } } - } - }, - "/search/nearby/{format}": { + }, "get": { "x-publish": true, - "description": "**Nearby Search**\n\n**Applies to**: S0 and S1 pricing tiers.\n\n\nIf you have a use case for only retrieving POI results around a specific location, the nearby search method may be the right choice. This endpoint will only return POI results, and does not take in a search query parameter.", - "operationId": "Search_GetSearchNearby", + "description": "**Applies to**: S1 pricing tier.\n\nThis API returns a FeatureCollection where each Feature is a buffer around the corresponding indexed Feature of the input. The buffer could be either on the outside or the inside of the provided Feature, depending on the distance provided in the input. There must be either one distance provided per Feature in the FeatureCollection input, or if only one distance is provided, then that distance is applied to every Feature in the collection. The positive (or negative) buffer of a geometry is defined as the Minkowski sum (or difference) of the geometry with a circle of radius equal to the absolute value of the buffer distance. The buffer API always returns a polygonal result. The negative or zero-distance buffer of lines and points is always an empty polygon. The input features are provided by a GeoJSON file which is uploaded via [Data Upload API](https://docs.microsoft.com/en-us/rest/api/maps/data/uploadPreview) and referenced by a unique udid. The GeoJSON file may contain a collection of Point, MultiPoint, Polygon, MultiPolygon, LineString and MultiLineString. GeometryCollection will be ignored if provided. \n\nTo test this API, you can upload the sample data from [Post Buffer API](https://docs.microsoft.com/en-us/rest/api/maps/spatial/postbuffer#examples) examples(Request Body without distances array) via [Data Upload API](https://docs.microsoft.com/en-us/rest/api/maps/data/uploadPreview) and replace the [udid] from the [sample request below](https://docs.microsoft.com/en-us/rest/api/maps/spatial/getbuffer#examples) with the udid returned by Data Upload API.", + "operationId": "Spatial_GetBuffer", "x-ms-examples": { - "Search for any points of interest (POI) within 5 miles of Manhattan NY and return the top 10 results": { - "$ref": "./examples/GetSearchNearby.json" + "GetBuffer": { + "$ref": "./examples/GetBuffer.json" } }, "parameters": [ @@ -811,54 +538,27 @@ "$ref": "#/parameters/ApiVersion" }, { - "$ref": "#/parameters/TextFormat" - }, - { - "$ref": "#/parameters/RequiredBiasLat" - }, - { - "$ref": "#/parameters/RequiredBiasLon" - }, - { - "$ref": "#/parameters/LimitSearch" - }, - { - "$ref": "#/parameters/Offset" - }, - { - "$ref": "#/parameters/CategorySet" + "$ref": "#/parameters/JsonFormat" }, { - "$ref": "#/parameters/CountrySet" + "$ref": "#/parameters/UdidSpatial" }, { - "name": "radius", + "name": "distances", "in": "query", - "description": "The radius in meters to for the results to be constrained to the defined area, Min value is 1, Max Value is 50000.", - "required": false, - "type": "number" - }, - { - "$ref": "#/parameters/Language" - }, - { - "$ref": "#/parameters/ExtendedPostalCodesFor" - }, - { - "$ref": "#/parameters/BrandSet" - }, - { - "$ref": "#/parameters/ConnectorSet" - }, - { - "$ref": "#/parameters/View" + "description": "The list of distances (one per feature or one for all features), delimited by semicolons. For example, 12.34;-56.78. Positive distance will generate a buffer outside of the feature, whereas negative distance will generate a buffer inside of the feature. If the negative distance larger than the geometry itself, an empty polygon will be returned.", + "required": true, + "type": "string" } ], + "produces": [ + "application/json" + ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/SearchNearbyResponse" + "$ref": "#/definitions/BufferResponse" } }, "400": { @@ -879,14 +579,14 @@ } } }, - "/search/poi/category/{format}": { - "get": { + "/spatial/closestPoint/{format}": { + "post": { "x-publish": true, - "description": "**Get POI by Category**\n\n**Applies to**: S0 and S1 pricing tiers.\n\n\nPoints of Interest (POI) Category Search allows you to request POI results from given category. Search allows to query POIs from one category at a time. Endpoint will only return POI results which are categorized as specified. Response includes POI details such as address, coordinate location and classification.", - "operationId": "Search_GetSearchPOICategory", + "description": "**Applies to**: S1 pricing tier.\n\nThis API returns the closest point between a base point and a given set of target points. The set of target points is provided by user data in post request body. The user data may only contain a collection of Point geometry. MultiPoint or other geometries will be ignored if provided. The algorithm does not take into account routing or traffic. The maximum number of points accepted is 100,000. Information returned includes closest point latitude, longitude, and distance in meters from the closest point.", + "operationId": "Spatial_PostClosestPoint", "x-ms-examples": { - "Search for atm's within 2 miles of Times Square NY and return the top 3 results": { - "$ref": "./examples/GetSearchPOICategory.json" + "PostClosestPoint": { + "$ref": "./examples/PostClosestPoint.json" } }, "parameters": [ @@ -900,70 +600,47 @@ "$ref": "#/parameters/ApiVersion" }, { - "$ref": "#/parameters/TextFormat" + "$ref": "#/parameters/JsonFormat" }, { - "name": "query", + "name": "lat", "in": "query", - "description": "The POI category to search for (e.g., \"AIRPORT\", \"RESTAURANT\"), must be properly URL encoded. Supported main categories can be requested by calling [Get Search POI Category Tree API](https://aka.ms/AzureMapsPOICategoryTree). List of available categories can also be found [here](https://docs.microsoft.com/azure/azure-maps/supported-search-categories). We recommend to use POI Search Category Tree API to request the supported categories.", + "description": "The base point latitude of the location being passed. Example: 47.622942.", "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - { - "$ref": "#/parameters/Typeahead" - }, - { - "$ref": "#/parameters/LimitSearch" - }, - { - "$ref": "#/parameters/Offset" - }, - { - "$ref": "#/parameters/CategorySet" - }, - { - "$ref": "#/parameters/CountrySet" - }, - { - "$ref": "#/parameters/OptionalBiasLat" - }, - { - "$ref": "#/parameters/OptionalBiasLon" - }, - { - "$ref": "#/parameters/Radius" - }, - { - "$ref": "#/parameters/BoundingBoxTopLeft" - }, - { - "$ref": "#/parameters/BoundingBoxBottomRight" - }, - { - "$ref": "#/parameters/Language" - }, - { - "$ref": "#/parameters/ExtendedPostalCodesFor" - }, - { - "$ref": "#/parameters/BrandSet" + "type": "number" }, { - "$ref": "#/parameters/ConnectorSet" + "name": "lon", + "in": "query", + "description": "The base point longitude of the location being passed. Example: -122.316456.", + "required": true, + "type": "number" }, { - "$ref": "#/parameters/View" + "name": "numberOfClosestPoints", + "in": "query", + "description": "The number of closest points expected from response. Default: 1, minimum: 1 and maximum: 50", + "required": false, + "type": "integer" }, { - "$ref": "#/parameters/OpeningHours" + "name": "closestPointRequestBody", + "in": "body", + "description": "The FeatureCollection of Point geometries from which closest point to source point should be determined. All the feature's properties should contain `geometryId`, which is used for identifying the geometry and is case-sensitive.", + "required": true, + "schema": { + "$ref": "#/definitions/GeoJSONFeatureCollection" + } } ], + "produces": [ + "application/json" + ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/SearchPoiCategoryResponse" + "$ref": "#/definitions/PostClosestPointResponse" } }, "400": { @@ -982,16 +659,14 @@ "$ref": "#/responses/500" } } - } - }, - "/search/poi/category/tree/{format}": { + }, "get": { "x-publish": true, - "description": "**Get POI Category Tree**\n\n**Applies to**: S0 and S1 pricing tiers.\n\n\nPOI Category API provides a full list of supported Points of Interest (POI) categories and subcategories together with their translations and synonyms. The returned content can be used to provide more meaningful results through other Search Service APIs, like [Get Search POI](https://docs.microsoft.com/rest/api/maps/search/getsearchpoi).", - "operationId": "Search_GetSearchPOICategoryTreePreview", + "description": "**Applies to**: S1 pricing tier.\n\nThis API returns the closest point between a base point and a given set of points in the user uploaded data set identified by udid. The set of target points is provided by a GeoJSON file which is uploaded via [Data Upload API](https://docs.microsoft.com/en-us/rest/api/maps/data/uploadPreview) and referenced by a unique udid. The GeoJSON file may only contain a collection of Point geometry. MultiPoint or other geometries will be ignored if provided. The maximum number of points accepted is 100,000. The algorithm does not take into account routing or traffic. Information returned includes closest point latitude, longitude, and distance in meters from the closest point.\n\nTo test this API, you can upload the sample data from [Post Closest Point API](https://docs.microsoft.com/en-us/rest/api/maps/spatial/postclosestpoint#examples) examples(Request Body) via [Data Upload API](https://docs.microsoft.com/en-us/rest/api/maps/data/uploadPreview) and replace the [udid] from the [sample request below](https://docs.microsoft.com/en-us/rest/api/maps/spatial/getclosestpoint#examples) with the udid returned by Data Upload API.", + "operationId": "Spatial_GetClosestPoint", "x-ms-examples": { - "Get the POI Category Tree (only partial response shown below)": { - "$ref": "./examples/GetPOICategoryTree.json" + "GetClosestPoint": { + "$ref": "./examples/GetClosestPoint.json" } }, "parameters": [ @@ -1008,19 +683,38 @@ "$ref": "#/parameters/JsonFormat" }, { - "name": "language", + "$ref": "#/parameters/UdidSpatial" + }, + { + "name": "lat", + "in": "query", + "description": "The base point latitude of the location being passed. Example: 47.622942.", + "required": true, + "type": "number" + }, + { + "name": "lon", + "in": "query", + "description": "The base point longitude of the location being passed. Example: -122.316456.", + "required": true, + "type": "number" + }, + { + "name": "numberOfClosestPoints", "in": "query", - "description": "Language in which search results should be returned. Should be one of supported IETF language tags, except NGT and NGT-Latn. Language tag is case insensitive. When data in specified language is not available for a specific field, default language is used (English).\n\nPlease refer to [Supported Languages](https://docs.microsoft.com/azure/azure-maps/supported-languages) for details.", + "description": "The number of closest points expected from response. Default: 1, minimum: 1 and maximum: 50", "required": false, - "type": "string", - "x-ms-parameter-location": "method" + "type": "integer" } ], + "produces": [ + "application/json" + ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/PoiCategoryResponse" + "$ref": "#/definitions/GetClosestPointResponse" } }, "400": { @@ -1041,14 +735,14 @@ } } }, - "/search/address/{format}": { - "get": { + "/spatial/pointInPolygon/{format}": { + "post": { "x-publish": true, - "description": "**Address Geocoding**\n\n**Applies to**: S0 and S1 pricing tiers.\n\n\nIn many cases, the complete search service might be too much, for instance if you are only interested in traditional geocoding. Search can also be accessed for address look up exclusively. The geocoding is performed by hitting the geocode endpoint with just the address or partial address in question. The geocoding search index will be queried for everything above the street level data. No POIs will be returned. Note that the geocoder is very tolerant of typos and incomplete addresses. It will also handle everything from exact street addresses or street or intersections as well as higher level geographies such as city centers, counties, states etc.", - "operationId": "Search_GetSearchAddress", + "description": "**Applies to**: S1 pricing tier.\n\nThis API returns a boolean value indicating whether a point is inside a set of polygons. The user data may contain Polygon and MultiPolygon geometries, other geometries will be ignored if provided. If the point is inside or on the boundary of one of these polygons, the value returned is true. In all other cases, the value returned is false. When the point is inside multiple polygons, the result will give intersecting geometries section to show all valid geometries (referenced by geometryId) in user data. The maximum number of vertices accepted to form a Polygon is 10,000.", + "operationId": "Spatial_PostPointInPolygon", "x-ms-examples": { - "Search detail address 15127 NE 24th Street, Redmond, WA 98052": { - "$ref": "./examples/GetSearchAddress.json" + "PostPointInPolygon": { + "$ref": "./examples/PostPointInPolygon.json" } }, "parameters": [ @@ -1062,58 +756,40 @@ "$ref": "#/parameters/ApiVersion" }, { - "$ref": "#/parameters/TextFormat" + "$ref": "#/parameters/JsonFormat" }, { - "name": "query", + "name": "lat", "in": "query", - "description": "The address to search for (e.g., \"1 Microsoft way, Redmond, WA\"), must be properly URL encoded.", + "description": "The base point latitude of the location being passed. Example: 47.622942.", "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - { - "$ref": "#/parameters/Typeahead" - }, - { - "$ref": "#/parameters/LimitSearch" - }, - { - "$ref": "#/parameters/Offset" - }, - { - "$ref": "#/parameters/CountrySet" - }, - { - "$ref": "#/parameters/OptionalBiasLat" - }, - { - "$ref": "#/parameters/OptionalBiasLon" - }, - { - "$ref": "#/parameters/Radius" - }, - { - "$ref": "#/parameters/BoundingBoxTopLeft" - }, - { - "$ref": "#/parameters/BoundingBoxBottomRight" - }, - { - "$ref": "#/parameters/Language" + "type": "number" }, { - "$ref": "#/parameters/ExtendedPostalCodesFor" + "name": "lon", + "in": "query", + "description": "The base point longitude of the location being passed. Example: -122.316456.", + "required": true, + "type": "number" }, { - "$ref": "#/parameters/View" + "name": "pointInPolygonRequestBody", + "in": "body", + "description": "A FeatureCollection with a set of Polygon/MultiPolygon geometries. The maximum number of vertices accepted to form a Polygon is 10,000. All the feature's properties should contain `geometryId`, which is used for identifying the geometry and is case-sensitive.", + "required": true, + "schema": { + "$ref": "#/definitions/GeoJSONFeatureCollection" + } } ], + "produces": [ + "application/json" + ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/SearchAddressResponse" + "$ref": "#/definitions/PostPointInPolygonResponse" } }, "400": { @@ -1132,16 +808,14 @@ "$ref": "#/responses/500" } } - } - }, - "/search/address/reverse/{format}": { + }, "get": { "x-publish": true, - "description": "**Reverse Geocode to an Address**\n\n**Applies to**: S0 and S1 pricing tiers.\n\n\nThere may be times when you need to translate a coordinate (example: 37.786505, -122.3862) into a human understandable street address. Most often this is needed in tracking applications where you receive a GPS feed from the device or asset and wish to know what address where the coordinate is located. This endpoint will return address information for a given coordinate.", - "operationId": "Search_GetSearchAddressReverse", + "description": "**Applies to**: S1 pricing tier.\n\nThis API returns a boolean value indicating whether a point is inside a set of polygons. The set of polygons is provided by a GeoJSON file which is uploaded via [Data Upload API](https://docs.microsoft.com/en-us/rest/api/maps/data/uploadPreview) and referenced by a unique udid. The GeoJSON file may contain Polygon and MultiPolygon geometries, other geometries will be ignored if provided. If the point is inside or on the boundary of one of these polygons, the value returned is true. In all other cases, the value returned is false. When the point is inside multiple polygons, the result will give intersecting geometries section to show all valid geometries(referenced by geometryId) in user data. The maximum number of vertices accepted to form a Polygon is 10,000.\n\n \nTo test this API, you can upload the sample data from [Post Point In Polygon API](https://docs.microsoft.com/en-us/rest/api/maps/spatial/postpointinpolygon#examples) examples(Request Body) via [Data Upload API](https://docs.microsoft.com/en-us/rest/api/maps/data/uploadPreview) and replace the [udid] from the [sample request below](https://docs.microsoft.com/en-us/rest/api/maps/spatial/getpointinpolygon#examples) with the udid returned by Data Upload API.", + "operationId": "Spatial_GetPointInPolygon", "x-ms-examples": { - "GetSearchAddressReverse": { - "$ref": "./examples/GetSearchAddressReverse.json" + "GetPointInPolygon": { + "$ref": "./examples/GetPointInPolygon.json" } }, "parameters": [ @@ -1155,135 +829,34 @@ "$ref": "#/parameters/ApiVersion" }, { - "$ref": "#/parameters/TextFormat" - }, - { - "$ref": "#/parameters/Position" - }, - { - "$ref": "#/parameters/Language" - }, - { - "name": "returnSpeedLimit", - "in": "query", - "description": "Boolean. To enable return of the posted speed limit", - "required": false, - "type": "boolean", - "default": false - }, - { - "name": "heading", - "in": "query", - "description": "The directional heading of the vehicle in degrees, for travel along a segment of roadway. 0 is North, 90 is East and so on, values range from -360 to 360. The precision can include upto one decimal place", - "required": false, - "type": "number", - "minimum": -360, - "maximum": 360 - }, - { - "$ref": "#/parameters/Radius" - }, - { - "name": "number", - "in": "query", - "description": "If a number is sent in along with the request, the response may include the side of the street (Left/Right) and also an offset position for that number", - "required": false, - "type": "string" - }, - { - "name": "returnRoadUse", - "in": "query", - "description": "Boolean. To enable return of the road use array for reverse geocodes at street level", - "required": false, - "type": "boolean", - "default": false - }, - { - "name": "roadUse", - "in": "query", - "description": "To restrict reverse geocodes to a certain type of road use. The road use array for reverse geocodes can be one or more of LimitedAccess, Arterial, Terminal, Ramp, Rotary, LocalStreet", - "required": false, - "type": "string" + "$ref": "#/parameters/JsonFormat" }, { - "name": "allowFreeformNewline", - "in": "query", - "description": "Format of newlines in the formatted address.\n\nIf true, the address will contain newlines.\nIf false, newlines will be converted to commas.", - "required": false, - "type": "boolean" + "$ref": "#/parameters/UdidSpatial" }, { - "name": "returnMatchType", + "name": "lat", "in": "query", - "description": "Include information on the type of match the geocoder achieved in the response.", - "required": false, - "type": "boolean" + "description": "The base point latitude of the location being passed. Example: 47.622942.", + "required": true, + "type": "number" }, { - "name": "entityType", + "name": "lon", "in": "query", - "description": "Specifies the level of filtering performed on geographies. Narrows the search for specified geography entity types, e.g. return only municipality. The resulting response will contain the geography ID as well as the entity type matched. If you provide more than one entity as a comma separated list, endpoint will return the 'smallest entity available'. Returned Geometry ID can be used to get the geometry of that geography via [Get Search Polygon](https://docs.microsoft.com/rest/api/maps/search/getsearchpolygon) API. The following parameters are ignored when entityType is set:\n\n* heading\n* number\n* returnRoadUse\n* returnSpeedLimit\n* roadUse\n* returnMatchType", - "required": false, - "type": "string", - "enum": [ - "Country", - "CountrySubdivision", - "CountrySecondarySubdivision", - "CountryTertiarySubdivision", - "Municipality", - "MunicipalitySubdivision", - "Neighbourhood", - "PostalCodeArea" - ], - "x-ms-enum": { - "name": "EntityType", - "modelAsString": true, - "values": [ - { - "value": "Country", - "description": "Country name" - }, - { - "value": "CountrySubdivision", - "description": "State or Province" - }, - { - "value": "CountrySecondarySubdivision", - "description": "County" - }, - { - "value": "CountryTertiarySubdivision", - "description": "Named Area" - }, - { - "value": "Municipality", - "description": "City / Town" - }, - { - "value": "MunicipalitySubdivision", - "description": "Sub / Super City" - }, - { - "value": "Neighbourhood", - "description": "Neighbourhood" - }, - { - "value": "PostalCodeArea", - "description": "Postal Code / Zip Code" - } - ] - }, - "x-ms-parameter-location": "method" - }, - { - "$ref": "#/parameters/View" + "description": "The base point longitude of the location being passed. Example: -122.316456.", + "required": true, + "type": "number" } ], + "produces": [ + "application/json" + ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/SearchAddressReverseResponse" + "$ref": "#/definitions/GetPointInPolygonResponse" } }, "400": { @@ -1304,14 +877,14 @@ } } }, - "/search/address/reverse/crossStreet/{format}": { + "/spatial/greatCircleDistance/{format}": { "get": { "x-publish": true, - "description": "**Reverse Geocode to a Cross Street**\n\n**Applies to**: S0 and S1 pricing tiers.\n\n\nThere may be times when you need to translate a coordinate (example: 37.786505, -122.3862) into a human understandable cross street. Most often this is needed in tracking applications where you receive a GPS feed from the device or asset and wish to know what address where the coordinate is located.\nThis endpoint will return cross street information for a given coordinate.", - "operationId": "Search_GetSearchAddressReverseCrossStreet", + "description": "**Applies to**: S1 pricing tier.\n\nThis API will return the great-circle or shortest distance between two points on the surface of a sphere, measured along the surface of the sphere. This differs from calculating a straight line through the sphere's interior. This method is helpful for estimating travel distances for airplanes by calculating the shortest distance between airports.", + "operationId": "Spatial_GetGreatCircleDistance", "x-ms-examples": { - "GetSearchAddressReverseCrossStreet": { - "$ref": "./examples/GetSearchAddressReverseCrossStreet.json" + "GetGreatCircleDistance": { + "$ref": "./examples/GetGreatCircleDistance.json" } }, "parameters": [ @@ -1325,38 +898,24 @@ "$ref": "#/parameters/ApiVersion" }, { - "$ref": "#/parameters/TextFormat" - }, - { - "$ref": "#/parameters/Position" - }, - { - "$ref": "#/parameters/LimitSearch" + "$ref": "#/parameters/JsonFormat" }, { - "name": "heading", + "name": "query", "in": "query", - "description": "The directional heading of the vehicle in degrees, for travel along a segment of roadway. 0 is North, 90 is East and so on, values range from -360 to 360. The precision can include upto one decimal place", - "required": false, - "type": "number", - "minimum": -360, - "maximum": 360 - }, - { - "$ref": "#/parameters/Radius" - }, - { - "$ref": "#/parameters/Language" - }, - { - "$ref": "#/parameters/View" + "description": "The Coordinates through which the distance is calculated, delimited by a colon. Two coordinates are required. The first one is the source point coordinate and the last is the target point coordinate. For example, 47.622942,122.316456:57.673988,127.121513", + "required": true, + "type": "string" } ], + "produces": [ + "application/json" + ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/SearchAddressReverseCrossStreetResponse" + "$ref": "#/definitions/GreatCircleDistanceResponse" } }, "400": { @@ -1376,2205 +935,452 @@ } } } - }, - "/search/address/structured/{format}": { - "get": { - "x-publish": true, - "description": "**Structured Address Geocoding**\n\n**Applies to**: S0 and S1 pricing tiers.\n\n\nAzure Address Geocoding can also be accessed for structured address look up exclusively. The geocoding search index will be queried for everything above the street level data. No POIs will be returned. Note that the geocoder is very tolerant of typos and incomplete addresses. It will also handle everything from exact street addresses or street or intersections as well as higher level geographies such as city centers, counties, states etc.", - "operationId": "Search_GetSearchAddressStructured", - "x-ms-examples": { - "GetSearchAddressStructured": { - "$ref": "./examples/GetSearchAddressStructured.json" - } + } + }, + "definitions": { + "SpatialCoordinate": { + "description": "A location represented as a latitude and longitude", + "type": "object", + "properties": { + "lat": { + "description": "Latitude property", + "type": "number", + "format": "double", + "readOnly": true }, - "parameters": [ - { - "$ref": "#/parameters/ClientId" - }, - { - "$ref": "#/parameters/SubscriptionKey" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/TextFormat" - }, - { - "$ref": "#/parameters/Language" - }, - { - "name": "countryCode", - "in": "query", - "description": "The 2 or 3 letter [ISO3166-1](https://www.iso.org/iso-3166-country-codes.html) country code portion of an address. E.g. US.", - "required": true, - "default": "US", - "type": "string" - }, - { - "$ref": "#/parameters/LimitSearch" - }, - { - "$ref": "#/parameters/Offset" - }, - { - "name": "streetNumber", - "in": "query", - "description": "The street number portion of an address", - "required": false, - "type": "string" - }, - { - "name": "streetName", - "in": "query", - "description": "The street name portion of an address", - "required": false, - "type": "string" - }, - { - "name": "crossStreet", - "in": "query", - "description": "The cross street name for the structured address", - "required": false, - "type": "string" - }, - { - "name": "municipality", - "in": "query", - "description": "The municipality portion of an address", - "required": false, - "type": "string" - }, - { - "name": "municipalitySubdivision", - "in": "query", - "description": "The municipality subdivision (sub/super city) for the structured address", - "required": false, - "type": "string" - }, - { - "name": "countryTertiarySubdivision", - "in": "query", - "description": "The named area for the structured address", - "required": false, - "type": "string" - }, - { - "name": "countrySecondarySubdivision", - "in": "query", - "description": "The county for the structured address", - "required": false, - "type": "string" - }, - { - "name": "countrySubdivision", - "in": "query", - "description": "The country subdivision portion of an address", - "required": false, - "type": "string" - }, - { - "name": "postalCode", - "in": "query", - "description": "The postal code portion of an address", - "required": false, - "type": "string" - }, - { - "$ref": "#/parameters/ExtendedPostalCodesFor" - }, - { - "$ref": "#/parameters/View" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/SearchAddressStructuredResponse" - } - }, - "400": { - "$ref": "#/responses/400" - }, - "401": { - "$ref": "#/responses/401" - }, - "403": { - "$ref": "#/responses/403" - }, - "404": { - "$ref": "#/responses/404" - }, - "500": { - "$ref": "#/responses/500" - } - } - } - }, - "/search/geometry/{format}": { - "post": { - "x-publish": true, - "description": "**Applies to**: S0 and S1 pricing tiers.\n\nThe Search Geometry endpoint allows you to perform a free form search inside a single geometry or many of them. The search results that fall inside the geometry/geometries will be returned.

To send the geometry you will use a `POST` request where the request body will contain the `geometry` object represented as a `GeoJSON` type and the `Content-Type` header will be set to `application/json`. The geographical features to be searched can be modeled as Polygon and/or Circle geometries represented using any one of the following `GeoJSON` types:.

", - "operationId": "Search_PostSearchInsideGeometry", - "x-ms-examples": { - "Search for pizza places inside a geometry represented as a GeoJSON FeatureCollection type": { - "$ref": "./examples/PostSearchInsideFeatureCollection.json" - }, - "Search for burger joints inside a geometry represented as a GeoJSON GeometryCollection type": { - "$ref": "./examples/PostSearchInsideGeometryCollection.json" - }, - "Search for subs joints inside a geometry represented as a GeoJSON Polygon type": { - "$ref": "./examples/PostSearchInsideGeometry.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/ClientId" - }, - { - "$ref": "#/parameters/SubscriptionKey" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/PoiQuery" - }, - { - "$ref": "#/parameters/TextFormat" - }, - { - "$ref": "#/parameters/LimitSearch" - }, - { - "$ref": "#/parameters/Language" - }, - { - "$ref": "#/parameters/CategorySet" - }, - { - "$ref": "#/parameters/ExtendedPostalCodesFor" - }, - { - "$ref": "#/parameters/SearchIndexSet" - }, - { - "name": "searchInsideGeometryRequestBody", - "in": "body", - "description": "This represents the geometry for one or more geographical features (parks, state boundary etc.) to search in and should be a GeoJSON compliant type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946) for details.", - "required": true, - "schema": { - "$ref": "#/definitions/SearchInsideGeometryRequestBody" - } - }, - { - "$ref": "#/parameters/View" - }, - { - "$ref": "#/parameters/OpeningHours" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/SearchGeometryResponse" - } - }, - "400": { - "$ref": "#/responses/400" - }, - "401": { - "$ref": "#/responses/401" - }, - "403": { - "$ref": "#/responses/403" - }, - "404": { - "$ref": "#/responses/404" - }, - "500": { - "$ref": "#/responses/500" - } - } - } - }, - "/search/alongRoute/{format}": { - "post": { - "x-publish": true, - "description": "**Applies to**: S0 and S1 pricing tiers.\n\n\nThe Search Along Route endpoint allows you to perform a fuzzy search for POIs along a specified route. This search is constrained by specifying the `maxDetourTime` limiting measure.

To send the route-points you will use a `POST` request where the request body will contain the `route` object represented as a `GeoJSON LineString` type and the `Content-Type` header will be set to `application/json`. Each route-point in `route` is represented as a `GeoJSON Position` type i.e. an array where the _longitude_ value is followed by the _latitude_ value and the _altitude_ value is ignored. The `route` should contain at least 2 route-points.

It is possible that original route will be altered, some of it's points may be skipped. If the route that passes through the found point is faster than the original one, the `detourTime` value in the response is negative.", - "operationId": "Search_PostSearchAlongRoute", - "x-ms-examples": { - "Search for burger joints along a route": { - "$ref": "./examples/PostSearchAlongRoute.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/ClientId" - }, - { - "$ref": "#/parameters/SubscriptionKey" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/CategorySet" - }, - { - "$ref": "#/parameters/PoiQuery" - }, - { - "$ref": "#/parameters/TextFormat" - }, - { - "name": "maxDetourTime", - "description": "Maximum detour time of the point of interest in seconds. Max value is 3600 seconds", - "required": true, - "type": "integer", - "in": "query", - "maximum": 3600 - }, - { - "name": "limit", - "description": "Maximum number of responses that will be returned. Default value is 10. Max value is 20", - "required": false, - "type": "integer", - "in": "query", - "default": 10, - "maximum": 20 - }, - { - "$ref": "#/parameters/BrandSet" - }, - { - "$ref": "#/parameters/ConnectorSet" - }, - { - "$ref": "#/parameters/View" - }, - { - "$ref": "#/parameters/OpeningHours" - }, - { - "name": "searchAlongRouteRequestBody", - "in": "body", - "description": "This represents the route to search along and should be a valid `GeoJSON LineString` type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.4) for details.", - "required": true, - "schema": { - "$ref": "#/definitions/SearchAlongRouteRequestBody" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/SearchAlongRouteResponse" - } - }, - "400": { - "$ref": "#/responses/400" - }, - "401": { - "$ref": "#/responses/401" - }, - "403": { - "$ref": "#/responses/403" - }, - "404": { - "$ref": "#/responses/404" - }, - "500": { - "$ref": "#/responses/500" - } - } - } - }, - "/search/fuzzy/batch/{format}": { - "post": { - "x-publish": true, - "description": "**Search Fuzzy Batch API**\n\n\n**Applies to**: S1 pricing tier.\n\n\n\nThe Search Address Batch API sends batches of queries to [Search Fuzzy API](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchfuzzy) using just a single API call. You can call Search Address Fuzzy Batch API to run either asynchronously (async) or synchronously (sync). The async API allows caller to batch up to **10,000** queries and sync API up to **100** queries.\n### Submit Synchronous Batch Request\nThe Synchronous API is recommended for lightweight batch requests. When the service receives a request, it will respond as soon as the batch items are calculated and there will be no possibility to retrieve the results later. The Synchronous API will return a timeout error (a 408 response) if the request takes longer than 60 seconds. The number of batch items is limited to **100** for this API.\n```\nPOST https://atlas.microsoft.com/search/fuzzy/batch/sync/json?api-version=1.0&subscription-key={subscription-key}\n```\n### Submit Asynchronous Batch Request\nThe Asynchronous API is appropriate for processing big volumes of relatively complex search requests\n- It allows the retrieval of results in a separate call (multiple downloads are possible).\n- The asynchronous API is optimized for reliability and is not expected to run into a timeout.\n- The number of batch items is limited to **10,000** for this API.\n\nWhen you make a request by using async request, by default the service returns a 202 response code along a redirect URL in the Location field of the response header. This URL should be checked periodically until the response data or error information is available.\nThe asynchronous responses are stored for **14** days. The redirect URL returns a 404 response if used after the expiration period.\n\nPlease note that asynchronous batch request is a long-running request. Here's a typical sequence of operations:\n1. Client sends a Search Address Batch `POST` request to Azure Maps\n2. The server will respond with one of the following:\n\n > HTTP `202 Accepted` - Batch request has been accepted.\n\n > HTTP `Error` - There was an error processing your Batch request. This could either be a `400 Bad Request` or any other `Error` status code.\n\n3. If the batch request was accepted successfully, the `Location` header in the response contains the URL to download the results of the batch request.\n This status URI looks like following:\n\n```\n GET https://atlas.microsoft.com/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\n4. Client issues a `GET` request on the _download URL_ obtained in Step 3 to download the batch results.\n\n### POST Body for Batch Request\nTo send the _search fuzzy_ queries you will use a `POST` request where the request body will contain the `batchItems` array in `json` format and the `Content-Type` header will be set to `application/json`. Here's a sample request body containing 5 _search fuzzy_ queries:\n\n\n```json\n{\n \"batchItems\": [\n {\"query\": \"?query=atm&lat=47.639769&lon=-122.128362&radius=5000&limit=5\"},\n {\"query\": \"?query=Statue Of Liberty&limit=2\"},\n {\"query\": \"?query=Starbucks&lat=47.639769&lon=-122.128362&radius=5000\"},\n {\"query\": \"?query=Space Needle\"},\n {\"query\": \"?query=pizza&limit=10\"}\n ]\n}\n```\n\nA _search fuzzy_ query in a batch is just a partial URL _without_ the protocol, base URL, path, api-version and subscription-key. It can accept any of the supported _search fuzzy_ [URI parameters](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchfuzzy#uri-parameters). The string values in the _search fuzzy_ query must be properly escaped (e.g. \" character should be escaped with \\\\ ) and it should also be properly URL-encoded.\n\n\nThe async API allows caller to batch up to **10,000** queries and sync API up to **100** queries, and the batch should contain at least **1** query.\n\n\n### Download Asynchronous Batch Results\nTo download the async batch results you will issue a `GET` request to the batch download endpoint. This _download URL_ can be obtained from the `Location` header of a successful `POST` batch request and looks like the following:\n\n```\nhttps://atlas.microsoft.com/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\nHere's the typical sequence of operations for downloading the batch results:\n1. Client sends a `GET` request using the _download URL_.\n2. The server will respond with one of the following:\n\n > HTTP `202 Accepted` - Batch request was accepted but is still being processed. Please try again in some time.\n\n > HTTP `200 OK` - Batch request successfully processed. The response body contains all the batch results.\n\n\n\n### Batch Response Model\nThe returned data content is similar for async and sync requests. When downloading the results of an async batch request, if the batch has finished processing, the response body contains the batch response. This batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests`i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item in `batchItems` contains `statusCode` and `response` fields. Each `response` in `batchItems` is of one of the following types:\n\n - [`SearchFuzzyResponse`](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchfuzzy#searchfuzzyresponse) - If the query completed successfully.\n\n - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.\n\n\nHere's a sample Batch Response with 2 _successful_ and 1 _failed_ result:\n\n\n```json\n{\n \"summary\": {\n \"successfulRequests\": 2,\n \"totalRequests\": 3\n },\n \"batchItems\": [\n {\n \"statusCode\": 200,\n \"response\":\n {\n \"summary\": {\n \"query\": \"atm\"\n },\n \"results\": [\n {\n \"type\": \"POI\",\n \"poi\": {\n \"name\": \"ATM at Wells Fargo\"\n },\n \"address\": {\n \"country\": \"United States Of America\",\n \"freeformAddress\": \"3240 157th Ave NE, Redmond, WA 98052\"\n }\n }\n ]\n }\n },\n {\n \"statusCode\": 200,\n \"response\":\n {\n \"summary\": {\n \"query\": \"statue of liberty\"\n },\n \"results\": [\n {\n \"type\": \"POI\",\n \"poi\": {\n \"name\": \"Statue of Liberty\"\n },\n \"address\": {\n \"country\": \"United States Of America\",\n \"freeformAddress\": \"New York, NY 10004\"\n }\n }\n ]\n }\n },\n {\n \"statusCode\": 400,\n \"response\":\n {\n \"error\":\n {\n \"code\": \"400 BadRequest\",\n \"message\": \"Bad request: one or more parameters were incorrectly specified or are mutually exclusive.\"\n }\n }\n }\n ]\n}\n```", - "operationId": "Search_PostSearchFuzzyBatch", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-examples": { - "A Search Fuzzy Batch API call containing 5 Search Fuzzy API queries": { - "$ref": "./examples/PostSearchFuzzyBatch.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/ClientId" - }, - { - "$ref": "#/parameters/SubscriptionKey" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/JsonFormat" - }, - { - "name": "searchFuzzyBatchRequestBody", - "in": "body", - "description": "The list of search fuzzy queries/requests to process. The list can contain a max of 10,000 queries and must contain at least 1 query.", - "required": true, - "schema": { - "$ref": "#/definitions/BatchRequestBody" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/BatchResponse" - } - }, - "202": { - "$ref": "#/responses/202Async" - }, - "400": { - "$ref": "#/responses/400" - }, - "401": { - "$ref": "#/responses/401" - }, - "403": { - "$ref": "#/responses/403" - }, - "404": { - "$ref": "#/responses/404" - }, - "500": { - "$ref": "#/responses/500" - } - }, - "produces": [ - "application/json" - ] - } - }, - "/search/address/batch/{format}": { - "post": { - "x-publish": true, - "description": "**Search Address Batch API**\n\n\n**Applies to**: S1 pricing tier.\n\n\n\nThe Search Address Batch API sends batches of queries to [Search Address API](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchaddress) using just a single API call. You can call Search Address Batch API to run either asynchronously (async) or synchronously (sync). The async API allows caller to batch up to **10,000** queries and sync API up to **100** queries.\n### Submit Synchronous Batch Request\nThe Synchronous API is recommended for lightweight batch requests. When the service receives a request, it will respond as soon as the batch items are calculated and there will be no possibility to retrieve the results later. The Synchronous API will return a timeout error (a 408 response) if the request takes longer than 60 seconds. The number of batch items is limited to **100** for this API.\n```\nPOST https://atlas.microsoft.com/search/address/batch/sync/json?api-version=1.0&subscription-key={subscription-key}\n```\n### Submit Asynchronous Batch Request\nThe Asynchronous API is appropriate for processing big volumes of relatively complex search requests\n- It allows the retrieval of results in a separate call (multiple downloads are possible).\n- The asynchronous API is optimized for reliability and is not expected to run into a timeout.\n- The number of batch items is limited to **10,000** for this API.\n\nWhen you make a request by using async request, by default the service returns a 202 response code along a redirect URL in the Location field of the response header. This URL should be checked periodically until the response data or error information is available.\nThe asynchronous responses are stored for **14** days. The redirect URL returns a 404 response if used after the expiration period.\n\nPlease note that asynchronous batch request is a long-running request. Here's a typical sequence of operations:\n1. Client sends a Search Address Batch `POST` request to Azure Maps\n2. The server will respond with one of the following:\n\n > HTTP `202 Accepted` - Batch request has been accepted.\n\n > HTTP `Error` - There was an error processing your Batch request. This could either be a `400 Bad Request` or any other `Error` status code.\n\n3. If the batch request was accepted successfully, the `Location` header in the response contains the URL to download the results of the batch request.\n This status URI looks like following:\n\n```\n GET https://atlas.microsoft.com/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\n4. Client issues a `GET` request on the _download URL_ obtained in Step 3 to download the batch results.\n\n### POST Body for Batch Request\nTo send the _search address_ queries you will use a `POST` request where the request body will contain the `batchItems` array in `json` format and the `Content-Type` header will be set to `application/json`. Here's a sample request body containing 5 _search address_ queries:\n\n\n```json\n{\n \"batchItems\": [\n {\"query\": \"?query=400 Broad St, Seattle, WA 98109&limit=3\"},\n {\"query\": \"?query=One, Microsoft Way, Redmond, WA 98052&limit=3\"},\n {\"query\": \"?query=350 5th Ave, New York, NY 10118&limit=1\"},\n {\"query\": \"?query=Pike Pl, Seattle, WA 98101&lat=47.610970&lon=-122.342469&radius=1000\"},\n {\"query\": \"?query=Champ de Mars, 5 Avenue Anatole France, 75007 Paris, France&limit=1\"}\n ]\n}\n```\n\nA _search address_ query in a batch is just a partial URL _without_ the protocol, base URL, path, api-version and subscription-key. It can accept any of the supported _search address_ [URI parameters](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchaddress#uri-parameters). The string values in the _search address_ query must be properly escaped (e.g. \" character should be escaped with \\\\ ) and it should also be properly URL-encoded.\n\n\nThe async API allows caller to batch up to **10,000** queries and sync API up to **100** queries, and the batch should contain at least **1** query.\n\n\n### Download Asynchronous Batch Results\nTo download the async batch results you will issue a `GET` request to the batch download endpoint. This _download URL_ can be obtained from the `Location` header of a successful `POST` batch request and looks like the following:\n\n```\nhttps://atlas.microsoft.com/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\nHere's the typical sequence of operations for downloading the batch results:\n1. Client sends a `GET` request using the _download URL_.\n2. The server will respond with one of the following:\n\n > HTTP `202 Accepted` - Batch request was accepted but is still being processed. Please try again in some time.\n\n > HTTP `200 OK` - Batch request successfully processed. The response body contains all the batch results.\n\n\n\n### Batch Response Model\nThe returned data content is similar for async and sync requests. When downloading the results of an async batch request, if the batch has finished processing, the response body contains the batch response. This batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests`i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item in `batchItems` contains `statusCode` and `response` fields. Each `response` in `batchItems` is of one of the following types:\n\n - [`SearchAddressResponse`](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchaddress#searchaddressresponse) - If the query completed successfully.\n\n - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.\n\n\nHere's a sample Batch Response with 2 _successful_ and 1 _failed_ result:\n\n\n```json\n{\n \"summary\": {\n \"successfulRequests\": 2,\n \"totalRequests\": 3\n },\n \"batchItems\": [\n {\n \"statusCode\": 200,\n \"response\":\n {\n \"summary\": {\n \"query\": \"one microsoft way redmond wa 98052\"\n },\n \"results\": [\n {\n \"position\": {\n \"lat\": 47.63989,\n \"lon\": -122.12509\n }\n }\n ]\n }\n },\n {\n \"statusCode\": 200,\n \"response\":\n {\n \"summary\": {\n \"query\": \"pike pl seattle wa 98101\"\n },\n \"results\": [\n {\n \"position\": {\n \"lat\": 47.60963,\n \"lon\": -122.34215\n }\n }\n ]\n }\n },\n {\n \"statusCode\": 400,\n \"response\":\n {\n \"error\":\n {\n \"code\": \"400 BadRequest\",\n \"message\": \"Bad request: one or more parameters were incorrectly specified or are mutually exclusive.\"\n }\n }\n }\n ]\n}\n```", - "operationId": "Search_PostSearchAddressBatch", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-examples": { - "An Address Geocoding Batch API call containing 5 Address Geocoding API queries": { - "$ref": "./examples/PostSearchAddressBatch.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/ClientId" - }, - { - "$ref": "#/parameters/SubscriptionKey" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/JsonFormat" - }, - { - "name": "searchAddressBatchRequestBody", - "in": "body", - "description": "The list of address geocoding queries/requests to process. The list can contain a max of 10,000 queries and must contain at least 1 query.", - "required": true, - "schema": { - "$ref": "#/definitions/BatchRequestBody" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/BatchResponse" - } - }, - "202": { - "$ref": "#/responses/202Async" - }, - "400": { - "$ref": "#/responses/400" - }, - "401": { - "$ref": "#/responses/401" - }, - "403": { - "$ref": "#/responses/403" - }, - "404": { - "$ref": "#/responses/404" - }, - "500": { - "$ref": "#/responses/500" - } - }, - "produces": [ - "application/json" - ] - } - }, - "/search/address/reverse/batch/{format}": { - "post": { - "x-publish": true, - "description": "**Search Address Reverse Batch API**\n\n\n**Applies to**: S1 pricing tier.\n\n\n\nThe Search Address Batch API sends batches of queries to [Search Address Reverse API](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchaddressreverse) using just a single API call. You can call Search Address Reverse Batch API to run either asynchronously (async) or synchronously (sync). The async API allows caller to batch up to **10,000** queries and sync API up to **100** queries.\n### Submit Synchronous Batch Request\nThe Synchronous API is recommended for lightweight batch requests. When the service receives a request, it will respond as soon as the batch items are calculated and there will be no possibility to retrieve the results later. The Synchronous API will return a timeout error (a 408 response) if the request takes longer than 60 seconds. The number of batch items is limited to **100** for this API.\n```\nPOST https://atlas.microsoft.com/search/address/reverse/batch/sync/json?api-version=1.0&subscription-key={subscription-key}\n```\n### Submit Asynchronous Batch Request\nThe Asynchronous API is appropriate for processing big volumes of relatively complex search requests\n- It allows the retrieval of results in a separate call (multiple downloads are possible).\n- The asynchronous API is optimized for reliability and is not expected to run into a timeout.\n- The number of batch items is limited to **10,000** for this API.\n\nWhen you make a request by using async request, by default the service returns a 202 response code along a redirect URL in the Location field of the response header. This URL should be checked periodically until the response data or error information is available.\nThe asynchronous responses are stored for **14** days. The redirect URL returns a 404 response if used after the expiration period.\n\nPlease note that asynchronous batch request is a long-running request. Here's a typical sequence of operations:\n1. Client sends a Search Address Batch `POST` request to Azure Maps\n2. The server will respond with one of the following:\n\n > HTTP `202 Accepted` - Batch request has been accepted.\n\n > HTTP `Error` - There was an error processing your Batch request. This could either be a `400 Bad Request` or any other `Error` status code.\n\n3. If the batch request was accepted successfully, the `Location` header in the response contains the URL to download the results of the batch request.\n This status URI looks like following:\n\n```\n GET https://atlas.microsoft.com/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\n4. Client issues a `GET` request on the _download URL_ obtained in Step 3 to download the batch results.\n\n### POST Body for Batch Request\nTo send the _search address reverse_ queries you will use a `POST` request where the request body will contain the `batchItems` array in `json` format and the `Content-Type` header will be set to `application/json`. Here's a sample request body containing 5 _search address reverse_ queries:\n\n\n```json\n{\n \"batchItems\": [\n {\"query\": \"?query=48.858561,2.294911\"},\n {\"query\": \"?query=47.639765,-122.127896&radius=5000&limit=2\"},\n {\"query\": \"?query=47.621028,-122.348170\"},\n {\"query\": \"?query=43.722990,10.396695\"},\n {\"query\": \"?query=40.750958,-73.982336\"}\n ]\n}\n```\n\nA _search address reverse_ query in a batch is just a partial URL _without_ the protocol, base URL, path, api-version and subscription-key. It can accept any of the supported _search address reverse_ [URI parameters](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchaddressreverse#uri-parameters). The string values in the _search address reverse_ query must be properly escaped (e.g. \" character should be escaped with \\\\ ) and it should also be properly URL-encoded.\n\n\nThe async API allows caller to batch up to **10,000** queries and sync API up to **100** queries, and the batch should contain at least **1** query.\n\n\n### Download Asynchronous Batch Results\nTo download the async batch results you will issue a `GET` request to the batch download endpoint. This _download URL_ can be obtained from the `Location` header of a successful `POST` batch request and looks like the following:\n\n```\nhttps://atlas.microsoft.com/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\nHere's the typical sequence of operations for downloading the batch results:\n1. Client sends a `GET` request using the _download URL_.\n2. The server will respond with one of the following:\n\n > HTTP `202 Accepted` - Batch request was accepted but is still being processed. Please try again in some time.\n\n > HTTP `200 OK` - Batch request successfully processed. The response body contains all the batch results.\n\n\n\n### Batch Response Model\nThe returned data content is similar for async and sync requests. When downloading the results of an async batch request, if the batch has finished processing, the response body contains the batch response. This batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests`i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item in `batchItems` contains `statusCode` and `response` fields. Each `response` in `batchItems` is of one of the following types:\n\n - [`SearchAddressReverseResponse`](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchaddressreverse#searchaddressreverseresponse) - If the query completed successfully.\n\n - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.\n\n\nHere's a sample Batch Response with 2 _successful_ and 1 _failed_ result:\n\n\n```json\n{\n \"summary\": {\n \"successfulRequests\": 2,\n \"totalRequests\": 3\n },\n \"batchItems\": [\n {\n \"statusCode\": 200,\n \"response\":\n {\n \"summary\": {\n \"queryTime\": 11\n },\n \"addresses\": [\n {\n \"address\": {\n \"country\": \"France\",\n \"freeformAddress\": \"Avenue Anatole France, 75007 Paris\"\n },\n \"position\": \"48.858490,2.294820\"\n }\n ]\n }\n },\n {\n \"statusCode\": 200,\n \"response\":\n {\n \"summary\": {\n \"queryTime\": 1\n },\n \"addresses\": [\n {\n \"address\": {\n \"country\": \"United States of America\",\n \"freeformAddress\": \"157th Pl NE, Redmond WA 98052\"\n },\n \"position\": \"47.640470,-122.129430\"\n }\n ]\n }\n },\n {\n \"statusCode\": 400,\n \"response\":\n {\n \"error\":\n {\n \"code\": \"400 BadRequest\",\n \"message\": \"Bad request: one or more parameters were incorrectly specified or are mutually exclusive.\"\n }\n }\n }\n ]\n}\n```", - "operationId": "Search_PostSearchAddressReverseBatch", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-examples": { - "A Reverse Geocoding Batch API call containing 5 Reverse Geocoding API queries": { - "$ref": "./examples/PostSearchAddressReverseBatch.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/ClientId" - }, - { - "$ref": "#/parameters/SubscriptionKey" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/JsonFormat" - }, - { - "name": "searchAddressReverseBatchRequestBody", - "in": "body", - "description": "The list of reverse geocoding queries/requests to process. The list can contain a max of 10,000 queries and must contain at least 1 query.", - "required": true, - "schema": { - "$ref": "#/definitions/BatchRequestBody" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/BatchResponse" - } - }, - "202": { - "$ref": "#/responses/202Async" - }, - "400": { - "$ref": "#/responses/400" - }, - "401": { - "$ref": "#/responses/401" - }, - "403": { - "$ref": "#/responses/403" - }, - "404": { - "$ref": "#/responses/404" - }, - "500": { - "$ref": "#/responses/500" - } - }, - "produces": [ - "application/json" - ] - } - } - }, - "definitions": { - "ODataErrorResponse": { - "type": "object", - "description": "This response object is returned when an error occurs in the Maps API.", - "properties": { - "error": { - "$ref": "#/definitions/ODataError" - } - } - }, - "ODataError": { - "type": "object", - "description": "This object is returned when an error occurs in the Maps API.", - "properties": { - "code": { - "type": "string", - "readOnly": true, - "description": "The ODataError code." - }, - "message": { - "type": "string", - "readOnly": true, - "description": "If available, a human readable description of the error." - }, - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/ODataError" - } - }, - "target": { - "type": "string", - "readOnly": true, - "description": "If available, the target causing the error." - } - } - }, - "BatchResponse": { - "description": "This object is returned from a successful Batch service call", - "type": "object", - "properties": { - "summary": { - "description": "Summary for the batch request", - "type": "object", - "readOnly": true, - "properties": { - "successfulRequests": { - "description": "Number of successful requests in the batch", - "type": "integer", - "readOnly": true - }, - "totalRequests": { - "description": "Total number of requests in the batch", - "type": "integer", - "readOnly": true - } - } - }, - "batchItems": { - "description": "Array containing the batch results", - "type": "array", - "readOnly": true, - "items": { - "type": "object" - } - } - } - }, - "Geometry": { - "description": "This represents the geometry for one or more geographical features (parks, state boundary etc.) and should be a `GeoJSON` compliant type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946) for details.", - "type": "object" - }, - "BatchRequestBody": { - "description": "This type represents the request body for the Batch service.", - "type": "object", - "properties": { - "batchItems": { - "description": "The list of queries/requests to process", - "type": "array", - "items": { - "description": "Batch Query object", - "type": "object", - "properties": { - "query": { - "description": "Partial query string", - "type": "string" - } - } - } - } - } - }, - "CoordinateAbbreviated": { - "description": "A location represented as a latitude and longitude.", - "type": "object", - "properties": { - "lat": { - "description": "Latitude property", - "type": "number", - "format": "double", - "readOnly": true - }, - "lon": { - "description": "Longitude property", - "type": "number", - "format": "double", - "readOnly": true - } - } - }, - "GeoJSONGeometry": { - "description": "A valid `GeoJSON` geometry object. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1) for details.", - "type": "object", - "discriminator": "type", - "required": [ - "type" - ], - "properties": { - "type": { - "description": "Specifies the `GeoJSON` geometry type. Must be one of the seven valid GeoJSON geometry types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon and GeometryCollection.", - "type": "string", - "enum": [ - "Point", - "MultiPoint", - "LineString", - "MultiLineString", - "Polygon", - "MultiPolygon", - "GeometryCollection" - ], - "x-ms-enum": { - "name": "GeoJSONGeometryType", - "modelAsString": true, - "values": [ - { - "value": "Point", - "description": "`GeoJSON Point` geometry." - }, - { - "value": "MultiPoint", - "description": "`GeoJSON MultiPoint` geometry." - }, - { - "value": "LineString", - "description": "`GeoJSON LineString` geometry." - }, - { - "value": "MultiLineString", - "description": "`GeoJSON MultiLineString` geometry." - }, - { - "value": "Polygon", - "description": "`GeoJSON Polygon` geometry." - }, - { - "value": "MultiPolygon", - "description": "`GeoJSON MultiPolygon` geometry." - }, - { - "value": "GeometryCollection", - "description": "`GeoJSON GeometryCollection` geometry." - } - ] - } - } - } - }, - "LineString": { - "description": "A valid `GeoJSON LineString` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.4) for details.", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJSONGeometry" - }, - { - "properties": { - "type": { - "description": "Specifies the `type` for the geometry. Value should always be equal to \"LineString\".", - "type": "string" - }, - "coordinates": { - "description": "Coordinates for the `LineString` geometry.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJSONPosition" - } - } - }, - "required": [ - "coordinates" - ] - } - ] - }, - "GeoJSONPosition": { - "description": "A valid `GeoJSON Position` geometry type. A `Position` is an array of numbers with two or more elements. The first two elements are _longitude_ and _latitude_, precisely in that order. _Altitude/Elevation_ is an optional third element. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.1) for details.", - "type": "array", - "items": { - "type": "number", - "format": "double" - } - }, - "PoiCategoryResponse": { - "description": "This object is returned from a successful POI Category Tree call", - "type": "object", - "properties": { - "poiCategories": { - "description": "Categories array", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/PoiCategoryResult" - } - } - } - }, - "PoiCategoryResult": { - "description": "POI category result", - "type": "object", - "properties": { - "id": { - "description": "Unique ID for the category. ID can be used to restrict search results to specific categories through other Search Service APIs, like [Get Search POI](https://docs.microsoft.com/rest/api/maps/search/getsearchpoi).", - "type": "integer", - "readOnly": true - }, - "name": { - "description": "Name of the category", - "type": "string", - "readOnly": true - }, - "childCategoryIds": { - "description": "Array of child category ids", - "type": "array", - "items": { - "type": "integer", - "readOnly": true - }, - "readOnly": true - }, - "synonyms": { - "description": "Array of alternative names of the category", - "type": "array", - "items": { - "type": "string", - "readOnly": true - }, - "readOnly": true - } - } - }, - "SearchPolygonResponse": { - "description": "This object is returned from a successful Search Polygon call", - "type": "object", - "properties": { - "additionalData": { - "description": "Results array", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/SearchPolygonResult" - } - } - } - }, - "SearchPolygonResult": { - "type": "object", - "properties": { - "providerID": { - "description": "ID of the returned entity", - "type": "string", - "readOnly": true - }, - "error": { - "description": "Reason for the failure to obtain data for this provider.", - "type": "string", - "readOnly": true - }, - "geometryData": { - "description": "Geometry data in GeoJSON format. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946) for details. Present only if \"error\" is not present.", - "$ref": "#/definitions/Geometry" - } - } - }, - "SearchFuzzyResponse": { - "description": "This object is returned from a successful Search Fuzzy call", - "type": "object", - "properties": { - "summary": { - "$ref": "#/definitions/SearchFuzzySummary" - }, - "results": { - "description": "Results array", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/SearchFuzzyResult" - } - } - } - }, - "SearchFuzzySummary": { - "description": "Summary object for a Search Fuzzy response", - "type": "object", - "readOnly": true, - "properties": { - "query": { - "description": "Query property", - "type": "string", - "readOnly": true - }, - "queryType": { - "description": "QueryType property", - "type": "string", - "readOnly": true - }, - "queryTime": { - "description": "QueryTime property", - "type": "integer", - "readOnly": true - }, - "numResults": { - "description": "NumResults property", - "type": "integer", - "readOnly": true - }, - "offset": { - "description": "Offset property", - "type": "integer", - "readOnly": true - }, - "totalResults": { - "description": "TotalResults property", - "type": "integer", - "readOnly": true - }, - "fuzzyLevel": { - "description": "FuzzyLevel property", - "type": "integer", - "readOnly": true - } - } - }, - "SearchFuzzyResult": { - "type": "object", - "properties": { - "type": { - "description": "One of:\n* POI\n* Street\n* Geography\n* Point Address\n* Address Range\n* Cross Street", - "type": "string", - "readOnly": true - }, - "id": { - "description": "Id property", - "type": "string", - "readOnly": true - }, - "score": { - "$ref": "#/definitions/SearchResultScore" - }, - "info": { - "description": "Info property", - "type": "string", - "readOnly": true - }, - "entityType": { - "$ref": "#/definitions/EntityType" - }, - "poi": { - "$ref": "#/definitions/SearchResultPoi" - }, - "address": { - "$ref": "#/definitions/SearchResultAddress" - }, - "position": { - "$ref": "#/definitions/CoordinateAbbreviated" - }, - "viewport": { - "$ref": "#/definitions/SearchResultViewport" - }, - "entryPoints": { - "description": "Entry Points array", - "type": "array", - "items": { - "$ref": "#/definitions/SearchResultEntryPoint" - } - }, - "addressRanges": { - "$ref": "#/definitions/SearchResultAddressRanges" - }, - "dataSources": { - "$ref": "#/definitions/DataSources" - } - } - }, - "SearchPoiResponse": { - "description": "This object is returned from a successful Search POI call", - "type": "object", - "properties": { - "summary": { - "$ref": "#/definitions/SearchPoiSummary" - }, - "results": { - "description": "Results array", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/SearchPoiResult" - } - } - } - }, - "SearchPoiSummary": { - "description": "Summary object for a Search POI response", - "type": "object", - "readOnly": true, - "properties": { - "query": { - "description": "Query property", - "type": "string", - "readOnly": true - }, - "queryType": { - "description": "QueryType property", - "type": "string", - "readOnly": true - }, - "queryTime": { - "description": "QueryTime property", - "type": "integer", - "readOnly": true - }, - "numResults": { - "description": "NumResults property", - "type": "integer", - "readOnly": true - }, - "offset": { - "description": "Offset property", - "type": "integer", - "readOnly": true - }, - "totalResults": { - "description": "TotalResults property", - "type": "integer", - "readOnly": true - }, - "fuzzyLevel": { - "description": "FuzzyLevel property", - "type": "integer", - "readOnly": true - }, - "geoBias": { - "$ref": "#/definitions/SearchSummaryGeoBias" - } - } - }, - "SearchPoiResult": { - "type": "object", - "properties": { - "type": { - "description": "Type property", - "type": "string", - "readOnly": true - }, - "id": { - "description": "Id property", - "type": "string", - "readOnly": true - }, - "score": { - "$ref": "#/definitions/SearchResultScore" - }, - "dist": { - "$ref": "#/definitions/SearchResultDistance" - }, - "info": { - "description": "Info property", - "type": "string", - "readOnly": true - }, - "entityType": { - "$ref": "#/definitions/EntityType" - }, - "poi": { - "$ref": "#/definitions/SearchResultPoi" - }, - "address": { - "$ref": "#/definitions/SearchResultAddress" - }, - "position": { - "$ref": "#/definitions/CoordinateAbbreviated" - }, - "viewport": { - "$ref": "#/definitions/SearchResultViewport" - }, - "entryPoints": { - "description": "Entry Points array", - "type": "array", - "items": { - "$ref": "#/definitions/SearchResultEntryPoint" - } - } - } - }, - "SearchNearbyResponse": { - "description": "This object is returned from a successful Search Nearby call", - "type": "object", - "properties": { - "summary": { - "$ref": "#/definitions/SearchNearbySummary" - }, - "results": { - "description": "Results array", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/SearchNearbyResult" - } - } - } - }, - "SearchNearbySummary": { - "description": "Summary object for a Search Nearby response", - "type": "object", - "readOnly": true, - "properties": { - "queryType": { - "description": "QueryType property", - "type": "string", - "readOnly": true - }, - "queryTime": { - "description": "QueryTime property", - "type": "integer", - "readOnly": true - }, - "numResults": { - "description": "NumResults property", - "type": "integer", - "readOnly": true - }, - "offset": { - "description": "Offset property", - "type": "integer", - "readOnly": true - }, - "totalResults": { - "description": "TotalResults property", - "type": "integer", - "readOnly": true - }, - "fuzzyLevel": { - "description": "FuzzyLevel property", - "type": "integer", - "readOnly": true - }, - "geoBias": { - "$ref": "#/definitions/SearchSummaryGeoBias" - } - } - }, - "SearchNearbyResult": { - "type": "object", - "properties": { - "type": { - "description": "Type property", - "type": "string", - "readOnly": true - }, - "id": { - "description": "Id property", - "type": "string", - "readOnly": true - }, - "score": { - "$ref": "#/definitions/SearchResultScore" - }, - "dist": { - "$ref": "#/definitions/SearchResultDistance" - }, - "info": { - "description": "Info property", - "type": "string", - "readOnly": true - }, - "poi": { - "$ref": "#/definitions/SearchResultPoi" - }, - "address": { - "$ref": "#/definitions/SearchResultAddress" - }, - "position": { - "$ref": "#/definitions/CoordinateAbbreviated" - }, - "viewport": { - "$ref": "#/definitions/SearchResultViewport" - }, - "entryPoints": { - "description": "Entry Points array", - "type": "array", - "items": { - "$ref": "#/definitions/SearchResultEntryPoint" - } - } - } - }, - "SearchPoiCategoryResponse": { - "description": "This object is returned from a successful Search POI Category call", - "type": "object", - "properties": { - "summary": { - "$ref": "#/definitions/SearchPoiCategorySummary" - }, - "results": { - "description": "Results array", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/SearchPoiCategoryResult" - } - } - } - }, - "SearchPoiCategorySummary": { - "description": "Summary object for a Search POI Category response", - "type": "object", - "readOnly": true, - "properties": { - "query": { - "description": "Query property", - "type": "string", - "readOnly": true - }, - "queryType": { - "description": "QueryType property", - "type": "string", - "readOnly": true - }, - "queryTime": { - "description": "QueryTime property", - "type": "integer", - "readOnly": true - }, - "numResults": { - "description": "NumResults property", - "type": "integer", - "readOnly": true - }, - "offset": { - "description": "Offset property", - "type": "integer", - "readOnly": true - }, - "totalResults": { - "description": "TotalResults property", - "type": "integer", - "readOnly": true - }, - "fuzzyLevel": { - "description": "FuzzyLevel property", - "type": "integer", - "readOnly": true - }, - "geoBias": { - "$ref": "#/definitions/SearchSummaryGeoBias" - } - } - }, - "SearchPoiCategoryResult": { - "type": "object", - "properties": { - "type": { - "description": "Type property", - "type": "string", - "readOnly": true - }, - "id": { - "description": "Id property", - "type": "string", - "readOnly": true - }, - "score": { - "$ref": "#/definitions/SearchResultScore" - }, - "dist": { - "$ref": "#/definitions/SearchResultDistance" - }, - "info": { - "description": "Info property", - "type": "string", - "readOnly": true - }, - "entityType": { - "$ref": "#/definitions/EntityType" - }, - "poi": { - "$ref": "#/definitions/SearchResultPoi" - }, - "address": { - "$ref": "#/definitions/SearchResultAddress" - }, - "position": { - "$ref": "#/definitions/CoordinateAbbreviated" - }, - "viewport": { - "$ref": "#/definitions/SearchResultViewport" - }, - "entryPoints": { - "description": "Entry Points array", - "type": "array", - "items": { - "$ref": "#/definitions/SearchResultEntryPoint" - } - } - } - }, - "SearchAddressResponse": { - "description": "This object is returned from a successful Search Address call", - "type": "object", - "properties": { - "summary": { - "$ref": "#/definitions/SearchAddressSummary" - }, - "results": { - "description": "Results array", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/SearchAddressResult" - } - } - } - }, - "SearchAddressSummary": { - "description": "Summary object for a Search Address response", - "type": "object", - "readOnly": true, - "properties": { - "query": { - "description": "Query property", - "type": "string", - "readOnly": true - }, - "queryType": { - "description": "QueryType property", - "type": "string", - "readOnly": true - }, - "queryTime": { - "description": "QueryTime property", - "type": "integer", - "readOnly": true - }, - "numResults": { - "description": "NumResults property", - "type": "integer", - "readOnly": true - }, - "offset": { - "description": "Offset property", - "type": "integer", - "readOnly": true - }, - "totalResults": { - "description": "TotalResults property", - "type": "integer", - "readOnly": true - }, - "fuzzyLevel": { - "description": "FuzzyLevel property", - "type": "integer", - "readOnly": true - } - } - }, - "SearchAddressResult": { - "type": "object", - "properties": { - "type": { - "description": "One of:\n* POI\n* Street\n* Geography\n* Point Address\n* Address Range\n* Cross Street", - "type": "string", - "readOnly": true - }, - "id": { - "description": "Id property", - "type": "string", - "readOnly": true - }, - "score": { - "$ref": "#/definitions/SearchResultScore" - }, - "address": { - "$ref": "#/definitions/SearchResultAddress" - }, - "position": { - "$ref": "#/definitions/CoordinateAbbreviated" - }, - "viewport": { - "$ref": "#/definitions/SearchResultViewport" - }, - "entryPoints": { - "description": "Entry Points array", - "type": "array", - "items": { - "$ref": "#/definitions/SearchResultEntryPoint" - } - }, - "dataSources": { - "$ref": "#/definitions/DataSources" - } - } - }, - "SearchAddressReverseResponse": { - "description": "This object is returned from a successful Search Address Reverse call", - "type": "object", - "properties": { - "summary": { - "$ref": "#/definitions/SearchAddressReverseSummary" - }, - "addresses": { - "description": "Addresses array", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/SearchAddressReverseResult" - } - } - } - }, - "SearchAddressReverseSummary": { - "description": "Summary object for a Search Address Reverse response", - "type": "object", - "readOnly": true, - "properties": { - "queryTime": { - "description": "QueryTime property", - "type": "integer", - "readOnly": true - }, - "numResults": { - "description": "NumResults property", - "type": "integer", - "readOnly": true - } - } - }, - "SearchAddressReverseResult": { - "type": "object", - "properties": { - "address": { - "$ref": "#/definitions/SearchResultAddress" - }, - "position": { - "type": "string", - "readOnly": true, - "description": "Position property in the form of \"{latitude},{longitude}\"" - }, - "matchType": { - "type": "string", - "readOnly": true, - "description": "Information on the type of match.\n\nOne of:\n * AddressPoint\n * HouseNumberRange\n * Street" - } - } - }, - "SearchAddressReverseCrossStreetResponse": { - "description": "This object is returned from a successful Search Address Reverse CrossStreet call", - "type": "object", - "properties": { - "summary": { - "$ref": "#/definitions/SearchAddressReverseCrossStreetSummary" - }, - "addresses": { - "description": "Addresses array", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/SearchAddressReverseCrossStreetResult" - } - } - } - }, - "SearchAddressReverseCrossStreetSummary": { - "description": "Summary object for a Search Address Reverse Cross Street response", - "type": "object", - "readOnly": true, - "properties": { - "queryTime": { - "description": "QueryTime property", - "type": "integer", - "readOnly": true - }, - "numResults": { - "description": "NumResults property", - "type": "integer", - "readOnly": true - } - } - }, - "SearchAddressReverseCrossStreetResult": { - "type": "object", - "properties": { - "address": { - "$ref": "#/definitions/SearchResultAddress" - }, - "position": { - "type": "string", - "readOnly": true, - "description": "Position property in the form of \"{latitude},{longitude}\"" - } - } - }, - "SearchAddressStructuredResponse": { - "description": "This object is returned from a successful Search Address Structured call", - "type": "object", - "properties": { - "summary": { - "$ref": "#/definitions/SearchAddressStructuredSummary" - }, - "results": { - "description": "Results array", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/SearchAddressStructuredResult" - } - } - } - }, - "SearchAddressStructuredSummary": { - "description": "Summary object for a Search Address Structured response", - "type": "object", - "readOnly": true, - "properties": { - "query": { - "description": "Query property", - "type": "string", - "readOnly": true - }, - "queryType": { - "description": "QueryType property", - "type": "string", - "readOnly": true - }, - "queryTime": { - "description": "QueryTime property", - "type": "integer", - "readOnly": true - }, - "numResults": { - "description": "NumResults property", - "type": "integer", - "readOnly": true - }, - "limit": { - "description": "Maximum number of responses that will be returned", - "readOnly": true, - "type": "integer" - }, - "offset": { - "description": "Offset property", - "type": "integer", - "readOnly": true - }, - "totalResults": { - "description": "TotalResults property", - "type": "integer", - "readOnly": true - }, - "fuzzyLevel": { - "description": "FuzzyLevel property", - "type": "integer", - "readOnly": true - }, - "geoBias": { - "$ref": "#/definitions/SearchSummaryGeoBias" - } - } - }, - "SearchAddressStructuredResult": { - "type": "object", - "properties": { - "type": { - "description": "Type property", - "type": "string", - "readOnly": true - }, - "id": { - "description": "Id property", - "type": "string", - "readOnly": true - }, - "score": { - "$ref": "#/definitions/SearchResultScore" - }, - "dist": { - "$ref": "#/definitions/SearchResultDistance" - }, - "address": { - "$ref": "#/definitions/SearchResultAddress" - }, - "position": { - "$ref": "#/definitions/CoordinateAbbreviated" - }, - "viewport": { - "$ref": "#/definitions/SearchResultViewport" - }, - "entryPoints": { - "description": "Entry Points array", - "type": "array", - "items": { - "$ref": "#/definitions/SearchResultEntryPoint" - } - }, - "addressRanges": { - "$ref": "#/definitions/SearchResultAddressRanges" - } - } - }, - "SearchGeometryResponse": { - "description": "This object is returned from a successful Search By Geometry call", - "type": "object", - "properties": { - "summary": { - "$ref": "#/definitions/SearchGeometrySummary" - }, - "results": { - "description": "A list of Search Inside Geometry results.", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/SearchGeometryResult" - } - } - } - }, - "SearchGeometrySummary": { - "description": "Summary object for a Search Geometry response", - "type": "object", - "readOnly": true, - "properties": { - "query": { - "description": "Query property", - "type": "string", - "readOnly": true - }, - "queryType": { - "description": "QueryType property", - "type": "string", - "readOnly": true - }, - "queryTime": { - "description": "QueryTime property", - "type": "integer", - "readOnly": true - }, - "numResults": { - "description": "NumResults property", - "type": "integer", - "readOnly": true - }, - "offset": { - "description": "Offset property", - "type": "integer", - "readOnly": true - }, - "totalResults": { - "description": "TotalResults property", - "type": "integer", - "readOnly": true - }, - "fuzzyLevel": { - "description": "FuzzyLevel property", - "type": "integer", + "lon": { + "description": "Longitude property", + "type": "number", + "format": "double", "readOnly": true } } }, - "SearchGeometryResult": { - "description": "This type represents the Search Inside Geometry result object.", + "GeoJSONFeatureCollection": { + "description": "A valid `GeoJSON FeatureCollection` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.3) for details.", "type": "object", "properties": { "type": { - "description": "Type property", - "type": "string", - "readOnly": true - }, - "id": { - "description": "Id property", - "type": "string", - "readOnly": true - }, - "score": { - "$ref": "#/definitions/SearchResultScore" - }, - "info": { - "description": "Info property", - "type": "string", - "readOnly": true - }, - "entityType": { - "$ref": "#/definitions/EntityType" - }, - "poi": { - "$ref": "#/definitions/SearchResultPoi" - }, - "address": { - "$ref": "#/definitions/SearchResultAddress" - }, - "position": { - "$ref": "#/definitions/CoordinateAbbreviated" - }, - "viewport": { - "$ref": "#/definitions/SearchResultViewport" - }, - "entryPoints": { - "description": "Entry Points array", - "type": "array", - "items": { - "$ref": "#/definitions/SearchResultEntryPoint" - } - } - } - }, - "SearchAlongRouteResponse": { - "description": "This object is returned from a successful Search Along Route call.", - "type": "object", - "properties": { - "summary": { - "$ref": "#/definitions/SearchAlongRouteSummary" + "description": "Specifies the `type` for the object. Value should always be equal to \"FeatureCollection\".", + "type": "string" }, - "results": { - "description": "A list of Search Along Route results.", + "features": { + "description": "Contains a list of valid `GeoJSON Feature` objects.", "type": "array", - "readOnly": true, "items": { - "$ref": "#/definitions/SearchAlongRouteResult" + "description": "A valid `GeoJSON Feature` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.2) for details.", + "type": "object", + "properties": { + "type": { + "description": "Specifies the `type` for the object. Value should always be equal to \"Feature\".", + "type": "string" + }, + "geometry": { + "$ref": "../../../Common/common.json#/definitions/GeoJSONGeometry" + }, + "properties": { + "description": "Properties can contain any additional metadata about the `Feature`. Value can be any JSON object or a JSON null value", + "type": "object" + } + } } } - } + }, + "required": [ + "features", + "type" + ] }, - "SearchAlongRouteSummary": { - "description": "Summary object for a Search Along Route response", + "GeofenceGeometry": { + "description": "The geofencing geometry.", "type": "object", "readOnly": true, "properties": { - "query": { - "description": "Query property", + "deviceId": { + "description": "ID of the device.", "type": "string", "readOnly": true }, - "queryType": { - "description": "QueryType property", + "udId": { + "description": "The unique id returned from [Data Upload API](https://docs.microsoft.com/en-us/rest/api/maps/data/uploadPreview) after uploading a valid GeoJSON FeatureCollection object. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.3) for details. All the feature's properties should contain `geometryId`, which is used for identifying the geometry and is case-sensitive.", "type": "string", "readOnly": true }, - "queryTime": { - "description": "QueryTime property", - "type": "integer", + "geometryId": { + "description": "The unique id identifies a geometry.", + "type": "string", "readOnly": true }, - "numResults": { - "description": "NumResults property", - "type": "integer", + "distance": { + "description": "Distance from the coordinate to the closest border of the geofence. Positive means the coordinate is outside of the geofence. If the coordinate is outside of the geofence, but more than the value of searchBuffer away from the closest geofence border, then the value is 999. Negative means the coordinate is inside of the geofence. If the coordinate is inside the polygon, but more than the value of searchBuffer away from the closest geofencing border, then the value is -999. A value of 999 means that there is great confidence the coordinate is well outside the geofence. A value of -999 means that there is great confidence the coordinate is well within the geofence.", + "type": "number", "readOnly": true }, - "offset": { - "description": "Offset property", - "type": "integer", + "nearestLat": { + "description": "Latitude of the nearest point of the geometry.", + "type": "number", "readOnly": true }, - "totalResults": { - "description": "TotalResults property", - "type": "integer", + "nearestLon": { + "description": "Longitude of the nearest point of the geometry.", + "type": "number", "readOnly": true }, - "fuzzyLevel": { - "description": "FuzzyLevel property", - "type": "integer", + "nearestZ": { + "description": "Sea level in meter of the nearest point on the 2D extrusion geometry. This will only be presented in response when value is provided for 'zInMeter' in the request.", + "type": "number", "readOnly": true } } }, - "SearchAlongRouteResult": { - "description": "This type represents the Search Along Route result object.", + "GeofenceResponse": { + "description": "This object is returned from a geofence proximity call.", "type": "object", "properties": { - "type": { - "description": "Type property", - "type": "string", - "readOnly": true - }, - "id": { - "description": "Id property", - "type": "string", - "readOnly": true - }, - "score": { - "$ref": "#/definitions/SearchResultScore" - }, - "info": { - "description": "Info property", - "type": "string", - "readOnly": true - }, - "entityType": { - "$ref": "#/definitions/EntityType" - }, - "poi": { - "$ref": "#/definitions/SearchResultPoi" - }, - "address": { - "$ref": "#/definitions/SearchResultAddress" - }, - "position": { - "$ref": "#/definitions/CoordinateAbbreviated" - }, - "viewport": { - "$ref": "#/definitions/SearchResultViewport" + "geometries": { + "description": "Lists the fence geometries that contain the coordinate position or overlap the searchBuffer around the position.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/GeofenceGeometry" + } }, - "entryPoints": { - "description": "Entry Points array", + "expiredGeofenceGeometryId": { + "description": "Lists of the geometry ID of the geofence which is expired relative to the user time in the request.", "type": "array", + "readOnly": true, "items": { - "$ref": "#/definitions/SearchResultEntryPoint" + "type": "string" } }, - "dist": { - "$ref": "#/definitions/SearchResultDistance" + "invalidPeriodGeofenceGeometryId": { + "description": "Lists of the geometry ID of the geofence which is in invalid period relative to the user time in the request.", + "type": "array", + "readOnly": true, + "items": { + "type": "string" + } }, - "detourTime": { - "description": "Detour time in seconds", - "type": "number", + "isEventPublished": { + "description": "True if at least one event is published to the Azure Maps event subscriber, false if no event is published to the Azure Maps event subscriber. This will only be presented in response when 'isAsync' query parameter is set to true.", + "type": "boolean", "readOnly": true } } }, - "SearchInsideGeometryRequestBody": { - "description": "This type represents the request body for the Search Inside Geometry service.", + "BufferRequestBody": { + "description": "An object with a FeatureCollection and a list of distances. All the feature's properties should contain `geometryId`, which is used for identifying the geometry and is case-sensitive.", "type": "object", "properties": { - "geometry": { - "$ref": "#/definitions/Geometry" + "geometries": { + "$ref": "#/definitions/GeoJSONFeatureCollection" + }, + "distances": { + "description": "List of the distances to compute the buffer for, one-to-one per Feature in the collection, or one for all Features in the collection.", + "type": "array", + "items": { + "type": "number" + } } } }, - "SearchAlongRouteRequestBody": { - "description": "This type represents the request body for the Search Along Route service.", + "BufferResponse": { + "description": "This object is returned from a successful Spatial Buffer call.", "type": "object", "properties": { - "route": { - "$ref": "#/definitions/LineString" + "summary": { + "description": "Summary of the call.", + "type": "object", + "readOnly": true, + "properties": { + "udid": { + "description": "The udid for the user data if one exists", + "type": "string", + "readOnly": true + }, + "information": { + "description": "The information about what happened during the call.", + "type": "string", + "readOnly": true + } + } + }, + "result": { + "description": "The FeatureCollection of buffers for the input.", + "$ref": "#/definitions/GeoJSONFeatureCollection" } } }, - "SearchResultPoi": { - "description": "Details of the returned POI including information such as the name, phone, url address, and classifications.", + "BoundingBoxResponse": { + "description": "This object is returned from a successful Spatial BoundingBox call.", "type": "object", "properties": { - "name": { - "description": "Name of the POI property", - "type": "string", - "readOnly": true - }, - "phone": { - "description": "Telephone number property", - "type": "string", - "readOnly": true - }, - "url": { - "description": "Website URL property", - "type": "string", - "readOnly": true - }, - "categorySet": { - "description": "The list of the most specific POI categories", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/SearchResultPoiCategorySet" - } - }, - "categories": { - "description": "__[Deprecated]__ Use classifications instead. Categories array", - "type": "array", - "readOnly": true, - "items": { - "type": "string", - "readOnly": true - } - }, - "classifications": { - "description": "Classification array", - "type": "array", + "summary": { + "description": "Summary of the call.", + "type": "object", "readOnly": true, - "items": { - "$ref": "#/definitions/SearchResultPoiClassification" + "properties": { + "udid": { + "description": "The udid for the user data if one exists", + "type": "string", + "readOnly": true + }, + "information": { + "description": "The information about what happened during the call.", + "type": "string", + "readOnly": true + } } }, - "brands": { - "description": "Brands array. The name of the brand for the POI being returned.", - "type": "array", + "result": { + "description": "The bounding box of the input feature collection.", + "type": "object", "readOnly": true, - "items": { - "$ref": "#/definitions/SearchResultPoiBrand" + "properties": { + "feature": { + "description": "The resulting feature with bounding box geometry", + "type": "object", + "readOnly": true + } } - }, - "openingHours": { - "$ref": "#/definitions/SearchResultPoiOpeningHours" } } }, - "SearchResultPoiCategorySet": { - "description": "POI category", + "GetClosestPointResponse": { + "description": "This object is returned from a successful Get Spatial Closest Point call", "type": "object", "properties": { - "id": { - "description": "Category ID", - "type": "integer", - "readOnly": true + "summary": { + "$ref": "#/definitions/GetClosestPointSummary" + }, + "result": { + "$ref": "#/definitions/ClosestPointResult" } } }, - "SearchResultPoiClassification": { - "description": "The classification for the POI being returned", + "PostClosestPointResponse": { + "description": "This object is returned from a successful Post Spatial Closest Point call", "type": "object", "properties": { - "code": { - "description": "Code property", - "type": "string", - "readOnly": true + "summary": { + "$ref": "#/definitions/PostClosestPointSummary" }, - "names": { - "description": "Names array", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/SearchResultPoiClassificationName" - } + "result": { + "$ref": "#/definitions/ClosestPointResult" } } }, - "SearchResultPoiClassificationName": { - "description": "Name for the classification", + "GetClosestPointSummary": { + "description": "Get Closest Point Summary object", "type": "object", + "readOnly": true, "properties": { - "nameLocale": { - "description": "Name Locale property", + "sourcePoint": { + "$ref": "#/definitions/SpatialCoordinate" + }, + "udid": { + "description": "A unique data id (udid) for the uploaded content", "type": "string", "readOnly": true }, - "name": { - "description": "Name property", + "information": { + "description": "Processing information", "type": "string", "readOnly": true } } }, - "SearchResultPoiOpeningHours": { - "description": "Opening hours for a POI (Points of Interest).", + "PostClosestPointSummary": { + "description": "Post Closest Point Summary object", "type": "object", + "readOnly": true, "properties": { - "mode": { - "description": "Value used in the Request", + "sourcePoint": { + "$ref": "#/definitions/SpatialCoordinate" + }, + "udid": { + "description": "A unique data id (udid) for the uploaded content. Udid is not applicable for POST spatial operations(set to null)", "type": "string", "readOnly": true }, - "timeRanges": { - "description": "List of time ranges for the next 7 days", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/SearchResultPoiOpeningHoursTimeRange" - } + "information": { + "description": "Processing information", + "type": "string", + "readOnly": true } } }, - "SearchResultPoiOpeningHoursTimeRange": { - "description": "Open time range for a day", - "type": "object", - "properties": { - "startTime": { - "description": "The point in the next 7 days range when a given POI is being opened, or the beginning of the range if it was opened before the range.", - "$ref": "#/definitions/SearchResultPoiOpeningHoursTimeRangeTime" - }, - "endTime": { - "description": "The point in the next 7 days range when a given POI is being closed, or the beginning of the range if it was closed before the range.", - "$ref": "#/definitions/SearchResultPoiOpeningHoursTimeRangeTime" - } + "ClosestPointResult": { + "description": "Closest Point Result Array", + "type": "array", + "items": { + "$ref": "#/definitions/ClosestPointResultEntry" } }, - "SearchResultPoiOpeningHoursTimeRangeTime": { - "description": "Represents a date and time", + "ClosestPointResultEntry": { + "description": "Closest Point Result Entry Object", "type": "object", + "readOnly": true, "properties": { - "date": { - "description": "Represents current day in calendar year in POI time zone.", - "type": "string", + "distanceInMeters": { + "description": "The distance in meters from the source point to the closest point", + "type": "number", "readOnly": true }, - "hour": { - "description": "Hours are in the 24 hour format in the local time of a POI; possible values are 0 - 23.", - "type": "integer", - "readOnly": true + "position": { + "$ref": "#/definitions/SpatialCoordinate" }, - "minute": { - "description": "Minutes are in the local time of a POI; possible values are 0 - 59.", - "type": "integer", + "geometryId": { + "description": "The unique id identifies a geometry", + "type": "string", "readOnly": true } } }, - "SearchResultPoiBrand": { - "description": "The name of the brand for the POI being returned", + "GetPointInPolygonResponse": { + "description": "Returns true if point is within the polygon, false otherwise", "type": "object", "properties": { - "name": { - "description": "Name of the brand", - "type": "string", - "readOnly": true + "summary": { + "$ref": "#/definitions/GetPointInPolygonSummary" + }, + "result": { + "$ref": "#/definitions/PointInPolygonResult" } } }, - "SearchResultAddress": { - "description": "The address of the result", + "PostPointInPolygonResponse": { + "description": "Returns true if point is within the polygon, false otherwise", "type": "object", "properties": { - "buildingNumber": { - "description": "Building Number property", - "type": "string", - "readOnly": true - }, - "street": { - "description": "Street property", - "type": "string", - "readOnly": true - }, - "crossStreet": { - "description": "Cross Street property", - "type": "string", - "readOnly": true - }, - "streetNumber": { - "description": "Street Number property", - "type": "string", - "readOnly": true - }, - "routeNumbers": { - "description": "number of routes", - "type": "array", - "items": { - "type": "integer", - "readOnly": true - }, - "readOnly": true - }, - "streetName": { - "description": "Street Name property", - "type": "string", - "readOnly": true - }, - "streetNameAndNumber": { - "description": "Street Name and Number property", - "type": "string", - "readOnly": true - }, - "municipality": { - "description": "Municipality property", - "type": "string", - "readOnly": true - }, - "municipalitySubdivision": { - "description": "Municipality Subdivision property", - "type": "string", - "readOnly": true - }, - "countryTertiarySubdivision": { - "description": "Country Tertiary Subdivision property", - "type": "string", - "readOnly": true - }, - "countrySecondarySubdivision": { - "description": "Country Secondary Subdivision property", - "type": "string", - "readOnly": true - }, - "countrySubdivision": { - "description": "Country Subdivision property", - "type": "string", - "readOnly": true - }, - "postalCode": { - "description": "Postal Code property", - "type": "string", - "readOnly": true - }, - "extendedPostalCode": { - "description": "Extended Postal Code property", - "type": "string", - "readOnly": true - }, - "countryCode": { - "description": "Country Code property", - "type": "string", - "readOnly": true - }, - "country": { - "description": "Country property", - "type": "string", - "readOnly": true - }, - "countryCodeISO3": { - "description": "Country Code ISO3 property", - "type": "string", - "readOnly": true + "summary": { + "$ref": "#/definitions/PostPointInPolygonSummary" }, - "freeformAddress": { - "description": "Free form Address property", - "type": "string", - "readOnly": true + "result": { + "$ref": "#/definitions/PointInPolygonResult" + } + } + }, + "GetPointInPolygonSummary": { + "description": "Point In Polygon Summary object", + "type": "object", + "readOnly": true, + "properties": { + "sourcePoint": { + "$ref": "#/definitions/SpatialCoordinate" }, - "countrySubdivisionName": { - "description": "Country Subdivision Name property", + "udid": { + "description": "A unique data id (udid) for the uploaded content", "type": "string", "readOnly": true }, - "localName": { - "description": "An address component which represents the name of a geographic area or locality that groups a number of addressable objects for addressing purposes, without being an administrative unit. This field is used to build the `freeformAddress` property.", + "information": { + "description": "Processing information", "type": "string", "readOnly": true } } }, - "SearchResultViewport": { - "description": "The viewport that covers the result represented by the top-left and bottom-right coordinates of the viewport.", + "PostPointInPolygonSummary": { + "description": "Point In Polygon Summary object", "type": "object", + "readOnly": true, "properties": { - "topLeftPoint": { - "$ref": "#/definitions/CoordinateAbbreviated" + "sourcePoint": { + "$ref": "#/definitions/SpatialCoordinate" }, - "btmRightPoint": { - "$ref": "#/definitions/CoordinateAbbreviated" - } - } - }, - "SearchResultEntryPoint": { - "description": "The entry point for the POI being returned.", - "type": "object", - "properties": { - "type": { - "description": "The type of entry point. Value can be either _main_ or _minor_.", + "udid": { + "description": "A unique data id (udid) for the uploaded content. Udid is not applicable for POST spatial operations(set to null)", "type": "string", - "readOnly": true, - "enum": [ - "main", - "minor" - ] + "readOnly": true }, - "position": { - "$ref": "#/definitions/CoordinateAbbreviated" + "information": { + "description": "Processing information", + "type": "string", + "readOnly": true } } }, - "SearchResultAddressRanges": { - "description": "Describes the address range on both sides of the street for a search result. Coordinates for the start and end locations of the address range are included.", + "PointInPolygonResult": { + "description": "Point In Polygon Result Object", "type": "object", "properties": { - "rangeLeft": { - "type": "string" - }, - "rangeRight": { - "type": "string" - }, - "from": { - "$ref": "#/definitions/CoordinateAbbreviated" + "pointInPolygons": { + "description": "Point In Polygons Property", + "type": "boolean", + "readOnly": true }, - "to": { - "$ref": "#/definitions/CoordinateAbbreviated" + "intersectingGeometries": { + "description": "Geometries array", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/GeometryId" + } } } }, - "SearchResultScore": { - "description": "The value within a result set to indicate the relative matching score between results. You can use this to determine that result x is twice as likely to be as relevant as result y if the value of x is 2x the value of y. The values vary between queries and is only meant as a relative value for one result set.", - "type": "number", - "readOnly": true - }, - "SearchResultDistance": { - "description": "Straight line distance between the result and geobias location in meters.", - "type": "number", + "GeometryId": { + "description": "The Spatial geometry", + "type": "string", "readOnly": true }, - "SearchSummaryGeoBias": { - "description": "Indication when the internal search engine has applied a geospatial bias to improve the ranking of results. In some methods, this can be affected by setting the lat and lon parameters where available. In other cases it is purely internal.", + "GreatCircleDistanceResponse": { + "description": "This object is returned from a successful Great Circle Distance call", "type": "object", - "readOnly": true, "properties": { - "lat": { - "description": "Latitude property", - "type": "number", - "readOnly": true + "summary": { + "description": "Summary object", + "type": "object", + "readOnly": true, + "properties": { + "sourcePoint": { + "$ref": "#/definitions/SpatialCoordinate" + }, + "targetPoint": { + "$ref": "#/definitions/SpatialCoordinate" + } + } }, - "lon": { - "description": "Longitude property", - "type": "number", - "readOnly": true + "result": { + "description": "Result Object", + "type": "object", + "readOnly": true, + "properties": { + "distanceInMeters": { + "description": "The great circle distance in meters from the source point to the target point", + "type": "number", + "readOnly": true + } + } } } }, - "DataSources": { - "description": "Optional section. Reference ids for use with the [Get Search Polygon](https://docs.microsoft.com/rest/api/maps/search/getsearchpolygon) API.", + "UploadDataRequestBody": { + "description": "This type represents the request body for Spatial Data Upload.", + "type": "object" + }, + "UploadDataResponse": { + "description": "The response model for the spatial data upload API. Returns a unique data id (udid) for the uploaded content.", "type": "object", "properties": { - "geometry": { - "$ref": "#/definitions/DataSourcesGeometry" + "udid": { + "description": "A unique data id (udid) for the uploaded content.", + "type": "string", + "readOnly": true } } }, - "DataSourcesGeometry": { - "description": "Information about the geometric shape of the result. Only present if type == Geography.", + "UploadDataAcceptedResponse": { + "description": "The response model for the spatial data upload API. Returns the current status and a status URI.", "type": "object", "properties": { - "id": { - "description": "Pass this as geometryId to the [Get Search Polygon](https://docs.microsoft.com/rest/api/maps/search/getsearchpolygon) API to fetch geometry information for this result.", + "status": { + "description": "Current status of the long running upload operation.", "type": "string", "readOnly": true } } - }, - "EntityType": { - "description": "Geography entity type. Present only when entityType was requested and is available.", - "type": "string", - "enum": [ - "Country", - "CountrySubdivision", - "CountrySecondarySubdivision", - "CountryTertiarySubdivision", - "Municipality", - "MunicipalitySubdivision", - "Neighbourhood", - "PostalCodeArea" - ], - "x-ms-enum": { - "name": "EntityType", - "modelAsString": true, - "values": [ - { - "value": "Country", - "description": "Country name" - }, - { - "value": "CountrySubdivision", - "description": "State or Province" - }, - { - "value": "CountrySecondarySubdivision", - "description": "County" - }, - { - "value": "CountryTertiarySubdivision", - "description": "Named Area" - }, - { - "value": "Municipality", - "description": "City / Town" - }, - { - "value": "MunicipalitySubdivision", - "description": "Sub / Super City" - }, - { - "value": "Neighbourhood", - "description": "Neighbourhood" - }, - { - "value": "PostalCodeArea", - "description": "Postal Code / Zip Code" - } - ] - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json index 6b3c8366926e..9d1e315e8037 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json @@ -52,13 +52,13 @@ "400": { "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { - "$ref": "#/definitions/ODataErrorResponse" + "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" } }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", "schema": { - "$ref": "#/definitions/ODataErrorResponse" + "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" }, "headers": { "WWW-Authenticate": { @@ -70,19 +70,19 @@ "403": { "description": "Permission, capacity, or authentication issues.", "schema": { - "$ref": "#/definitions/ODataErrorResponse" + "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" } }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { - "$ref": "#/definitions/ODataErrorResponse" + "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" } }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { - "$ref": "#/definitions/ODataErrorResponse" + "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" } } }, @@ -938,42 +938,6 @@ } }, "definitions": { - "ODataErrorResponse": { - "type": "object", - "description": "This response object is returned when an error occurs in the Maps API.", - "properties": { - "error": { - "$ref": "#/definitions/ODataError" - } - } - }, - "ODataError": { - "type": "object", - "description": "This object is returned when an error occurs in the Maps API.", - "properties": { - "code": { - "type": "string", - "readOnly": true, - "description": "The ODataError code." - }, - "message": { - "type": "string", - "readOnly": true, - "description": "If available, a human readable description of the error." - }, - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/ODataError" - } - }, - "target": { - "type": "string", - "readOnly": true, - "description": "If available, the target causing the error." - } - } - }, "SpatialCoordinate": { "description": "A location represented as a latitude and longitude", "type": "object", @@ -1012,7 +976,7 @@ "type": "string" }, "geometry": { - "$ref": "#/definitions/GeoJSONGeometry" + "$ref": "../../../Common/common.json#/definitions/GeoJSONGeometry" }, "properties": { "description": "Properties can contain any additional metadata about the `Feature`. Value can be any JSON object or a JSON null value", @@ -1027,188 +991,6 @@ "type" ] }, - "GeoJSONGeometry": { - "description": "A valid `GeoJSON` geometry object. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1) for details.", - "type": "object", - "discriminator": "type", - "required": [ - "type" - ], - "properties": { - "type": { - "description": "Specifies the `GeoJSON` geometry type. Must be one of the seven valid GeoJSON geometry types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon and GeometryCollection.", - "type": "string", - "enum": [ - "Point", - "MultiPoint", - "LineString", - "MultiLineString", - "Polygon", - "MultiPolygon", - "GeometryCollection" - ], - "x-ms-enum": { - "name": "GeoJSONGeometryType", - "modelAsString": true, - "values": [ - { - "value": "Point", - "description": "`GeoJSON Point` geometry." - }, - { - "value": "MultiPoint", - "description": "`GeoJSON MultiPoint` geometry." - }, - { - "value": "LineString", - "description": "`GeoJSON LineString` geometry." - }, - { - "value": "MultiLineString", - "description": "`GeoJSON MultiLineString` geometry." - }, - { - "value": "Polygon", - "description": "`GeoJSON Polygon` geometry." - }, - { - "value": "MultiPolygon", - "description": "`GeoJSON MultiPolygon` geometry." - }, - { - "value": "GeometryCollection", - "description": "`GeoJSON GeometryCollection` geometry." - } - ] - } - } - } - }, - "Point": { - "description": "A valid `GeoJSON Point` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.2) for details.", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJSONGeometry" - }, - { - "properties": { - "type": { - "description": "Specifies the `type` for the geometry. Value should always be equal to \"Point\".", - "type": "string" - }, - "coordinates": { - "$ref": "#/definitions/GeoJSONPosition" - } - }, - "required": [ - "coordinates" - ] - } - ] - }, - "MultiLineString": { - "description": "A valid `GeoJSON MultiLineString` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.5) for details.", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJSONGeometry" - }, - { - "properties": { - "type": { - "description": "Specifies the `type` for the geometry. Value should always be equal to \"MultiLineString\".", - "type": "string" - }, - "coordinates": { - "description": "Coordinates for the `MultiLineString` geometry.", - "type": "array", - "items": { - "type": "array", - "items": { - "$ref": "#/definitions/GeoJSONPosition" - } - } - } - }, - "required": [ - "coordinates" - ] - } - ] - }, - "Polygon": { - "description": "A valid `GeoJSON Polygon` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.6) for details.", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJSONGeometry" - }, - { - "properties": { - "type": { - "description": "Specifies the `type` for the object. Value should always be equal to \"Polygon\".", - "type": "string" - }, - "coordinates": { - "description": "Coordinates for the `Polygon` geometry type.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJSONLinearRing" - } - } - }, - "required": [ - "coordinates" - ] - } - ] - }, - "MultiPolygon": { - "description": "A valid `GeoJSON MultiPolygon` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.7) for details.", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJSONGeometry" - }, - { - "properties": { - "type": { - "description": "Specifies the `type` for the object. Value should always be equal to \"MultiPolygon\".", - "type": "string" - }, - "coordinates": { - "description": "Contains a list of valid `GeoJSON` Polygon objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude).", - "type": "array", - "items": { - "type": "array", - "items": { - "$ref": "#/definitions/GeoJSONLinearRing" - } - } - } - }, - "required": [ - "coordinates" - ] - } - ] - }, - "GeoJSONLinearRing": { - "description": "Though a linear ring is not explicitly represented as a GeoJSON geometry type, it helps in defining the polygon as an array of linear rings. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.6) for details.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJSONPosition" - } - }, - "GeoJSONPosition": { - "description": "A valid `GeoJSON Position` geometry type. A `Position` is an array of numbers with two or more elements. The first two elements are _longitude_ and _latitude_, precisely in that order. _Altitude/Elevation_ is an optional third element. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.1) for details.", - "type": "array", - "items": { - "type": "number", - "format": "double" - } - }, "GeofenceGeometry": { "description": "The geofencing geometry.", "type": "object", diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json index 804c435ff954..47943cf2bc9b 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json @@ -49,13 +49,13 @@ "400": { "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { - "$ref": "#/definitions/ODataErrorResponse" + "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" } }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", "schema": { - "$ref": "#/definitions/ODataErrorResponse" + "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" }, "headers": { "WWW-Authenticate": { @@ -67,25 +67,25 @@ "403": { "description": "Permission, capacity, or authentication issues.", "schema": { - "$ref": "#/definitions/ODataErrorResponse" + "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" } }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { - "$ref": "#/definitions/ODataErrorResponse" + "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" } }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { - "$ref": "#/definitions/ODataErrorResponse" + "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" } }, "201Async": { "description": "The resource has been created successfully.", "schema": { - "$ref": "#/definitions/LongRunningOperationResult" + "$ref": "../../../Common/common.json#/definitions/LongRunningOperationResult" }, "headers": { "Location": { @@ -236,6 +236,12 @@ } ], "responses": { + "200": { + "description": "Status 200 not expected", + "schema": { + "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" + } + }, "201": { "$ref": "#/responses/201Async" }, @@ -357,101 +363,6 @@ } }, "definitions": { - "ODataErrorResponse": { - "type": "object", - "description": "This response object is returned when an error occurs in the Maps API.", - "properties": { - "error": { - "$ref": "#/definitions/ODataError" - } - } - }, - "ODataError": { - "type": "object", - "description": "This object is returned when an error occurs in the Maps API.", - "properties": { - "code": { - "type": "string", - "readOnly": true, - "description": "The ODataError code." - }, - "message": { - "type": "string", - "readOnly": true, - "description": "If available, a human readable description of the error." - }, - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/ODataError" - } - }, - "target": { - "type": "string", - "readOnly": true, - "description": "If available, the target causing the error." - } - } - }, - "LongRunningOperationResult": { - "description": "The response model for a Long-Running Operations API.", - "type": "object", - "properties": { - "operationId": { - "description": "The Id for this long-running operation.", - "type": "string" - }, - "status": { - "description": "The status state of the request.", - "type": "string", - "enum": [ - "NotStarted", - "Running", - "Failed", - "Succeeded" - ], - "x-ms-enum": { - "name": "type", - "modelAsString": true, - "values": [ - { - "value": "NotStarted", - "description": "The request has not started processing yet." - }, - { - "value": "Running", - "description": "The request has started processing." - }, - { - "value": "Failed", - "description": "The request has one or more failures." - }, - { - "value": "Succeeded", - "description": "The request has successfully completed." - } - ] - }, - "readOnly": true - }, - "created": { - "description": "The created timestamp.", - "type": "string", - "readOnly": true - }, - "resourceLocation": { - "description": "The location URI for details about the created resource. This is only provided when the request was successfully completed.", - "type": "string", - "readOnly": true - }, - "error": { - "$ref": "#/definitions/ODataError" - }, - "warning": { - "$ref": "#/definitions/ODataError" - } - } - }, "TilesetListResponse": { "description": "The response model for the Tileset List API. Returns a list of all tilesets.", "type": "object", diff --git a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json index 057164c29159..1f55338c4942 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json +++ b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json @@ -43,13 +43,13 @@ "400": { "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { - "$ref": "#/definitions/ODataErrorResponse" + "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" } }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", "schema": { - "$ref": "#/definitions/ODataErrorResponse" + "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" }, "headers": { "WWW-Authenticate": { @@ -61,19 +61,19 @@ "403": { "description": "Permission, capacity, or authentication issues.", "schema": { - "$ref": "#/definitions/ODataErrorResponse" + "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" } }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { - "$ref": "#/definitions/ODataErrorResponse" + "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" } }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { - "$ref": "#/definitions/ODataErrorResponse" + "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" } } }, @@ -569,42 +569,6 @@ } }, "definitions": { - "ODataErrorResponse": { - "type": "object", - "description": "This response object is returned when an error occurs in the Maps API.", - "properties": { - "error": { - "$ref": "#/definitions/ODataError" - } - } - }, - "ODataError": { - "type": "object", - "description": "This object is returned when an error occurs in the Maps API.", - "properties": { - "code": { - "type": "string", - "readOnly": true, - "description": "The ODataError code." - }, - "message": { - "type": "string", - "readOnly": true, - "description": "If available, a human readable description of the error." - }, - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/ODataError" - } - }, - "target": { - "type": "string", - "readOnly": true, - "description": "If available, the target causing the error." - } - } - }, "Country": { "type": "object", "description": "A country record.", diff --git a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json index 627c49762551..dc9183ac5524 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json +++ b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json @@ -52,13 +52,13 @@ "400": { "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { - "$ref": "#/definitions/ODataErrorResponse" + "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" } }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", "schema": { - "$ref": "#/definitions/ODataErrorResponse" + "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" }, "headers": { "WWW-Authenticate": { @@ -70,19 +70,19 @@ "403": { "description": "Permission, capacity, or authentication issues.", "schema": { - "$ref": "#/definitions/ODataErrorResponse" + "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" } }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { - "$ref": "#/definitions/ODataErrorResponse" + "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" } }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { - "$ref": "#/definitions/ODataErrorResponse" + "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" } } }, @@ -838,42 +838,6 @@ } }, "definitions": { - "ODataErrorResponse": { - "type": "object", - "description": "This response object is returned when an error occurs in the Maps API.", - "properties": { - "error": { - "$ref": "#/definitions/ODataError" - } - } - }, - "ODataError": { - "type": "object", - "description": "This object is returned when an error occurs in the Maps API.", - "properties": { - "code": { - "type": "string", - "readOnly": true, - "description": "The ODataError code." - }, - "message": { - "type": "string", - "readOnly": true, - "description": "If available, a human readable description of the error." - }, - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/ODataError" - } - }, - "target": { - "type": "string", - "readOnly": true, - "description": "If available, the target causing the error." - } - } - }, "Coordinate": { "description": "A location represented as a latitude and longitude.", "type": "object", diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json index b3f019323d54..0c4c069906e8 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json @@ -59,13 +59,13 @@ "400": { "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { - "$ref": "#/definitions/ODataErrorResponse" + "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" } }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", "schema": { - "$ref": "#/definitions/ODataErrorResponse" + "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" }, "headers": { "WWW-Authenticate": { @@ -77,19 +77,19 @@ "403": { "description": "Permission, capacity, or authentication issues.", "schema": { - "$ref": "#/definitions/ODataErrorResponse" + "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" } }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { - "$ref": "#/definitions/ODataErrorResponse" + "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" } }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { - "$ref": "#/definitions/ODataErrorResponse" + "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" } } }, @@ -604,62 +604,15 @@ }, "500": { "$ref": "#/responses/500" + }, + "default": { + "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" } } } } }, "definitions": { - "ODataErrorResponse": { - "type": "object", - "description": "This response object is returned when an error occurs in the Maps API.", - "properties": { - "error": { - "$ref": "#/definitions/ODataError" - } - } - }, - "ODataError": { - "type": "object", - "description": "This object is returned when an error occurs in the Maps API.", - "properties": { - "code": { - "type": "string", - "readOnly": true, - "description": "The ODataError code." - }, - "message": { - "type": "string", - "readOnly": true, - "description": "If available, a human readable description of the error." - }, - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/ODataError" - } - }, - "target": { - "type": "string", - "readOnly": true, - "description": "If available, the target causing the error." - } - } - }, - "Exception": { - "type": "object", - "required": [ - "code" - ], - "properties": { - "code": { - "type": "string" - }, - "description": { - "type": "string" - } - } - }, "Root": { "type": "object", "required": [ diff --git a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json index 16dc39630f47..a6701a7096e8 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json +++ b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json @@ -41,13 +41,13 @@ "400": { "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { - "$ref": "#/definitions/ODataErrorResponse" + "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" } }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", "schema": { - "$ref": "#/definitions/ODataErrorResponse" + "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" }, "headers": { "WWW-Authenticate": { @@ -59,19 +59,19 @@ "403": { "description": "Permission, capacity, or authentication issues.", "schema": { - "$ref": "#/definitions/ODataErrorResponse" + "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" } }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { - "$ref": "#/definitions/ODataErrorResponse" + "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" } }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { - "$ref": "#/definitions/ODataErrorResponse" + "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" } } }, @@ -705,42 +705,6 @@ } }, "definitions": { - "ODataErrorResponse": { - "type": "object", - "description": "This response object is returned when an error occurs in the Maps API.", - "properties": { - "error": { - "$ref": "#/definitions/ODataError" - } - } - }, - "ODataError": { - "type": "object", - "description": "This object is returned when an error occurs in the Maps API.", - "properties": { - "code": { - "type": "string", - "readOnly": true, - "description": "The ODataError code." - }, - "message": { - "type": "string", - "readOnly": true, - "description": "If available, a human readable description of the error." - }, - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/ODataError" - } - }, - "target": { - "type": "string", - "readOnly": true, - "description": "If available, the target causing the error." - } - } - }, "WeatherUnit": { "type": "object", "properties": { From ca6a59c5bb6d3bfc20c4eb66575bb52c9bf29895 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Tue, 16 Mar 2021 05:45:59 -0700 Subject: [PATCH 002/210] Update correctly the search api --- .../Search/preview/1.0/search.json | 3227 +++++++++++++---- 1 file changed, 2610 insertions(+), 617 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json index 823e94bc5400..c76e4ba31d36 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json @@ -1,9 +1,9 @@ { "swagger": "2.0", "info": { - "title": "Azure Maps Spatial Service", + "title": "Azure Maps Search Service", "version": "1.0", - "description": "Azure Maps Spatial REST APIs" + "description": "Azure Maps Search REST APIs" }, "host": "atlas.microsoft.com", "schemes": [ @@ -84,6 +84,15 @@ "schema": { "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" } + }, + "202Async": { + "description": "**Supported only for async request.**\nRequest Accepted: The request has been accepted for processing. Please use the URL in the Location Header to retry or access the results.", + "headers": { + "Location": { + "type": "string", + "description": "New URL to check for the results of the long running process." + } + } } }, "parameters": { @@ -159,56 +168,328 @@ }, "x-ms-parameter-location": "method" }, - "Mode": { - "name": "mode", + "LimitSearch": { + "name": "limit", + "in": "query", + "description": "Maximum number of responses that will be returned. Default: 10, minimum: 1 and maximum: 100", + "required": false, + "type": "integer", + "default": 10, + "minimum": 1, + "maximum": 100, + "x-ms-parameter-location": "method" + }, + "Offset": { + "name": "ofs", + "in": "query", + "description": "Starting offset of the returned results within the full result set. Default: 0, minimum: 0 and maximum: 1900", + "required": false, + "type": "integer", + "default": 0, + "minimum": 0, + "maximum": 1900, + "x-ms-parameter-location": "method" + }, + "OptionalBiasLat": { + "name": "lat", + "in": "query", + "description": "Latitude where results should be biased. E.g. 37.337", + "required": false, + "type": "number", + "x-ms-parameter-location": "method" + }, + "OptionalBiasLon": { + "name": "lon", + "in": "query", + "description": "Longitude where results should be biased. E.g. -121.89", + "required": false, + "type": "number", + "x-ms-parameter-location": "method" + }, + "BoundingBoxTopLeft": { + "x-client-name": "BoundingBoxTopLeft", + "name": "topLeft", "in": "query", - "description": "Mode of the geofencing async event mechanism.", + "description": "Top left position of the bounding box. E.g. 37.553,-122.453", "required": false, "type": "string", - "enum": [ - "All", - "EnterAndExit" - ], - "x-ms-enum": { - "name": "GeofenceMode", - "modelAsString": false, - "values": [ - { - "value": "All", - "description": "Publish all the query results to Azure Maps account event subscription." - }, - { - "value": "EnterAndExit", - "description": "Only publish result when user location is considered as crossing geofencing boarder." - } - ] - }, "x-ms-parameter-location": "method" }, - "UdidSpatial": { - "name": "udid", + "BoundingBoxBottomRight": { + "x-client-name": "BoundingBoxBottomRight", + "name": "btmRight", + "in": "query", + "description": "Bottom right position of the bounding box. E.g. 37.553,-122.453", + "required": false, + "type": "string", + "x-ms-parameter-location": "method" + }, + "RequiredBiasLat": { + "name": "lat", + "in": "query", + "description": "Latitude where results should be biased. E.g. 37.337.", + "required": true, + "type": "number", + "x-ms-parameter-location": "method" + }, + "RequiredBiasLon": { + "name": "lon", + "in": "query", + "description": "Longitude where results should be biased. E.g. -121.89.", + "required": true, + "type": "number", + "x-ms-parameter-location": "method" + }, + "Language": { + "name": "language", + "in": "query", + "description": "Language in which search results should be returned. Should be one of supported IETF language tags, case insensitive. When data in specified language is not available for a specific field, default language is used.\n\nPlease refer to [Supported Languages](https://docs.microsoft.com/en-us/azure/azure-maps/supported-languages) for details.", + "required": false, + "type": "string", + "x-ms-parameter-location": "method" + }, + "Query": { + "name": "query", + "in": "query", + "description": "The applicable query string. Must be properly URL encoded.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "Position": { + "name": "query", "in": "query", - "description": "The unique id returned from [Data Upload API](https://docs.microsoft.com/en-us/rest/api/maps/data/uploadPreview) after uploading a valid GeoJSON FeatureCollection object. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.3) for details. All the feature's properties should contain `geometryId`, which is used for identifying the geometry and is case-sensitive.", + "description": "The applicable query specified as a comma separated string composed by latitude followed by longitude e.g. \"47.641268,-122.125679\".", "required": true, "type": "string", "x-ms-parameter-location": "method" }, - "SpatialDataUploadFormat": { - "name": "dataFormat", - "description": "Data format of the content being uploaded. Currently, only `geojson` format is supported.", + "View": { + "name": "view", + "in": "query", + "description": "The View parameter specifies which set of geopolitically disputed content is returned via Azure Maps services, including borders and labels displayed on the map. The View parameter (also referred to as “user region parameter”) will show the correct maps for that country/region. By default, the View parameter is set to “Unified” even if you haven’t defined it in the request. It is your responsibility to determine the location of your users, and then set the View parameter correctly for that location. Alternatively, you have the option to set ‘View=Auto’, which will return the map data based on the IP address of the request. The View parameter in Azure Maps must be used in compliance with applicable laws, including those regarding mapping, of the country where maps, images and other data and third party content that you are authorized to access via Azure Maps is made available. Example: view=IN.\n\nPlease refer to [Supported Views](https://aka.ms/AzureMapsLocalizationViews) for details and to see the available Views.", + "required": false, + "type": "string", + "x-ms-parameter-location": "method" + }, + "SearchIndexSet": { + "name": "idxSet", + "in": "query", + "description": "A comma separated list of indexes which should be utilized for the search. Item order does not matter. Available indexes are: Addr = Address range interpolation, Geo = Geographies, PAD = Point Addresses, POI = Points of interest, Str = Streets, Xstr = Cross Streets (intersections)", + "required": false, + "type": "array", + "items": { + "type": "string", + "enum": [ + "Addr", + "Geo", + "PAD", + "POI", + "Str", + "Xstr" + ], + "x-ms-enum": { + "name": "SearchIndexSet", + "modelAsString": false, + "values": [ + { + "value": "Addr", + "description": "Address range interpolation" + }, + { + "value": "Geo", + "description": "Geographies" + }, + { + "value": "PAD", + "description": "Point Addresses" + }, + { + "value": "POI", + "description": "Points of interest" + }, + { + "value": "Str", + "description": "Streets" + }, + { + "value": "Xstr", + "description": "Cross Streets (Intersections)" + } + ] + } + }, + "collectionFormat": "csv", + "x-ms-parameter-location": "method" + }, + "ExtendedPostalCodesFor": { + "name": "extendedPostalCodesFor", + "in": "query", + "description": "Indexes for which extended postal codes should be included in the results.\n\nAvailable indexes are: \n\n **Addr** = Address ranges \n\n **Geo** = Geographies \n\n **PAD** = Point Addresses \n\n **POI** = Points of Interest \n\n **Str** = Streets \n\n **XStr** = Cross Streets (intersections)\n\nValue should be a comma separated list of index types (in any order) or **None** for no indexes.\n\nBy default extended postal codes are included for all indexes except Geo. Extended postal code lists for geographies can be quite long so they have to be explicitly requested when needed.\n\nUsage examples:\n\n extendedPostalCodesFor=POI \n\n extendedPostalCodesFor=PAD,Addr,POI \n\n extendedPostalCodesFor=None\n\nExtended postal code is returned as an **extendedPostalCode** property of an address. Availability is region-dependent.", + "required": false, + "type": "string", + "x-ms-parameter-location": "method" + }, + "ExtendedPostalCodesForPoi": { + "name": "extendedPostalCodesFor", + "in": "query", + "description": "Indexes for which extended postal codes should be included in the results.\n\nAvailable indexes are: \n\n **POI** = Points of Interest \n\nValue should be **POI** or **None** to disable extended postal codes.\n\nBy default extended postal codes are included.\n\nUsage examples:\n\n extendedPostalCodesFor=POI \n\n extendedPostalCodesFor=None\n\nExtended postal code is returned as an **extendedPostalCode** property of an address. Availability is region-dependent.", + "required": false, "type": "string", + "x-ms-parameter-location": "method" + }, + "Typeahead": { + "name": "typeahead", + "in": "query", + "description": "Boolean. If the typeahead flag is set, the query will be interpreted as a partial input and the search will enter predictive mode", + "required": false, + "type": "boolean", + "default": false, + "x-ms-parameter-location": "method" + }, + "CategorySet": { + "name": "categorySet", + "in": "query", + "description": "A comma-separated list of category set IDs which could be used to restrict the result to specific Points of Interest categories. ID order does not matter. When multiple category identifiers are provided, only POIs that belong to (at least) one of the categories from the provided list will be returned. The list of supported categories can be discovered using  [POI Categories API](https://aka.ms/AzureMapsPOICategoryTree). Usage examples: \n\n* **categorySet=7315** (Search Points of Interest from category Restaurant)\n\n* **categorySet=7315025,7315017** (Search Points of Interest of category either Italian or French Restaurant) ", + "required": false, + "type": "array", + "items": { + "type": "integer" + }, + "collectionFormat": "csv", + "x-ms-parameter-location": "method" + }, + "CountrySet": { + "name": "countrySet", + "in": "query", + "description": "Comma separated string of country codes, e.g. FR,ES. This will limit the search to the specified countries", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "csv", + "x-ms-parameter-location": "method" + }, + "Radius": { + "name": "radius", "in": "query", + "description": "The radius in meters to for the results to be constrained to the defined area", + "required": false, + "type": "number", + "x-ms-parameter-location": "method" + }, + "PoiQuery": { + "name": "query", + "in": "query", + "description": "The POI name to search for (e.g., \"statue of liberty\", \"starbucks\", \"pizza\"). Must be properly URL encoded.", "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "BrandSet": { + "name": "brandSet", + "in": "query", + "description": "A comma-separated list of brand names which could be used to restrict the result to specific brands. Item order does not matter. When multiple brands are provided, only results that belong to (at least) one of the provided list will be returned. Brands that contain a \",\" in their name should be put into quotes.\n\nUsage examples:\n\n brandSet=Foo\n\n brandSet=Foo,Bar\n\n brandSet=\"A,B,C Comma\",Bar", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "csv", + "x-ms-parameter-location": "method" + }, + "ConnectorSet": { + "name": "connectorSet", + "in": "query", + "description": "A comma-separated list of connector types which could be used to restrict the result to Electric Vehicle Station supporting specific connector types. Item order does not matter. When multiple connector types are provided, only results that belong to (at least) one of the provided list will be returned.\n\nAvailable connector types are:\n * `StandardHouseholdCountrySpecific` - These are the standard household connectors for a certain region. They are all AC single phase and the standard Voltage and standard Amperage. See also: [Plug & socket types - World Standards](https://www.worldstandards.eu/electricity/plugs-and-sockets).\n * `IEC62196Type1` - Type 1 connector as defined in the IEC 62196-2 standard. Also called Yazaki after the original manufacturer or SAE J1772 after the standard that first published it. Mostly used in combination with 120V single phase or up to 240V single phase infrastructure.\n * `IEC62196Type1CCS` - Type 1 based combo connector as defined in the IEC 62196-3 standard. The connector is based on the Type 1 connector – as defined in the IEC 62196-2 standard – with two additional direct current (DC) contacts to allow DC fast charging.\n * `IEC62196Type2CableAttached` - Type 2 connector as defined in the IEC 62196-2 standard. Provided as a cable and plug attached to the charging point.\n * `IEC62196Type2Outlet` - Type 2 connector as defined in the IEC 62196-2 standard. Provided as a socket set into the charging point.\n * `IEC62196Type2CCS` - Type 2 based combo connector as defined in the IEC 62196-3 standard. The connector is based on the Type 2 connector – as defined in the IEC 62196-2 standard – with two additional direct current (DC) contacts to allow DC fast charging.\n * `IEC62196Type3` - Type 3 connector as defined in the IEC 62196-2 standard. Also called Scame after the original manufacturer. Mostly used in combination with up to 240V single phase or up to 420V three phase infrastructure.\n * `Chademo` - CHAdeMO connector named after an association formed by the Tokyo Electric Power Company and industrial partners. Because of this is is also known as the TEPCO's connector. It supports fast DC charging.\n * `IEC60309AC1PhaseBlue` - Industrial Blue connector is a connector defined in the IEC 60309 standard. It is sometime referred to as by some combination of the standard, the color and the fact that is a single phase connector. The connector usually has the \"P+N+E, 6h\" configuration.\n * `IEC60309DCWhite` - Industrial White connector is a DC connector defined in the IEC 60309 standard.\n * `Tesla` - The Tesla connector is the regionally specific Tesla Supercharger connector. I.e. it refers to either Tesla's proprietary connector, sometimes referred to as Tesla Port mostly limited to North America or the modified Type 2 (DC over Type 2) in Europe.\n\nUsage examples:\n\n connectorSet=IEC62196Type2CableAttached\n connectorSet=IEC62196Type2Outlet,IEC62196Type2CableAttached", + "required": false, + "type": "array", + "items": { + "type": "string", + "enum": [ + "StandardHouseholdCountrySpecific", + "IEC62196Type1", + "IEC62196Type1CCS", + "IEC62196Type2CableAttached", + "IEC62196Type2Outlet", + "IEC62196Type2CCS", + "IEC62196Type3", + "Chademo", + "IEC60309AC1PhaseBlue", + "IEC60309DCWhite", + "Tesla" + ], + "x-ms-enum": { + "name": "ConnectorSet", + "modelAsString": false, + "values": [ + { + "value": "StandardHouseholdCountrySpecific", + "description": "These are the standard household connectors for a certain region. They are all AC single phase and the standard Voltage and standard Amperage.\n\nSee also: [Plug & socket types - World Standards](https://www.worldstandards.eu/electricity/plugs-and-sockets)" + }, + { + "value": "IEC62196Type1", + "description": "Type 1 connector as defined in the IEC 62196-2 standard. Also called Yazaki after the original manufacturer or SAE J1772 after the standard that first published it. Mostly used in combination with 120V single phase or up to 240V single phase infrastructure." + }, + { + "value": "IEC62196Type1CCS", + "description": "Type 1 based combo connector as defined in the IEC 62196-3 standard. The connector is based on the Type 1 connector – as defined in the IEC 62196-2 standard – with two additional direct current (DC) contacts to allow DC fast charging." + }, + { + "value": "IEC62196Type2CableAttached", + "description": "Type 2 connector as defined in the IEC 62196-2 standard. Provided as a cable and plug attached to the charging point" + }, + { + "value": "IEC62196Type2Outlet", + "description": "Type 2 connector as defined in the IEC 62196-2 standard. Provided as a socket set into the charging point." + }, + { + "value": "IEC62196Type2CCS", + "description": "Type 2 based combo connector as defined in the IEC 62196-3 standard. The connector is based on the Type 2 connector – as defined in the IEC 62196-2 standard – with two additional direct current (DC) contacts to allow DC fast charging." + }, + { + "value": "IEC62196Type3", + "description": "Type 3 connector as defined in the IEC 62196-2 standard. Also called Scame after the original manufacturer. Mostly used in combination with up to 240V single phase or up to 420V three phase infrastructure." + }, + { + "value": "Chademo", + "description": "CHAdeMO connector named after an association formed by the Tokyo Electric Power Company and industrial partners. Because of this is is also known as the TEPCO's connector. It supports fast DC charging." + }, + { + "value": "IEC60309AC1PhaseBlue", + "description": "Industrial Blue connector is a connector defined in the IEC 60309 standard. It is sometime referred to as by some combination of the standard, the color and the fact that is a single phase connector. The connector usually has the \"P+N+E, 6h\" configuration." + }, + { + "value": "IEC60309DCWhite", + "description": "Industrial White connector is a DC connector defined in the IEC 60309 standard." + }, + { + "value": "Tesla", + "description": "The Tesla connector is the regionally specific Tesla Supercharger connector. I.e. it refers to either Tesla's proprietary connector, sometimes referred to as Tesla Port mostly limited to North America or the modified Type 2 (DC over Type 2) in Europe." + } + ] + } + }, + "collectionFormat": "csv", + "x-ms-parameter-location": "method" + }, + "OpeningHours": { + "name": "openingHours", + "description": "Hours of operation for a POI (Points of Interest). The availability of hours of operation will vary based on the data available.\nSupported value: nextSevenDays", + "type": "string", + "in": "query", + "required": false, "enum": [ - "geojson" + "nextSevenDays" ], "x-ms-enum": { - "name": "SpatialDataUploadFormat", - "modelAsString": true, + "name": "OpeningHours", + "modelAsString": false, "values": [ { - "value": "geojson", - "description": "[GeoJSON](https://tools.ietf.org/html/rfc7946) is a JSON based geospatial data interchange format." + "value": "nextSevenDays", + "description": "Shows the hours of operation for the next week, starting with the current day in the local time of the POI." } ] }, @@ -216,14 +497,14 @@ } }, "paths": { - "/spatial/geofence/{format}": { + "/search/polygon/{format}": { "get": { "x-publish": true, - "description": "**Search Geofence Get API**\n\n**Applies to:** S1 Pricing tier.\n\nThe Geofence Get API allows you to retrieve the proximity of a coordinate to a \ngeofence that has been uploaded to the Data service. You can use the \n[Data Upload API](https://docs.microsoft.com/en-us/rest/api/maps/data/uploadPreview) to upload \na geofence or set of fences. See [Geofencing GeoJSON data](https://docs.microsoft.com/en-us/azure/azure-maps/geofence-geojson) \nfor more details on the geofence data format. To query the proximity of a coordinate, you supply the location of the object you are tracking as well\nas the ID for the fence or set of fences, and the response will contain information about\nthe distance from the outer edge of the geofence. A negative value signifies that the \ncoordinate is inside of the fence while a positive value means that it is outside of the\nfence.

This API can be used for a variety of scenarios that include things like asset \ntracking, fleet management, or setting up alerts for moving objects.\n\nThe API supports [integration with Event Grid](https://docs.microsoft.com/azure/azure-maps/azure-maps-event-grid-integration). The isAsync parameter is used to enable integration with Event Grid (disabled by default).\nTo test this API, you can upload the sample data from Post Geofence API examples(Request Body) via Data Upload API and replace the [udid] from the sample request below with the udid returned by Data Upload API.\n\n\n### Geofencing InnerError code\n\nIn geofencing response error contract, `innererror` is an object containing service specific information about the error. `code` is a property in `innererror` which can map to a specific geofencing error type. The table belows shows the code mapping between all the known client error type to the corresponding geofencing error `message`.\n\ninnererror.code | error.message\n---------------------------- | -------------------------------------- \nNullDeviceId | Device Id should not be null.\nNullUdid\t | Udid should not be null.\nUdidWrongFormat| Udid should be acquired from user data ingestion API.\nInvalidUserTime| Usertime is invalid.\nInvalidSearchBuffer| Searchbuffer is invalid.\nInvalidSearchRange| The value range of searchbuffer should be from 0 to 500 meters.\nInvalidLatLon| Lat and/or lon parameters are invalid.\nInvalidIsAsyncValue| The IsAsync parameter is invalid.\nInvalidModeValue| The mode parameter invalid.\nInvalidJson| Geofencing data is not a valid json file.\nNotSupportedGeoJson| Geofencing data can't be read as a Feature or FeatureCollections.\nInvalidGeoJson| Geofencing data is invalid.\nNoUserDataWithAccountOrSubscription| Can't find user geofencing data with provided account-id and/or subscription-id.\nNoUserDataWithUdid|\tCan't find user geofencing data with provided udId.", - "operationId": "Spatial_GetGeofence", + "description": "**Get Polygon**\n\n\n**Applies to**: S1 pricing tier.\n\n\nThe Get Polygon service allows you to request the geometry data such as a city or country outline for a set of entities, previously retrieved from an Online Search request in GeoJSON format. The geometry ID is returned in the dataSources object under \"geometry\" and \"id\" in either a Search Address or Search Fuzzy call.\n\nPlease note that any geometry ID retrieved from an Online Search endpoint has a limited lifetime. The client should not store geometry IDs in persistent storage for later referral, as the stability of these identifiers is not guaranteed for a long period of time. It is expected that a request to the Polygon method is made within a few minutes of the request to the Online Search method that provided the ID. The service allows for batch requests up to 20 identifiers.", + "operationId": "Search_GetSearchPolygon", "x-ms-examples": { - "Geofence": { - "$ref": "./examples/GetGeofence.json" + "Get the Geometry using the geometry id returned by the previous Search": { + "$ref": "./examples/GetSearchPolygon.json" } }, "parameters": [ @@ -240,83 +521,19 @@ "$ref": "#/parameters/JsonFormat" }, { - "name": "deviceId", - "in": "query", - "description": "ID of the device", - "required": true, - "type": "string" - }, - { - "name": "udId", - "in": "query", - "description": "The unique id returned from [Data Upload API](https://docs.microsoft.com/en-us/rest/api/maps/data/uploadPreview) after uploading a valid GeoJSON FeatureCollection object. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.3) for details. All the feature's properties should contain `geometryId`, which is used for identifying the geometry and is case-sensitive.", - "required": true, - "type": "string" - }, - { - "name": "lat", - "in": "query", - "description": "The latitude of the location being passed. Example: 48.36.", - "required": true, - "type": "number" - }, - { - "name": "lon", + "name": "geometries", "in": "query", - "description": "The longitude of the location being passed. Example: -124.63.", + "description": "Comma separated list of geometry UUIDs, previously retrieved from an Online Search request.", "required": true, - "type": "number" - }, - { - "name": "z", - "in": "query", - "description": "The sea level in meter of the location being passed. If this parameter is presented, 2D extrusion is used. Example: 200.", - "required": false, - "type": "number" - }, - { - "name": "userTime", - "in": "query", - "description": "The user request time. If not presented in the request, the default value is DateTime.Now.", - "required": false, - "type": "string" - }, - { - "name": "searchBuffer", - "in": "query", - "description": "The radius of the buffer around the geofence in meters that defines how far to search inside and outside the border of the fence against the coordinate that was provided when calculating the result. The minimum value is 0, and the maximum is 500. The default value is 50.", - "required": false, - "type": "number", - "minimum": 0, - "maximum": 500, - "default": 50 - }, - { - "name": "isAsync", - "in": "query", - "description": "If true, the request will use async event mechanism; if false, the request will be synchronized and do not trigger any event. The default value is false.", - "required": false, - "type": "boolean", - "default": false - }, - { - "$ref": "#/parameters/Mode" + "type": "string", + "x-ms-parameter-location": "method" } ], - "produces": [ - "application/json" - ], "responses": { "200": { - "description": "OK The X-Correlation-id header value is present in an async call's response and the Event Grid event data. It helps correlate the async call’s response with the corresponding Event Grid event.", - "headers": { - "X-Correlation-id": { - "description": "Value present in an async call's response and the Event Grid event data. It helps correlate the async call’s response with the corresponding Event Grid event.", - "type": "string" - } - }, + "description": "OK", "schema": { - "$ref": "#/definitions/GeofenceResponse" + "$ref": "#/definitions/SearchPolygonResponse" } }, "400": { @@ -334,15 +551,20 @@ "500": { "$ref": "#/responses/500" } - } - }, - "post": { + }, + "produces": [ + "application/json" + ] + } + }, + "/search/fuzzy/{format}": { + "get": { "x-publish": true, - "description": "**Search Geofence Post API**\n**Applies to:** S1 Pricing tier.\nThe Geofence Post API allows you to retrieve the proximity of a coordinate to a provided geofence or set of fences. With POST call, you do not have to upload the fence data in advance, instead you supply the location of the object you are tracking in query parameters as well as the fence or set of fences data in post request body. See [Geofencing GeoJSON data](https://docs.microsoft.com/en-us/azure/azure-maps/geofence-geojson) for more details on the geofence data format. The response will contain information about the distance from the outer edge of the geofence. A negative value signifies that the coordinate is inside of the fence while a positive value means that it is outside of the fence.

This API can be used for a variety of scenarios that include things like asset tracking, fleet management, or setting up alerts for moving objects.\n\nThe API supports [integration with Event Grid](https://docs.microsoft.com/azure/azure-maps/azure-maps-event-grid-integration). The isAsync parameter is used to enable integration with Event Grid (disabled by default).", - "operationId": "Spatial_PostGeofence", + "description": "\n**Free Form Search**\n\n**Applies to**: S0 and S1 pricing tiers.\n\n\nThe basic default API is Free Form Search which handles the most fuzzy of inputs handling any combination of address or POI tokens. This search API is the canonical 'single line search'. The Free Form Search API is a seamless combination of POI search and geocoding. The API can also be weighted with a contextual position (lat./lon. pair), or fully constrained by a coordinate and radius, or it can be executed more generally without any geo biasing anchor point.

We strongly advise you to use the 'countrySet' parameter to specify only the countries for which your application needs coverage, as the default behavior will be to search the entire world, potentially returning unnecessary results.

E.g.: `countrySet`=US,FR

Please see [Search Coverage](https://docs.microsoft.com/azure/location-based-services/geocoding-coverage) for a complete list of all the supported countries.

Most Search queries default to `maxFuzzyLevel`=2 to gain performance and also reduce unusual results. This new default can be overridden as needed per request by passing in the query param `maxFuzzyLevel`=3 or 4.", + "operationId": "Search_GetSearchFuzzy", "x-ms-examples": { - "Geofence": { - "$ref": "./examples/PostGeofence.json" + "Search City Seattle": { + "$ref": "./examples/GetSearchFuzzy.json" } }, "parameters": [ @@ -356,88 +578,93 @@ "$ref": "#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "#/parameters/TextFormat" }, { - "name": "deviceId", + "name": "query", "in": "query", - "description": "ID of the device", + "description": "The applicable query string (e.g., \"seattle\", \"pizza\"). Can _also_ be specified as a comma separated string composed by latitude followed by longitude (e.g., \"47.641268, -122.125679\"). Must be properly URL encoded.", "required": true, - "type": "string" + "type": "string", + "x-ms-parameter-location": "method" }, { - "name": "lat", - "in": "query", - "description": "The latitude of the location being passed. Example: 48.36.", - "required": true, - "type": "number" + "$ref": "#/parameters/Typeahead" }, { - "name": "lon", - "in": "query", - "description": "The longitude of the location being passed. Example: -124.63.", - "required": true, - "type": "number" + "$ref": "#/parameters/LimitSearch" }, { - "name": "z", - "in": "query", - "description": "The sea level in meter of the location being passed. If this parameter is presented, 2D extrusion geofencing is applied. Example: 200.", - "required": false, - "type": "number" + "$ref": "#/parameters/Offset" }, { - "name": "userTime", - "in": "query", - "description": "The user request time. If not presented in the request, the default value is DateTime.UtcNow.", - "required": false, - "type": "string" + "$ref": "#/parameters/CategorySet" + }, + { + "$ref": "#/parameters/CountrySet" + }, + { + "$ref": "#/parameters/OptionalBiasLat" + }, + { + "$ref": "#/parameters/OptionalBiasLon" + }, + { + "$ref": "#/parameters/Radius" + }, + { + "$ref": "#/parameters/BoundingBoxTopLeft" + }, + { + "$ref": "#/parameters/BoundingBoxBottomRight" }, { - "name": "searchBuffer", + "$ref": "#/parameters/Language" + }, + { + "$ref": "#/parameters/ExtendedPostalCodesFor" + }, + { + "name": "minFuzzyLevel", "in": "query", - "description": "The radius of the buffer around the geofence in meters that defines how far to search inside and outside the border of the fence against the coordinate that was provided when calculating the result. The minimum value is 0, and the maximum is 500. The default value is 50.", + "description": "Minimum fuzziness level to be used. Default: 1, minimum: 1 and maximum: 4\n\n* Level 1 has no spell checking.\n\n* Level 2 uses normal n-gram spell checking. For example, query \"restrant\" can be matched to \"restaurant.\"\n\n* Level 3 uses sound-like spell checking, and shingle spell checking. Sound-like spell checking is for \"rstrnt\" to \"restaurant\" matching. Shingle spell checking is for \"mountainview\" to \"mountain view\" matching.\n\n* Level 4 doesn’t add any more spell checking functions.\n\n\n\nThe search engine will start looking for a match on the level defined by minFuzzyLevel, and will stop searching at the level specified by maxFuzzyLevel.", "required": false, - "type": "number", - "minimum": 0, - "maximum": 500, - "default": 50 + "type": "integer", + "default": 1, + "minimum": 1, + "maximum": 4 }, { - "name": "isAsync", + "name": "maxFuzzyLevel", "in": "query", - "description": "If true, the request will use async event mechanism; if false, the request will be synchronized and do not trigger any event. The default value is false.", + "description": "Maximum fuzziness level to be used. Default: 2, minimum: 1 and maximum: 4\n\n* Level 1 has no spell checking.\n\n* Level 2 uses normal n-gram spell checking. For example, query \"restrant\" can be matched to \"restaurant.\"\n\n* Level 3 uses sound-like spell checking, and shingle spell checking. Sound-like spell checking is for \"rstrnt\" to \"restaurant\" matching. Shingle spell checking is for \"mountainview\" to \"mountain view\" matching.\n\n* Level 4 doesn’t add any more spell checking functions.\n\n\n\nThe search engine will start looking for a match on the level defined by minFuzzyLevel, and will stop searching at the level specified by maxFuzzyLevel.", "required": false, - "type": "boolean", - "default": false + "type": "integer", + "default": 2, + "minimum": 1, + "maximum": 4 }, { - "$ref": "#/parameters/Mode" + "$ref": "#/parameters/SearchIndexSet" }, { - "name": "searchGeofenceRequestBody", - "in": "body", - "description": "The geofencing GeoJSON data.", - "required": true, - "schema": { - "$ref": "#/definitions/GeoJSONFeatureCollection" - } + "$ref": "#/parameters/BrandSet" + }, + { + "$ref": "#/parameters/ConnectorSet" + }, + { + "$ref": "#/parameters/View" + }, + { + "$ref": "#/parameters/OpeningHours" } ], - "produces": [ - "application/json" - ], "responses": { "200": { - "description": "OK The X-Correlation-id header value is present in an async call's response and the Event Grid event data. It helps correlate the async call’s response with the corresponding Event Grid event.", - "headers": { - "X-Correlation-id": { - "description": "Value present in an async call's response and the Event Grid event data. It helps correlate the async call’s response with the corresponding Event Grid event.", - "type": "string" - } - }, + "description": "OK", "schema": { - "$ref": "#/definitions/GeofenceResponse" + "$ref": "#/definitions/SearchFuzzyResponse" } }, "400": { @@ -458,14 +685,14 @@ } } }, - "/spatial/buffer/{format}": { - "post": { + "/search/poi/{format}": { + "get": { "x-publish": true, - "description": "**Applies to**: S1 pricing tier.\n\nThis API returns a FeatureCollection where each Feature is a buffer around the corresponding indexed Feature of the input. The buffer could be either on the outside or the inside of the provided Feature, depending on the distance provided in the input. There must be either one distance provided per Feature in the FeatureCollection input, or if only one distance is provided, then that distance is applied to every Feature in the collection. The positive (or negative) buffer of a geometry is defined as the Minkowski sum (or difference) of the geometry with a circle of radius equal to the absolute value of the buffer distance. The buffer API always returns a polygonal result. The negative or zero-distance buffer of lines and points is always an empty polygon. The input may contain a collection of Point, MultiPoint, Polygon, MultiPolygon, LineString and MultiLineString. GeometryCollection will be ignored if provided.", - "operationId": "Spatial_PostBuffer", + "description": "**Get POI by Name**\n\n**Applies to**: S0 and S1 pricing tiers.\n\n\nPoints of Interest (POI) Search allows you to request POI results by name. Search supports additional query parameters such as language and filtering results by area of interest driven by country or bounding box. Endpoint will return only POI results matching the query string. Response includes POI details such as address, coordinate location and category.", + "operationId": "Search_GetSearchPOI", "x-ms-examples": { - "PostBuffer": { - "$ref": "./examples/PostBuffer.json" + "Search for juice bars within 5 miles of Seattle Downtown and limit the response to 5 results": { + "$ref": "./examples/GetSearchPOI.json" } }, "parameters": [ @@ -479,26 +706,70 @@ "$ref": "#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "#/parameters/TextFormat" }, { - "name": "bufferRequestBody", - "in": "body", - "description": "The FeatureCollection and the list of distances (one per feature or one for all features).", + "name": "query", + "in": "query", + "description": "The POI name to search for (e.g., \"statue of liberty\", \"starbucks\"), must be properly URL encoded.", "required": true, - "schema": { - "$ref": "#/definitions/BufferRequestBody" - } - } - ], - "produces": [ - "application/json" + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "$ref": "#/parameters/Typeahead" + }, + { + "$ref": "#/parameters/LimitSearch" + }, + { + "$ref": "#/parameters/Offset" + }, + { + "$ref": "#/parameters/CategorySet" + }, + { + "$ref": "#/parameters/CountrySet" + }, + { + "$ref": "#/parameters/OptionalBiasLat" + }, + { + "$ref": "#/parameters/OptionalBiasLon" + }, + { + "$ref": "#/parameters/Radius" + }, + { + "$ref": "#/parameters/BoundingBoxTopLeft" + }, + { + "$ref": "#/parameters/BoundingBoxBottomRight" + }, + { + "$ref": "#/parameters/Language" + }, + { + "$ref": "#/parameters/ExtendedPostalCodesForPoi" + }, + { + "$ref": "#/parameters/BrandSet" + }, + { + "$ref": "#/parameters/ConnectorSet" + }, + { + "$ref": "#/parameters/View" + }, + { + "$ref": "#/parameters/OpeningHours" + } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/BufferResponse" + "$ref": "#/definitions/SearchPoiResponse" } }, "400": { @@ -517,14 +788,16 @@ "$ref": "#/responses/500" } } - }, + } + }, + "/search/nearby/{format}": { "get": { "x-publish": true, - "description": "**Applies to**: S1 pricing tier.\n\nThis API returns a FeatureCollection where each Feature is a buffer around the corresponding indexed Feature of the input. The buffer could be either on the outside or the inside of the provided Feature, depending on the distance provided in the input. There must be either one distance provided per Feature in the FeatureCollection input, or if only one distance is provided, then that distance is applied to every Feature in the collection. The positive (or negative) buffer of a geometry is defined as the Minkowski sum (or difference) of the geometry with a circle of radius equal to the absolute value of the buffer distance. The buffer API always returns a polygonal result. The negative or zero-distance buffer of lines and points is always an empty polygon. The input features are provided by a GeoJSON file which is uploaded via [Data Upload API](https://docs.microsoft.com/en-us/rest/api/maps/data/uploadPreview) and referenced by a unique udid. The GeoJSON file may contain a collection of Point, MultiPoint, Polygon, MultiPolygon, LineString and MultiLineString. GeometryCollection will be ignored if provided. \n\nTo test this API, you can upload the sample data from [Post Buffer API](https://docs.microsoft.com/en-us/rest/api/maps/spatial/postbuffer#examples) examples(Request Body without distances array) via [Data Upload API](https://docs.microsoft.com/en-us/rest/api/maps/data/uploadPreview) and replace the [udid] from the [sample request below](https://docs.microsoft.com/en-us/rest/api/maps/spatial/getbuffer#examples) with the udid returned by Data Upload API.", - "operationId": "Spatial_GetBuffer", + "description": "**Nearby Search**\n\n**Applies to**: S0 and S1 pricing tiers.\n\n\nIf you have a use case for only retrieving POI results around a specific location, the nearby search method may be the right choice. This endpoint will only return POI results, and does not take in a search query parameter.", + "operationId": "Search_GetSearchNearby", "x-ms-examples": { - "GetBuffer": { - "$ref": "./examples/GetBuffer.json" + "Search for any points of interest (POI) within 5 miles of Manhattan NY and return the top 10 results": { + "$ref": "./examples/GetSearchNearby.json" } }, "parameters": [ @@ -538,27 +811,54 @@ "$ref": "#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "#/parameters/TextFormat" + }, + { + "$ref": "#/parameters/RequiredBiasLat" + }, + { + "$ref": "#/parameters/RequiredBiasLon" + }, + { + "$ref": "#/parameters/LimitSearch" + }, + { + "$ref": "#/parameters/Offset" + }, + { + "$ref": "#/parameters/CategorySet" }, { - "$ref": "#/parameters/UdidSpatial" + "$ref": "#/parameters/CountrySet" }, { - "name": "distances", + "name": "radius", "in": "query", - "description": "The list of distances (one per feature or one for all features), delimited by semicolons. For example, 12.34;-56.78. Positive distance will generate a buffer outside of the feature, whereas negative distance will generate a buffer inside of the feature. If the negative distance larger than the geometry itself, an empty polygon will be returned.", - "required": true, - "type": "string" + "description": "The radius in meters to for the results to be constrained to the defined area, Min value is 1, Max Value is 50000.", + "required": false, + "type": "number" + }, + { + "$ref": "#/parameters/Language" + }, + { + "$ref": "#/parameters/ExtendedPostalCodesFor" + }, + { + "$ref": "#/parameters/BrandSet" + }, + { + "$ref": "#/parameters/ConnectorSet" + }, + { + "$ref": "#/parameters/View" } ], - "produces": [ - "application/json" - ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/BufferResponse" + "$ref": "#/definitions/SearchNearbyResponse" } }, "400": { @@ -579,14 +879,14 @@ } } }, - "/spatial/closestPoint/{format}": { - "post": { + "/search/poi/category/{format}": { + "get": { "x-publish": true, - "description": "**Applies to**: S1 pricing tier.\n\nThis API returns the closest point between a base point and a given set of target points. The set of target points is provided by user data in post request body. The user data may only contain a collection of Point geometry. MultiPoint or other geometries will be ignored if provided. The algorithm does not take into account routing or traffic. The maximum number of points accepted is 100,000. Information returned includes closest point latitude, longitude, and distance in meters from the closest point.", - "operationId": "Spatial_PostClosestPoint", + "description": "**Get POI by Category**\n\n**Applies to**: S0 and S1 pricing tiers.\n\n\nPoints of Interest (POI) Category Search allows you to request POI results from given category. Search allows to query POIs from one category at a time. Endpoint will only return POI results which are categorized as specified. Response includes POI details such as address, coordinate location and classification.", + "operationId": "Search_GetSearchPOICategory", "x-ms-examples": { - "PostClosestPoint": { - "$ref": "./examples/PostClosestPoint.json" + "Search for atm's within 2 miles of Times Square NY and return the top 3 results": { + "$ref": "./examples/GetSearchPOICategory.json" } }, "parameters": [ @@ -600,47 +900,70 @@ "$ref": "#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "#/parameters/TextFormat" }, { - "name": "lat", + "name": "query", "in": "query", - "description": "The base point latitude of the location being passed. Example: 47.622942.", + "description": "The POI category to search for (e.g., \"AIRPORT\", \"RESTAURANT\"), must be properly URL encoded. Supported main categories can be requested by calling [Get Search POI Category Tree API](https://aka.ms/AzureMapsPOICategoryTree). List of available categories can also be found [here](https://docs.microsoft.com/azure/azure-maps/supported-search-categories). We recommend to use POI Search Category Tree API to request the supported categories.", "required": true, - "type": "number" + "type": "string", + "x-ms-parameter-location": "method" }, { - "name": "lon", - "in": "query", - "description": "The base point longitude of the location being passed. Example: -122.316456.", - "required": true, - "type": "number" + "$ref": "#/parameters/Typeahead" }, { - "name": "numberOfClosestPoints", - "in": "query", - "description": "The number of closest points expected from response. Default: 1, minimum: 1 and maximum: 50", - "required": false, - "type": "integer" + "$ref": "#/parameters/LimitSearch" }, { - "name": "closestPointRequestBody", - "in": "body", - "description": "The FeatureCollection of Point geometries from which closest point to source point should be determined. All the feature's properties should contain `geometryId`, which is used for identifying the geometry and is case-sensitive.", - "required": true, - "schema": { - "$ref": "#/definitions/GeoJSONFeatureCollection" - } + "$ref": "#/parameters/Offset" + }, + { + "$ref": "#/parameters/CategorySet" + }, + { + "$ref": "#/parameters/CountrySet" + }, + { + "$ref": "#/parameters/OptionalBiasLat" + }, + { + "$ref": "#/parameters/OptionalBiasLon" + }, + { + "$ref": "#/parameters/Radius" + }, + { + "$ref": "#/parameters/BoundingBoxTopLeft" + }, + { + "$ref": "#/parameters/BoundingBoxBottomRight" + }, + { + "$ref": "#/parameters/Language" + }, + { + "$ref": "#/parameters/ExtendedPostalCodesFor" + }, + { + "$ref": "#/parameters/BrandSet" + }, + { + "$ref": "#/parameters/ConnectorSet" + }, + { + "$ref": "#/parameters/View" + }, + { + "$ref": "#/parameters/OpeningHours" } ], - "produces": [ - "application/json" - ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/PostClosestPointResponse" + "$ref": "#/definitions/SearchPoiCategoryResponse" } }, "400": { @@ -659,14 +982,16 @@ "$ref": "#/responses/500" } } - }, + } + }, + "/search/poi/category/tree/{format}": { "get": { "x-publish": true, - "description": "**Applies to**: S1 pricing tier.\n\nThis API returns the closest point between a base point and a given set of points in the user uploaded data set identified by udid. The set of target points is provided by a GeoJSON file which is uploaded via [Data Upload API](https://docs.microsoft.com/en-us/rest/api/maps/data/uploadPreview) and referenced by a unique udid. The GeoJSON file may only contain a collection of Point geometry. MultiPoint or other geometries will be ignored if provided. The maximum number of points accepted is 100,000. The algorithm does not take into account routing or traffic. Information returned includes closest point latitude, longitude, and distance in meters from the closest point.\n\nTo test this API, you can upload the sample data from [Post Closest Point API](https://docs.microsoft.com/en-us/rest/api/maps/spatial/postclosestpoint#examples) examples(Request Body) via [Data Upload API](https://docs.microsoft.com/en-us/rest/api/maps/data/uploadPreview) and replace the [udid] from the [sample request below](https://docs.microsoft.com/en-us/rest/api/maps/spatial/getclosestpoint#examples) with the udid returned by Data Upload API.", - "operationId": "Spatial_GetClosestPoint", + "description": "**Get POI Category Tree**\n\n**Applies to**: S0 and S1 pricing tiers.\n\n\nPOI Category API provides a full list of supported Points of Interest (POI) categories and subcategories together with their translations and synonyms. The returned content can be used to provide more meaningful results through other Search Service APIs, like [Get Search POI](https://docs.microsoft.com/rest/api/maps/search/getsearchpoi).", + "operationId": "Search_GetSearchPOICategoryTreePreview", "x-ms-examples": { - "GetClosestPoint": { - "$ref": "./examples/GetClosestPoint.json" + "Get the POI Category Tree (only partial response shown below)": { + "$ref": "./examples/GetPOICategoryTree.json" } }, "parameters": [ @@ -683,38 +1008,19 @@ "$ref": "#/parameters/JsonFormat" }, { - "$ref": "#/parameters/UdidSpatial" - }, - { - "name": "lat", - "in": "query", - "description": "The base point latitude of the location being passed. Example: 47.622942.", - "required": true, - "type": "number" - }, - { - "name": "lon", - "in": "query", - "description": "The base point longitude of the location being passed. Example: -122.316456.", - "required": true, - "type": "number" - }, - { - "name": "numberOfClosestPoints", + "name": "language", "in": "query", - "description": "The number of closest points expected from response. Default: 1, minimum: 1 and maximum: 50", + "description": "Language in which search results should be returned. Should be one of supported IETF language tags, except NGT and NGT-Latn. Language tag is case insensitive. When data in specified language is not available for a specific field, default language is used (English).\n\nPlease refer to [Supported Languages](https://docs.microsoft.com/azure/azure-maps/supported-languages) for details.", "required": false, - "type": "integer" + "type": "string", + "x-ms-parameter-location": "method" } ], - "produces": [ - "application/json" - ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/GetClosestPointResponse" + "$ref": "#/definitions/PoiCategoryResponse" } }, "400": { @@ -735,14 +1041,14 @@ } } }, - "/spatial/pointInPolygon/{format}": { - "post": { + "/search/address/{format}": { + "get": { "x-publish": true, - "description": "**Applies to**: S1 pricing tier.\n\nThis API returns a boolean value indicating whether a point is inside a set of polygons. The user data may contain Polygon and MultiPolygon geometries, other geometries will be ignored if provided. If the point is inside or on the boundary of one of these polygons, the value returned is true. In all other cases, the value returned is false. When the point is inside multiple polygons, the result will give intersecting geometries section to show all valid geometries (referenced by geometryId) in user data. The maximum number of vertices accepted to form a Polygon is 10,000.", - "operationId": "Spatial_PostPointInPolygon", + "description": "**Address Geocoding**\n\n**Applies to**: S0 and S1 pricing tiers.\n\n\nIn many cases, the complete search service might be too much, for instance if you are only interested in traditional geocoding. Search can also be accessed for address look up exclusively. The geocoding is performed by hitting the geocode endpoint with just the address or partial address in question. The geocoding search index will be queried for everything above the street level data. No POIs will be returned. Note that the geocoder is very tolerant of typos and incomplete addresses. It will also handle everything from exact street addresses or street or intersections as well as higher level geographies such as city centers, counties, states etc.", + "operationId": "Search_GetSearchAddress", "x-ms-examples": { - "PostPointInPolygon": { - "$ref": "./examples/PostPointInPolygon.json" + "Search detail address 15127 NE 24th Street, Redmond, WA 98052": { + "$ref": "./examples/GetSearchAddress.json" } }, "parameters": [ @@ -756,40 +1062,58 @@ "$ref": "#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "#/parameters/TextFormat" }, { - "name": "lat", + "name": "query", "in": "query", - "description": "The base point latitude of the location being passed. Example: 47.622942.", + "description": "The address to search for (e.g., \"1 Microsoft way, Redmond, WA\"), must be properly URL encoded.", "required": true, - "type": "number" + "type": "string", + "x-ms-parameter-location": "method" }, { - "name": "lon", - "in": "query", - "description": "The base point longitude of the location being passed. Example: -122.316456.", - "required": true, - "type": "number" + "$ref": "#/parameters/Typeahead" }, { - "name": "pointInPolygonRequestBody", - "in": "body", - "description": "A FeatureCollection with a set of Polygon/MultiPolygon geometries. The maximum number of vertices accepted to form a Polygon is 10,000. All the feature's properties should contain `geometryId`, which is used for identifying the geometry and is case-sensitive.", - "required": true, - "schema": { - "$ref": "#/definitions/GeoJSONFeatureCollection" - } + "$ref": "#/parameters/LimitSearch" + }, + { + "$ref": "#/parameters/Offset" + }, + { + "$ref": "#/parameters/CountrySet" + }, + { + "$ref": "#/parameters/OptionalBiasLat" + }, + { + "$ref": "#/parameters/OptionalBiasLon" + }, + { + "$ref": "#/parameters/Radius" + }, + { + "$ref": "#/parameters/BoundingBoxTopLeft" + }, + { + "$ref": "#/parameters/BoundingBoxBottomRight" + }, + { + "$ref": "#/parameters/Language" + }, + { + "$ref": "#/parameters/ExtendedPostalCodesFor" + }, + { + "$ref": "#/parameters/View" } ], - "produces": [ - "application/json" - ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/PostPointInPolygonResponse" + "$ref": "#/definitions/SearchAddressResponse" } }, "400": { @@ -808,14 +1132,16 @@ "$ref": "#/responses/500" } } - }, + } + }, + "/search/address/reverse/{format}": { "get": { "x-publish": true, - "description": "**Applies to**: S1 pricing tier.\n\nThis API returns a boolean value indicating whether a point is inside a set of polygons. The set of polygons is provided by a GeoJSON file which is uploaded via [Data Upload API](https://docs.microsoft.com/en-us/rest/api/maps/data/uploadPreview) and referenced by a unique udid. The GeoJSON file may contain Polygon and MultiPolygon geometries, other geometries will be ignored if provided. If the point is inside or on the boundary of one of these polygons, the value returned is true. In all other cases, the value returned is false. When the point is inside multiple polygons, the result will give intersecting geometries section to show all valid geometries(referenced by geometryId) in user data. The maximum number of vertices accepted to form a Polygon is 10,000.\n\n \nTo test this API, you can upload the sample data from [Post Point In Polygon API](https://docs.microsoft.com/en-us/rest/api/maps/spatial/postpointinpolygon#examples) examples(Request Body) via [Data Upload API](https://docs.microsoft.com/en-us/rest/api/maps/data/uploadPreview) and replace the [udid] from the [sample request below](https://docs.microsoft.com/en-us/rest/api/maps/spatial/getpointinpolygon#examples) with the udid returned by Data Upload API.", - "operationId": "Spatial_GetPointInPolygon", + "description": "**Reverse Geocode to an Address**\n\n**Applies to**: S0 and S1 pricing tiers.\n\n\nThere may be times when you need to translate a coordinate (example: 37.786505, -122.3862) into a human understandable street address. Most often this is needed in tracking applications where you receive a GPS feed from the device or asset and wish to know what address where the coordinate is located. This endpoint will return address information for a given coordinate.", + "operationId": "Search_GetSearchAddressReverse", "x-ms-examples": { - "GetPointInPolygon": { - "$ref": "./examples/GetPointInPolygon.json" + "GetSearchAddressReverse": { + "$ref": "./examples/GetSearchAddressReverse.json" } }, "parameters": [ @@ -829,34 +1155,135 @@ "$ref": "#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "#/parameters/TextFormat" + }, + { + "$ref": "#/parameters/Position" }, { - "$ref": "#/parameters/UdidSpatial" + "$ref": "#/parameters/Language" }, { - "name": "lat", + "name": "returnSpeedLimit", "in": "query", - "description": "The base point latitude of the location being passed. Example: 47.622942.", - "required": true, - "type": "number" + "description": "Boolean. To enable return of the posted speed limit", + "required": false, + "type": "boolean", + "default": false }, { - "name": "lon", + "name": "heading", "in": "query", - "description": "The base point longitude of the location being passed. Example: -122.316456.", - "required": true, - "type": "number" + "description": "The directional heading of the vehicle in degrees, for travel along a segment of roadway. 0 is North, 90 is East and so on, values range from -360 to 360. The precision can include upto one decimal place", + "required": false, + "type": "number", + "minimum": -360, + "maximum": 360 + }, + { + "$ref": "#/parameters/Radius" + }, + { + "name": "number", + "in": "query", + "description": "If a number is sent in along with the request, the response may include the side of the street (Left/Right) and also an offset position for that number", + "required": false, + "type": "string" + }, + { + "name": "returnRoadUse", + "in": "query", + "description": "Boolean. To enable return of the road use array for reverse geocodes at street level", + "required": false, + "type": "boolean", + "default": false + }, + { + "name": "roadUse", + "in": "query", + "description": "To restrict reverse geocodes to a certain type of road use. The road use array for reverse geocodes can be one or more of LimitedAccess, Arterial, Terminal, Ramp, Rotary, LocalStreet", + "required": false, + "type": "string" + }, + { + "name": "allowFreeformNewline", + "in": "query", + "description": "Format of newlines in the formatted address.\n\nIf true, the address will contain newlines.\nIf false, newlines will be converted to commas.", + "required": false, + "type": "boolean" + }, + { + "name": "returnMatchType", + "in": "query", + "description": "Include information on the type of match the geocoder achieved in the response.", + "required": false, + "type": "boolean" + }, + { + "name": "entityType", + "in": "query", + "description": "Specifies the level of filtering performed on geographies. Narrows the search for specified geography entity types, e.g. return only municipality. The resulting response will contain the geography ID as well as the entity type matched. If you provide more than one entity as a comma separated list, endpoint will return the 'smallest entity available'. Returned Geometry ID can be used to get the geometry of that geography via [Get Search Polygon](https://docs.microsoft.com/rest/api/maps/search/getsearchpolygon) API. The following parameters are ignored when entityType is set:\n\n* heading\n* number\n* returnRoadUse\n* returnSpeedLimit\n* roadUse\n* returnMatchType", + "required": false, + "type": "string", + "enum": [ + "Country", + "CountrySubdivision", + "CountrySecondarySubdivision", + "CountryTertiarySubdivision", + "Municipality", + "MunicipalitySubdivision", + "Neighbourhood", + "PostalCodeArea" + ], + "x-ms-enum": { + "name": "EntityType", + "modelAsString": false, + "values": [ + { + "value": "Country", + "description": "Country name" + }, + { + "value": "CountrySubdivision", + "description": "State or Province" + }, + { + "value": "CountrySecondarySubdivision", + "description": "County" + }, + { + "value": "CountryTertiarySubdivision", + "description": "Named Area" + }, + { + "value": "Municipality", + "description": "City / Town" + }, + { + "value": "MunicipalitySubdivision", + "description": "Sub / Super City" + }, + { + "value": "Neighbourhood", + "description": "Neighbourhood" + }, + { + "value": "PostalCodeArea", + "description": "Postal Code / Zip Code" + } + ] + }, + "x-ms-parameter-location": "method" + }, + { + "$ref": "#/parameters/View" } ], - "produces": [ - "application/json" - ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/GetPointInPolygonResponse" + "$ref": "#/definitions/SearchAddressReverseResponse" } }, "400": { @@ -877,14 +1304,14 @@ } } }, - "/spatial/greatCircleDistance/{format}": { + "/search/address/reverse/crossStreet/{format}": { "get": { "x-publish": true, - "description": "**Applies to**: S1 pricing tier.\n\nThis API will return the great-circle or shortest distance between two points on the surface of a sphere, measured along the surface of the sphere. This differs from calculating a straight line through the sphere's interior. This method is helpful for estimating travel distances for airplanes by calculating the shortest distance between airports.", - "operationId": "Spatial_GetGreatCircleDistance", + "description": "**Reverse Geocode to a Cross Street**\n\n**Applies to**: S0 and S1 pricing tiers.\n\n\nThere may be times when you need to translate a coordinate (example: 37.786505, -122.3862) into a human understandable cross street. Most often this is needed in tracking applications where you receive a GPS feed from the device or asset and wish to know what address where the coordinate is located.\nThis endpoint will return cross street information for a given coordinate.", + "operationId": "Search_GetSearchAddressReverseCrossStreet", "x-ms-examples": { - "GetGreatCircleDistance": { - "$ref": "./examples/GetGreatCircleDistance.json" + "GetSearchAddressReverseCrossStreet": { + "$ref": "./examples/GetSearchAddressReverseCrossStreet.json" } }, "parameters": [ @@ -898,24 +1325,38 @@ "$ref": "#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "#/parameters/TextFormat" }, { - "name": "query", + "$ref": "#/parameters/Position" + }, + { + "$ref": "#/parameters/LimitSearch" + }, + { + "name": "heading", "in": "query", - "description": "The Coordinates through which the distance is calculated, delimited by a colon. Two coordinates are required. The first one is the source point coordinate and the last is the target point coordinate. For example, 47.622942,122.316456:57.673988,127.121513", - "required": true, - "type": "string" + "description": "The directional heading of the vehicle in degrees, for travel along a segment of roadway. 0 is North, 90 is East and so on, values range from -360 to 360. The precision can include upto one decimal place", + "required": false, + "type": "number", + "minimum": -360, + "maximum": 360 + }, + { + "$ref": "#/parameters/Radius" + }, + { + "$ref": "#/parameters/Language" + }, + { + "$ref": "#/parameters/View" } ], - "produces": [ - "application/json" - ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/GreatCircleDistanceResponse" + "$ref": "#/definitions/SearchAddressReverseCrossStreetResponse" } }, "400": { @@ -935,452 +1376,2004 @@ } } } - } - }, - "definitions": { - "SpatialCoordinate": { - "description": "A location represented as a latitude and longitude", - "type": "object", - "properties": { - "lat": { - "description": "Latitude property", - "type": "number", - "format": "double", - "readOnly": true - }, - "lon": { - "description": "Longitude property", - "type": "number", - "format": "double", - "readOnly": true - } - } }, - "GeoJSONFeatureCollection": { - "description": "A valid `GeoJSON FeatureCollection` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.3) for details.", - "type": "object", - "properties": { - "type": { - "description": "Specifies the `type` for the object. Value should always be equal to \"FeatureCollection\".", - "type": "string" + "/search/address/structured/{format}": { + "get": { + "x-publish": true, + "description": "**Structured Address Geocoding**\n\n**Applies to**: S0 and S1 pricing tiers.\n\n\nAzure Address Geocoding can also be accessed for structured address look up exclusively. The geocoding search index will be queried for everything above the street level data. No POIs will be returned. Note that the geocoder is very tolerant of typos and incomplete addresses. It will also handle everything from exact street addresses or street or intersections as well as higher level geographies such as city centers, counties, states etc.", + "operationId": "Search_GetSearchAddressStructured", + "x-ms-examples": { + "GetSearchAddressStructured": { + "$ref": "./examples/GetSearchAddressStructured.json" + } }, - "features": { - "description": "Contains a list of valid `GeoJSON Feature` objects.", + "parameters": [ + { + "$ref": "#/parameters/ClientId" + }, + { + "$ref": "#/parameters/SubscriptionKey" + }, + { + "$ref": "#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/TextFormat" + }, + { + "$ref": "#/parameters/Language" + }, + { + "name": "countryCode", + "in": "query", + "description": "The 2 or 3 letter [ISO3166-1](https://www.iso.org/iso-3166-country-codes.html) country code portion of an address. E.g. US.", + "required": true, + "default": "US", + "type": "string" + }, + { + "$ref": "#/parameters/LimitSearch" + }, + { + "$ref": "#/parameters/Offset" + }, + { + "name": "streetNumber", + "in": "query", + "description": "The street number portion of an address", + "required": false, + "type": "string" + }, + { + "name": "streetName", + "in": "query", + "description": "The street name portion of an address", + "required": false, + "type": "string" + }, + { + "name": "crossStreet", + "in": "query", + "description": "The cross street name for the structured address", + "required": false, + "type": "string" + }, + { + "name": "municipality", + "in": "query", + "description": "The municipality portion of an address", + "required": false, + "type": "string" + }, + { + "name": "municipalitySubdivision", + "in": "query", + "description": "The municipality subdivision (sub/super city) for the structured address", + "required": false, + "type": "string" + }, + { + "name": "countryTertiarySubdivision", + "in": "query", + "description": "The named area for the structured address", + "required": false, + "type": "string" + }, + { + "name": "countrySecondarySubdivision", + "in": "query", + "description": "The county for the structured address", + "required": false, + "type": "string" + }, + { + "name": "countrySubdivision", + "in": "query", + "description": "The country subdivision portion of an address", + "required": false, + "type": "string" + }, + { + "name": "postalCode", + "in": "query", + "description": "The postal code portion of an address", + "required": false, + "type": "string" + }, + { + "$ref": "#/parameters/ExtendedPostalCodesFor" + }, + { + "$ref": "#/parameters/View" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SearchAddressStructuredResponse" + } + }, + "400": { + "$ref": "#/responses/400" + }, + "401": { + "$ref": "#/responses/401" + }, + "403": { + "$ref": "#/responses/403" + }, + "404": { + "$ref": "#/responses/404" + }, + "500": { + "$ref": "#/responses/500" + } + } + } + }, + "/search/geometry/{format}": { + "post": { + "x-publish": true, + "description": "**Applies to**: S0 and S1 pricing tiers.\n\nThe Search Geometry endpoint allows you to perform a free form search inside a single geometry or many of them. The search results that fall inside the geometry/geometries will be returned.

To send the geometry you will use a `POST` request where the request body will contain the `geometry` object represented as a `GeoJSON` type and the `Content-Type` header will be set to `application/json`. The geographical features to be searched can be modeled as Polygon and/or Circle geometries represented using any one of the following `GeoJSON` types:.

", + "operationId": "Search_PostSearchInsideGeometry", + "x-ms-examples": { + "Search for pizza places inside a geometry represented as a GeoJSON FeatureCollection type": { + "$ref": "./examples/PostSearchInsideFeatureCollection.json" + }, + "Search for burger joints inside a geometry represented as a GeoJSON GeometryCollection type": { + "$ref": "./examples/PostSearchInsideGeometryCollection.json" + }, + "Search for subs joints inside a geometry represented as a GeoJSON Polygon type": { + "$ref": "./examples/PostSearchInsideGeometry.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ClientId" + }, + { + "$ref": "#/parameters/SubscriptionKey" + }, + { + "$ref": "#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/PoiQuery" + }, + { + "$ref": "#/parameters/TextFormat" + }, + { + "$ref": "#/parameters/LimitSearch" + }, + { + "$ref": "#/parameters/Language" + }, + { + "$ref": "#/parameters/CategorySet" + }, + { + "$ref": "#/parameters/ExtendedPostalCodesFor" + }, + { + "$ref": "#/parameters/SearchIndexSet" + }, + { + "name": "searchInsideGeometryRequestBody", + "in": "body", + "description": "This represents the geometry for one or more geographical features (parks, state boundary etc.) to search in and should be a GeoJSON compliant type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946) for details.", + "required": true, + "schema": { + "$ref": "#/definitions/SearchInsideGeometryRequestBody" + } + }, + { + "$ref": "#/parameters/View" + }, + { + "$ref": "#/parameters/OpeningHours" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SearchGeometryResponse" + } + }, + "400": { + "$ref": "#/responses/400" + }, + "401": { + "$ref": "#/responses/401" + }, + "403": { + "$ref": "#/responses/403" + }, + "404": { + "$ref": "#/responses/404" + }, + "500": { + "$ref": "#/responses/500" + } + } + } + }, + "/search/alongRoute/{format}": { + "post": { + "x-publish": true, + "description": "**Applies to**: S0 and S1 pricing tiers.\n\n\nThe Search Along Route endpoint allows you to perform a fuzzy search for POIs along a specified route. This search is constrained by specifying the `maxDetourTime` limiting measure.

To send the route-points you will use a `POST` request where the request body will contain the `route` object represented as a `GeoJSON LineString` type and the `Content-Type` header will be set to `application/json`. Each route-point in `route` is represented as a `GeoJSON Position` type i.e. an array where the _longitude_ value is followed by the _latitude_ value and the _altitude_ value is ignored. The `route` should contain at least 2 route-points.

It is possible that original route will be altered, some of it's points may be skipped. If the route that passes through the found point is faster than the original one, the `detourTime` value in the response is negative.", + "operationId": "Search_PostSearchAlongRoute", + "x-ms-examples": { + "Search for burger joints along a route": { + "$ref": "./examples/PostSearchAlongRoute.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ClientId" + }, + { + "$ref": "#/parameters/SubscriptionKey" + }, + { + "$ref": "#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/CategorySet" + }, + { + "$ref": "#/parameters/PoiQuery" + }, + { + "$ref": "#/parameters/TextFormat" + }, + { + "name": "maxDetourTime", + "description": "Maximum detour time of the point of interest in seconds. Max value is 3600 seconds", + "required": true, + "type": "integer", + "in": "query", + "maximum": 3600 + }, + { + "name": "limit", + "description": "Maximum number of responses that will be returned. Default value is 10. Max value is 20", + "required": false, + "type": "integer", + "in": "query", + "default": 10, + "maximum": 20 + }, + { + "$ref": "#/parameters/BrandSet" + }, + { + "$ref": "#/parameters/ConnectorSet" + }, + { + "$ref": "#/parameters/View" + }, + { + "$ref": "#/parameters/OpeningHours" + }, + { + "name": "searchAlongRouteRequestBody", + "in": "body", + "description": "This represents the route to search along and should be a valid `GeoJSON LineString` type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.4) for details.", + "required": true, + "schema": { + "$ref": "#/definitions/SearchAlongRouteRequestBody" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SearchAlongRouteResponse" + } + }, + "400": { + "$ref": "#/responses/400" + }, + "401": { + "$ref": "#/responses/401" + }, + "403": { + "$ref": "#/responses/403" + }, + "404": { + "$ref": "#/responses/404" + }, + "500": { + "$ref": "#/responses/500" + } + } + } + }, + "/search/fuzzy/batch/{format}": { + "post": { + "x-publish": true, + "description": "**Search Fuzzy Batch API**\n\n\n**Applies to**: S1 pricing tier.\n\n\n\nThe Search Address Batch API sends batches of queries to [Search Fuzzy API](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchfuzzy) using just a single API call. You can call Search Address Fuzzy Batch API to run either asynchronously (async) or synchronously (sync). The async API allows caller to batch up to **10,000** queries and sync API up to **100** queries.\n### Submit Synchronous Batch Request\nThe Synchronous API is recommended for lightweight batch requests. When the service receives a request, it will respond as soon as the batch items are calculated and there will be no possibility to retrieve the results later. The Synchronous API will return a timeout error (a 408 response) if the request takes longer than 60 seconds. The number of batch items is limited to **100** for this API.\n```\nPOST https://atlas.microsoft.com/search/fuzzy/batch/sync/json?api-version=1.0&subscription-key={subscription-key}\n```\n### Submit Asynchronous Batch Request\nThe Asynchronous API is appropriate for processing big volumes of relatively complex search requests\n- It allows the retrieval of results in a separate call (multiple downloads are possible).\n- The asynchronous API is optimized for reliability and is not expected to run into a timeout.\n- The number of batch items is limited to **10,000** for this API.\n\nWhen you make a request by using async request, by default the service returns a 202 response code along a redirect URL in the Location field of the response header. This URL should be checked periodically until the response data or error information is available.\nThe asynchronous responses are stored for **14** days. The redirect URL returns a 404 response if used after the expiration period.\n\nPlease note that asynchronous batch request is a long-running request. Here's a typical sequence of operations:\n1. Client sends a Search Address Batch `POST` request to Azure Maps\n2. The server will respond with one of the following:\n\n > HTTP `202 Accepted` - Batch request has been accepted.\n\n > HTTP `Error` - There was an error processing your Batch request. This could either be a `400 Bad Request` or any other `Error` status code.\n\n3. If the batch request was accepted successfully, the `Location` header in the response contains the URL to download the results of the batch request.\n This status URI looks like following:\n\n```\n GET https://atlas.microsoft.com/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\n4. Client issues a `GET` request on the _download URL_ obtained in Step 3 to download the batch results.\n\n### POST Body for Batch Request\nTo send the _search fuzzy_ queries you will use a `POST` request where the request body will contain the `batchItems` array in `json` format and the `Content-Type` header will be set to `application/json`. Here's a sample request body containing 5 _search fuzzy_ queries:\n\n\n```json\n{\n \"batchItems\": [\n {\"query\": \"?query=atm&lat=47.639769&lon=-122.128362&radius=5000&limit=5\"},\n {\"query\": \"?query=Statue Of Liberty&limit=2\"},\n {\"query\": \"?query=Starbucks&lat=47.639769&lon=-122.128362&radius=5000\"},\n {\"query\": \"?query=Space Needle\"},\n {\"query\": \"?query=pizza&limit=10\"}\n ]\n}\n```\n\nA _search fuzzy_ query in a batch is just a partial URL _without_ the protocol, base URL, path, api-version and subscription-key. It can accept any of the supported _search fuzzy_ [URI parameters](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchfuzzy#uri-parameters). The string values in the _search fuzzy_ query must be properly escaped (e.g. \" character should be escaped with \\\\ ) and it should also be properly URL-encoded.\n\n\nThe async API allows caller to batch up to **10,000** queries and sync API up to **100** queries, and the batch should contain at least **1** query.\n\n\n### Download Asynchronous Batch Results\nTo download the async batch results you will issue a `GET` request to the batch download endpoint. This _download URL_ can be obtained from the `Location` header of a successful `POST` batch request and looks like the following:\n\n```\nhttps://atlas.microsoft.com/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\nHere's the typical sequence of operations for downloading the batch results:\n1. Client sends a `GET` request using the _download URL_.\n2. The server will respond with one of the following:\n\n > HTTP `202 Accepted` - Batch request was accepted but is still being processed. Please try again in some time.\n\n > HTTP `200 OK` - Batch request successfully processed. The response body contains all the batch results.\n\n\n\n### Batch Response Model\nThe returned data content is similar for async and sync requests. When downloading the results of an async batch request, if the batch has finished processing, the response body contains the batch response. This batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests`i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item in `batchItems` contains `statusCode` and `response` fields. Each `response` in `batchItems` is of one of the following types:\n\n - [`SearchFuzzyResponse`](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchfuzzy#searchfuzzyresponse) - If the query completed successfully.\n\n - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.\n\n\nHere's a sample Batch Response with 2 _successful_ and 1 _failed_ result:\n\n\n```json\n{\n \"summary\": {\n \"successfulRequests\": 2,\n \"totalRequests\": 3\n },\n \"batchItems\": [\n {\n \"statusCode\": 200,\n \"response\":\n {\n \"summary\": {\n \"query\": \"atm\"\n },\n \"results\": [\n {\n \"type\": \"POI\",\n \"poi\": {\n \"name\": \"ATM at Wells Fargo\"\n },\n \"address\": {\n \"country\": \"United States Of America\",\n \"freeformAddress\": \"3240 157th Ave NE, Redmond, WA 98052\"\n }\n }\n ]\n }\n },\n {\n \"statusCode\": 200,\n \"response\":\n {\n \"summary\": {\n \"query\": \"statue of liberty\"\n },\n \"results\": [\n {\n \"type\": \"POI\",\n \"poi\": {\n \"name\": \"Statue of Liberty\"\n },\n \"address\": {\n \"country\": \"United States Of America\",\n \"freeformAddress\": \"New York, NY 10004\"\n }\n }\n ]\n }\n },\n {\n \"statusCode\": 400,\n \"response\":\n {\n \"error\":\n {\n \"code\": \"400 BadRequest\",\n \"message\": \"Bad request: one or more parameters were incorrectly specified or are mutually exclusive.\"\n }\n }\n }\n ]\n}\n```", + "operationId": "Search_PostSearchFuzzyBatch", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "A Search Fuzzy Batch API call containing 5 Search Fuzzy API queries": { + "$ref": "./examples/PostSearchFuzzyBatch.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ClientId" + }, + { + "$ref": "#/parameters/SubscriptionKey" + }, + { + "$ref": "#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/JsonFormat" + }, + { + "name": "searchFuzzyBatchRequestBody", + "in": "body", + "description": "The list of search fuzzy queries/requests to process. The list can contain a max of 10,000 queries and must contain at least 1 query.", + "required": true, + "schema": { + "$ref": "../../../Common/common.json#/definitions/BatchRequestBody" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "../../../Common/common.json#/definitions/BatchResponse" + } + }, + "202": { + "$ref": "#/responses/202Async" + }, + "400": { + "$ref": "#/responses/400" + }, + "401": { + "$ref": "#/responses/401" + }, + "403": { + "$ref": "#/responses/403" + }, + "404": { + "$ref": "#/responses/404" + }, + "500": { + "$ref": "#/responses/500" + } + }, + "produces": [ + "application/json" + ] + } + }, + "/search/address/batch/{format}": { + "post": { + "x-publish": true, + "description": "**Search Address Batch API**\n\n\n**Applies to**: S1 pricing tier.\n\n\n\nThe Search Address Batch API sends batches of queries to [Search Address API](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchaddress) using just a single API call. You can call Search Address Batch API to run either asynchronously (async) or synchronously (sync). The async API allows caller to batch up to **10,000** queries and sync API up to **100** queries.\n### Submit Synchronous Batch Request\nThe Synchronous API is recommended for lightweight batch requests. When the service receives a request, it will respond as soon as the batch items are calculated and there will be no possibility to retrieve the results later. The Synchronous API will return a timeout error (a 408 response) if the request takes longer than 60 seconds. The number of batch items is limited to **100** for this API.\n```\nPOST https://atlas.microsoft.com/search/address/batch/sync/json?api-version=1.0&subscription-key={subscription-key}\n```\n### Submit Asynchronous Batch Request\nThe Asynchronous API is appropriate for processing big volumes of relatively complex search requests\n- It allows the retrieval of results in a separate call (multiple downloads are possible).\n- The asynchronous API is optimized for reliability and is not expected to run into a timeout.\n- The number of batch items is limited to **10,000** for this API.\n\nWhen you make a request by using async request, by default the service returns a 202 response code along a redirect URL in the Location field of the response header. This URL should be checked periodically until the response data or error information is available.\nThe asynchronous responses are stored for **14** days. The redirect URL returns a 404 response if used after the expiration period.\n\nPlease note that asynchronous batch request is a long-running request. Here's a typical sequence of operations:\n1. Client sends a Search Address Batch `POST` request to Azure Maps\n2. The server will respond with one of the following:\n\n > HTTP `202 Accepted` - Batch request has been accepted.\n\n > HTTP `Error` - There was an error processing your Batch request. This could either be a `400 Bad Request` or any other `Error` status code.\n\n3. If the batch request was accepted successfully, the `Location` header in the response contains the URL to download the results of the batch request.\n This status URI looks like following:\n\n```\n GET https://atlas.microsoft.com/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\n4. Client issues a `GET` request on the _download URL_ obtained in Step 3 to download the batch results.\n\n### POST Body for Batch Request\nTo send the _search address_ queries you will use a `POST` request where the request body will contain the `batchItems` array in `json` format and the `Content-Type` header will be set to `application/json`. Here's a sample request body containing 5 _search address_ queries:\n\n\n```json\n{\n \"batchItems\": [\n {\"query\": \"?query=400 Broad St, Seattle, WA 98109&limit=3\"},\n {\"query\": \"?query=One, Microsoft Way, Redmond, WA 98052&limit=3\"},\n {\"query\": \"?query=350 5th Ave, New York, NY 10118&limit=1\"},\n {\"query\": \"?query=Pike Pl, Seattle, WA 98101&lat=47.610970&lon=-122.342469&radius=1000\"},\n {\"query\": \"?query=Champ de Mars, 5 Avenue Anatole France, 75007 Paris, France&limit=1\"}\n ]\n}\n```\n\nA _search address_ query in a batch is just a partial URL _without_ the protocol, base URL, path, api-version and subscription-key. It can accept any of the supported _search address_ [URI parameters](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchaddress#uri-parameters). The string values in the _search address_ query must be properly escaped (e.g. \" character should be escaped with \\\\ ) and it should also be properly URL-encoded.\n\n\nThe async API allows caller to batch up to **10,000** queries and sync API up to **100** queries, and the batch should contain at least **1** query.\n\n\n### Download Asynchronous Batch Results\nTo download the async batch results you will issue a `GET` request to the batch download endpoint. This _download URL_ can be obtained from the `Location` header of a successful `POST` batch request and looks like the following:\n\n```\nhttps://atlas.microsoft.com/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\nHere's the typical sequence of operations for downloading the batch results:\n1. Client sends a `GET` request using the _download URL_.\n2. The server will respond with one of the following:\n\n > HTTP `202 Accepted` - Batch request was accepted but is still being processed. Please try again in some time.\n\n > HTTP `200 OK` - Batch request successfully processed. The response body contains all the batch results.\n\n\n\n### Batch Response Model\nThe returned data content is similar for async and sync requests. When downloading the results of an async batch request, if the batch has finished processing, the response body contains the batch response. This batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests`i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item in `batchItems` contains `statusCode` and `response` fields. Each `response` in `batchItems` is of one of the following types:\n\n - [`SearchAddressResponse`](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchaddress#searchaddressresponse) - If the query completed successfully.\n\n - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.\n\n\nHere's a sample Batch Response with 2 _successful_ and 1 _failed_ result:\n\n\n```json\n{\n \"summary\": {\n \"successfulRequests\": 2,\n \"totalRequests\": 3\n },\n \"batchItems\": [\n {\n \"statusCode\": 200,\n \"response\":\n {\n \"summary\": {\n \"query\": \"one microsoft way redmond wa 98052\"\n },\n \"results\": [\n {\n \"position\": {\n \"lat\": 47.63989,\n \"lon\": -122.12509\n }\n }\n ]\n }\n },\n {\n \"statusCode\": 200,\n \"response\":\n {\n \"summary\": {\n \"query\": \"pike pl seattle wa 98101\"\n },\n \"results\": [\n {\n \"position\": {\n \"lat\": 47.60963,\n \"lon\": -122.34215\n }\n }\n ]\n }\n },\n {\n \"statusCode\": 400,\n \"response\":\n {\n \"error\":\n {\n \"code\": \"400 BadRequest\",\n \"message\": \"Bad request: one or more parameters were incorrectly specified or are mutually exclusive.\"\n }\n }\n }\n ]\n}\n```", + "operationId": "Search_PostSearchAddressBatch", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "An Address Geocoding Batch API call containing 5 Address Geocoding API queries": { + "$ref": "./examples/PostSearchAddressBatch.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ClientId" + }, + { + "$ref": "#/parameters/SubscriptionKey" + }, + { + "$ref": "#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/JsonFormat" + }, + { + "name": "searchAddressBatchRequestBody", + "in": "body", + "description": "The list of address geocoding queries/requests to process. The list can contain a max of 10,000 queries and must contain at least 1 query.", + "required": true, + "schema": { + "$ref": "../../../Common/common.json#/definitions/BatchRequestBody" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "../../../Common/common.json#/definitions/BatchResponse" + } + }, + "202": { + "$ref": "#/responses/202Async" + }, + "400": { + "$ref": "#/responses/400" + }, + "401": { + "$ref": "#/responses/401" + }, + "403": { + "$ref": "#/responses/403" + }, + "404": { + "$ref": "#/responses/404" + }, + "500": { + "$ref": "#/responses/500" + } + }, + "produces": [ + "application/json" + ] + } + }, + "/search/address/reverse/batch/{format}": { + "post": { + "x-publish": true, + "description": "**Search Address Reverse Batch API**\n\n\n**Applies to**: S1 pricing tier.\n\n\n\nThe Search Address Batch API sends batches of queries to [Search Address Reverse API](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchaddressreverse) using just a single API call. You can call Search Address Reverse Batch API to run either asynchronously (async) or synchronously (sync). The async API allows caller to batch up to **10,000** queries and sync API up to **100** queries.\n### Submit Synchronous Batch Request\nThe Synchronous API is recommended for lightweight batch requests. When the service receives a request, it will respond as soon as the batch items are calculated and there will be no possibility to retrieve the results later. The Synchronous API will return a timeout error (a 408 response) if the request takes longer than 60 seconds. The number of batch items is limited to **100** for this API.\n```\nPOST https://atlas.microsoft.com/search/address/reverse/batch/sync/json?api-version=1.0&subscription-key={subscription-key}\n```\n### Submit Asynchronous Batch Request\nThe Asynchronous API is appropriate for processing big volumes of relatively complex search requests\n- It allows the retrieval of results in a separate call (multiple downloads are possible).\n- The asynchronous API is optimized for reliability and is not expected to run into a timeout.\n- The number of batch items is limited to **10,000** for this API.\n\nWhen you make a request by using async request, by default the service returns a 202 response code along a redirect URL in the Location field of the response header. This URL should be checked periodically until the response data or error information is available.\nThe asynchronous responses are stored for **14** days. The redirect URL returns a 404 response if used after the expiration period.\n\nPlease note that asynchronous batch request is a long-running request. Here's a typical sequence of operations:\n1. Client sends a Search Address Batch `POST` request to Azure Maps\n2. The server will respond with one of the following:\n\n > HTTP `202 Accepted` - Batch request has been accepted.\n\n > HTTP `Error` - There was an error processing your Batch request. This could either be a `400 Bad Request` or any other `Error` status code.\n\n3. If the batch request was accepted successfully, the `Location` header in the response contains the URL to download the results of the batch request.\n This status URI looks like following:\n\n```\n GET https://atlas.microsoft.com/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\n4. Client issues a `GET` request on the _download URL_ obtained in Step 3 to download the batch results.\n\n### POST Body for Batch Request\nTo send the _search address reverse_ queries you will use a `POST` request where the request body will contain the `batchItems` array in `json` format and the `Content-Type` header will be set to `application/json`. Here's a sample request body containing 5 _search address reverse_ queries:\n\n\n```json\n{\n \"batchItems\": [\n {\"query\": \"?query=48.858561,2.294911\"},\n {\"query\": \"?query=47.639765,-122.127896&radius=5000&limit=2\"},\n {\"query\": \"?query=47.621028,-122.348170\"},\n {\"query\": \"?query=43.722990,10.396695\"},\n {\"query\": \"?query=40.750958,-73.982336\"}\n ]\n}\n```\n\nA _search address reverse_ query in a batch is just a partial URL _without_ the protocol, base URL, path, api-version and subscription-key. It can accept any of the supported _search address reverse_ [URI parameters](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchaddressreverse#uri-parameters). The string values in the _search address reverse_ query must be properly escaped (e.g. \" character should be escaped with \\\\ ) and it should also be properly URL-encoded.\n\n\nThe async API allows caller to batch up to **10,000** queries and sync API up to **100** queries, and the batch should contain at least **1** query.\n\n\n### Download Asynchronous Batch Results\nTo download the async batch results you will issue a `GET` request to the batch download endpoint. This _download URL_ can be obtained from the `Location` header of a successful `POST` batch request and looks like the following:\n\n```\nhttps://atlas.microsoft.com/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\nHere's the typical sequence of operations for downloading the batch results:\n1. Client sends a `GET` request using the _download URL_.\n2. The server will respond with one of the following:\n\n > HTTP `202 Accepted` - Batch request was accepted but is still being processed. Please try again in some time.\n\n > HTTP `200 OK` - Batch request successfully processed. The response body contains all the batch results.\n\n\n\n### Batch Response Model\nThe returned data content is similar for async and sync requests. When downloading the results of an async batch request, if the batch has finished processing, the response body contains the batch response. This batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests`i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item in `batchItems` contains `statusCode` and `response` fields. Each `response` in `batchItems` is of one of the following types:\n\n - [`SearchAddressReverseResponse`](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchaddressreverse#searchaddressreverseresponse) - If the query completed successfully.\n\n - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.\n\n\nHere's a sample Batch Response with 2 _successful_ and 1 _failed_ result:\n\n\n```json\n{\n \"summary\": {\n \"successfulRequests\": 2,\n \"totalRequests\": 3\n },\n \"batchItems\": [\n {\n \"statusCode\": 200,\n \"response\":\n {\n \"summary\": {\n \"queryTime\": 11\n },\n \"addresses\": [\n {\n \"address\": {\n \"country\": \"France\",\n \"freeformAddress\": \"Avenue Anatole France, 75007 Paris\"\n },\n \"position\": \"48.858490,2.294820\"\n }\n ]\n }\n },\n {\n \"statusCode\": 200,\n \"response\":\n {\n \"summary\": {\n \"queryTime\": 1\n },\n \"addresses\": [\n {\n \"address\": {\n \"country\": \"United States of America\",\n \"freeformAddress\": \"157th Pl NE, Redmond WA 98052\"\n },\n \"position\": \"47.640470,-122.129430\"\n }\n ]\n }\n },\n {\n \"statusCode\": 400,\n \"response\":\n {\n \"error\":\n {\n \"code\": \"400 BadRequest\",\n \"message\": \"Bad request: one or more parameters were incorrectly specified or are mutually exclusive.\"\n }\n }\n }\n ]\n}\n```", + "operationId": "Search_PostSearchAddressReverseBatch", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "A Reverse Geocoding Batch API call containing 5 Reverse Geocoding API queries": { + "$ref": "./examples/PostSearchAddressReverseBatch.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ClientId" + }, + { + "$ref": "#/parameters/SubscriptionKey" + }, + { + "$ref": "#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/JsonFormat" + }, + { + "name": "searchAddressReverseBatchRequestBody", + "in": "body", + "description": "The list of reverse geocoding queries/requests to process. The list can contain a max of 10,000 queries and must contain at least 1 query.", + "required": true, + "schema": { + "$ref": "../../../Common/common.json#/definitions/BatchRequestBody" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "../../../Common/common.json#/definitions/BatchResponse" + } + }, + "202": { + "$ref": "#/responses/202Async" + }, + "400": { + "$ref": "#/responses/400" + }, + "401": { + "$ref": "#/responses/401" + }, + "403": { + "$ref": "#/responses/403" + }, + "404": { + "$ref": "#/responses/404" + }, + "500": { + "$ref": "#/responses/500" + } + }, + "produces": [ + "application/json" + ] + } + } + }, + "definitions": { + "PoiCategoryResponse": { + "description": "This object is returned from a successful POI Category Tree call", + "type": "object", + "properties": { + "poiCategories": { + "description": "Categories array", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/PoiCategoryResult" + } + } + } + }, + "PoiCategoryResult": { + "description": "POI category result", + "type": "object", + "properties": { + "id": { + "description": "Unique ID for the category. ID can be used to restrict search results to specific categories through other Search Service APIs, like [Get Search POI](https://docs.microsoft.com/rest/api/maps/search/getsearchpoi).", + "type": "integer", + "readOnly": true + }, + "name": { + "description": "Name of the category", + "type": "string", + "readOnly": true + }, + "childCategoryIds": { + "description": "Array of child category ids", + "type": "array", + "items": { + "type": "integer", + "readOnly": true + }, + "readOnly": true + }, + "synonyms": { + "description": "Array of alternative names of the category", + "type": "array", + "items": { + "type": "string", + "readOnly": true + }, + "readOnly": true + } + } + }, + "SearchPolygonResponse": { + "description": "This object is returned from a successful Search Polygon call", + "type": "object", + "properties": { + "additionalData": { + "description": "Results array", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/SearchPolygonResult" + } + } + } + }, + "SearchPolygonResult": { + "type": "object", + "properties": { + "providerID": { + "description": "ID of the returned entity", + "type": "string", + "readOnly": true + }, + "error": { + "description": "Reason for the failure to obtain data for this provider.", + "type": "string", + "readOnly": true + }, + "geometryData": { + "description": "Geometry data in GeoJSON format. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946) for details. Present only if \"error\" is not present.", + "$ref": "../../../Common/common.json#/definitions/Geometry" + } + } + }, + "SearchFuzzyResponse": { + "description": "This object is returned from a successful Search Fuzzy call", + "type": "object", + "properties": { + "summary": { + "$ref": "#/definitions/SearchFuzzySummary" + }, + "results": { + "description": "Results array", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/SearchFuzzyResult" + } + } + } + }, + "SearchFuzzySummary": { + "description": "Summary object for a Search Fuzzy response", + "type": "object", + "readOnly": true, + "properties": { + "query": { + "description": "Query property", + "type": "string", + "readOnly": true + }, + "queryType": { + "description": "QueryType property", + "type": "string", + "readOnly": true + }, + "queryTime": { + "description": "QueryTime property", + "type": "integer", + "readOnly": true + }, + "numResults": { + "description": "NumResults property", + "type": "integer", + "readOnly": true + }, + "offset": { + "description": "Offset property", + "type": "integer", + "readOnly": true + }, + "totalResults": { + "description": "TotalResults property", + "type": "integer", + "readOnly": true + }, + "fuzzyLevel": { + "description": "FuzzyLevel property", + "type": "integer", + "readOnly": true + } + } + }, + "SearchFuzzyResult": { + "type": "object", + "properties": { + "type": { + "description": "One of:\n* POI\n* Street\n* Geography\n* Point Address\n* Address Range\n* Cross Street", + "type": "string", + "readOnly": true + }, + "id": { + "description": "Id property", + "type": "string", + "readOnly": true + }, + "score": { + "$ref": "#/definitions/SearchResultScore" + }, + "info": { + "description": "Info property", + "type": "string", + "readOnly": true + }, + "entityType": { + "$ref": "#/definitions/EntityType" + }, + "poi": { + "$ref": "#/definitions/SearchResultPoi" + }, + "address": { + "$ref": "#/definitions/SearchResultAddress" + }, + "position": { + "$ref": "../../../Common/common.json#/definitions/CoordinateAbbreviated" + }, + "viewport": { + "$ref": "#/definitions/SearchResultViewport" + }, + "entryPoints": { + "description": "Entry Points array", + "type": "array", + "items": { + "$ref": "#/definitions/SearchResultEntryPoint" + } + }, + "addressRanges": { + "$ref": "#/definitions/SearchResultAddressRanges" + }, + "dataSources": { + "$ref": "#/definitions/DataSources" + } + } + }, + "SearchPoiResponse": { + "description": "This object is returned from a successful Search POI call", + "type": "object", + "properties": { + "summary": { + "$ref": "#/definitions/SearchPoiSummary" + }, + "results": { + "description": "Results array", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/SearchPoiResult" + } + } + } + }, + "SearchPoiSummary": { + "description": "Summary object for a Search POI response", + "type": "object", + "readOnly": true, + "properties": { + "query": { + "description": "Query property", + "type": "string", + "readOnly": true + }, + "queryType": { + "description": "QueryType property", + "type": "string", + "readOnly": true + }, + "queryTime": { + "description": "QueryTime property", + "type": "integer", + "readOnly": true + }, + "numResults": { + "description": "NumResults property", + "type": "integer", + "readOnly": true + }, + "offset": { + "description": "Offset property", + "type": "integer", + "readOnly": true + }, + "totalResults": { + "description": "TotalResults property", + "type": "integer", + "readOnly": true + }, + "fuzzyLevel": { + "description": "FuzzyLevel property", + "type": "integer", + "readOnly": true + }, + "geoBias": { + "$ref": "#/definitions/SearchSummaryGeoBias" + } + } + }, + "SearchPoiResult": { + "type": "object", + "properties": { + "type": { + "description": "Type property", + "type": "string", + "readOnly": true + }, + "id": { + "description": "Id property", + "type": "string", + "readOnly": true + }, + "score": { + "$ref": "#/definitions/SearchResultScore" + }, + "dist": { + "$ref": "#/definitions/SearchResultDistance" + }, + "info": { + "description": "Info property", + "type": "string", + "readOnly": true + }, + "entityType": { + "$ref": "#/definitions/EntityType" + }, + "poi": { + "$ref": "#/definitions/SearchResultPoi" + }, + "address": { + "$ref": "#/definitions/SearchResultAddress" + }, + "position": { + "$ref": "../../../Common/common.json#/definitions/CoordinateAbbreviated" + }, + "viewport": { + "$ref": "#/definitions/SearchResultViewport" + }, + "entryPoints": { + "description": "Entry Points array", + "type": "array", + "items": { + "$ref": "#/definitions/SearchResultEntryPoint" + } + } + } + }, + "SearchNearbyResponse": { + "description": "This object is returned from a successful Search Nearby call", + "type": "object", + "properties": { + "summary": { + "$ref": "#/definitions/SearchNearbySummary" + }, + "results": { + "description": "Results array", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/SearchNearbyResult" + } + } + } + }, + "SearchNearbySummary": { + "description": "Summary object for a Search Nearby response", + "type": "object", + "readOnly": true, + "properties": { + "queryType": { + "description": "QueryType property", + "type": "string", + "readOnly": true + }, + "queryTime": { + "description": "QueryTime property", + "type": "integer", + "readOnly": true + }, + "numResults": { + "description": "NumResults property", + "type": "integer", + "readOnly": true + }, + "offset": { + "description": "Offset property", + "type": "integer", + "readOnly": true + }, + "totalResults": { + "description": "TotalResults property", + "type": "integer", + "readOnly": true + }, + "fuzzyLevel": { + "description": "FuzzyLevel property", + "type": "integer", + "readOnly": true + }, + "geoBias": { + "$ref": "#/definitions/SearchSummaryGeoBias" + } + } + }, + "SearchNearbyResult": { + "type": "object", + "properties": { + "type": { + "description": "Type property", + "type": "string", + "readOnly": true + }, + "id": { + "description": "Id property", + "type": "string", + "readOnly": true + }, + "score": { + "$ref": "#/definitions/SearchResultScore" + }, + "dist": { + "$ref": "#/definitions/SearchResultDistance" + }, + "info": { + "description": "Info property", + "type": "string", + "readOnly": true + }, + "poi": { + "$ref": "#/definitions/SearchResultPoi" + }, + "address": { + "$ref": "#/definitions/SearchResultAddress" + }, + "position": { + "$ref": "../../../Common/common.json#/definitions/CoordinateAbbreviated" + }, + "viewport": { + "$ref": "#/definitions/SearchResultViewport" + }, + "entryPoints": { + "description": "Entry Points array", + "type": "array", + "items": { + "$ref": "#/definitions/SearchResultEntryPoint" + } + } + } + }, + "SearchPoiCategoryResponse": { + "description": "This object is returned from a successful Search POI Category call", + "type": "object", + "properties": { + "summary": { + "$ref": "#/definitions/SearchPoiCategorySummary" + }, + "results": { + "description": "Results array", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/SearchPoiCategoryResult" + } + } + } + }, + "SearchPoiCategorySummary": { + "description": "Summary object for a Search POI Category response", + "type": "object", + "readOnly": true, + "properties": { + "query": { + "description": "Query property", + "type": "string", + "readOnly": true + }, + "queryType": { + "description": "QueryType property", + "type": "string", + "readOnly": true + }, + "queryTime": { + "description": "QueryTime property", + "type": "integer", + "readOnly": true + }, + "numResults": { + "description": "NumResults property", + "type": "integer", + "readOnly": true + }, + "offset": { + "description": "Offset property", + "type": "integer", + "readOnly": true + }, + "totalResults": { + "description": "TotalResults property", + "type": "integer", + "readOnly": true + }, + "fuzzyLevel": { + "description": "FuzzyLevel property", + "type": "integer", + "readOnly": true + }, + "geoBias": { + "$ref": "#/definitions/SearchSummaryGeoBias" + } + } + }, + "SearchPoiCategoryResult": { + "type": "object", + "properties": { + "type": { + "description": "Type property", + "type": "string", + "readOnly": true + }, + "id": { + "description": "Id property", + "type": "string", + "readOnly": true + }, + "score": { + "$ref": "#/definitions/SearchResultScore" + }, + "dist": { + "$ref": "#/definitions/SearchResultDistance" + }, + "info": { + "description": "Info property", + "type": "string", + "readOnly": true + }, + "entityType": { + "$ref": "#/definitions/EntityType" + }, + "poi": { + "$ref": "#/definitions/SearchResultPoi" + }, + "address": { + "$ref": "#/definitions/SearchResultAddress" + }, + "position": { + "$ref": "../../../Common/common.json#/definitions/CoordinateAbbreviated" + }, + "viewport": { + "$ref": "#/definitions/SearchResultViewport" + }, + "entryPoints": { + "description": "Entry Points array", + "type": "array", + "items": { + "$ref": "#/definitions/SearchResultEntryPoint" + } + } + } + }, + "SearchAddressResponse": { + "description": "This object is returned from a successful Search Address call", + "type": "object", + "properties": { + "summary": { + "$ref": "#/definitions/SearchAddressSummary" + }, + "results": { + "description": "Results array", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/SearchAddressResult" + } + } + } + }, + "SearchAddressSummary": { + "description": "Summary object for a Search Address response", + "type": "object", + "readOnly": true, + "properties": { + "query": { + "description": "Query property", + "type": "string", + "readOnly": true + }, + "queryType": { + "description": "QueryType property", + "type": "string", + "readOnly": true + }, + "queryTime": { + "description": "QueryTime property", + "type": "integer", + "readOnly": true + }, + "numResults": { + "description": "NumResults property", + "type": "integer", + "readOnly": true + }, + "offset": { + "description": "Offset property", + "type": "integer", + "readOnly": true + }, + "totalResults": { + "description": "TotalResults property", + "type": "integer", + "readOnly": true + }, + "fuzzyLevel": { + "description": "FuzzyLevel property", + "type": "integer", + "readOnly": true + } + } + }, + "SearchAddressResult": { + "type": "object", + "properties": { + "type": { + "description": "One of:\n* POI\n* Street\n* Geography\n* Point Address\n* Address Range\n* Cross Street", + "type": "string", + "readOnly": true + }, + "id": { + "description": "Id property", + "type": "string", + "readOnly": true + }, + "score": { + "$ref": "#/definitions/SearchResultScore" + }, + "address": { + "$ref": "#/definitions/SearchResultAddress" + }, + "position": { + "$ref": "../../../Common/common.json#/definitions/CoordinateAbbreviated" + }, + "viewport": { + "$ref": "#/definitions/SearchResultViewport" + }, + "entryPoints": { + "description": "Entry Points array", + "type": "array", + "items": { + "$ref": "#/definitions/SearchResultEntryPoint" + } + }, + "dataSources": { + "$ref": "#/definitions/DataSources" + } + } + }, + "SearchAddressReverseResponse": { + "description": "This object is returned from a successful Search Address Reverse call", + "type": "object", + "properties": { + "summary": { + "$ref": "#/definitions/SearchAddressReverseSummary" + }, + "addresses": { + "description": "Addresses array", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/SearchAddressReverseResult" + } + } + } + }, + "SearchAddressReverseSummary": { + "description": "Summary object for a Search Address Reverse response", + "type": "object", + "readOnly": true, + "properties": { + "queryTime": { + "description": "QueryTime property", + "type": "integer", + "readOnly": true + }, + "numResults": { + "description": "NumResults property", + "type": "integer", + "readOnly": true + } + } + }, + "SearchAddressReverseResult": { + "type": "object", + "properties": { + "address": { + "$ref": "#/definitions/SearchResultAddress" + }, + "position": { + "type": "string", + "readOnly": true, + "description": "Position property in the form of \"{latitude},{longitude}\"" + }, + "matchType": { + "type": "string", + "readOnly": true, + "description": "Information on the type of match.\n\nOne of:\n * AddressPoint\n * HouseNumberRange\n * Street" + } + } + }, + "SearchAddressReverseCrossStreetResponse": { + "description": "This object is returned from a successful Search Address Reverse CrossStreet call", + "type": "object", + "properties": { + "summary": { + "$ref": "#/definitions/SearchAddressReverseCrossStreetSummary" + }, + "addresses": { + "description": "Addresses array", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/SearchAddressReverseCrossStreetResult" + } + } + } + }, + "SearchAddressReverseCrossStreetSummary": { + "description": "Summary object for a Search Address Reverse Cross Street response", + "type": "object", + "readOnly": true, + "properties": { + "queryTime": { + "description": "QueryTime property", + "type": "integer", + "readOnly": true + }, + "numResults": { + "description": "NumResults property", + "type": "integer", + "readOnly": true + } + } + }, + "SearchAddressReverseCrossStreetResult": { + "type": "object", + "properties": { + "address": { + "$ref": "#/definitions/SearchResultAddress" + }, + "position": { + "type": "string", + "readOnly": true, + "description": "Position property in the form of \"{latitude},{longitude}\"" + } + } + }, + "SearchAddressStructuredResponse": { + "description": "This object is returned from a successful Search Address Structured call", + "type": "object", + "properties": { + "summary": { + "$ref": "#/definitions/SearchAddressStructuredSummary" + }, + "results": { + "description": "Results array", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/SearchAddressStructuredResult" + } + } + } + }, + "SearchAddressStructuredSummary": { + "description": "Summary object for a Search Address Structured response", + "type": "object", + "readOnly": true, + "properties": { + "query": { + "description": "Query property", + "type": "string", + "readOnly": true + }, + "queryType": { + "description": "QueryType property", + "type": "string", + "readOnly": true + }, + "queryTime": { + "description": "QueryTime property", + "type": "integer", + "readOnly": true + }, + "numResults": { + "description": "NumResults property", + "type": "integer", + "readOnly": true + }, + "limit": { + "description": "Maximum number of responses that will be returned", + "readOnly": true, + "type": "integer" + }, + "offset": { + "description": "Offset property", + "type": "integer", + "readOnly": true + }, + "totalResults": { + "description": "TotalResults property", + "type": "integer", + "readOnly": true + }, + "fuzzyLevel": { + "description": "FuzzyLevel property", + "type": "integer", + "readOnly": true + }, + "geoBias": { + "$ref": "#/definitions/SearchSummaryGeoBias" + } + } + }, + "SearchAddressStructuredResult": { + "type": "object", + "properties": { + "type": { + "description": "Type property", + "type": "string", + "readOnly": true + }, + "id": { + "description": "Id property", + "type": "string", + "readOnly": true + }, + "score": { + "$ref": "#/definitions/SearchResultScore" + }, + "dist": { + "$ref": "#/definitions/SearchResultDistance" + }, + "address": { + "$ref": "#/definitions/SearchResultAddress" + }, + "position": { + "$ref": "../../../Common/common.json#/definitions/CoordinateAbbreviated" + }, + "viewport": { + "$ref": "#/definitions/SearchResultViewport" + }, + "entryPoints": { + "description": "Entry Points array", + "type": "array", + "items": { + "$ref": "#/definitions/SearchResultEntryPoint" + } + }, + "addressRanges": { + "$ref": "#/definitions/SearchResultAddressRanges" + } + } + }, + "SearchGeometryResponse": { + "description": "This object is returned from a successful Search By Geometry call", + "type": "object", + "properties": { + "summary": { + "$ref": "#/definitions/SearchGeometrySummary" + }, + "results": { + "description": "A list of Search Inside Geometry results.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/SearchGeometryResult" + } + } + } + }, + "SearchGeometrySummary": { + "description": "Summary object for a Search Geometry response", + "type": "object", + "readOnly": true, + "properties": { + "query": { + "description": "Query property", + "type": "string", + "readOnly": true + }, + "queryType": { + "description": "QueryType property", + "type": "string", + "readOnly": true + }, + "queryTime": { + "description": "QueryTime property", + "type": "integer", + "readOnly": true + }, + "numResults": { + "description": "NumResults property", + "type": "integer", + "readOnly": true + }, + "offset": { + "description": "Offset property", + "type": "integer", + "readOnly": true + }, + "totalResults": { + "description": "TotalResults property", + "type": "integer", + "readOnly": true + }, + "fuzzyLevel": { + "description": "FuzzyLevel property", + "type": "integer", + "readOnly": true + } + } + }, + "SearchGeometryResult": { + "description": "This type represents the Search Inside Geometry result object.", + "type": "object", + "properties": { + "type": { + "description": "Type property", + "type": "string", + "readOnly": true + }, + "id": { + "description": "Id property", + "type": "string", + "readOnly": true + }, + "score": { + "$ref": "#/definitions/SearchResultScore" + }, + "info": { + "description": "Info property", + "type": "string", + "readOnly": true + }, + "entityType": { + "$ref": "#/definitions/EntityType" + }, + "poi": { + "$ref": "#/definitions/SearchResultPoi" + }, + "address": { + "$ref": "#/definitions/SearchResultAddress" + }, + "position": { + "$ref": "../../../Common/common.json#/definitions/CoordinateAbbreviated" + }, + "viewport": { + "$ref": "#/definitions/SearchResultViewport" + }, + "entryPoints": { + "description": "Entry Points array", "type": "array", "items": { - "description": "A valid `GeoJSON Feature` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.2) for details.", - "type": "object", - "properties": { - "type": { - "description": "Specifies the `type` for the object. Value should always be equal to \"Feature\".", - "type": "string" - }, - "geometry": { - "$ref": "../../../Common/common.json#/definitions/GeoJSONGeometry" - }, - "properties": { - "description": "Properties can contain any additional metadata about the `Feature`. Value can be any JSON object or a JSON null value", - "type": "object" - } - } + "$ref": "#/definitions/SearchResultEntryPoint" } } - }, - "required": [ - "features", - "type" - ] + } + }, + "SearchAlongRouteResponse": { + "description": "This object is returned from a successful Search Along Route call.", + "type": "object", + "properties": { + "summary": { + "$ref": "#/definitions/SearchAlongRouteSummary" + }, + "results": { + "description": "A list of Search Along Route results.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/SearchAlongRouteResult" + } + } + } }, - "GeofenceGeometry": { - "description": "The geofencing geometry.", + "SearchAlongRouteSummary": { + "description": "Summary object for a Search Along Route response", "type": "object", "readOnly": true, "properties": { - "deviceId": { - "description": "ID of the device.", + "query": { + "description": "Query property", "type": "string", "readOnly": true }, - "udId": { - "description": "The unique id returned from [Data Upload API](https://docs.microsoft.com/en-us/rest/api/maps/data/uploadPreview) after uploading a valid GeoJSON FeatureCollection object. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.3) for details. All the feature's properties should contain `geometryId`, which is used for identifying the geometry and is case-sensitive.", + "queryType": { + "description": "QueryType property", "type": "string", "readOnly": true }, - "geometryId": { - "description": "The unique id identifies a geometry.", - "type": "string", + "queryTime": { + "description": "QueryTime property", + "type": "integer", "readOnly": true }, - "distance": { - "description": "Distance from the coordinate to the closest border of the geofence. Positive means the coordinate is outside of the geofence. If the coordinate is outside of the geofence, but more than the value of searchBuffer away from the closest geofence border, then the value is 999. Negative means the coordinate is inside of the geofence. If the coordinate is inside the polygon, but more than the value of searchBuffer away from the closest geofencing border, then the value is -999. A value of 999 means that there is great confidence the coordinate is well outside the geofence. A value of -999 means that there is great confidence the coordinate is well within the geofence.", - "type": "number", + "numResults": { + "description": "NumResults property", + "type": "integer", "readOnly": true }, - "nearestLat": { - "description": "Latitude of the nearest point of the geometry.", - "type": "number", + "offset": { + "description": "Offset property", + "type": "integer", "readOnly": true }, - "nearestLon": { - "description": "Longitude of the nearest point of the geometry.", - "type": "number", + "totalResults": { + "description": "TotalResults property", + "type": "integer", "readOnly": true }, - "nearestZ": { - "description": "Sea level in meter of the nearest point on the 2D extrusion geometry. This will only be presented in response when value is provided for 'zInMeter' in the request.", - "type": "number", + "fuzzyLevel": { + "description": "FuzzyLevel property", + "type": "integer", "readOnly": true } } }, - "GeofenceResponse": { - "description": "This object is returned from a geofence proximity call.", + "SearchAlongRouteResult": { + "description": "This type represents the Search Along Route result object.", "type": "object", "properties": { - "geometries": { - "description": "Lists the fence geometries that contain the coordinate position or overlap the searchBuffer around the position.", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/GeofenceGeometry" - } + "type": { + "description": "Type property", + "type": "string", + "readOnly": true }, - "expiredGeofenceGeometryId": { - "description": "Lists of the geometry ID of the geofence which is expired relative to the user time in the request.", - "type": "array", - "readOnly": true, - "items": { - "type": "string" - } + "id": { + "description": "Id property", + "type": "string", + "readOnly": true + }, + "score": { + "$ref": "#/definitions/SearchResultScore" + }, + "info": { + "description": "Info property", + "type": "string", + "readOnly": true + }, + "entityType": { + "$ref": "#/definitions/EntityType" + }, + "poi": { + "$ref": "#/definitions/SearchResultPoi" + }, + "address": { + "$ref": "#/definitions/SearchResultAddress" }, - "invalidPeriodGeofenceGeometryId": { - "description": "Lists of the geometry ID of the geofence which is in invalid period relative to the user time in the request.", + "position": { + "$ref": "../../../Common/common.json#/definitions/CoordinateAbbreviated" + }, + "viewport": { + "$ref": "#/definitions/SearchResultViewport" + }, + "entryPoints": { + "description": "Entry Points array", "type": "array", - "readOnly": true, "items": { - "type": "string" + "$ref": "#/definitions/SearchResultEntryPoint" } }, - "isEventPublished": { - "description": "True if at least one event is published to the Azure Maps event subscriber, false if no event is published to the Azure Maps event subscriber. This will only be presented in response when 'isAsync' query parameter is set to true.", - "type": "boolean", + "dist": { + "$ref": "#/definitions/SearchResultDistance" + }, + "detourTime": { + "description": "Detour time in seconds", + "type": "number", "readOnly": true } } }, - "BufferRequestBody": { - "description": "An object with a FeatureCollection and a list of distances. All the feature's properties should contain `geometryId`, which is used for identifying the geometry and is case-sensitive.", + "SearchInsideGeometryRequestBody": { + "description": "This type represents the request body for the Search Inside Geometry service.", "type": "object", "properties": { - "geometries": { - "$ref": "#/definitions/GeoJSONFeatureCollection" - }, - "distances": { - "description": "List of the distances to compute the buffer for, one-to-one per Feature in the collection, or one for all Features in the collection.", - "type": "array", - "items": { - "type": "number" - } + "geometry": { + "$ref": "../../../Common/common.json#/definitions/Geometry" } } }, - "BufferResponse": { - "description": "This object is returned from a successful Spatial Buffer call.", + "SearchAlongRouteRequestBody": { + "description": "This type represents the request body for the Search Along Route service.", "type": "object", "properties": { - "summary": { - "description": "Summary of the call.", - "type": "object", - "readOnly": true, - "properties": { - "udid": { - "description": "The udid for the user data if one exists", - "type": "string", - "readOnly": true - }, - "information": { - "description": "The information about what happened during the call.", - "type": "string", - "readOnly": true - } - } - }, - "result": { - "description": "The FeatureCollection of buffers for the input.", - "$ref": "#/definitions/GeoJSONFeatureCollection" + "route": { + "$ref": "../../../Common/common.json#/definitions/LineString" } } }, - "BoundingBoxResponse": { - "description": "This object is returned from a successful Spatial BoundingBox call.", + "SearchResultPoi": { + "description": "Details of the returned POI including information such as the name, phone, url address, and classifications.", "type": "object", "properties": { - "summary": { - "description": "Summary of the call.", - "type": "object", + "name": { + "description": "Name of the POI property", + "type": "string", + "readOnly": true + }, + "phone": { + "description": "Telephone number property", + "type": "string", + "readOnly": true + }, + "url": { + "description": "Website URL property", + "type": "string", + "readOnly": true + }, + "categorySet": { + "description": "The list of the most specific POI categories", + "type": "array", "readOnly": true, - "properties": { - "udid": { - "description": "The udid for the user data if one exists", - "type": "string", - "readOnly": true - }, - "information": { - "description": "The information about what happened during the call.", - "type": "string", - "readOnly": true - } + "items": { + "$ref": "#/definitions/SearchResultPoiCategorySet" } }, - "result": { - "description": "The bounding box of the input feature collection.", - "type": "object", + "categories": { + "description": "__[Deprecated]__ Use classifications instead. Categories array", + "type": "array", "readOnly": true, - "properties": { - "feature": { - "description": "The resulting feature with bounding box geometry", - "type": "object", - "readOnly": true - } + "items": { + "type": "string", + "readOnly": true + } + }, + "classifications": { + "description": "Classification array", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/SearchResultPoiClassification" + } + }, + "brands": { + "description": "Brands array. The name of the brand for the POI being returned.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/SearchResultPoiBrand" } + }, + "openingHours": { + "$ref": "#/definitions/SearchResultPoiOpeningHours" } } }, - "GetClosestPointResponse": { - "description": "This object is returned from a successful Get Spatial Closest Point call", + "SearchResultPoiCategorySet": { + "description": "POI category", "type": "object", "properties": { - "summary": { - "$ref": "#/definitions/GetClosestPointSummary" - }, - "result": { - "$ref": "#/definitions/ClosestPointResult" + "id": { + "description": "Category ID", + "type": "integer", + "readOnly": true } } }, - "PostClosestPointResponse": { - "description": "This object is returned from a successful Post Spatial Closest Point call", + "SearchResultPoiClassification": { + "description": "The classification for the POI being returned", "type": "object", "properties": { - "summary": { - "$ref": "#/definitions/PostClosestPointSummary" + "code": { + "description": "Code property", + "type": "string", + "readOnly": true }, - "result": { - "$ref": "#/definitions/ClosestPointResult" + "names": { + "description": "Names array", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/SearchResultPoiClassificationName" + } } } }, - "GetClosestPointSummary": { - "description": "Get Closest Point Summary object", + "SearchResultPoiClassificationName": { + "description": "Name for the classification", "type": "object", - "readOnly": true, "properties": { - "sourcePoint": { - "$ref": "#/definitions/SpatialCoordinate" - }, - "udid": { - "description": "A unique data id (udid) for the uploaded content", + "nameLocale": { + "description": "Name Locale property", "type": "string", "readOnly": true }, - "information": { - "description": "Processing information", + "name": { + "description": "Name property", "type": "string", "readOnly": true } } }, - "PostClosestPointSummary": { - "description": "Post Closest Point Summary object", + "SearchResultPoiOpeningHours": { + "description": "Opening hours for a POI (Points of Interest).", "type": "object", - "readOnly": true, "properties": { - "sourcePoint": { - "$ref": "#/definitions/SpatialCoordinate" - }, - "udid": { - "description": "A unique data id (udid) for the uploaded content. Udid is not applicable for POST spatial operations(set to null)", + "mode": { + "description": "Value used in the Request", "type": "string", "readOnly": true }, - "information": { - "description": "Processing information", - "type": "string", - "readOnly": true + "timeRanges": { + "description": "List of time ranges for the next 7 days", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/SearchResultPoiOpeningHoursTimeRange" + } } } }, - "ClosestPointResult": { - "description": "Closest Point Result Array", - "type": "array", - "items": { - "$ref": "#/definitions/ClosestPointResultEntry" - } - }, - "ClosestPointResultEntry": { - "description": "Closest Point Result Entry Object", + "SearchResultPoiOpeningHoursTimeRange": { + "description": "Open time range for a day", "type": "object", - "readOnly": true, "properties": { - "distanceInMeters": { - "description": "The distance in meters from the source point to the closest point", - "type": "number", - "readOnly": true - }, - "position": { - "$ref": "#/definitions/SpatialCoordinate" + "startTime": { + "description": "The point in the next 7 days range when a given POI is being opened, or the beginning of the range if it was opened before the range.", + "$ref": "#/definitions/SearchResultPoiOpeningHoursTimeRangeTime" }, - "geometryId": { - "description": "The unique id identifies a geometry", - "type": "string", - "readOnly": true + "endTime": { + "description": "The point in the next 7 days range when a given POI is being closed, or the beginning of the range if it was closed before the range.", + "$ref": "#/definitions/SearchResultPoiOpeningHoursTimeRangeTime" } } }, - "GetPointInPolygonResponse": { - "description": "Returns true if point is within the polygon, false otherwise", + "SearchResultPoiOpeningHoursTimeRangeTime": { + "description": "Represents a date and time", "type": "object", "properties": { - "summary": { - "$ref": "#/definitions/GetPointInPolygonSummary" + "date": { + "description": "Represents current day in calendar year in POI time zone.", + "type": "string", + "readOnly": true }, - "result": { - "$ref": "#/definitions/PointInPolygonResult" + "hour": { + "description": "Hours are in the 24 hour format in the local time of a POI; possible values are 0 - 23.", + "type": "integer", + "readOnly": true + }, + "minute": { + "description": "Minutes are in the local time of a POI; possible values are 0 - 59.", + "type": "integer", + "readOnly": true } } }, - "PostPointInPolygonResponse": { - "description": "Returns true if point is within the polygon, false otherwise", + "SearchResultPoiBrand": { + "description": "The name of the brand for the POI being returned", "type": "object", "properties": { - "summary": { - "$ref": "#/definitions/PostPointInPolygonSummary" - }, - "result": { - "$ref": "#/definitions/PointInPolygonResult" + "name": { + "description": "Name of the brand", + "type": "string", + "readOnly": true } } }, - "GetPointInPolygonSummary": { - "description": "Point In Polygon Summary object", + "SearchResultAddress": { + "description": "The address of the result", "type": "object", - "readOnly": true, "properties": { - "sourcePoint": { - "$ref": "#/definitions/SpatialCoordinate" + "buildingNumber": { + "description": "Building Number property", + "type": "string", + "readOnly": true + }, + "street": { + "description": "Street property", + "type": "string", + "readOnly": true + }, + "crossStreet": { + "description": "Cross Street property", + "type": "string", + "readOnly": true + }, + "streetNumber": { + "description": "Street Number property", + "type": "string", + "readOnly": true + }, + "routeNumbers": { + "description": "number of routes", + "type": "array", + "items": { + "type": "integer", + "readOnly": true + }, + "readOnly": true + }, + "streetName": { + "description": "Street Name property", + "type": "string", + "readOnly": true + }, + "streetNameAndNumber": { + "description": "Street Name and Number property", + "type": "string", + "readOnly": true + }, + "municipality": { + "description": "Municipality property", + "type": "string", + "readOnly": true + }, + "municipalitySubdivision": { + "description": "Municipality Subdivision property", + "type": "string", + "readOnly": true }, - "udid": { - "description": "A unique data id (udid) for the uploaded content", + "countryTertiarySubdivision": { + "description": "Country Tertiary Subdivision property", "type": "string", "readOnly": true }, - "information": { - "description": "Processing information", + "countrySecondarySubdivision": { + "description": "Country Secondary Subdivision property", + "type": "string", + "readOnly": true + }, + "countrySubdivision": { + "description": "Country Subdivision property", + "type": "string", + "readOnly": true + }, + "postalCode": { + "description": "Postal Code property", + "type": "string", + "readOnly": true + }, + "extendedPostalCode": { + "description": "Extended Postal Code property", + "type": "string", + "readOnly": true + }, + "countryCode": { + "description": "Country Code property", + "type": "string", + "readOnly": true + }, + "country": { + "description": "Country property", + "type": "string", + "readOnly": true + }, + "countryCodeISO3": { + "description": "Country Code ISO3 property", + "type": "string", + "readOnly": true + }, + "freeformAddress": { + "description": "Free form Address property", + "type": "string", + "readOnly": true + }, + "countrySubdivisionName": { + "description": "Country Subdivision Name property", + "type": "string", + "readOnly": true + }, + "localName": { + "description": "An address component which represents the name of a geographic area or locality that groups a number of addressable objects for addressing purposes, without being an administrative unit. This field is used to build the `freeformAddress` property.", "type": "string", "readOnly": true } } }, - "PostPointInPolygonSummary": { - "description": "Point In Polygon Summary object", + "SearchResultViewport": { + "description": "The viewport that covers the result represented by the top-left and bottom-right coordinates of the viewport.", "type": "object", - "readOnly": true, "properties": { - "sourcePoint": { - "$ref": "#/definitions/SpatialCoordinate" + "topLeftPoint": { + "$ref": "../../../Common/common.json#/definitions/CoordinateAbbreviated" }, - "udid": { - "description": "A unique data id (udid) for the uploaded content. Udid is not applicable for POST spatial operations(set to null)", + "btmRightPoint": { + "$ref": "../../../Common/common.json#/definitions/CoordinateAbbreviated" + } + } + }, + "SearchResultEntryPoint": { + "description": "The entry point for the POI being returned.", + "type": "object", + "properties": { + "type": { + "description": "The type of entry point. Value can be either _main_ or _minor_.", "type": "string", - "readOnly": true + "readOnly": true, + "enum": [ + "main", + "minor" + ] }, - "information": { - "description": "Processing information", - "type": "string", - "readOnly": true + "position": { + "$ref": "../../../Common/common.json#/definitions/CoordinateAbbreviated" } } }, - "PointInPolygonResult": { - "description": "Point In Polygon Result Object", + "SearchResultAddressRanges": { + "description": "Describes the address range on both sides of the street for a search result. Coordinates for the start and end locations of the address range are included.", "type": "object", "properties": { - "pointInPolygons": { - "description": "Point In Polygons Property", - "type": "boolean", - "readOnly": true + "rangeLeft": { + "type": "string" }, - "intersectingGeometries": { - "description": "Geometries array", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/GeometryId" - } + "rangeRight": { + "type": "string" + }, + "from": { + "$ref": "../../../Common/common.json#/definitions/CoordinateAbbreviated" + }, + "to": { + "$ref": "../../../Common/common.json#/definitions/CoordinateAbbreviated" } } }, - "GeometryId": { - "description": "The Spatial geometry", - "type": "string", + "SearchResultScore": { + "description": "The value within a result set to indicate the relative matching score between results. You can use this to determine that result x is twice as likely to be as relevant as result y if the value of x is 2x the value of y. The values vary between queries and is only meant as a relative value for one result set.", + "type": "number", + "readOnly": true + }, + "SearchResultDistance": { + "description": "Straight line distance between the result and geobias location in meters.", + "type": "number", "readOnly": true }, - "GreatCircleDistanceResponse": { - "description": "This object is returned from a successful Great Circle Distance call", + "SearchSummaryGeoBias": { + "description": "Indication when the internal search engine has applied a geospatial bias to improve the ranking of results. In some methods, this can be affected by setting the lat and lon parameters where available. In other cases it is purely internal.", "type": "object", + "readOnly": true, "properties": { - "summary": { - "description": "Summary object", - "type": "object", - "readOnly": true, - "properties": { - "sourcePoint": { - "$ref": "#/definitions/SpatialCoordinate" - }, - "targetPoint": { - "$ref": "#/definitions/SpatialCoordinate" - } - } + "lat": { + "description": "Latitude property", + "type": "number", + "readOnly": true }, - "result": { - "description": "Result Object", - "type": "object", - "readOnly": true, - "properties": { - "distanceInMeters": { - "description": "The great circle distance in meters from the source point to the target point", - "type": "number", - "readOnly": true - } - } + "lon": { + "description": "Longitude property", + "type": "number", + "readOnly": true } } }, - "UploadDataRequestBody": { - "description": "This type represents the request body for Spatial Data Upload.", - "type": "object" - }, - "UploadDataResponse": { - "description": "The response model for the spatial data upload API. Returns a unique data id (udid) for the uploaded content.", + "DataSources": { + "description": "Optional section. Reference ids for use with the [Get Search Polygon](https://docs.microsoft.com/rest/api/maps/search/getsearchpolygon) API.", "type": "object", "properties": { - "udid": { - "description": "A unique data id (udid) for the uploaded content.", - "type": "string", - "readOnly": true + "geometry": { + "$ref": "#/definitions/DataSourcesGeometry" } } }, - "UploadDataAcceptedResponse": { - "description": "The response model for the spatial data upload API. Returns the current status and a status URI.", + "DataSourcesGeometry": { + "description": "Information about the geometric shape of the result. Only present if type == Geography.", "type": "object", "properties": { - "status": { - "description": "Current status of the long running upload operation.", + "id": { + "description": "Pass this as geometryId to the [Get Search Polygon](https://docs.microsoft.com/rest/api/maps/search/getsearchpolygon) API to fetch geometry information for this result.", "type": "string", "readOnly": true } } + }, + "EntityType": { + "description": "Geography entity type. Present only when entityType was requested and is available.", + "type": "string", + "enum": [ + "Country", + "CountrySubdivision", + "CountrySecondarySubdivision", + "CountryTertiarySubdivision", + "Municipality", + "MunicipalitySubdivision", + "Neighbourhood", + "PostalCodeArea" + ], + "x-ms-enum": { + "name": "EntityType", + "modelAsString": false, + "values": [ + { + "value": "Country", + "description": "Country name" + }, + { + "value": "CountrySubdivision", + "description": "State or Province" + }, + { + "value": "CountrySecondarySubdivision", + "description": "County" + }, + { + "value": "CountryTertiarySubdivision", + "description": "Named Area" + }, + { + "value": "Municipality", + "description": "City / Town" + }, + { + "value": "MunicipalitySubdivision", + "description": "Sub / Super City" + }, + { + "value": "Neighbourhood", + "description": "Neighbourhood" + }, + { + "value": "PostalCodeArea", + "description": "Postal Code / Zip Code" + } + ] + } } } } From 0fea01d19c5f8a553d01ffa249115a2945681ba6 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Thu, 18 Mar 2021 09:34:36 -0700 Subject: [PATCH 003/210] Update common.js and add swagger codegen to maps dataplane. --- .../Alias/preview/1.0/alias.json | 56 +++--- .../Common/{ => preview/1.0}/common.json | 0 .../DEM/preview/1.0/elevation.json | 96 +++++------ .../Microsoft.Maps/Data/preview/1.0/data.json | 96 +++++------ .../Dataset/preview/1.0/dataset.json | 64 +++---- .../preview/1.0/dwgconversion.json | 52 +++--- .../preview/1.0/featurestate.json | 114 ++++++------- .../Feedback/preview/1.0/feedback.json | 22 +-- .../Geolocation/preview/1.0/geolocation.json | 18 +- .../Mobility/preview/1.0/mobility.json | 160 +++++++++--------- .../Route/preview/1.0/route.json | 32 ++-- .../Search/preview/1.0/search.json | 54 +++--- .../Spatial/preview/1.0/spatial.json | 12 +- .../Tileset/preview/1.0/tileset.json | 14 +- .../Timezone/preview/1.0/timezone.json | 10 +- .../Traffic/preview/1.0/traffic.json | 10 +- .../Microsoft.Maps/WFS/preview/1.0/wfs.json | 12 +- .../Weather/preview/1.0/weather.json | 10 +- .../maps/data-plane/readme.csharp.md | 14 ++ specification/maps/data-plane/readme.go.md | 26 +++ specification/maps/data-plane/readme.md | 31 ++++ .../maps/data-plane/readme.python.md | 17 ++ .../maps/data-plane/readme.typescript.md | 13 ++ 23 files changed, 517 insertions(+), 416 deletions(-) rename specification/maps/data-plane/Microsoft.Maps/Common/{ => preview/1.0}/common.json (100%) create mode 100644 specification/maps/data-plane/readme.csharp.md create mode 100644 specification/maps/data-plane/readme.go.md create mode 100644 specification/maps/data-plane/readme.python.md create mode 100644 specification/maps/data-plane/readme.typescript.md diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json index 4eccf5c79c8e..7311d5a66daf 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json @@ -112,10 +112,10 @@ }, "parameters": [ { - "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/common.json#/parameters/ApiVersion" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" } ], "responses": { @@ -132,19 +132,19 @@ } }, "400": { - "$ref": "../../../Common/common.json#/responses/400" + "$ref": "../../..Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../../Common/common.json#/responses/401" + "$ref": "../../..Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../../Common/common.json#/responses/403" + "$ref": "../../..Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../../Common/common.json#/responses/404" + "$ref": "../../..Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../../Common/common.json#/responses/500" + "$ref": "../../..Common/preview/1.0/common.js#/responses/500" } } }, @@ -159,10 +159,10 @@ }, "parameters": [ { - "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/common.json#/parameters/ApiVersion" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" } ], "responses": { @@ -173,19 +173,19 @@ } }, "400": { - "$ref": "../../../Common/common.json#/responses/400" + "$ref": "../../..Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../../Common/common.json#/responses/401" + "$ref": "../../..Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../../Common/common.json#/responses/403" + "$ref": "../../..Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../../Common/common.json#/responses/404" + "$ref": "../../..Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../../Common/common.json#/responses/500" + "$ref": "../../..Common/preview/1.0/common.js#/responses/500" } } } @@ -202,10 +202,10 @@ }, "parameters": [ { - "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/common.json#/parameters/ApiVersion" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" }, { "$ref": "#/parameters/AliasId" @@ -222,19 +222,19 @@ } }, "400": { - "$ref": "../../../Common/common.json#/responses/400" + "$ref": "../../..Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../../Common/common.json#/responses/401" + "$ref": "../../..Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../../Common/common.json#/responses/403" + "$ref": "../../..Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../../Common/common.json#/responses/404" + "$ref": "../../..Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../../Common/common.json#/responses/500" + "$ref": "../../..Common/preview/1.0/common.js#/responses/500" } } } @@ -251,10 +251,10 @@ }, "parameters": [ { - "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/common.json#/parameters/ApiVersion" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" }, { "$ref": "#/parameters/AliasId" @@ -268,19 +268,19 @@ } }, "400": { - "$ref": "../../../Common/common.json#/responses/400" + "$ref": "../../..Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../../Common/common.json#/responses/401" + "$ref": "../../..Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../../Common/common.json#/responses/403" + "$ref": "../../..Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../../Common/common.json#/responses/404" + "$ref": "../../..Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../../Common/common.json#/responses/500" + "$ref": "../../..Common/preview/1.0/common.js#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json similarity index 100% rename from specification/maps/data-plane/Microsoft.Maps/Common/common.json rename to specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json diff --git a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json index ab73f48bc540..59eea91c6d31 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json +++ b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json @@ -52,16 +52,16 @@ }, "parameters": [ { - "$ref": "../../../Common/common.json#/parameters/ClientId" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/ClientId" }, { - "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/common.json#/parameters/ApiVersion" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" }, { - "$ref": "../../../Common/common.json#/parameters/JsonFormat" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/JsonFormat" }, { "name": "points", @@ -90,19 +90,19 @@ } }, "400": { - "$ref": "../../../Common/common.json#/responses/400" + "$ref": "../../..Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../../Common/common.json#/responses/401" + "$ref": "../../..Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../../Common/common.json#/responses/403" + "$ref": "../../..Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../../Common/common.json#/responses/404" + "$ref": "../../..Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../../Common/common.json#/responses/500" + "$ref": "../../..Common/preview/1.0/common.js#/responses/500" } } }, @@ -117,16 +117,16 @@ }, "parameters": [ { - "$ref": "../../../Common/common.json#/parameters/ClientId" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/ClientId" }, { - "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/common.json#/parameters/ApiVersion" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" }, { - "$ref": "../../../Common/common.json#/parameters/JsonFormat" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/JsonFormat" }, { "name": "pointsRequestBody", @@ -149,19 +149,19 @@ } }, "400": { - "$ref": "../../../Common/common.json#/responses/400" + "$ref": "../../..Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../../Common/common.json#/responses/401" + "$ref": "../../..Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../../Common/common.json#/responses/403" + "$ref": "../../..Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../../Common/common.json#/responses/404" + "$ref": "../../..Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../../Common/common.json#/responses/500" + "$ref": "../../..Common/preview/1.0/common.js#/responses/500" } } } @@ -178,16 +178,16 @@ }, "parameters": [ { - "$ref": "../../../Common/common.json#/parameters/ClientId" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/ClientId" }, { - "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/common.json#/parameters/ApiVersion" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" }, { - "$ref": "../../../Common/common.json#/parameters/JsonFormat" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/JsonFormat" }, { "name": "lines", @@ -226,19 +226,19 @@ } }, "400": { - "$ref": "../../../Common/common.json#/responses/400" + "$ref": "../../..Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../../Common/common.json#/responses/401" + "$ref": "../../..Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../../Common/common.json#/responses/403" + "$ref": "../../..Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../../Common/common.json#/responses/404" + "$ref": "../../..Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../../Common/common.json#/responses/500" + "$ref": "../../..Common/preview/1.0/common.js#/responses/500" } } }, @@ -253,16 +253,16 @@ }, "parameters": [ { - "$ref": "../../../Common/common.json#/parameters/ClientId" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/ClientId" }, { - "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/common.json#/parameters/ApiVersion" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" }, { - "$ref": "../../../Common/common.json#/parameters/JsonFormat" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/JsonFormat" }, { "name": "linesRequestBody", @@ -295,19 +295,19 @@ } }, "400": { - "$ref": "../../../Common/common.json#/responses/400" + "$ref": "../../..Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../../Common/common.json#/responses/401" + "$ref": "../../..Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../../Common/common.json#/responses/403" + "$ref": "../../..Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../../Common/common.json#/responses/404" + "$ref": "../../..Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../../Common/common.json#/responses/500" + "$ref": "../../..Common/preview/1.0/common.js#/responses/500" } } } @@ -324,16 +324,16 @@ }, "parameters": [ { - "$ref": "../../../Common/common.json#/parameters/ClientId" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/ClientId" }, { - "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/common.json#/parameters/ApiVersion" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" }, { - "$ref": "../../../Common/common.json#/parameters/JsonFormat" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/JsonFormat" }, { "name": "bounds", @@ -376,19 +376,19 @@ } }, "400": { - "$ref": "../../../Common/common.json#/responses/400" + "$ref": "../../..Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../../Common/common.json#/responses/401" + "$ref": "../../..Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../../Common/common.json#/responses/403" + "$ref": "../../..Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../../Common/common.json#/responses/404" + "$ref": "../../..Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../../Common/common.json#/responses/500" + "$ref": "../../..Common/preview/1.0/common.js#/responses/500" } } } @@ -408,7 +408,7 @@ "description": "The elevation data.", "properties": { "coordinate": { - "$ref": "../../../Common/common.json#/definitions/Coordinate" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/Coordinate" }, "elevationInMeter": { "description": "The elevation value in meters.", @@ -464,14 +464,14 @@ "type": "array", "description": "The post elevation points array request body. The length of the array ranges from 2 to 2000.", "items": { - "$ref": "../../../Common/common.json#/definitions/CoordinateAbbreviated" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/CoordinateAbbreviated" } }, "LinesInRequestBody": { "type": "array", "description": "The post elevation lines request body.", "items": { - "$ref": "../../../Common/common.json#/definitions/CoordinateAbbreviated" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/CoordinateAbbreviated" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json index 0ee30cb9a229..618d29edc150 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json @@ -73,8 +73,8 @@ }, "x-ms-parameter-location": "client" }, - "UploadDataFormat": { - "name": "dataFormat", + "UploadDataFormat": { + "name": "dataFormat", "description": "Data format of the content being uploaded.", "type": "string", "in": "query", @@ -125,13 +125,13 @@ }, "parameters": [ { - "$ref": "../../../Common/common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/UploadDataFormat" @@ -150,29 +150,29 @@ "200": { "description": "Data upload failed. The uploaded content did not satisfy all the validation checks. The response body contains all the errors that were encountered.", "schema": { - "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" } }, "201": { - "$ref": "../../../Common/common.json#/responses/201Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/201Async" }, "202": { - "$ref": "../../../Common/common.json#/responses/202Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" }, "400": { - "$ref": "../../../Common/common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -193,13 +193,13 @@ }, "parameters": [ { - "$ref": "../../../Common/common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/Udid" @@ -218,29 +218,29 @@ "200": { "description": "Data update failed. The uploaded content did not satisfy all the validation checks. The response body contains all the errors that were encountered.", "schema": { - "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" } }, "201": { - "$ref": "../../../Common/common.json#/responses/201Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/201Async" }, "202": { - "$ref": "../../../Common/common.json#/responses/202Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" }, "400": { - "$ref": "../../../Common/common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -255,13 +255,13 @@ }, "parameters": [ { - "$ref": "../../../Common/common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/Udid" @@ -281,19 +281,19 @@ } }, "400": { - "$ref": "../../../Common/common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -308,13 +308,13 @@ }, "parameters": [ { - "$ref": "../../../Common/common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/Udid" @@ -328,19 +328,19 @@ } }, "400": { - "$ref": "../../../Common/common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -357,13 +357,13 @@ }, "parameters": [ { - "$ref": "../../../Common/common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" } ], "responses": { @@ -380,19 +380,19 @@ } }, "400": { - "$ref": "../../../Common/common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json index 879e57375d94..22357bfbd42b 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json @@ -190,10 +190,10 @@ }, "parameters": [ { - "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/common.json#/parameters/ApiVersion" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" }, { "$ref": "#/parameters/ConversionIdQuery" @@ -213,25 +213,25 @@ ], "responses": { "201": { - "$ref": "../../../Common/common.json#/responses/201Async" + "$ref": "../../..Common/preview/1.0/common.js#/responses/201Async" }, "202": { - "$ref": "../../../Common/common.json#/responses/202Async" + "$ref": "../../..Common/preview/1.0/common.js#/responses/202Async" }, "400": { - "$ref": "../../../Common/common.json#/responses/400" + "$ref": "../../..Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../../Common/common.json#/responses/401" + "$ref": "../../..Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../../Common/common.json#/responses/403" + "$ref": "../../..Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../../Common/common.json#/responses/404" + "$ref": "../../..Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../../Common/common.json#/responses/500" + "$ref": "../../..Common/preview/1.0/common.js#/responses/500" } } } @@ -248,10 +248,10 @@ }, "parameters": [ { - "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/common.json#/parameters/ApiVersion" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" }, { "$ref": "#/parameters/DatasetId" @@ -265,25 +265,25 @@ ], "responses": { "200": { - "$ref": "../../../Common/common.json#/responses/200Async" + "$ref": "../../..Common/preview/1.0/common.js#/responses/200Async" }, "202": { - "$ref": "../../../Common/common.json#/responses/202Async" + "$ref": "../../..Common/preview/1.0/common.js#/responses/202Async" }, "400": { - "$ref": "../../../Common/common.json#/responses/400" + "$ref": "../../..Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../../Common/common.json#/responses/401" + "$ref": "../../..Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../../Common/common.json#/responses/403" + "$ref": "../../..Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../../Common/common.json#/responses/404" + "$ref": "../../..Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../../Common/common.json#/responses/500" + "$ref": "../../..Common/preview/1.0/common.js#/responses/500" } } } @@ -300,10 +300,10 @@ }, "parameters": [ { - "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/common.json#/parameters/ApiVersion" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" }, { "$ref": "#/parameters/DatasetId" @@ -317,19 +317,19 @@ } }, "400": { - "$ref": "../../../Common/common.json#/responses/400" + "$ref": "../../..Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../../Common/common.json#/responses/401" + "$ref": "../../..Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../../Common/common.json#/responses/403" + "$ref": "../../..Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../../Common/common.json#/responses/404" + "$ref": "../../..Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../../Common/common.json#/responses/500" + "$ref": "../../..Common/preview/1.0/common.js#/responses/500" } } } @@ -346,10 +346,10 @@ }, "parameters": [ { - "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/common.json#/parameters/ApiVersion" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" } ], "responses": { @@ -360,19 +360,19 @@ } }, "400": { - "$ref": "../../../Common/common.json#/responses/400" + "$ref": "../../..Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../../Common/common.json#/responses/401" + "$ref": "../../..Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../../Common/common.json#/responses/403" + "$ref": "../../..Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../../Common/common.json#/responses/404" + "$ref": "../../..Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../../Common/common.json#/responses/500" + "$ref": "../../..Common/preview/1.0/common.js#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json index 652a5ef73408..5877ae4ac344 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json @@ -136,13 +136,13 @@ }, "parameters": [ { - "$ref": "../../../Common/common.json#/parameters/ClientId" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/ClientId" }, { - "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/common.json#/parameters/ApiVersion" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" }, { "$ref": "#/parameters/UdidQuery" @@ -156,25 +156,25 @@ ], "responses": { "201": { - "$ref": "../../../Common/common.json#/responses/201Async" + "$ref": "../../..Common/preview/1.0/common.js#/responses/201Async" }, "202": { - "$ref": "../../../Common/common.json#/responses/202Async" + "$ref": "../../..Common/preview/1.0/common.js#/responses/202Async" }, "400": { - "$ref": "../../../Common/common.json#/responses/400" + "$ref": "../../..Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../../Common/common.json#/responses/401" + "$ref": "../../..Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../../Common/common.json#/responses/403" + "$ref": "../../..Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../../Common/common.json#/responses/404" + "$ref": "../../..Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../../Common/common.json#/responses/500" + "$ref": "../../..Common/preview/1.0/common.js#/responses/500" } } } @@ -191,13 +191,13 @@ }, "parameters": [ { - "$ref": "../../../Common/common.json#/parameters/ClientId" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/ClientId" }, { - "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/common.json#/parameters/ApiVersion" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" } ], "responses": { @@ -208,19 +208,19 @@ } }, "400": { - "$ref": "../../../Common/common.json#/responses/400" + "$ref": "../../..Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../../Common/common.json#/responses/401" + "$ref": "../../..Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../../Common/common.json#/responses/403" + "$ref": "../../..Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../../Common/common.json#/responses/404" + "$ref": "../../..Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../../Common/common.json#/responses/500" + "$ref": "../../..Common/preview/1.0/common.js#/responses/500" } } } @@ -237,13 +237,13 @@ }, "parameters": [ { - "$ref": "../../../Common/common.json#/parameters/ClientId" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/ClientId" }, { - "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/common.json#/parameters/ApiVersion" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" }, { "$ref": "#/parameters/ConversionId" @@ -257,19 +257,19 @@ } }, "400": { - "$ref": "../../../Common/common.json#/responses/400" + "$ref": "../../..Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../../Common/common.json#/responses/401" + "$ref": "../../..Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../../Common/common.json#/responses/403" + "$ref": "../../..Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../../Common/common.json#/responses/404" + "$ref": "../../..Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../../Common/common.json#/responses/500" + "$ref": "../../..Common/preview/1.0/common.js#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json index d875a049c05d..34b152a35721 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json @@ -143,10 +143,10 @@ }, "parameters": [ { - "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/common.json#/parameters/ApiVersion" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -160,19 +160,19 @@ } }, "400": { - "$ref": "../../../Common/common.json#/responses/400" + "$ref": "../../..Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../../Common/common.json#/responses/401" + "$ref": "../../..Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../../Common/common.json#/responses/403" + "$ref": "../../..Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../../Common/common.json#/responses/404" + "$ref": "../../..Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../../Common/common.json#/responses/500" + "$ref": "../../..Common/preview/1.0/common.js#/responses/500" } } }, @@ -187,10 +187,10 @@ }, "parameters": [ { - "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/common.json#/parameters/ApiVersion" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -201,19 +201,19 @@ "description": "Stateset Deleted." }, "400": { - "$ref": "../../../Common/common.json#/responses/400" + "$ref": "../../..Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../../Common/common.json#/responses/401" + "$ref": "../../..Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../../Common/common.json#/responses/403" + "$ref": "../../..Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../../Common/common.json#/responses/404" + "$ref": "../../..Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../../Common/common.json#/responses/500" + "$ref": "../../..Common/preview/1.0/common.js#/responses/500" } } }, @@ -228,10 +228,10 @@ }, "parameters": [ { - "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/common.json#/parameters/ApiVersion" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -251,19 +251,19 @@ "description": "Stateset styles are updated successfully." }, "400": { - "$ref": "../../../Common/common.json#/responses/400" + "$ref": "../../..Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../../Common/common.json#/responses/401" + "$ref": "../../..Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../../Common/common.json#/responses/403" + "$ref": "../../..Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../../Common/common.json#/responses/404" + "$ref": "../../..Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../../Common/common.json#/responses/500" + "$ref": "../../..Common/preview/1.0/common.js#/responses/500" } } } @@ -280,10 +280,10 @@ }, "parameters": [ { - "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/common.json#/parameters/ApiVersion" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" }, { "$ref": "#/parameters/DatasetIdForCreate" @@ -306,19 +306,19 @@ } }, "400": { - "$ref": "../../../Common/common.json#/responses/400" + "$ref": "../../..Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../../Common/common.json#/responses/401" + "$ref": "../../..Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../../Common/common.json#/responses/403" + "$ref": "../../..Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../../Common/common.json#/responses/404" + "$ref": "../../..Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../../Common/common.json#/responses/500" + "$ref": "../../..Common/preview/1.0/common.js#/responses/500" } } }, @@ -333,10 +333,10 @@ }, "parameters": [ { - "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/common.json#/parameters/ApiVersion" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" } ], "responses": { @@ -347,19 +347,19 @@ } }, "400": { - "$ref": "../../../Common/common.json#/responses/400" + "$ref": "../../..Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../../Common/common.json#/responses/401" + "$ref": "../../..Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../../Common/common.json#/responses/403" + "$ref": "../../..Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../../Common/common.json#/responses/404" + "$ref": "../../..Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../../Common/common.json#/responses/500" + "$ref": "../../..Common/preview/1.0/common.js#/responses/500" } } } @@ -376,10 +376,10 @@ }, "parameters": [ { - "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/common.json#/parameters/ApiVersion" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" }, { "$ref": "#/parameters/StatesetId" @@ -396,19 +396,19 @@ } }, "400": { - "$ref": "../../../Common/common.json#/responses/400" + "$ref": "../../..Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../../Common/common.json#/responses/401" + "$ref": "../../..Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../../Common/common.json#/responses/403" + "$ref": "../../..Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../../Common/common.json#/responses/404" + "$ref": "../../..Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../../Common/common.json#/responses/500" + "$ref": "../../..Common/preview/1.0/common.js#/responses/500" } } }, @@ -423,10 +423,10 @@ }, "parameters": [ { - "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/common.json#/parameters/ApiVersion" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" }, { "$ref": "#/parameters/StatesetId" @@ -449,19 +449,19 @@ "description": "Feature states are updated successfully." }, "400": { - "$ref": "../../../Common/common.json#/responses/400" + "$ref": "../../..Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../../Common/common.json#/responses/401" + "$ref": "../../..Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../../Common/common.json#/responses/403" + "$ref": "../../..Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../../Common/common.json#/responses/404" + "$ref": "../../..Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../../Common/common.json#/responses/500" + "$ref": "../../..Common/preview/1.0/common.js#/responses/500" } } }, @@ -476,10 +476,10 @@ }, "parameters": [ { - "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/common.json#/parameters/ApiVersion" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" }, { "$ref": "#/parameters/StatesetId" @@ -496,22 +496,22 @@ "description": "Feature states deleted successfully." }, "400": { - "$ref": "../../../Common/common.json#/responses/400" + "$ref": "../../..Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../../Common/common.json#/responses/401" + "$ref": "../../..Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../../Common/common.json#/responses/403" + "$ref": "../../..Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../../Common/common.json#/responses/404" + "$ref": "../../..Common/preview/1.0/common.js#/responses/404" }, "409": { - "$ref": "../../../Common/common.json#/responses/409" + "$ref": "../../..Common/preview/1.0/common.js#/responses/409" }, "500": { - "$ref": "../../../Common/common.json#/responses/500" + "$ref": "../../..Common/preview/1.0/common.js#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Feedback/preview/1.0/feedback.json b/specification/maps/data-plane/Microsoft.Maps/Feedback/preview/1.0/feedback.json index 8bc402afbd39..35f50011aa2d 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Feedback/preview/1.0/feedback.json +++ b/specification/maps/data-plane/Microsoft.Maps/Feedback/preview/1.0/feedback.json @@ -96,7 +96,7 @@ "type": "boolean" }, "location": { - "$ref": "../../../Common/common.json#/definitions/GeoJSONPosition" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/GeoJSONPosition" }, "bbox": { "$ref": "#/definitions/GeoJsonBoundingBox" @@ -124,7 +124,7 @@ "type": "boolean" }, "location": { - "$ref": "../../../Common/common.json#/definitions/GeoJSONPosition" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/GeoJSONPosition" }, "bbox": { "$ref": "#/definitions/GeoJsonBoundingBox" @@ -152,7 +152,7 @@ "type": "boolean" }, "location": { - "$ref": "../../../Common/common.json#/definitions/GeoJSONPosition" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/GeoJSONPosition" }, "bbox": { "$ref": "#/definitions/GeoJsonBoundingBox" @@ -219,7 +219,7 @@ "type": "string" }, "geometry": { - "$ref": "../../../Common/common.json#/definitions/Point" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/Point" } } }, @@ -290,7 +290,7 @@ "type": "boolean" }, "location": { - "$ref": "../../../Common/common.json#/definitions/GeoJSONPosition" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/GeoJSONPosition" }, "bbox": { "$ref": "#/definitions/GeoJsonBoundingBox" @@ -318,7 +318,7 @@ "type": "boolean" }, "location": { - "$ref": "../../../Common/common.json#/definitions/GeoJSONPosition" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/GeoJSONPosition" }, "bbox": { "$ref": "#/definitions/GeoJsonBoundingBox" @@ -346,7 +346,7 @@ "type": "boolean" }, "location": { - "$ref": "../../../Common/common.json#/definitions/GeoJSONPosition" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/GeoJSONPosition" }, "bbox": { "$ref": "#/definitions/GeoJsonBoundingBox" @@ -394,7 +394,7 @@ "type": "string" }, "geometry": { - "$ref": "../../../Common/common.json#/definitions/Point" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/Point" } } }, @@ -445,7 +445,7 @@ "type": "boolean" }, "location": { - "$ref": "../../../Common/common.json#/definitions/GeoJSONPosition" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/GeoJSONPosition" }, "bbox": { "$ref": "#/definitions/GeoJsonBoundingBox" @@ -481,10 +481,10 @@ "type": "object", "properties": { "current": { - "$ref": "../../../Common/common.json#/definitions/Geometry" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/Geometry" }, "proposed": { - "$ref": "../../../Common/common.json#/definitions/Geometry" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/Geometry" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json index e19c4176a5a4..480bf6f72401 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json +++ b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json @@ -51,16 +51,16 @@ }, "parameters": [ { - "$ref": "../../../Common/common.json#/parameters/ClientId" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/ClientId" }, { - "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/common.json#/parameters/ApiVersion" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" }, { - "$ref": "../../../Common/common.json#/parameters/JsonFormat" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/JsonFormat" }, { "name": "ip", @@ -78,19 +78,19 @@ } }, "400": { - "$ref": "../../../Common/common.json#/responses/400" + "$ref": "../../..Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../../Common/common.json#/responses/401" + "$ref": "../../..Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../../Common/common.json#/responses/403" + "$ref": "../../..Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../../Common/common.json#/responses/404" + "$ref": "../../..Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../../Common/common.json#/responses/500" + "$ref": "../../..Common/preview/1.0/common.js#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json index 90ca417670a5..0c7c43012560 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json +++ b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json @@ -69,16 +69,16 @@ }, "parameters": [ { - "$ref": "../../../Common/common.json#/parameters/ClientId" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/ClientId" }, { - "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/common.json#/parameters/ApiVersion" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" }, { - "$ref": "../../../Common/common.json#/parameters/JsonFormat" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/JsonFormat" }, { "name": "query", @@ -126,19 +126,19 @@ } }, "400": { - "$ref": "../../../Common/common.json#/responses/400" + "$ref": "../../..Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../../Common/common.json#/responses/401" + "$ref": "../../..Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../../Common/common.json#/responses/403" + "$ref": "../../..Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../../Common/common.json#/responses/404" + "$ref": "../../..Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../../Common/common.json#/responses/500" + "$ref": "../../..Common/preview/1.0/common.js#/responses/500" } } } @@ -155,16 +155,16 @@ }, "parameters": [ { - "$ref": "../../../Common/common.json#/parameters/ClientId" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/ClientId" }, { - "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/common.json#/parameters/ApiVersion" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" }, { - "$ref": "../../../Common/common.json#/parameters/JsonFormat" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/JsonFormat" }, { "name": "query", @@ -225,19 +225,19 @@ } }, "400": { - "$ref": "../../../Common/common.json#/responses/400" + "$ref": "../../..Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../../Common/common.json#/responses/401" + "$ref": "../../..Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../../Common/common.json#/responses/403" + "$ref": "../../..Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../../Common/common.json#/responses/404" + "$ref": "../../..Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../../Common/common.json#/responses/500" + "$ref": "../../..Common/preview/1.0/common.js#/responses/500" } } } @@ -254,16 +254,16 @@ }, "parameters": [ { - "$ref": "../../../Common/common.json#/parameters/ClientId" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/ClientId" }, { - "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/common.json#/parameters/ApiVersion" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" }, { - "$ref": "../../../Common/common.json#/parameters/JsonFormat" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/JsonFormat" }, { "$ref": "#/parameters/MetroId" @@ -311,19 +311,19 @@ } }, "400": { - "$ref": "../../../Common/common.json#/responses/400" + "$ref": "../../..Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../../Common/common.json#/responses/401" + "$ref": "../../..Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../../Common/common.json#/responses/403" + "$ref": "../../..Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../../Common/common.json#/responses/404" + "$ref": "../../..Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../../Common/common.json#/responses/500" + "$ref": "../../..Common/preview/1.0/common.js#/responses/500" } } } @@ -340,16 +340,16 @@ }, "parameters": [ { - "$ref": "../../../Common/common.json#/parameters/ClientId" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/ClientId" }, { - "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/common.json#/parameters/ApiVersion" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" }, { - "$ref": "../../../Common/common.json#/parameters/JsonFormat" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/JsonFormat" }, { "$ref": "#/parameters/MetroId" @@ -421,19 +421,19 @@ } }, "400": { - "$ref": "../../../Common/common.json#/responses/400" + "$ref": "../../..Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../../Common/common.json#/responses/401" + "$ref": "../../..Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../../Common/common.json#/responses/403" + "$ref": "../../..Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../../Common/common.json#/responses/404" + "$ref": "../../..Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../../Common/common.json#/responses/500" + "$ref": "../../..Common/preview/1.0/common.js#/responses/500" } } } @@ -450,16 +450,16 @@ }, "parameters": [ { - "$ref": "../../../Common/common.json#/parameters/ClientId" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/ClientId" }, { - "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/common.json#/parameters/ApiVersion" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" }, { - "$ref": "../../../Common/common.json#/parameters/JsonFormat" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/JsonFormat" }, { "$ref": "#/parameters/MetroId" @@ -548,19 +548,19 @@ } }, "400": { - "$ref": "../../../Common/common.json#/responses/400" + "$ref": "../../..Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../../Common/common.json#/responses/401" + "$ref": "../../..Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../../Common/common.json#/responses/403" + "$ref": "../../..Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../../Common/common.json#/responses/404" + "$ref": "../../..Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../../Common/common.json#/responses/500" + "$ref": "../../..Common/preview/1.0/common.js#/responses/500" } } } @@ -577,16 +577,16 @@ }, "parameters": [ { - "$ref": "../../../Common/common.json#/parameters/ClientId" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/ClientId" }, { - "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/common.json#/parameters/ApiVersion" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" }, { - "$ref": "../../../Common/common.json#/parameters/JsonFormat" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/JsonFormat" }, { "$ref": "#/parameters/MetroId" @@ -893,19 +893,19 @@ } }, "400": { - "$ref": "../../../Common/common.json#/responses/400" + "$ref": "../../..Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../../Common/common.json#/responses/401" + "$ref": "../../..Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../../Common/common.json#/responses/403" + "$ref": "../../..Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../../Common/common.json#/responses/404" + "$ref": "../../..Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../../Common/common.json#/responses/500" + "$ref": "../../..Common/preview/1.0/common.js#/responses/500" } } } @@ -922,16 +922,16 @@ }, "parameters": [ { - "$ref": "../../../Common/common.json#/parameters/ClientId" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/ClientId" }, { - "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/common.json#/parameters/ApiVersion" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" }, { - "$ref": "../../../Common/common.json#/parameters/JsonFormat" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/JsonFormat" }, { "name": "query", @@ -981,19 +981,19 @@ } }, "400": { - "$ref": "../../../Common/common.json#/responses/400" + "$ref": "../../..Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../../Common/common.json#/responses/401" + "$ref": "../../..Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../../Common/common.json#/responses/403" + "$ref": "../../..Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../../Common/common.json#/responses/404" + "$ref": "../../..Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../../Common/common.json#/responses/500" + "$ref": "../../..Common/preview/1.0/common.js#/responses/500" } } } @@ -1010,16 +1010,16 @@ }, "parameters": [ { - "$ref": "../../../Common/common.json#/parameters/ClientId" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/ClientId" }, { - "$ref": "../../../Common/common.json#/parameters/SubscriptionKey" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/common.json#/parameters/ApiVersion" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" }, { - "$ref": "../../../Common/common.json#/parameters/JsonFormat" + "$ref": "../../..Common/preview/1.0/common.js#/parameters/JsonFormat" }, { "$ref": "#/parameters/MetroId" @@ -1232,19 +1232,19 @@ } }, "400": { - "$ref": "../../../Common/common.json#/responses/400" + "$ref": "../../..Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../../Common/common.json#/responses/401" + "$ref": "../../..Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../../Common/common.json#/responses/403" + "$ref": "../../..Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../../Common/common.json#/responses/404" + "$ref": "../../..Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../../Common/common.json#/responses/500" + "$ref": "../../..Common/preview/1.0/common.js#/responses/500" } } } @@ -1418,7 +1418,7 @@ "type": "string" }, "geometry": { - "$ref": "../../../Common/common.json#/definitions/Polygon" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/Polygon" }, "viewport": { "$ref": "#/definitions/ResultViewport" @@ -1430,10 +1430,10 @@ "type": "object", "properties": { "topLeftPoint": { - "$ref": "../../../Common/common.json#/definitions/Coordinate" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/Coordinate" }, "btmRightPoint": { - "$ref": "../../../Common/common.json#/definitions/Coordinate" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/Coordinate" } } }, @@ -1454,7 +1454,7 @@ }, "position": { "description": "The transit object's position.", - "$ref": "../../../Common/common.json#/definitions/Coordinate" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/Coordinate" }, "viewport": { "$ref": "#/definitions/ResultViewport" @@ -1483,7 +1483,7 @@ }, "position": { "description": "The Stop's location, latitude and longitude.", - "$ref": "../../../Common/common.json#/definitions/Coordinate" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/Coordinate" }, "mainTransitType": { "description": "The transit type of most lines stopping at this stop. One of Tram, Subway, Rail, Bus, Ferry, CableCar, Gondola, Funicular", @@ -1777,7 +1777,7 @@ "$ref": "#/definitions/LegPoint" }, "geometry": { - "$ref": "../../../Common/common.json#/definitions/LineString" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/LineString" }, "lineGroup": { "description": "In case of a public transit leg, the line group serving this leg.", @@ -1957,7 +1957,7 @@ "type": "object", "properties": { "position": { - "$ref": "../../../Common/common.json#/definitions/Coordinate" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/Coordinate" } } }, @@ -2164,7 +2164,7 @@ }, "geometry": { "description": "Stop sequence and shape per a line in GeoJSON format.", - "$ref": "../../../Common/common.json#/definitions/LineString" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/LineString" } } }, diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json index 96a4b7d45e81..7136de2cfa76 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json @@ -52,13 +52,13 @@ "400": { "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { - "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", "schema": { - "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" }, "headers": { "WWW-Authenticate": { @@ -70,19 +70,19 @@ "403": { "description": "Permission, capacity, or authentication issues.", "schema": { - "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { - "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { - "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } }, "202Async": { @@ -1638,7 +1638,7 @@ "description": "The list of route directions queries/requests to process. The list can contain a max of 700 queries for async and 100 queries for sync version and must contain at least 1 query.", "required": true, "schema": { - "$ref": "../../../Common/common.json#/definitions/BatchRequestBody" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/BatchRequestBody" } } ], @@ -1646,7 +1646,7 @@ "200": { "description": "OK", "schema": { - "$ref": "../../../Common/common.json#/definitions/BatchResponse" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/BatchResponse" } }, "202": { @@ -1683,14 +1683,14 @@ "description": "A GeoJSON Geometry collection representing sequence of coordinates used as input for route reconstruction and for calculating zero or more alternative routes to this reference route.\n - The provided sequence of supporting points is used as input for route reconstruction.\n - The alternative routes are calculated between the origin and destination points specified in the base path parameter locations.\n - If both _minDeviationDistance_ and _minDeviationTime_ are set to zero, then these origin and destination points are\n expected to be at (or very near) the beginning and end of the reference route, respectively.\n - Intermediate locations (_waypoints_) are not supported when using <_supportingPoints_>.\n - The reference route may contain traffic incidents of type _ROAD_CLOSURE_, which are\n ignored for the calculation of the reference route's travel time and traffic delay.", "allOf": [ { - "$ref": "../../../Common/common.json#/definitions/GeoJSONGeometryCollection" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/GeoJSONGeometryCollection" }, { "properties": { "geometries": { "type": "array", "items": { - "$ref": "../../../Common/common.json#/definitions/Point" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/Point" } } } @@ -1713,7 +1713,7 @@ }, "avoidAreas": { "description": "A GeoJSON MultiPolygon representing list of areas to avoid. Only rectangle polygons are supported. The maximum size of a rectangle is about 160x160 km. Maximum number of avoided areas is **10**. It cannot cross the 180th meridian. It must be between -80 and +80 degrees of latitude.", - "$ref": "../../../Common/common.json#/definitions/MultiPolygon" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/MultiPolygon" } } }, @@ -1833,7 +1833,7 @@ "type": "array", "readOnly": true, "items": { - "$ref": "../../../Common/common.json#/definitions/Coordinate" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/Coordinate" } } } @@ -2027,7 +2027,7 @@ "readOnly": true }, "point": { - "$ref": "../../../Common/common.json#/definitions/Coordinate" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/Coordinate" }, "pointIndex": { "description": "The index of the point in the list of polyline \"points\" corresponding to the point of the instruction.", @@ -2438,14 +2438,14 @@ "properties": { "center": { "description": "Center point of the reachable range", - "$ref": "../../../Common/common.json#/definitions/Coordinate" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/Coordinate" }, "boundary": { "description": "Polygon boundary of the reachable range represented as a list of points.", "type": "array", "readOnly": true, "items": { - "$ref": "../../../Common/common.json#/definitions/Coordinate" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/Coordinate" } } } @@ -2553,10 +2553,10 @@ "type": "object", "properties": { "origins": { - "$ref": "../../../Common/common.json#/definitions/MultiPoint" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/MultiPoint" }, "destinations": { - "$ref": "../../../Common/common.json#/definitions/MultiPoint" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/MultiPoint" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json index c76e4ba31d36..c25dc88ff01b 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json @@ -52,13 +52,13 @@ "400": { "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { - "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", "schema": { - "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" }, "headers": { "WWW-Authenticate": { @@ -70,19 +70,19 @@ "403": { "description": "Permission, capacity, or authentication issues.", "schema": { - "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { - "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { - "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } }, "202Async": { @@ -1726,7 +1726,7 @@ "description": "The list of search fuzzy queries/requests to process. The list can contain a max of 10,000 queries and must contain at least 1 query.", "required": true, "schema": { - "$ref": "../../../Common/common.json#/definitions/BatchRequestBody" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/BatchRequestBody" } } ], @@ -1734,7 +1734,7 @@ "200": { "description": "OK", "schema": { - "$ref": "../../../Common/common.json#/definitions/BatchResponse" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/BatchResponse" } }, "202": { @@ -1794,7 +1794,7 @@ "description": "The list of address geocoding queries/requests to process. The list can contain a max of 10,000 queries and must contain at least 1 query.", "required": true, "schema": { - "$ref": "../../../Common/common.json#/definitions/BatchRequestBody" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/BatchRequestBody" } } ], @@ -1802,7 +1802,7 @@ "200": { "description": "OK", "schema": { - "$ref": "../../../Common/common.json#/definitions/BatchResponse" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/BatchResponse" } }, "202": { @@ -1862,7 +1862,7 @@ "description": "The list of reverse geocoding queries/requests to process. The list can contain a max of 10,000 queries and must contain at least 1 query.", "required": true, "schema": { - "$ref": "../../../Common/common.json#/definitions/BatchRequestBody" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/BatchRequestBody" } } ], @@ -1870,7 +1870,7 @@ "200": { "description": "OK", "schema": { - "$ref": "../../../Common/common.json#/definitions/BatchResponse" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/BatchResponse" } }, "202": { @@ -1976,7 +1976,7 @@ }, "geometryData": { "description": "Geometry data in GeoJSON format. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946) for details. Present only if \"error\" is not present.", - "$ref": "../../../Common/common.json#/definitions/Geometry" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/Geometry" } } }, @@ -2070,7 +2070,7 @@ "$ref": "#/definitions/SearchResultAddress" }, "position": { - "$ref": "../../../Common/common.json#/definitions/CoordinateAbbreviated" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/CoordinateAbbreviated" }, "viewport": { "$ref": "#/definitions/SearchResultViewport" @@ -2186,7 +2186,7 @@ "$ref": "#/definitions/SearchResultAddress" }, "position": { - "$ref": "../../../Common/common.json#/definitions/CoordinateAbbreviated" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/CoordinateAbbreviated" }, "viewport": { "$ref": "#/definitions/SearchResultViewport" @@ -2288,7 +2288,7 @@ "$ref": "#/definitions/SearchResultAddress" }, "position": { - "$ref": "../../../Common/common.json#/definitions/CoordinateAbbreviated" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/CoordinateAbbreviated" }, "viewport": { "$ref": "#/definitions/SearchResultViewport" @@ -2398,7 +2398,7 @@ "$ref": "#/definitions/SearchResultAddress" }, "position": { - "$ref": "../../../Common/common.json#/definitions/CoordinateAbbreviated" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/CoordinateAbbreviated" }, "viewport": { "$ref": "#/definitions/SearchResultViewport" @@ -2491,7 +2491,7 @@ "$ref": "#/definitions/SearchResultAddress" }, "position": { - "$ref": "../../../Common/common.json#/definitions/CoordinateAbbreviated" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/CoordinateAbbreviated" }, "viewport": { "$ref": "#/definitions/SearchResultViewport" @@ -2697,7 +2697,7 @@ "$ref": "#/definitions/SearchResultAddress" }, "position": { - "$ref": "../../../Common/common.json#/definitions/CoordinateAbbreviated" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/CoordinateAbbreviated" }, "viewport": { "$ref": "#/definitions/SearchResultViewport" @@ -2805,7 +2805,7 @@ "$ref": "#/definitions/SearchResultAddress" }, "position": { - "$ref": "../../../Common/common.json#/definitions/CoordinateAbbreviated" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/CoordinateAbbreviated" }, "viewport": { "$ref": "#/definitions/SearchResultViewport" @@ -2910,7 +2910,7 @@ "$ref": "#/definitions/SearchResultAddress" }, "position": { - "$ref": "../../../Common/common.json#/definitions/CoordinateAbbreviated" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/CoordinateAbbreviated" }, "viewport": { "$ref": "#/definitions/SearchResultViewport" @@ -2937,7 +2937,7 @@ "type": "object", "properties": { "geometry": { - "$ref": "../../../Common/common.json#/definitions/Geometry" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/Geometry" } } }, @@ -2946,7 +2946,7 @@ "type": "object", "properties": { "route": { - "$ref": "../../../Common/common.json#/definitions/LineString" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/LineString" } } }, @@ -3233,10 +3233,10 @@ "type": "object", "properties": { "topLeftPoint": { - "$ref": "../../../Common/common.json#/definitions/CoordinateAbbreviated" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/CoordinateAbbreviated" }, "btmRightPoint": { - "$ref": "../../../Common/common.json#/definitions/CoordinateAbbreviated" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/CoordinateAbbreviated" } } }, @@ -3254,7 +3254,7 @@ ] }, "position": { - "$ref": "../../../Common/common.json#/definitions/CoordinateAbbreviated" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/CoordinateAbbreviated" } } }, @@ -3269,10 +3269,10 @@ "type": "string" }, "from": { - "$ref": "../../../Common/common.json#/definitions/CoordinateAbbreviated" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/CoordinateAbbreviated" }, "to": { - "$ref": "../../../Common/common.json#/definitions/CoordinateAbbreviated" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/CoordinateAbbreviated" } } }, diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json index 9d1e315e8037..a676956bcaae 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json @@ -52,13 +52,13 @@ "400": { "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { - "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", "schema": { - "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" }, "headers": { "WWW-Authenticate": { @@ -70,19 +70,19 @@ "403": { "description": "Permission, capacity, or authentication issues.", "schema": { - "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { - "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { - "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } } }, @@ -976,7 +976,7 @@ "type": "string" }, "geometry": { - "$ref": "../../../Common/common.json#/definitions/GeoJSONGeometry" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/GeoJSONGeometry" }, "properties": { "description": "Properties can contain any additional metadata about the `Feature`. Value can be any JSON object or a JSON null value", diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json index 47943cf2bc9b..94115c1b3757 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json @@ -49,13 +49,13 @@ "400": { "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { - "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", "schema": { - "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" }, "headers": { "WWW-Authenticate": { @@ -67,25 +67,25 @@ "403": { "description": "Permission, capacity, or authentication issues.", "schema": { - "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { - "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { - "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } }, "201Async": { "description": "The resource has been created successfully.", "schema": { - "$ref": "../../../Common/common.json#/definitions/LongRunningOperationResult" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/LongRunningOperationResult" }, "headers": { "Location": { @@ -239,7 +239,7 @@ "200": { "description": "Status 200 not expected", "schema": { - "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } }, "201": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json index 1f55338c4942..ffd9b5e111e7 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json +++ b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json @@ -43,13 +43,13 @@ "400": { "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { - "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", "schema": { - "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" }, "headers": { "WWW-Authenticate": { @@ -61,19 +61,19 @@ "403": { "description": "Permission, capacity, or authentication issues.", "schema": { - "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { - "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { - "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } } }, diff --git a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json index dc9183ac5524..8effe8057ae5 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json +++ b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json @@ -52,13 +52,13 @@ "400": { "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { - "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", "schema": { - "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" }, "headers": { "WWW-Authenticate": { @@ -70,19 +70,19 @@ "403": { "description": "Permission, capacity, or authentication issues.", "schema": { - "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { - "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { - "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } } }, diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json index 0c4c069906e8..2a76889173f9 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json @@ -59,13 +59,13 @@ "400": { "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { - "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", "schema": { - "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" }, "headers": { "WWW-Authenticate": { @@ -77,19 +77,19 @@ "403": { "description": "Permission, capacity, or authentication issues.", "schema": { - "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { - "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { - "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } } }, @@ -606,7 +606,7 @@ "$ref": "#/responses/500" }, "default": { - "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json index a6701a7096e8..000a386390d0 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json +++ b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json @@ -41,13 +41,13 @@ "400": { "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { - "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", "schema": { - "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" }, "headers": { "WWW-Authenticate": { @@ -59,19 +59,19 @@ "403": { "description": "Permission, capacity, or authentication issues.", "schema": { - "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { - "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { - "$ref": "../../../Common/common.json#/definitions/ODataErrorResponse" + "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } } }, diff --git a/specification/maps/data-plane/readme.csharp.md b/specification/maps/data-plane/readme.csharp.md new file mode 100644 index 000000000000..02f542097e75 --- /dev/null +++ b/specification/maps/data-plane/readme.csharp.md @@ -0,0 +1,14 @@ +## C# + +These settings apply only when `--csharp` is specified on the command line. +Please also specify `--csharp-sdks-folder=`. + +```yaml $(csharp) +csharp: + license-header: MICROSOFT_MIT_NO_VERSION + payload-flattening-threshold: 1 + clear-output-folder: true + client-side-validation: false + namespace: Microsoft.Maps + output-folder: $(csharp-sdks-folder)/maps/data-plane/Microsoft.Maps/GeneratedProtocol +``` diff --git a/specification/maps/data-plane/readme.go.md b/specification/maps/data-plane/readme.go.md new file mode 100644 index 000000000000..6f45f66091aa --- /dev/null +++ b/specification/maps/data-plane/readme.go.md @@ -0,0 +1,26 @@ +## Go + +These settings apply only when `--go` is specified on the command line. + +``` yaml $(go) +go: + license-header: MICROSOFT_APACHE_NO_VERSION + namespace: maps + clear-output-folder: true +``` + +### Go multi-api + +``` yaml $(go) && $(multiapi) +batch: + - tag: package-1.0-preview +``` + +### Tag: package-1.0-preview and go + +These settings apply only when `--tag=package-1.0-preview --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'package-1.0-preview' && $(go) +output-folder: $(go-sdk-folder)/services/preview/$(namespace)/1.0/$(namespace) +``` \ No newline at end of file diff --git a/specification/maps/data-plane/readme.md b/specification/maps/data-plane/readme.md index cd93b9d99169..61a58d832568 100644 --- a/specification/maps/data-plane/readme.md +++ b/specification/maps/data-plane/readme.md @@ -93,3 +93,34 @@ input-file: - Microsoft.Maps/Weather/preview/1.0/weather.json - Microsoft.Maps/WFS/preview/1.0/wfs.json ``` + +# Code Generation + +## Swagger to SDK + +This section describes what SDK should be generated by the automatic system. +This is not used by Autorest itself. + +```yaml $(swagger-to-sdk) +swagger-to-sdk: + - repo: azure-sdk-for-net + - repo: azure-sdk-for-python + - repo: azure-sdk-for-java + - repo: azure-sdk-for-go + - repo: azure-sdk-for-js +``` +## Go + +See configuration in [readme.go.md](./readme.go.md) + +## Python + +See configuration in [readme.python.md](./readme.python.md) + +## TypeScript + +See configuration in [readme.typescript.md](./readme.typescript.md) + +## CSharp + +See configuration in [readme.csharp.md](./readme.csharp.md) diff --git a/specification/maps/data-plane/readme.python.md b/specification/maps/data-plane/readme.python.md new file mode 100644 index 000000000000..2983bf197fe7 --- /dev/null +++ b/specification/maps/data-plane/readme.python.md @@ -0,0 +1,17 @@ +## Python + +These settings apply only when `--python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +```yaml $(python) +python: + license-header: MICROSOFT_MIT_NO_VERSION + namespace: azure.maps + package-name: azure-maps + package-version: 1.0-preview + clear-output-folder: true + no-namespace-folders: true + enable-xml: true + vanilla: true + output-folder: $(python-sdks-folder)/maps +``` \ No newline at end of file diff --git a/specification/maps/data-plane/readme.typescript.md b/specification/maps/data-plane/readme.typescript.md new file mode 100644 index 000000000000..b6fbc478fc4f --- /dev/null +++ b/specification/maps/data-plane/readme.typescript.md @@ -0,0 +1,13 @@ +## TypeScript + +These settings apply only when `--typescript` is specified on the command line. +Please also specify `--typescript-sdks-folder=`. + +``` yaml $(typescript) +typescript: + package-name: "@azure/maps" + output-folder: "$(typescript-sdks-folder)/sdk/maps/maps" + payload-flattening-threshold: 1 + clear-output-folder: true + generate-metadata: true +``` From 76df28aefd83dd60ebf778f703a16db6113eeb21 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Fri, 19 Mar 2021 01:43:55 -0700 Subject: [PATCH 004/210] Fix path issue --- .../Alias/preview/1.0/alias.json | 56 +++--- .../DEM/preview/1.0/elevation.json | 96 +++++------ .../Dataset/preview/1.0/dataset.json | 64 +++---- .../preview/1.0/dwgconversion.json | 52 +++--- .../preview/1.0/featurestate.json | 114 ++++++------- .../Feedback/preview/1.0/feedback.json | 22 +-- .../Geolocation/preview/1.0/geolocation.json | 18 +- .../Mobility/preview/1.0/mobility.json | 160 +++++++++--------- .../Route/preview/1.0/route.json | 32 ++-- .../Search/preview/1.0/search.json | 54 +++--- .../Spatial/preview/1.0/spatial.json | 12 +- .../Tileset/preview/1.0/tileset.json | 14 +- .../Timezone/preview/1.0/timezone.json | 10 +- .../Traffic/preview/1.0/traffic.json | 10 +- .../Microsoft.Maps/WFS/preview/1.0/wfs.json | 12 +- .../Weather/preview/1.0/weather.json | 10 +- 16 files changed, 368 insertions(+), 368 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json index 7311d5a66daf..c472144aa8b9 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json @@ -112,10 +112,10 @@ }, "parameters": [ { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" } ], "responses": { @@ -132,19 +132,19 @@ } }, "400": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.js#/responses/500" } } }, @@ -159,10 +159,10 @@ }, "parameters": [ { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" } ], "responses": { @@ -173,19 +173,19 @@ } }, "400": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.js#/responses/500" } } } @@ -202,10 +202,10 @@ }, "parameters": [ { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" }, { "$ref": "#/parameters/AliasId" @@ -222,19 +222,19 @@ } }, "400": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.js#/responses/500" } } } @@ -251,10 +251,10 @@ }, "parameters": [ { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" }, { "$ref": "#/parameters/AliasId" @@ -268,19 +268,19 @@ } }, "400": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.js#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json index 59eea91c6d31..fa364ae8deba 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json +++ b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json @@ -52,16 +52,16 @@ }, "parameters": [ { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/ClientId" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/JsonFormat" }, { "name": "points", @@ -90,19 +90,19 @@ } }, "400": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.js#/responses/500" } } }, @@ -117,16 +117,16 @@ }, "parameters": [ { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/ClientId" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/JsonFormat" }, { "name": "pointsRequestBody", @@ -149,19 +149,19 @@ } }, "400": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.js#/responses/500" } } } @@ -178,16 +178,16 @@ }, "parameters": [ { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/ClientId" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/JsonFormat" }, { "name": "lines", @@ -226,19 +226,19 @@ } }, "400": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.js#/responses/500" } } }, @@ -253,16 +253,16 @@ }, "parameters": [ { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/ClientId" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/JsonFormat" }, { "name": "linesRequestBody", @@ -295,19 +295,19 @@ } }, "400": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.js#/responses/500" } } } @@ -324,16 +324,16 @@ }, "parameters": [ { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/ClientId" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/JsonFormat" }, { "name": "bounds", @@ -376,19 +376,19 @@ } }, "400": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.js#/responses/500" } } } @@ -408,7 +408,7 @@ "description": "The elevation data.", "properties": { "coordinate": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/Coordinate" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/Coordinate" }, "elevationInMeter": { "description": "The elevation value in meters.", @@ -464,14 +464,14 @@ "type": "array", "description": "The post elevation points array request body. The length of the array ranges from 2 to 2000.", "items": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/CoordinateAbbreviated" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/CoordinateAbbreviated" } }, "LinesInRequestBody": { "type": "array", "description": "The post elevation lines request body.", "items": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/CoordinateAbbreviated" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/CoordinateAbbreviated" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json index 22357bfbd42b..78dacc3558af 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json @@ -190,10 +190,10 @@ }, "parameters": [ { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" }, { "$ref": "#/parameters/ConversionIdQuery" @@ -213,25 +213,25 @@ ], "responses": { "201": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/201Async" + "$ref": "../../../Common/preview/1.0/common.js#/responses/201Async" }, "202": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/202Async" + "$ref": "../../../Common/preview/1.0/common.js#/responses/202Async" }, "400": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.js#/responses/500" } } } @@ -248,10 +248,10 @@ }, "parameters": [ { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" }, { "$ref": "#/parameters/DatasetId" @@ -265,25 +265,25 @@ ], "responses": { "200": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/200Async" + "$ref": "../../../Common/preview/1.0/common.js#/responses/200Async" }, "202": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/202Async" + "$ref": "../../../Common/preview/1.0/common.js#/responses/202Async" }, "400": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.js#/responses/500" } } } @@ -300,10 +300,10 @@ }, "parameters": [ { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" }, { "$ref": "#/parameters/DatasetId" @@ -317,19 +317,19 @@ } }, "400": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.js#/responses/500" } } } @@ -346,10 +346,10 @@ }, "parameters": [ { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" } ], "responses": { @@ -360,19 +360,19 @@ } }, "400": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.js#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json index 5877ae4ac344..ba13e6ea287a 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json @@ -136,13 +136,13 @@ }, "parameters": [ { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/ClientId" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" }, { "$ref": "#/parameters/UdidQuery" @@ -156,25 +156,25 @@ ], "responses": { "201": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/201Async" + "$ref": "../../../Common/preview/1.0/common.js#/responses/201Async" }, "202": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/202Async" + "$ref": "../../../Common/preview/1.0/common.js#/responses/202Async" }, "400": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.js#/responses/500" } } } @@ -191,13 +191,13 @@ }, "parameters": [ { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/ClientId" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" } ], "responses": { @@ -208,19 +208,19 @@ } }, "400": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.js#/responses/500" } } } @@ -237,13 +237,13 @@ }, "parameters": [ { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/ClientId" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" }, { "$ref": "#/parameters/ConversionId" @@ -257,19 +257,19 @@ } }, "400": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.js#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json index 34b152a35721..4737cf3c34f7 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json @@ -143,10 +143,10 @@ }, "parameters": [ { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -160,19 +160,19 @@ } }, "400": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.js#/responses/500" } } }, @@ -187,10 +187,10 @@ }, "parameters": [ { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -201,19 +201,19 @@ "description": "Stateset Deleted." }, "400": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.js#/responses/500" } } }, @@ -228,10 +228,10 @@ }, "parameters": [ { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -251,19 +251,19 @@ "description": "Stateset styles are updated successfully." }, "400": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.js#/responses/500" } } } @@ -280,10 +280,10 @@ }, "parameters": [ { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" }, { "$ref": "#/parameters/DatasetIdForCreate" @@ -306,19 +306,19 @@ } }, "400": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.js#/responses/500" } } }, @@ -333,10 +333,10 @@ }, "parameters": [ { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" } ], "responses": { @@ -347,19 +347,19 @@ } }, "400": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.js#/responses/500" } } } @@ -376,10 +376,10 @@ }, "parameters": [ { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" }, { "$ref": "#/parameters/StatesetId" @@ -396,19 +396,19 @@ } }, "400": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.js#/responses/500" } } }, @@ -423,10 +423,10 @@ }, "parameters": [ { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" }, { "$ref": "#/parameters/StatesetId" @@ -449,19 +449,19 @@ "description": "Feature states are updated successfully." }, "400": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.js#/responses/500" } } }, @@ -476,10 +476,10 @@ }, "parameters": [ { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" }, { "$ref": "#/parameters/StatesetId" @@ -496,22 +496,22 @@ "description": "Feature states deleted successfully." }, "400": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.js#/responses/404" }, "409": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/409" + "$ref": "../../../Common/preview/1.0/common.js#/responses/409" }, "500": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.js#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Feedback/preview/1.0/feedback.json b/specification/maps/data-plane/Microsoft.Maps/Feedback/preview/1.0/feedback.json index 35f50011aa2d..a3e8ea96766e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Feedback/preview/1.0/feedback.json +++ b/specification/maps/data-plane/Microsoft.Maps/Feedback/preview/1.0/feedback.json @@ -96,7 +96,7 @@ "type": "boolean" }, "location": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/GeoJSONPosition" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/GeoJSONPosition" }, "bbox": { "$ref": "#/definitions/GeoJsonBoundingBox" @@ -124,7 +124,7 @@ "type": "boolean" }, "location": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/GeoJSONPosition" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/GeoJSONPosition" }, "bbox": { "$ref": "#/definitions/GeoJsonBoundingBox" @@ -152,7 +152,7 @@ "type": "boolean" }, "location": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/GeoJSONPosition" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/GeoJSONPosition" }, "bbox": { "$ref": "#/definitions/GeoJsonBoundingBox" @@ -219,7 +219,7 @@ "type": "string" }, "geometry": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/Point" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/Point" } } }, @@ -290,7 +290,7 @@ "type": "boolean" }, "location": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/GeoJSONPosition" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/GeoJSONPosition" }, "bbox": { "$ref": "#/definitions/GeoJsonBoundingBox" @@ -318,7 +318,7 @@ "type": "boolean" }, "location": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/GeoJSONPosition" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/GeoJSONPosition" }, "bbox": { "$ref": "#/definitions/GeoJsonBoundingBox" @@ -346,7 +346,7 @@ "type": "boolean" }, "location": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/GeoJSONPosition" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/GeoJSONPosition" }, "bbox": { "$ref": "#/definitions/GeoJsonBoundingBox" @@ -394,7 +394,7 @@ "type": "string" }, "geometry": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/Point" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/Point" } } }, @@ -445,7 +445,7 @@ "type": "boolean" }, "location": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/GeoJSONPosition" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/GeoJSONPosition" }, "bbox": { "$ref": "#/definitions/GeoJsonBoundingBox" @@ -481,10 +481,10 @@ "type": "object", "properties": { "current": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/Geometry" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/Geometry" }, "proposed": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/Geometry" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/Geometry" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json index 480bf6f72401..e5dfac4b7eba 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json +++ b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json @@ -51,16 +51,16 @@ }, "parameters": [ { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/ClientId" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/JsonFormat" }, { "name": "ip", @@ -78,19 +78,19 @@ } }, "400": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.js#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json index 0c7c43012560..abaf66e475fc 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json +++ b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json @@ -69,16 +69,16 @@ }, "parameters": [ { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/ClientId" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/JsonFormat" }, { "name": "query", @@ -126,19 +126,19 @@ } }, "400": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.js#/responses/500" } } } @@ -155,16 +155,16 @@ }, "parameters": [ { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/ClientId" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/JsonFormat" }, { "name": "query", @@ -225,19 +225,19 @@ } }, "400": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.js#/responses/500" } } } @@ -254,16 +254,16 @@ }, "parameters": [ { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/ClientId" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/JsonFormat" }, { "$ref": "#/parameters/MetroId" @@ -311,19 +311,19 @@ } }, "400": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.js#/responses/500" } } } @@ -340,16 +340,16 @@ }, "parameters": [ { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/ClientId" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/JsonFormat" }, { "$ref": "#/parameters/MetroId" @@ -421,19 +421,19 @@ } }, "400": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.js#/responses/500" } } } @@ -450,16 +450,16 @@ }, "parameters": [ { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/ClientId" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/JsonFormat" }, { "$ref": "#/parameters/MetroId" @@ -548,19 +548,19 @@ } }, "400": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.js#/responses/500" } } } @@ -577,16 +577,16 @@ }, "parameters": [ { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/ClientId" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/JsonFormat" }, { "$ref": "#/parameters/MetroId" @@ -893,19 +893,19 @@ } }, "400": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.js#/responses/500" } } } @@ -922,16 +922,16 @@ }, "parameters": [ { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/ClientId" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/JsonFormat" }, { "name": "query", @@ -981,19 +981,19 @@ } }, "400": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.js#/responses/500" } } } @@ -1010,16 +1010,16 @@ }, "parameters": [ { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/ClientId" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" }, { - "$ref": "../../..Common/preview/1.0/common.js#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.js#/parameters/JsonFormat" }, { "$ref": "#/parameters/MetroId" @@ -1232,19 +1232,19 @@ } }, "400": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.js#/responses/400" }, "401": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.js#/responses/401" }, "403": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.js#/responses/403" }, "404": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.js#/responses/404" }, "500": { - "$ref": "../../..Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.js#/responses/500" } } } @@ -1418,7 +1418,7 @@ "type": "string" }, "geometry": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/Polygon" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/Polygon" }, "viewport": { "$ref": "#/definitions/ResultViewport" @@ -1430,10 +1430,10 @@ "type": "object", "properties": { "topLeftPoint": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/Coordinate" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/Coordinate" }, "btmRightPoint": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/Coordinate" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/Coordinate" } } }, @@ -1454,7 +1454,7 @@ }, "position": { "description": "The transit object's position.", - "$ref": "../../..Common/preview/1.0/common.js#/definitions/Coordinate" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/Coordinate" }, "viewport": { "$ref": "#/definitions/ResultViewport" @@ -1483,7 +1483,7 @@ }, "position": { "description": "The Stop's location, latitude and longitude.", - "$ref": "../../..Common/preview/1.0/common.js#/definitions/Coordinate" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/Coordinate" }, "mainTransitType": { "description": "The transit type of most lines stopping at this stop. One of Tram, Subway, Rail, Bus, Ferry, CableCar, Gondola, Funicular", @@ -1777,7 +1777,7 @@ "$ref": "#/definitions/LegPoint" }, "geometry": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/LineString" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/LineString" }, "lineGroup": { "description": "In case of a public transit leg, the line group serving this leg.", @@ -1957,7 +1957,7 @@ "type": "object", "properties": { "position": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/Coordinate" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/Coordinate" } } }, @@ -2164,7 +2164,7 @@ }, "geometry": { "description": "Stop sequence and shape per a line in GeoJSON format.", - "$ref": "../../..Common/preview/1.0/common.js#/definitions/LineString" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/LineString" } } }, diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json index 7136de2cfa76..07cb03352130 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json @@ -52,13 +52,13 @@ "400": { "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", "schema": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" }, "headers": { "WWW-Authenticate": { @@ -70,19 +70,19 @@ "403": { "description": "Permission, capacity, or authentication issues.", "schema": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } }, "202Async": { @@ -1638,7 +1638,7 @@ "description": "The list of route directions queries/requests to process. The list can contain a max of 700 queries for async and 100 queries for sync version and must contain at least 1 query.", "required": true, "schema": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/BatchRequestBody" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/BatchRequestBody" } } ], @@ -1646,7 +1646,7 @@ "200": { "description": "OK", "schema": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/BatchResponse" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/BatchResponse" } }, "202": { @@ -1683,14 +1683,14 @@ "description": "A GeoJSON Geometry collection representing sequence of coordinates used as input for route reconstruction and for calculating zero or more alternative routes to this reference route.\n - The provided sequence of supporting points is used as input for route reconstruction.\n - The alternative routes are calculated between the origin and destination points specified in the base path parameter locations.\n - If both _minDeviationDistance_ and _minDeviationTime_ are set to zero, then these origin and destination points are\n expected to be at (or very near) the beginning and end of the reference route, respectively.\n - Intermediate locations (_waypoints_) are not supported when using <_supportingPoints_>.\n - The reference route may contain traffic incidents of type _ROAD_CLOSURE_, which are\n ignored for the calculation of the reference route's travel time and traffic delay.", "allOf": [ { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/GeoJSONGeometryCollection" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/GeoJSONGeometryCollection" }, { "properties": { "geometries": { "type": "array", "items": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/Point" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/Point" } } } @@ -1713,7 +1713,7 @@ }, "avoidAreas": { "description": "A GeoJSON MultiPolygon representing list of areas to avoid. Only rectangle polygons are supported. The maximum size of a rectangle is about 160x160 km. Maximum number of avoided areas is **10**. It cannot cross the 180th meridian. It must be between -80 and +80 degrees of latitude.", - "$ref": "../../..Common/preview/1.0/common.js#/definitions/MultiPolygon" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/MultiPolygon" } } }, @@ -1833,7 +1833,7 @@ "type": "array", "readOnly": true, "items": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/Coordinate" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/Coordinate" } } } @@ -2027,7 +2027,7 @@ "readOnly": true }, "point": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/Coordinate" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/Coordinate" }, "pointIndex": { "description": "The index of the point in the list of polyline \"points\" corresponding to the point of the instruction.", @@ -2438,14 +2438,14 @@ "properties": { "center": { "description": "Center point of the reachable range", - "$ref": "../../..Common/preview/1.0/common.js#/definitions/Coordinate" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/Coordinate" }, "boundary": { "description": "Polygon boundary of the reachable range represented as a list of points.", "type": "array", "readOnly": true, "items": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/Coordinate" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/Coordinate" } } } @@ -2553,10 +2553,10 @@ "type": "object", "properties": { "origins": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/MultiPoint" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/MultiPoint" }, "destinations": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/MultiPoint" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/MultiPoint" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json index c25dc88ff01b..84f3222b850c 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json @@ -52,13 +52,13 @@ "400": { "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", "schema": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" }, "headers": { "WWW-Authenticate": { @@ -70,19 +70,19 @@ "403": { "description": "Permission, capacity, or authentication issues.", "schema": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } }, "202Async": { @@ -1726,7 +1726,7 @@ "description": "The list of search fuzzy queries/requests to process. The list can contain a max of 10,000 queries and must contain at least 1 query.", "required": true, "schema": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/BatchRequestBody" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/BatchRequestBody" } } ], @@ -1734,7 +1734,7 @@ "200": { "description": "OK", "schema": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/BatchResponse" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/BatchResponse" } }, "202": { @@ -1794,7 +1794,7 @@ "description": "The list of address geocoding queries/requests to process. The list can contain a max of 10,000 queries and must contain at least 1 query.", "required": true, "schema": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/BatchRequestBody" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/BatchRequestBody" } } ], @@ -1802,7 +1802,7 @@ "200": { "description": "OK", "schema": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/BatchResponse" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/BatchResponse" } }, "202": { @@ -1862,7 +1862,7 @@ "description": "The list of reverse geocoding queries/requests to process. The list can contain a max of 10,000 queries and must contain at least 1 query.", "required": true, "schema": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/BatchRequestBody" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/BatchRequestBody" } } ], @@ -1870,7 +1870,7 @@ "200": { "description": "OK", "schema": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/BatchResponse" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/BatchResponse" } }, "202": { @@ -1976,7 +1976,7 @@ }, "geometryData": { "description": "Geometry data in GeoJSON format. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946) for details. Present only if \"error\" is not present.", - "$ref": "../../..Common/preview/1.0/common.js#/definitions/Geometry" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/Geometry" } } }, @@ -2070,7 +2070,7 @@ "$ref": "#/definitions/SearchResultAddress" }, "position": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/CoordinateAbbreviated" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/CoordinateAbbreviated" }, "viewport": { "$ref": "#/definitions/SearchResultViewport" @@ -2186,7 +2186,7 @@ "$ref": "#/definitions/SearchResultAddress" }, "position": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/CoordinateAbbreviated" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/CoordinateAbbreviated" }, "viewport": { "$ref": "#/definitions/SearchResultViewport" @@ -2288,7 +2288,7 @@ "$ref": "#/definitions/SearchResultAddress" }, "position": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/CoordinateAbbreviated" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/CoordinateAbbreviated" }, "viewport": { "$ref": "#/definitions/SearchResultViewport" @@ -2398,7 +2398,7 @@ "$ref": "#/definitions/SearchResultAddress" }, "position": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/CoordinateAbbreviated" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/CoordinateAbbreviated" }, "viewport": { "$ref": "#/definitions/SearchResultViewport" @@ -2491,7 +2491,7 @@ "$ref": "#/definitions/SearchResultAddress" }, "position": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/CoordinateAbbreviated" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/CoordinateAbbreviated" }, "viewport": { "$ref": "#/definitions/SearchResultViewport" @@ -2697,7 +2697,7 @@ "$ref": "#/definitions/SearchResultAddress" }, "position": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/CoordinateAbbreviated" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/CoordinateAbbreviated" }, "viewport": { "$ref": "#/definitions/SearchResultViewport" @@ -2805,7 +2805,7 @@ "$ref": "#/definitions/SearchResultAddress" }, "position": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/CoordinateAbbreviated" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/CoordinateAbbreviated" }, "viewport": { "$ref": "#/definitions/SearchResultViewport" @@ -2910,7 +2910,7 @@ "$ref": "#/definitions/SearchResultAddress" }, "position": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/CoordinateAbbreviated" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/CoordinateAbbreviated" }, "viewport": { "$ref": "#/definitions/SearchResultViewport" @@ -2937,7 +2937,7 @@ "type": "object", "properties": { "geometry": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/Geometry" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/Geometry" } } }, @@ -2946,7 +2946,7 @@ "type": "object", "properties": { "route": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/LineString" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/LineString" } } }, @@ -3233,10 +3233,10 @@ "type": "object", "properties": { "topLeftPoint": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/CoordinateAbbreviated" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/CoordinateAbbreviated" }, "btmRightPoint": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/CoordinateAbbreviated" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/CoordinateAbbreviated" } } }, @@ -3254,7 +3254,7 @@ ] }, "position": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/CoordinateAbbreviated" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/CoordinateAbbreviated" } } }, @@ -3269,10 +3269,10 @@ "type": "string" }, "from": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/CoordinateAbbreviated" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/CoordinateAbbreviated" }, "to": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/CoordinateAbbreviated" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/CoordinateAbbreviated" } } }, diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json index a676956bcaae..3379fefee713 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json @@ -52,13 +52,13 @@ "400": { "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", "schema": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" }, "headers": { "WWW-Authenticate": { @@ -70,19 +70,19 @@ "403": { "description": "Permission, capacity, or authentication issues.", "schema": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } } }, @@ -976,7 +976,7 @@ "type": "string" }, "geometry": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/GeoJSONGeometry" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/GeoJSONGeometry" }, "properties": { "description": "Properties can contain any additional metadata about the `Feature`. Value can be any JSON object or a JSON null value", diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json index 94115c1b3757..8dd043219003 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json @@ -49,13 +49,13 @@ "400": { "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", "schema": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" }, "headers": { "WWW-Authenticate": { @@ -67,25 +67,25 @@ "403": { "description": "Permission, capacity, or authentication issues.", "schema": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } }, "201Async": { "description": "The resource has been created successfully.", "schema": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/LongRunningOperationResult" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/LongRunningOperationResult" }, "headers": { "Location": { @@ -239,7 +239,7 @@ "200": { "description": "Status 200 not expected", "schema": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } }, "201": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json index ffd9b5e111e7..6d3af41f2ac3 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json +++ b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json @@ -43,13 +43,13 @@ "400": { "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", "schema": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" }, "headers": { "WWW-Authenticate": { @@ -61,19 +61,19 @@ "403": { "description": "Permission, capacity, or authentication issues.", "schema": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } } }, diff --git a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json index 8effe8057ae5..ad1ef1d76c4b 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json +++ b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json @@ -52,13 +52,13 @@ "400": { "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", "schema": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" }, "headers": { "WWW-Authenticate": { @@ -70,19 +70,19 @@ "403": { "description": "Permission, capacity, or authentication issues.", "schema": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } } }, diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json index 2a76889173f9..5ee9b7c78601 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json @@ -59,13 +59,13 @@ "400": { "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", "schema": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" }, "headers": { "WWW-Authenticate": { @@ -77,19 +77,19 @@ "403": { "description": "Permission, capacity, or authentication issues.", "schema": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } } }, @@ -606,7 +606,7 @@ "$ref": "#/responses/500" }, "default": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json index 000a386390d0..e88539abdf0b 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json +++ b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json @@ -41,13 +41,13 @@ "400": { "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", "schema": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" }, "headers": { "WWW-Authenticate": { @@ -59,19 +59,19 @@ "403": { "description": "Permission, capacity, or authentication issues.", "schema": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { - "$ref": "../../..Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" } } }, From 34edbe8ab93e75df3aaff308456292b3e6effd7e Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Fri, 19 Mar 2021 01:54:11 -0700 Subject: [PATCH 005/210] fix prettifier error. --- .../maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json index 618d29edc150..075d71f3ffa7 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json @@ -73,8 +73,8 @@ }, "x-ms-parameter-location": "client" }, - "UploadDataFormat": { - "name": "dataFormat", + "UploadDataFormat": { + "name": "dataFormat", "description": "Data format of the content being uploaded.", "type": "string", "in": "query", From e5dab0ee5416a80b1c33e6aa1b78c307522027fd Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Fri, 19 Mar 2021 02:00:02 -0700 Subject: [PATCH 006/210] Replace mistyped extension. --- package-lock.json | 39 +++-- package.json | 4 + .../Alias/preview/1.0/alias.json | 56 +++--- .../DEM/preview/1.0/elevation.json | 96 +++++------ .../Microsoft.Maps/Data/preview/1.0/data.json | 92 +++++----- .../Dataset/preview/1.0/dataset.json | 64 +++---- .../preview/1.0/dwgconversion.json | 52 +++--- .../preview/1.0/featurestate.json | 114 ++++++------- .../Feedback/preview/1.0/feedback.json | 22 +-- .../Geolocation/preview/1.0/geolocation.json | 18 +- .../Mobility/preview/1.0/mobility.json | 160 +++++++++--------- .../Route/preview/1.0/route.json | 32 ++-- .../Search/preview/1.0/search.json | 54 +++--- .../Spatial/preview/1.0/spatial.json | 12 +- .../Tileset/preview/1.0/tileset.json | 14 +- .../Timezone/preview/1.0/timezone.json | 10 +- .../Traffic/preview/1.0/traffic.json | 10 +- .../Microsoft.Maps/WFS/preview/1.0/wfs.json | 12 +- .../Weather/preview/1.0/weather.json | 10 +- 19 files changed, 447 insertions(+), 424 deletions(-) diff --git a/package-lock.json b/package-lock.json index c112b7c88c93..335ba81c7954 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3,6 +3,23 @@ "version": "0.1.0", "lockfileVersion": 1, "requires": true, + "dependencies": { + "@types/form-data": "^2.5.0", + "form-data": "^3.0.0" + }, + "node_modules/@types/form-data": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@types/form-data/-/form-data-2.5.0.tgz", + "integrity": "sha512-23/wYiuckYYtFpL+4RPWiWmRQH2BjFuqCUi2+N3amB1a1Drv+i/byTrGvlLwRVLFNAZbwpbQ7JvTK+VCAPMbcg==", + "deprecated": "This is a stub types definition. form-data provides its own type definitions, so you do not need this installed.", + "dependencies": { + "form-data": "*" + } + }, + "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" + "optionator": "^0.8.1" + "optionator": "^0.8.1" + "integrity": "sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew==", "dependencies": { "@azure/avocado": { "version": "0.7.2", @@ -898,6 +915,14 @@ "integrity": "sha512-7koSjp08QxKoS1/+3T15+kD7+vqOUvZRHvM8PutF3Xsk5aAEkdlIGRsHJ3/XsC3izoqTwBdRW/vH7rzCKkIicA==", "dev": true }, + "@types/form-data": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@types/form-data/-/form-data-2.5.0.tgz", + "integrity": "sha512-23/wYiuckYYtFpL+4RPWiWmRQH2BjFuqCUi2+N3amB1a1Drv+i/byTrGvlLwRVLFNAZbwpbQ7JvTK+VCAPMbcg==", + "requires": { + "form-data": "*" + } + }, "@types/glob": { "version": "7.1.3", "resolved": "https://registry.npmjs.org/@types/glob/-/glob-7.1.3.tgz", @@ -1172,8 +1197,7 @@ "asynckit": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=", - "dev": true + "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" }, "atob": { "version": "2.1.2", @@ -1592,7 +1616,6 @@ "version": "1.0.8", "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "dev": true, "requires": { "delayed-stream": "~1.0.0" } @@ -2185,8 +2208,7 @@ "delayed-stream": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", - "dev": true + "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=" }, "deprecation": { "version": "2.3.1", @@ -2739,7 +2761,6 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.0.tgz", "integrity": "sha512-CKMFDglpbMi6PyN+brwB9Q/GOw0eAnsrEZDgcsH5Krhz5Od/haKHAX0NmQfha2zPPz0JpWzA7GJHGSnvCRLWsg==", - "dev": true, "requires": { "asynckit": "^0.4.0", "combined-stream": "^1.0.8", @@ -4039,14 +4060,12 @@ "mime-db": { "version": "1.44.0", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.44.0.tgz", - "integrity": "sha512-/NOTfLrsPBVeH7YtFPgsVWveuL+4SjjYxaQ1xtM1KMFj7HdxlBlxeyNLzhyJVx7r4rZGJAZ/6lkKCitSc/Nmpg==", - "dev": true + "integrity": "sha512-/NOTfLrsPBVeH7YtFPgsVWveuL+4SjjYxaQ1xtM1KMFj7HdxlBlxeyNLzhyJVx7r4rZGJAZ/6lkKCitSc/Nmpg==" }, "mime-types": { "version": "2.1.27", "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.27.tgz", "integrity": "sha512-JIhqnCasI9yD+SsmkquHBxTSEuZdQX5BuQnS2Vc7puQQQ+8yiP5AY5uWhpdv4YL4VM5c6iliiYWPgJ/nJQLp7w==", - "dev": true, "requires": { "mime-db": "1.44.0" } @@ -5017,7 +5036,7 @@ "prettier": { "version": "1.19.1", "resolved": "https://registry.npmjs.org/prettier/-/prettier-1.19.1.tgz", - "integrity": "sha1-99f1/4qc2HKnvkyhQglZVqYHl8s=", + "integrity": "sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew==", "dev": true }, "process-nextick-args": { diff --git a/package.json b/package.json index cfd1bd9140c2..da44ca25ea08 100644 --- a/package.json +++ b/package.json @@ -44,5 +44,9 @@ "prettier": "prettier", "tsc": "tsc", "multiapi": "ts-node ./scripts/multiapi.ts" + }, + "dependencies": { + "@types/form-data": "^2.5.0", + "form-data": "^3.0.0" } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json index c472144aa8b9..49a5ce8c8a03 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json @@ -112,10 +112,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" } ], "responses": { @@ -132,19 +132,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -159,10 +159,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" } ], "responses": { @@ -173,19 +173,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -202,10 +202,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/AliasId" @@ -222,19 +222,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -251,10 +251,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/AliasId" @@ -268,19 +268,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json index fa364ae8deba..1ee85f36ef1e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json +++ b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json @@ -52,16 +52,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "points", @@ -90,19 +90,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -117,16 +117,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "pointsRequestBody", @@ -149,19 +149,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -178,16 +178,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "lines", @@ -226,19 +226,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -253,16 +253,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "linesRequestBody", @@ -295,19 +295,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -324,16 +324,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "bounds", @@ -376,19 +376,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -408,7 +408,7 @@ "description": "The elevation data.", "properties": { "coordinate": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/Coordinate" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/Coordinate" }, "elevationInMeter": { "description": "The elevation value in meters.", @@ -464,14 +464,14 @@ "type": "array", "description": "The post elevation points array request body. The length of the array ranges from 2 to 2000.", "items": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/CoordinateAbbreviated" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviated" } }, "LinesInRequestBody": { "type": "array", "description": "The post elevation lines request body.", "items": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/CoordinateAbbreviated" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviated" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json index 075d71f3ffa7..a71b0634b2f7 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json @@ -125,13 +125,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.jsonon#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.jsonon#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.jsonon#/parameters/ApiVersion" }, { "$ref": "#/parameters/UploadDataFormat" @@ -150,29 +150,29 @@ "200": { "description": "Data upload failed. The uploaded content did not satisfy all the validation checks. The response body contains all the errors that were encountered.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.jsonon#/definitions/ODataErrorResponse" } }, "201": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/201Async" + "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/201Async" }, "202": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" + "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/202Async" }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/500" } } } @@ -193,13 +193,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.jsonon#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.jsonon#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.jsonon#/parameters/ApiVersion" }, { "$ref": "#/parameters/Udid" @@ -218,29 +218,29 @@ "200": { "description": "Data update failed. The uploaded content did not satisfy all the validation checks. The response body contains all the errors that were encountered.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.jsonon#/definitions/ODataErrorResponse" } }, "201": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/201Async" + "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/201Async" }, "202": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" + "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/202Async" }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/500" } } }, @@ -255,13 +255,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.jsonon#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.jsonon#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.jsonon#/parameters/ApiVersion" }, { "$ref": "#/parameters/Udid" @@ -281,19 +281,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/500" } } }, @@ -308,13 +308,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.jsonon#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.jsonon#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.jsonon#/parameters/ApiVersion" }, { "$ref": "#/parameters/Udid" @@ -328,19 +328,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/500" } } } @@ -357,13 +357,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.jsonon#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.jsonon#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.jsonon#/parameters/ApiVersion" } ], "responses": { @@ -380,19 +380,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json index 78dacc3558af..5eefb588fd86 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json @@ -190,10 +190,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/ConversionIdQuery" @@ -213,25 +213,25 @@ ], "responses": { "201": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/201Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/201Async" }, "202": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/202Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" }, "400": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -248,10 +248,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/DatasetId" @@ -265,25 +265,25 @@ ], "responses": { "200": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/200Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/200Async" }, "202": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/202Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" }, "400": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -300,10 +300,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/DatasetId" @@ -317,19 +317,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -346,10 +346,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" } ], "responses": { @@ -360,19 +360,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json index ba13e6ea287a..a36bb761d863 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json @@ -136,13 +136,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/UdidQuery" @@ -156,25 +156,25 @@ ], "responses": { "201": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/201Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/201Async" }, "202": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/202Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" }, "400": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -191,13 +191,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" } ], "responses": { @@ -208,19 +208,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -237,13 +237,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/ConversionId" @@ -257,19 +257,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json index 4737cf3c34f7..bed50a78652b 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json @@ -143,10 +143,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -160,19 +160,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -187,10 +187,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -201,19 +201,19 @@ "description": "Stateset Deleted." }, "400": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -228,10 +228,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -251,19 +251,19 @@ "description": "Stateset styles are updated successfully." }, "400": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -280,10 +280,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/DatasetIdForCreate" @@ -306,19 +306,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -333,10 +333,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" } ], "responses": { @@ -347,19 +347,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -376,10 +376,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/StatesetId" @@ -396,19 +396,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -423,10 +423,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/StatesetId" @@ -449,19 +449,19 @@ "description": "Feature states are updated successfully." }, "400": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -476,10 +476,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/StatesetId" @@ -496,22 +496,22 @@ "description": "Feature states deleted successfully." }, "400": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "409": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/409" + "$ref": "../../../Common/preview/1.0/common.json#/responses/409" }, "500": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Feedback/preview/1.0/feedback.json b/specification/maps/data-plane/Microsoft.Maps/Feedback/preview/1.0/feedback.json index a3e8ea96766e..f1f056559b94 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Feedback/preview/1.0/feedback.json +++ b/specification/maps/data-plane/Microsoft.Maps/Feedback/preview/1.0/feedback.json @@ -96,7 +96,7 @@ "type": "boolean" }, "location": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/GeoJSONPosition" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJSONPosition" }, "bbox": { "$ref": "#/definitions/GeoJsonBoundingBox" @@ -124,7 +124,7 @@ "type": "boolean" }, "location": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/GeoJSONPosition" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJSONPosition" }, "bbox": { "$ref": "#/definitions/GeoJsonBoundingBox" @@ -152,7 +152,7 @@ "type": "boolean" }, "location": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/GeoJSONPosition" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJSONPosition" }, "bbox": { "$ref": "#/definitions/GeoJsonBoundingBox" @@ -219,7 +219,7 @@ "type": "string" }, "geometry": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/Point" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/Point" } } }, @@ -290,7 +290,7 @@ "type": "boolean" }, "location": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/GeoJSONPosition" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJSONPosition" }, "bbox": { "$ref": "#/definitions/GeoJsonBoundingBox" @@ -318,7 +318,7 @@ "type": "boolean" }, "location": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/GeoJSONPosition" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJSONPosition" }, "bbox": { "$ref": "#/definitions/GeoJsonBoundingBox" @@ -346,7 +346,7 @@ "type": "boolean" }, "location": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/GeoJSONPosition" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJSONPosition" }, "bbox": { "$ref": "#/definitions/GeoJsonBoundingBox" @@ -394,7 +394,7 @@ "type": "string" }, "geometry": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/Point" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/Point" } } }, @@ -445,7 +445,7 @@ "type": "boolean" }, "location": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/GeoJSONPosition" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJSONPosition" }, "bbox": { "$ref": "#/definitions/GeoJsonBoundingBox" @@ -481,10 +481,10 @@ "type": "object", "properties": { "current": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/Geometry" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/Geometry" }, "proposed": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/Geometry" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/Geometry" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json index e5dfac4b7eba..c911b1c40308 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json +++ b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json @@ -51,16 +51,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "ip", @@ -78,19 +78,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json index abaf66e475fc..57cb02316299 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json +++ b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json @@ -69,16 +69,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "query", @@ -126,19 +126,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -155,16 +155,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "query", @@ -225,19 +225,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -254,16 +254,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "$ref": "#/parameters/MetroId" @@ -311,19 +311,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -340,16 +340,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "$ref": "#/parameters/MetroId" @@ -421,19 +421,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -450,16 +450,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "$ref": "#/parameters/MetroId" @@ -548,19 +548,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -577,16 +577,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "$ref": "#/parameters/MetroId" @@ -893,19 +893,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -922,16 +922,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "query", @@ -981,19 +981,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -1010,16 +1010,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.js#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "$ref": "#/parameters/MetroId" @@ -1232,19 +1232,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.js#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -1418,7 +1418,7 @@ "type": "string" }, "geometry": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/Polygon" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/Polygon" }, "viewport": { "$ref": "#/definitions/ResultViewport" @@ -1430,10 +1430,10 @@ "type": "object", "properties": { "topLeftPoint": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/Coordinate" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/Coordinate" }, "btmRightPoint": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/Coordinate" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/Coordinate" } } }, @@ -1454,7 +1454,7 @@ }, "position": { "description": "The transit object's position.", - "$ref": "../../../Common/preview/1.0/common.js#/definitions/Coordinate" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/Coordinate" }, "viewport": { "$ref": "#/definitions/ResultViewport" @@ -1483,7 +1483,7 @@ }, "position": { "description": "The Stop's location, latitude and longitude.", - "$ref": "../../../Common/preview/1.0/common.js#/definitions/Coordinate" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/Coordinate" }, "mainTransitType": { "description": "The transit type of most lines stopping at this stop. One of Tram, Subway, Rail, Bus, Ferry, CableCar, Gondola, Funicular", @@ -1777,7 +1777,7 @@ "$ref": "#/definitions/LegPoint" }, "geometry": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/LineString" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/LineString" }, "lineGroup": { "description": "In case of a public transit leg, the line group serving this leg.", @@ -1957,7 +1957,7 @@ "type": "object", "properties": { "position": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/Coordinate" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/Coordinate" } } }, @@ -2164,7 +2164,7 @@ }, "geometry": { "description": "Stop sequence and shape per a line in GeoJSON format.", - "$ref": "../../../Common/preview/1.0/common.js#/definitions/LineString" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/LineString" } } }, diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json index 07cb03352130..9eb0c9ec520f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json @@ -52,13 +52,13 @@ "400": { "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" } }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", "schema": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" }, "headers": { "WWW-Authenticate": { @@ -70,19 +70,19 @@ "403": { "description": "Permission, capacity, or authentication issues.", "schema": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" } }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" } }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" } }, "202Async": { @@ -1638,7 +1638,7 @@ "description": "The list of route directions queries/requests to process. The list can contain a max of 700 queries for async and 100 queries for sync version and must contain at least 1 query.", "required": true, "schema": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/BatchRequestBody" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/BatchRequestBody" } } ], @@ -1646,7 +1646,7 @@ "200": { "description": "OK", "schema": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/BatchResponse" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/BatchResponse" } }, "202": { @@ -1683,14 +1683,14 @@ "description": "A GeoJSON Geometry collection representing sequence of coordinates used as input for route reconstruction and for calculating zero or more alternative routes to this reference route.\n - The provided sequence of supporting points is used as input for route reconstruction.\n - The alternative routes are calculated between the origin and destination points specified in the base path parameter locations.\n - If both _minDeviationDistance_ and _minDeviationTime_ are set to zero, then these origin and destination points are\n expected to be at (or very near) the beginning and end of the reference route, respectively.\n - Intermediate locations (_waypoints_) are not supported when using <_supportingPoints_>.\n - The reference route may contain traffic incidents of type _ROAD_CLOSURE_, which are\n ignored for the calculation of the reference route's travel time and traffic delay.", "allOf": [ { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/GeoJSONGeometryCollection" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJSONGeometryCollection" }, { "properties": { "geometries": { "type": "array", "items": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/Point" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/Point" } } } @@ -1713,7 +1713,7 @@ }, "avoidAreas": { "description": "A GeoJSON MultiPolygon representing list of areas to avoid. Only rectangle polygons are supported. The maximum size of a rectangle is about 160x160 km. Maximum number of avoided areas is **10**. It cannot cross the 180th meridian. It must be between -80 and +80 degrees of latitude.", - "$ref": "../../../Common/preview/1.0/common.js#/definitions/MultiPolygon" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/MultiPolygon" } } }, @@ -1833,7 +1833,7 @@ "type": "array", "readOnly": true, "items": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/Coordinate" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/Coordinate" } } } @@ -2027,7 +2027,7 @@ "readOnly": true }, "point": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/Coordinate" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/Coordinate" }, "pointIndex": { "description": "The index of the point in the list of polyline \"points\" corresponding to the point of the instruction.", @@ -2438,14 +2438,14 @@ "properties": { "center": { "description": "Center point of the reachable range", - "$ref": "../../../Common/preview/1.0/common.js#/definitions/Coordinate" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/Coordinate" }, "boundary": { "description": "Polygon boundary of the reachable range represented as a list of points.", "type": "array", "readOnly": true, "items": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/Coordinate" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/Coordinate" } } } @@ -2553,10 +2553,10 @@ "type": "object", "properties": { "origins": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/MultiPoint" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/MultiPoint" }, "destinations": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/MultiPoint" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/MultiPoint" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json index 84f3222b850c..17801f71c874 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json @@ -52,13 +52,13 @@ "400": { "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" } }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", "schema": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" }, "headers": { "WWW-Authenticate": { @@ -70,19 +70,19 @@ "403": { "description": "Permission, capacity, or authentication issues.", "schema": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" } }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" } }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" } }, "202Async": { @@ -1726,7 +1726,7 @@ "description": "The list of search fuzzy queries/requests to process. The list can contain a max of 10,000 queries and must contain at least 1 query.", "required": true, "schema": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/BatchRequestBody" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/BatchRequestBody" } } ], @@ -1734,7 +1734,7 @@ "200": { "description": "OK", "schema": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/BatchResponse" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/BatchResponse" } }, "202": { @@ -1794,7 +1794,7 @@ "description": "The list of address geocoding queries/requests to process. The list can contain a max of 10,000 queries and must contain at least 1 query.", "required": true, "schema": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/BatchRequestBody" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/BatchRequestBody" } } ], @@ -1802,7 +1802,7 @@ "200": { "description": "OK", "schema": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/BatchResponse" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/BatchResponse" } }, "202": { @@ -1862,7 +1862,7 @@ "description": "The list of reverse geocoding queries/requests to process. The list can contain a max of 10,000 queries and must contain at least 1 query.", "required": true, "schema": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/BatchRequestBody" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/BatchRequestBody" } } ], @@ -1870,7 +1870,7 @@ "200": { "description": "OK", "schema": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/BatchResponse" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/BatchResponse" } }, "202": { @@ -1976,7 +1976,7 @@ }, "geometryData": { "description": "Geometry data in GeoJSON format. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946) for details. Present only if \"error\" is not present.", - "$ref": "../../../Common/preview/1.0/common.js#/definitions/Geometry" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/Geometry" } } }, @@ -2070,7 +2070,7 @@ "$ref": "#/definitions/SearchResultAddress" }, "position": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/CoordinateAbbreviated" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviated" }, "viewport": { "$ref": "#/definitions/SearchResultViewport" @@ -2186,7 +2186,7 @@ "$ref": "#/definitions/SearchResultAddress" }, "position": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/CoordinateAbbreviated" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviated" }, "viewport": { "$ref": "#/definitions/SearchResultViewport" @@ -2288,7 +2288,7 @@ "$ref": "#/definitions/SearchResultAddress" }, "position": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/CoordinateAbbreviated" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviated" }, "viewport": { "$ref": "#/definitions/SearchResultViewport" @@ -2398,7 +2398,7 @@ "$ref": "#/definitions/SearchResultAddress" }, "position": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/CoordinateAbbreviated" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviated" }, "viewport": { "$ref": "#/definitions/SearchResultViewport" @@ -2491,7 +2491,7 @@ "$ref": "#/definitions/SearchResultAddress" }, "position": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/CoordinateAbbreviated" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviated" }, "viewport": { "$ref": "#/definitions/SearchResultViewport" @@ -2697,7 +2697,7 @@ "$ref": "#/definitions/SearchResultAddress" }, "position": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/CoordinateAbbreviated" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviated" }, "viewport": { "$ref": "#/definitions/SearchResultViewport" @@ -2805,7 +2805,7 @@ "$ref": "#/definitions/SearchResultAddress" }, "position": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/CoordinateAbbreviated" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviated" }, "viewport": { "$ref": "#/definitions/SearchResultViewport" @@ -2910,7 +2910,7 @@ "$ref": "#/definitions/SearchResultAddress" }, "position": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/CoordinateAbbreviated" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviated" }, "viewport": { "$ref": "#/definitions/SearchResultViewport" @@ -2937,7 +2937,7 @@ "type": "object", "properties": { "geometry": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/Geometry" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/Geometry" } } }, @@ -2946,7 +2946,7 @@ "type": "object", "properties": { "route": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/LineString" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/LineString" } } }, @@ -3233,10 +3233,10 @@ "type": "object", "properties": { "topLeftPoint": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/CoordinateAbbreviated" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviated" }, "btmRightPoint": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/CoordinateAbbreviated" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviated" } } }, @@ -3254,7 +3254,7 @@ ] }, "position": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/CoordinateAbbreviated" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviated" } } }, @@ -3269,10 +3269,10 @@ "type": "string" }, "from": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/CoordinateAbbreviated" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviated" }, "to": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/CoordinateAbbreviated" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviated" } } }, diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json index 3379fefee713..428b991ce9b4 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json @@ -52,13 +52,13 @@ "400": { "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" } }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", "schema": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" }, "headers": { "WWW-Authenticate": { @@ -70,19 +70,19 @@ "403": { "description": "Permission, capacity, or authentication issues.", "schema": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" } }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" } }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" } } }, @@ -976,7 +976,7 @@ "type": "string" }, "geometry": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/GeoJSONGeometry" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJSONGeometry" }, "properties": { "description": "Properties can contain any additional metadata about the `Feature`. Value can be any JSON object or a JSON null value", diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json index 8dd043219003..07a2dd8795fc 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json @@ -49,13 +49,13 @@ "400": { "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" } }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", "schema": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" }, "headers": { "WWW-Authenticate": { @@ -67,25 +67,25 @@ "403": { "description": "Permission, capacity, or authentication issues.", "schema": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" } }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" } }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" } }, "201Async": { "description": "The resource has been created successfully.", "schema": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/LongRunningOperationResult" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/LongRunningOperationResult" }, "headers": { "Location": { @@ -239,7 +239,7 @@ "200": { "description": "Status 200 not expected", "schema": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" } }, "201": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json index 6d3af41f2ac3..006b54314068 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json +++ b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json @@ -43,13 +43,13 @@ "400": { "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" } }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", "schema": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" }, "headers": { "WWW-Authenticate": { @@ -61,19 +61,19 @@ "403": { "description": "Permission, capacity, or authentication issues.", "schema": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" } }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" } }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" } } }, diff --git a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json index ad1ef1d76c4b..85045d1f7f03 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json +++ b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json @@ -52,13 +52,13 @@ "400": { "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" } }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", "schema": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" }, "headers": { "WWW-Authenticate": { @@ -70,19 +70,19 @@ "403": { "description": "Permission, capacity, or authentication issues.", "schema": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" } }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" } }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" } } }, diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json index 5ee9b7c78601..bf9d51ed760c 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json @@ -59,13 +59,13 @@ "400": { "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" } }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", "schema": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" }, "headers": { "WWW-Authenticate": { @@ -77,19 +77,19 @@ "403": { "description": "Permission, capacity, or authentication issues.", "schema": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" } }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" } }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" } } }, @@ -606,7 +606,7 @@ "$ref": "#/responses/500" }, "default": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json index e88539abdf0b..515b5cddeb1d 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json +++ b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json @@ -41,13 +41,13 @@ "400": { "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" } }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", "schema": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" }, "headers": { "WWW-Authenticate": { @@ -59,19 +59,19 @@ "403": { "description": "Permission, capacity, or authentication issues.", "schema": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" } }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" } }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { - "$ref": "../../../Common/preview/1.0/common.js#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" } } }, From 5304ca177fc659247f5648962509c39bdd1cfc4d Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Fri, 19 Mar 2021 02:02:02 -0700 Subject: [PATCH 007/210] Fix common type version. --- .../data-plane/Microsoft.Maps/Common/preview/1.0/common.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index 0ffd119df31a..c8e472f84318 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -1,8 +1,9 @@ { "swagger": "2.0", "info": { - "version": "2.0", - "title": "Common types" + "title": "Azure Maps Common Types", + "version": "1.0", + "description": "Common types in Azure Maps." }, "produces": [ "application/json", From b98bde737686814b3bd774fdf3d17fbe3222beb8 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Fri, 19 Mar 2021 02:18:31 -0700 Subject: [PATCH 008/210] Fix errors for alias.json --- .../Alias/preview/1.0/alias.json | 33 ++++--- .../Common/preview/1.0/common.json | 19 +++- .../Microsoft.Maps/Data/preview/1.0/data.json | 92 +++++++++---------- 3 files changed, 86 insertions(+), 58 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json index 49a5ce8c8a03..6013f2efc89d 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json @@ -23,19 +23,10 @@ ], "securityDefinitions": { "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", - "scopes": { - "user_impersonation": "Impersonates a user's Azure Active Directory account." - } + "$ref": "../../../Common/preview/1.0/common.json#/securityDefinitions/azure_auth" }, "apiKeyQuery": { - "type": "apiKey", - "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", - "name": "subscription-key", - "in": "query" + "$ref": "../../../Common/preview/1.0/common.json#/securityDefinitions/apiKeyQuery" } }, "security": [ @@ -46,6 +37,26 @@ "apiKeyQuery": [] } ], + "responses": { + "202": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/202" + }, + "400": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + }, + "401": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + }, + "403": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + }, + "404": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + }, + "500": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + } + }, "parameters": { "GeographicResourceLocation": { "name": "geography", diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index c8e472f84318..d6d6183adfaf 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -523,5 +523,22 @@ } } } - } + }, + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "scopes": { + "user_impersonation": "Impersonates a user's Azure Active Directory account." + } + }, + "apiKeyQuery": { + "type": "apiKey", + "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", + "name": "subscription-key", + "in": "query" + } + }, } diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json index a71b0634b2f7..075d71f3ffa7 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json @@ -125,13 +125,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.jsonon#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.jsonon#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.jsonon#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/UploadDataFormat" @@ -150,29 +150,29 @@ "200": { "description": "Data upload failed. The uploaded content did not satisfy all the validation checks. The response body contains all the errors that were encountered.", "schema": { - "$ref": "../../../Common/preview/1.0/common.jsonon#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" } }, "201": { - "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/201Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/201Async" }, "202": { - "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/202Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" }, "400": { - "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -193,13 +193,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.jsonon#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.jsonon#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.jsonon#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/Udid" @@ -218,29 +218,29 @@ "200": { "description": "Data update failed. The uploaded content did not satisfy all the validation checks. The response body contains all the errors that were encountered.", "schema": { - "$ref": "../../../Common/preview/1.0/common.jsonon#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" } }, "201": { - "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/201Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/201Async" }, "202": { - "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/202Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" }, "400": { - "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -255,13 +255,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.jsonon#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.jsonon#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.jsonon#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/Udid" @@ -281,19 +281,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -308,13 +308,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.jsonon#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.jsonon#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.jsonon#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/Udid" @@ -328,19 +328,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -357,13 +357,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.jsonon#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.jsonon#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.jsonon#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" } ], "responses": { @@ -380,19 +380,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } From 99b0269a9fcee6c65d6edc5c858ae5f76c70f7f0 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Fri, 19 Mar 2021 02:20:54 -0700 Subject: [PATCH 009/210] run prettier --- .../data-plane/Microsoft.Maps/Common/preview/1.0/common.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index d6d6183adfaf..88e8b8f2ec8b 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -540,5 +540,5 @@ "name": "subscription-key", "in": "query" } - }, + } } From 9c019ef50abb192e560b95421ed8e7cf97e1ab47 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Fri, 19 Mar 2021 02:36:02 -0700 Subject: [PATCH 010/210] fix security def and parameters. --- .../Alias/preview/1.0/alias.json | 83 +++++++------------ .../DEM/preview/1.0/elevation.json | 13 +-- .../Microsoft.Maps/Data/preview/1.0/data.json | 70 +++++++--------- .../Dataset/preview/1.0/dataset.json | 39 ++++++--- .../preview/1.0/dwgconversion.json | 13 +-- .../preview/1.0/featurestate.json | 13 +-- .../Feedback/preview/1.0/feedback.json | 13 +-- .../Geolocation/preview/1.0/geolocation.json | 13 +-- .../Mobility/preview/1.0/mobility.json | 13 +-- .../Render/preview/1.0/render.json | 13 +-- 10 files changed, 99 insertions(+), 184 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json index 6013f2efc89d..ceb3e8469902 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json @@ -58,33 +58,6 @@ } }, "parameters": { - "GeographicResourceLocation": { - "name": "geography", - "description": "This parameter specifies where the Azure Maps Creator resource is located. Valid values are us and eu.", - "in": "path", - "required": true, - "type": "string", - "default": "us", - "enum": [ - "us", - "eu" - ], - "x-ms-enum": { - "name": "GeographicResourceLocation", - "modelAsString": true, - "values": [ - { - "value": "us", - "description": "Used to access an Azure Maps Creator resource in the United States" - }, - { - "value": "eu", - "description": "Used to access an Azure Maps Creator resource in Europe" - } - ] - }, - "x-ms-parameter-location": "client" - }, "CreateResourceId": { "name": "resourceId", "description": "The unique id that references a resource to be aliased.", @@ -123,10 +96,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" } ], "responses": { @@ -143,19 +116,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "#/responses/500" } } }, @@ -170,10 +143,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" } ], "responses": { @@ -184,19 +157,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "#/responses/500" } } } @@ -213,10 +186,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "#/parameters/AliasId" @@ -233,19 +206,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "#/responses/500" } } } @@ -262,10 +235,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "#/parameters/AliasId" @@ -279,19 +252,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json index 1ee85f36ef1e..b18075efe578 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json +++ b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json @@ -16,19 +16,10 @@ ], "securityDefinitions": { "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure role-based access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure role-based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built-in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios, we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Notes\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* \nThe `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* \nThe Azure role-based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, PowerShell, CLI, Azure SDKs, or REST APIs.\n* \nUsage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently, Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", - "scopes": { - "user_impersonation": "Impersonates a user's Azure Active Directory account." - } + "$ref": "../../../Common/preview/1.0/common.json#/securityDefinitions/azure_auth" }, "apiKeyQuery": { - "type": "apiKey", - "description": "This is a shared key that is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, PowerShell, CLI, Azure SDKs, or REST APIs.\n\n With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for.\n\n For publicly exposed applications, our recommendation is to use server-to-server access of Azure Maps REST APIs where this key can be securely stored.", - "name": "subscription-key", - "in": "query" + "$ref": "../../../Common/preview/1.0/common.json#/securityDefinitions/apiKeyQuery" } }, "security": [ diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json index 075d71f3ffa7..ce73e87b0ec1 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json @@ -22,19 +22,10 @@ ], "securityDefinitions": { "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", - "scopes": { - "user_impersonation": "Impersonates a user's Azure Active Directory account." - } + "$ref": "../../../Common/preview/1.0/common.json#/securityDefinitions/azure_auth" }, "apiKeyQuery": { - "type": "apiKey", - "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", - "name": "subscription-key", - "in": "query" + "$ref": "../../../Common/preview/1.0/common.json#/securityDefinitions/apiKeyQuery" } }, "security": [ @@ -45,34 +36,31 @@ "apiKeyQuery": [] } ], - "parameters": { - "GeographicResourceLocation": { - "name": "geography", - "description": "This parameter specifies where the Azure Maps Creator resource is located. Valid values are us and eu.", - "in": "path", - "required": true, - "type": "string", - "default": "us", - "enum": [ - "us", - "eu" - ], - "x-ms-enum": { - "name": "GeographicResourceLocation", - "modelAsString": true, - "values": [ - { - "value": "us", - "description": "Used to access an Azure Maps Creator resource in the United States" - }, - { - "value": "eu", - "description": "Used to access an Azure Maps Creator resource in Europe" - } - ] - }, - "x-ms-parameter-location": "client" + "responses": { + "400": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + }, + "401": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + }, + "403": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + }, + "404": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + }, + "500": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + }, + "201Async": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/201Async" }, + "202Async": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" + } + }, + "parameters": { + "UploadDataFormat": { "name": "dataFormat", "description": "Data format of the content being uploaded.", @@ -125,13 +113,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "#/parameters/UploadDataFormat" diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json index 5eefb588fd86..532d6f0fec83 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json @@ -23,19 +23,10 @@ ], "securityDefinitions": { "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", - "scopes": { - "user_impersonation": "Impersonates a user's Azure Active Directory account." - } + "$ref": "../../../Common/preview/1.0/common.json#/securityDefinitions/azure_auth" }, "apiKeyQuery": { - "type": "apiKey", - "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", - "name": "subscription-key", - "in": "query" + "$ref": "../../../Common/preview/1.0/common.json#/securityDefinitions/apiKeyQuery" } }, "security": [ @@ -46,6 +37,32 @@ "apiKeyQuery": [] } ], + "responses": { + "400": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + }, + "401": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + }, + "403": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + }, + "404": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + }, + "500": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + }, + "200Async": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/200Async" + }, + "201Async": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/201Async" + }, + "202Async": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" + } + }, "parameters": { "GeographicResourceLocation": { "name": "geography", diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json index a36bb761d863..1d68010a739d 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json @@ -22,19 +22,10 @@ ], "securityDefinitions": { "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", - "scopes": { - "user_impersonation": "Impersonates a user's Azure Active Directory account." - } + "$ref": "../../../Common/preview/1.0/common.json#/securityDefinitions/azure_auth" }, "apiKeyQuery": { - "type": "apiKey", - "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", - "name": "subscription-key", - "in": "query" + "$ref": "../../../Common/preview/1.0/common.json#/securityDefinitions/apiKeyQuery" } }, "security": [ diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json index bed50a78652b..60833b29189f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json @@ -22,19 +22,10 @@ ], "securityDefinitions": { "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", - "scopes": { - "user_impersonation": "Impersonates a user's Azure Active Directory account." - } + "$ref": "../../../Common/preview/1.0/common.json#/securityDefinitions/azure_auth" }, "apiKeyQuery": { - "type": "apiKey", - "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", - "name": "subscription-key", - "in": "query" + "$ref": "../../../Common/preview/1.0/common.json#/securityDefinitions/apiKeyQuery" } }, "security": [ diff --git a/specification/maps/data-plane/Microsoft.Maps/Feedback/preview/1.0/feedback.json b/specification/maps/data-plane/Microsoft.Maps/Feedback/preview/1.0/feedback.json index f1f056559b94..14efcddcc7d6 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Feedback/preview/1.0/feedback.json +++ b/specification/maps/data-plane/Microsoft.Maps/Feedback/preview/1.0/feedback.json @@ -15,19 +15,10 @@ ], "securityDefinitions": { "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", - "scopes": { - "user_impersonation": "Impersonates a user's Azure Active Directory account." - } + "$ref": "../../../Common/preview/1.0/common.json#/securityDefinitions/azure_auth" }, "apiKeyQuery": { - "type": "apiKey", - "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", - "name": "subscription-key", - "in": "query" + "$ref": "../../../Common/preview/1.0/common.json#/securityDefinitions/apiKeyQuery" } }, "security": [ diff --git a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json index c911b1c40308..73c93ddea8fa 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json +++ b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json @@ -15,19 +15,10 @@ ], "securityDefinitions": { "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", - "scopes": { - "user_impersonation": "Impersonates a user's Azure Active Directory account." - } + "$ref": "../../../Common/preview/1.0/common.json#/securityDefinitions/azure_auth" }, "apiKeyQuery": { - "type": "apiKey", - "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", - "name": "subscription-key", - "in": "query" + "$ref": "../../../Common/preview/1.0/common.json#/securityDefinitions/apiKeyQuery" } }, "security": [ diff --git a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json index 57cb02316299..d86358d17b93 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json +++ b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json @@ -14,19 +14,10 @@ ], "securityDefinitions": { "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", - "scopes": { - "user_impersonation": "Impersonates a user's Azure Active Directory account." - } + "$ref": "../../../Common/preview/1.0/common.json#/securityDefinitions/azure_auth" }, "apiKeyQuery": { - "type": "apiKey", - "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", - "name": "subscription-key", - "in": "query" + "$ref": "../../../Common/preview/1.0/common.json#/securityDefinitions/apiKeyQuery" } }, "security": [ diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json index 3fe229eaf2f9..8400ad973c7f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json @@ -16,19 +16,10 @@ ], "securityDefinitions": { "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", - "scopes": { - "user_impersonation": "Impersonates a user's Azure Active Directory account." - } + "$ref": "../../../Common/preview/1.0/common.json#/securityDefinitions/azure_auth" }, "apiKeyQuery": { - "type": "apiKey", - "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", - "name": "subscription-key", - "in": "query" + "$ref": "../../../Common/preview/1.0/common.json#/securityDefinitions/apiKeyQuery" } }, "security": [ From bfb0b46e96ebf5380c9d720b7f1f20f435d38dd2 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Fri, 19 Mar 2021 03:57:44 -0700 Subject: [PATCH 011/210] Revert "fix security def and parameters." This reverts commit 85370d9b6b3ad0ae615d1931aa7a5eec39957b30. --- .../Alias/preview/1.0/alias.json | 56 +++++++++---------- .../DEM/preview/1.0/elevation.json | 13 ++++- .../Microsoft.Maps/Data/preview/1.0/data.json | 42 +++++--------- .../Dataset/preview/1.0/dataset.json | 39 ++++--------- .../preview/1.0/dwgconversion.json | 13 ++++- .../preview/1.0/featurestate.json | 13 ++++- .../Feedback/preview/1.0/feedback.json | 13 ++++- .../Geolocation/preview/1.0/geolocation.json | 13 ++++- .../Mobility/preview/1.0/mobility.json | 13 ++++- .../Render/preview/1.0/render.json | 13 ++++- 10 files changed, 130 insertions(+), 98 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json index ceb3e8469902..074e19109638 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json @@ -96,10 +96,10 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" } ], "responses": { @@ -116,19 +116,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -143,10 +143,10 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" } ], "responses": { @@ -157,19 +157,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -186,10 +186,10 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/AliasId" @@ -206,19 +206,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -235,10 +235,10 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/AliasId" @@ -252,19 +252,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json index b18075efe578..2f044af13c86 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json +++ b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json @@ -16,10 +16,19 @@ ], "securityDefinitions": { "azure_auth": { - "$ref": "../../../Common/preview/1.0/common.json#/securityDefinitions/azure_auth" + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "scopes": { + "user_impersonation": "Impersonates a user's Azure Active Directory account." + } }, "apiKeyQuery": { - "$ref": "../../../Common/preview/1.0/common.json#/securityDefinitions/apiKeyQuery" + "type": "apiKey", + "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", + "name": "subscription-key", + "in": "query" } }, "security": [ diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json index ce73e87b0ec1..de998b107d0e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json @@ -22,10 +22,19 @@ ], "securityDefinitions": { "azure_auth": { - "$ref": "../../../Common/preview/1.0/common.json#/securityDefinitions/azure_auth" + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "scopes": { + "user_impersonation": "Impersonates a user's Azure Active Directory account." + } }, "apiKeyQuery": { - "$ref": "../../../Common/preview/1.0/common.json#/securityDefinitions/apiKeyQuery" + "type": "apiKey", + "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", + "name": "subscription-key", + "in": "query" } }, "security": [ @@ -36,29 +45,6 @@ "apiKeyQuery": [] } ], - "responses": { - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" - }, - "201Async": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/201Async" - }, - "202Async": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" - } - }, "parameters": { "UploadDataFormat": { @@ -113,13 +99,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/UploadDataFormat" diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json index 532d6f0fec83..5eefb588fd86 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json @@ -23,10 +23,19 @@ ], "securityDefinitions": { "azure_auth": { - "$ref": "../../../Common/preview/1.0/common.json#/securityDefinitions/azure_auth" + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "scopes": { + "user_impersonation": "Impersonates a user's Azure Active Directory account." + } }, "apiKeyQuery": { - "$ref": "../../../Common/preview/1.0/common.json#/securityDefinitions/apiKeyQuery" + "type": "apiKey", + "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", + "name": "subscription-key", + "in": "query" } }, "security": [ @@ -37,32 +46,6 @@ "apiKeyQuery": [] } ], - "responses": { - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" - }, - "200Async": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/200Async" - }, - "201Async": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/201Async" - }, - "202Async": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" - } - }, "parameters": { "GeographicResourceLocation": { "name": "geography", diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json index 1d68010a739d..a36bb761d863 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json @@ -22,10 +22,19 @@ ], "securityDefinitions": { "azure_auth": { - "$ref": "../../../Common/preview/1.0/common.json#/securityDefinitions/azure_auth" + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "scopes": { + "user_impersonation": "Impersonates a user's Azure Active Directory account." + } }, "apiKeyQuery": { - "$ref": "../../../Common/preview/1.0/common.json#/securityDefinitions/apiKeyQuery" + "type": "apiKey", + "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", + "name": "subscription-key", + "in": "query" } }, "security": [ diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json index 60833b29189f..bed50a78652b 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json @@ -22,10 +22,19 @@ ], "securityDefinitions": { "azure_auth": { - "$ref": "../../../Common/preview/1.0/common.json#/securityDefinitions/azure_auth" + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "scopes": { + "user_impersonation": "Impersonates a user's Azure Active Directory account." + } }, "apiKeyQuery": { - "$ref": "../../../Common/preview/1.0/common.json#/securityDefinitions/apiKeyQuery" + "type": "apiKey", + "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", + "name": "subscription-key", + "in": "query" } }, "security": [ diff --git a/specification/maps/data-plane/Microsoft.Maps/Feedback/preview/1.0/feedback.json b/specification/maps/data-plane/Microsoft.Maps/Feedback/preview/1.0/feedback.json index 14efcddcc7d6..f1f056559b94 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Feedback/preview/1.0/feedback.json +++ b/specification/maps/data-plane/Microsoft.Maps/Feedback/preview/1.0/feedback.json @@ -15,10 +15,19 @@ ], "securityDefinitions": { "azure_auth": { - "$ref": "../../../Common/preview/1.0/common.json#/securityDefinitions/azure_auth" + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "scopes": { + "user_impersonation": "Impersonates a user's Azure Active Directory account." + } }, "apiKeyQuery": { - "$ref": "../../../Common/preview/1.0/common.json#/securityDefinitions/apiKeyQuery" + "type": "apiKey", + "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", + "name": "subscription-key", + "in": "query" } }, "security": [ diff --git a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json index 73c93ddea8fa..c911b1c40308 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json +++ b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json @@ -15,10 +15,19 @@ ], "securityDefinitions": { "azure_auth": { - "$ref": "../../../Common/preview/1.0/common.json#/securityDefinitions/azure_auth" + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "scopes": { + "user_impersonation": "Impersonates a user's Azure Active Directory account." + } }, "apiKeyQuery": { - "$ref": "../../../Common/preview/1.0/common.json#/securityDefinitions/apiKeyQuery" + "type": "apiKey", + "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", + "name": "subscription-key", + "in": "query" } }, "security": [ diff --git a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json index d86358d17b93..57cb02316299 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json +++ b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json @@ -14,10 +14,19 @@ ], "securityDefinitions": { "azure_auth": { - "$ref": "../../../Common/preview/1.0/common.json#/securityDefinitions/azure_auth" + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "scopes": { + "user_impersonation": "Impersonates a user's Azure Active Directory account." + } }, "apiKeyQuery": { - "$ref": "../../../Common/preview/1.0/common.json#/securityDefinitions/apiKeyQuery" + "type": "apiKey", + "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", + "name": "subscription-key", + "in": "query" } }, "security": [ diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json index 8400ad973c7f..3fe229eaf2f9 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json @@ -16,10 +16,19 @@ ], "securityDefinitions": { "azure_auth": { - "$ref": "../../../Common/preview/1.0/common.json#/securityDefinitions/azure_auth" + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "scopes": { + "user_impersonation": "Impersonates a user's Azure Active Directory account." + } }, "apiKeyQuery": { - "$ref": "../../../Common/preview/1.0/common.json#/securityDefinitions/apiKeyQuery" + "type": "apiKey", + "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", + "name": "subscription-key", + "in": "query" } }, "security": [ From e28b1d34b6c5083190b22fa95cd99f76c7449cc4 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Fri, 19 Mar 2021 03:57:58 -0700 Subject: [PATCH 012/210] Revert "run prettier" This reverts commit be16d4423be319cc4b7a957abe977aced26e0fa5. --- .../data-plane/Microsoft.Maps/Common/preview/1.0/common.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index 88e8b8f2ec8b..d6d6183adfaf 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -540,5 +540,5 @@ "name": "subscription-key", "in": "query" } - } + }, } From d11c92c2604d62225941b4bed6e9834a134855bf Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Fri, 19 Mar 2021 03:58:03 -0700 Subject: [PATCH 013/210] Revert "Fix errors for alias.json" This reverts commit 0458cbc9489ba8cc05a575517b35001fa4c4a7e8. --- .../Alias/preview/1.0/alias.json | 33 +++---- .../Common/preview/1.0/common.json | 19 +--- .../Microsoft.Maps/Data/preview/1.0/data.json | 92 +++++++++---------- 3 files changed, 58 insertions(+), 86 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json index 074e19109638..46950c925909 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json @@ -23,10 +23,19 @@ ], "securityDefinitions": { "azure_auth": { - "$ref": "../../../Common/preview/1.0/common.json#/securityDefinitions/azure_auth" + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "scopes": { + "user_impersonation": "Impersonates a user's Azure Active Directory account." + } }, "apiKeyQuery": { - "$ref": "../../../Common/preview/1.0/common.json#/securityDefinitions/apiKeyQuery" + "type": "apiKey", + "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", + "name": "subscription-key", + "in": "query" } }, "security": [ @@ -37,26 +46,6 @@ "apiKeyQuery": [] } ], - "responses": { - "202": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/202" - }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" - } - }, "parameters": { "CreateResourceId": { "name": "resourceId", diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index d6d6183adfaf..c8e472f84318 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -523,22 +523,5 @@ } } } - }, - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", - "scopes": { - "user_impersonation": "Impersonates a user's Azure Active Directory account." - } - }, - "apiKeyQuery": { - "type": "apiKey", - "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", - "name": "subscription-key", - "in": "query" - } - }, + } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json index de998b107d0e..a1435821f363 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json @@ -99,13 +99,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.jsonon#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.jsonon#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.jsonon#/parameters/ApiVersion" }, { "$ref": "#/parameters/UploadDataFormat" @@ -124,29 +124,29 @@ "200": { "description": "Data upload failed. The uploaded content did not satisfy all the validation checks. The response body contains all the errors that were encountered.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.jsonon#/definitions/ODataErrorResponse" } }, "201": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/201Async" + "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/201Async" }, "202": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" + "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/202Async" }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/500" } } } @@ -167,13 +167,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.jsonon#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.jsonon#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.jsonon#/parameters/ApiVersion" }, { "$ref": "#/parameters/Udid" @@ -192,29 +192,29 @@ "200": { "description": "Data update failed. The uploaded content did not satisfy all the validation checks. The response body contains all the errors that were encountered.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.jsonon#/definitions/ODataErrorResponse" } }, "201": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/201Async" + "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/201Async" }, "202": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" + "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/202Async" }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/500" } } }, @@ -229,13 +229,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.jsonon#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.jsonon#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.jsonon#/parameters/ApiVersion" }, { "$ref": "#/parameters/Udid" @@ -255,19 +255,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/500" } } }, @@ -282,13 +282,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.jsonon#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.jsonon#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.jsonon#/parameters/ApiVersion" }, { "$ref": "#/parameters/Udid" @@ -302,19 +302,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/500" } } } @@ -331,13 +331,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.jsonon#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.jsonon#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.jsonon#/parameters/ApiVersion" } ], "responses": { @@ -354,19 +354,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/500" } } } From 3d68ee2b976b7eb1f9d0146b2d90350373f936fc Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Fri, 19 Mar 2021 03:58:50 -0700 Subject: [PATCH 014/210] fix extension issue --- .../Microsoft.Maps/Data/preview/1.0/data.json | 92 +++++++++---------- 1 file changed, 46 insertions(+), 46 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json index a1435821f363..de998b107d0e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json @@ -99,13 +99,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.jsonon#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.jsonon#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.jsonon#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/UploadDataFormat" @@ -124,29 +124,29 @@ "200": { "description": "Data upload failed. The uploaded content did not satisfy all the validation checks. The response body contains all the errors that were encountered.", "schema": { - "$ref": "../../../Common/preview/1.0/common.jsonon#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" } }, "201": { - "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/201Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/201Async" }, "202": { - "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/202Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" }, "400": { - "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -167,13 +167,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.jsonon#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.jsonon#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.jsonon#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/Udid" @@ -192,29 +192,29 @@ "200": { "description": "Data update failed. The uploaded content did not satisfy all the validation checks. The response body contains all the errors that were encountered.", "schema": { - "$ref": "../../../Common/preview/1.0/common.jsonon#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" } }, "201": { - "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/201Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/201Async" }, "202": { - "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/202Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" }, "400": { - "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -229,13 +229,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.jsonon#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.jsonon#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.jsonon#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/Udid" @@ -255,19 +255,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -282,13 +282,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.jsonon#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.jsonon#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.jsonon#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/Udid" @@ -302,19 +302,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -331,13 +331,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.jsonon#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.jsonon#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.jsonon#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" } ], "responses": { @@ -354,19 +354,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.jsonon#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } From 0413303bec8dd8744cc3e6d0d436eb33654a18a5 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Fri, 19 Mar 2021 05:58:48 -0700 Subject: [PATCH 015/210] comment out all other errors. --- .../Render/preview/1.0/render.json | 63 ------------------- specification/maps/data-plane/readme.md | 36 +++++------ 2 files changed, 18 insertions(+), 81 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json index 3fe229eaf2f9..1b548eb83a95 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json @@ -39,70 +39,7 @@ "apiKeyQuery": [] } ], - "responses": { - "400": { - "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - }, - "401": { - "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - }, - "headers": { - "WWW-Authenticate": { - "type": "string", - "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" - } - } - }, - "403": { - "description": "Permission, capacity, or authentication issues.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - }, - "404": { - "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - }, - "500": { - "description": "An error occurred while processing the request. Please try again later.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - } - }, "parameters": { - "ClientId": { - "name": "x-ms-client-id", - "description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.", - "type": "string", - "in": "header", - "required": false, - "x-ms-parameter-location": "client" - }, - "SubscriptionKey": { - "name": "subscription-key", - "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", - "type": "string", - "in": "query", - "required": false, - "x-ms-parameter-location": "client" - }, - "ApiVersion": { - "name": "api-version", - "description": "Version number of Azure Maps API. Current version is 1.0", - "type": "string", - "in": "query", - "required": true, - "default": "1.0", - "x-ms-parameter-location": "client" - }, "RasterTileFormat": { "name": "format", "description": "Desired format of the response. Possible value: png.", diff --git a/specification/maps/data-plane/readme.md b/specification/maps/data-plane/readme.md index 61a58d832568..4e158ab0398e 100644 --- a/specification/maps/data-plane/readme.md +++ b/specification/maps/data-plane/readme.md @@ -74,24 +74,24 @@ These settings apply only when `--tag=package-1.0-preview` is specified on the c ``` yaml $(tag) == 'package-1.0-preview' input-file: - Microsoft.Maps/Alias/preview/1.0/alias.json - - Microsoft.Maps/Data/preview/1.0/data.json - - Microsoft.Maps/Dataset/preview/1.0/dataset.json - - Microsoft.Maps/DEM/preview/1.0/elevation.json - - Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json - - Microsoft.Maps/FeatureState/preview/1.0/featurestate.json - - Microsoft.Maps/Feedback/preview/1.0/feedback.json - - Microsoft.Maps/Geolocation/preview/1.0/geolocation.json - - Microsoft.Maps/Mobility/preview/1.0/mobility.json - - Microsoft.Maps/Render/preview/1.0/render.json - - Microsoft.Maps/Render/preview/2.0/render.json - - Microsoft.Maps/Route/preview/1.0/route.json - - Microsoft.Maps/Search/preview/1.0/search.json - - Microsoft.Maps/Spatial/preview/1.0/spatial.json - - Microsoft.Maps/Tileset/preview/1.0/tileset.json - - Microsoft.Maps/Timezone/preview/1.0/timezone.json - - Microsoft.Maps/Traffic/preview/1.0/traffic.json - - Microsoft.Maps/Weather/preview/1.0/weather.json - - Microsoft.Maps/WFS/preview/1.0/wfs.json + #- Microsoft.Maps/Data/preview/1.0/data.json + #- Microsoft.Maps/Dataset/preview/1.0/dataset.json + #- Microsoft.Maps/DEM/preview/1.0/elevation.json + #- Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json + #- Microsoft.Maps/FeatureState/preview/1.0/featurestate.json + #- Microsoft.Maps/Feedback/preview/1.0/feedback.json + #- Microsoft.Maps/Geolocation/preview/1.0/geolocation.json + #- Microsoft.Maps/Mobility/preview/1.0/mobility.json + #- Microsoft.Maps/Render/preview/1.0/render.json + #- Microsoft.Maps/Render/preview/2.0/render.json + #- Microsoft.Maps/Route/preview/1.0/route.json + #- Microsoft.Maps/Search/preview/1.0/search.json + #- Microsoft.Maps/Spatial/preview/1.0/spatial.json + #- Microsoft.Maps/Tileset/preview/1.0/tileset.json + #- Microsoft.Maps/Timezone/preview/1.0/timezone.json + #- Microsoft.Maps/Traffic/preview/1.0/traffic.json + #- Microsoft.Maps/Weather/preview/1.0/weather.json + #- Microsoft.Maps/WFS/preview/1.0/wfs.json ``` # Code Generation From 894ac3b8b278fabe11e6034dee772749bea16737 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Fri, 19 Mar 2021 06:01:44 -0700 Subject: [PATCH 016/210] revert changes to package.json files --- package-lock.json | 54 ++++++++++++++++++++++------------------------- package.json | 4 ---- 2 files changed, 25 insertions(+), 33 deletions(-) diff --git a/package-lock.json b/package-lock.json index 335ba81c7954..7564f54abbc0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3,23 +3,21 @@ "version": "0.1.0", "lockfileVersion": 1, "requires": true, - "dependencies": { - "@types/form-data": "^2.5.0", - "form-data": "^3.0.0" - }, - "node_modules/@types/form-data": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/@types/form-data/-/form-data-2.5.0.tgz", - "integrity": "sha512-23/wYiuckYYtFpL+4RPWiWmRQH2BjFuqCUi2+N3amB1a1Drv+i/byTrGvlLwRVLFNAZbwpbQ7JvTK+VCAPMbcg==", - "deprecated": "This is a stub types definition. form-data provides its own type definitions, so you do not need this installed.", - "dependencies": { - "form-data": "*" - } - }, - "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" - "optionator": "^0.8.1" - "optionator": "^0.8.1" - "integrity": "sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew==", + "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=", + "dev": true + "dev": true, + "dev": true, + "optionator": "^0.8.1", + "source-map": "~0.6.1" + "dev": true, + "uglify-js": "^3.1.4", + "optionator": "^0.8.1", + "source-map": "~0.2.0" + "dev": true, + "dev": true, + "integrity": "sha1-99f1/4qc2HKnvkyhQglZVqYHl8s=", + "commander": "^2.7.1", + "commander": "^2.7.1", "dependencies": { "@azure/avocado": { "version": "0.7.2", @@ -915,14 +913,6 @@ "integrity": "sha512-7koSjp08QxKoS1/+3T15+kD7+vqOUvZRHvM8PutF3Xsk5aAEkdlIGRsHJ3/XsC3izoqTwBdRW/vH7rzCKkIicA==", "dev": true }, - "@types/form-data": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/@types/form-data/-/form-data-2.5.0.tgz", - "integrity": "sha512-23/wYiuckYYtFpL+4RPWiWmRQH2BjFuqCUi2+N3amB1a1Drv+i/byTrGvlLwRVLFNAZbwpbQ7JvTK+VCAPMbcg==", - "requires": { - "form-data": "*" - } - }, "@types/glob": { "version": "7.1.3", "resolved": "https://registry.npmjs.org/@types/glob/-/glob-7.1.3.tgz", @@ -1197,7 +1187,8 @@ "asynckit": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" + "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=", + "dev": true }, "atob": { "version": "2.1.2", @@ -1616,6 +1607,7 @@ "version": "1.0.8", "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dev": true, "requires": { "delayed-stream": "~1.0.0" } @@ -2208,7 +2200,8 @@ "delayed-stream": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=" + "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", + "dev": true }, "deprecation": { "version": "2.3.1", @@ -2761,6 +2754,7 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.0.tgz", "integrity": "sha512-CKMFDglpbMi6PyN+brwB9Q/GOw0eAnsrEZDgcsH5Krhz5Od/haKHAX0NmQfha2zPPz0JpWzA7GJHGSnvCRLWsg==", + "dev": true, "requires": { "asynckit": "^0.4.0", "combined-stream": "^1.0.8", @@ -4060,12 +4054,14 @@ "mime-db": { "version": "1.44.0", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.44.0.tgz", - "integrity": "sha512-/NOTfLrsPBVeH7YtFPgsVWveuL+4SjjYxaQ1xtM1KMFj7HdxlBlxeyNLzhyJVx7r4rZGJAZ/6lkKCitSc/Nmpg==" + "integrity": "sha512-/NOTfLrsPBVeH7YtFPgsVWveuL+4SjjYxaQ1xtM1KMFj7HdxlBlxeyNLzhyJVx7r4rZGJAZ/6lkKCitSc/Nmpg==", + "dev": true }, "mime-types": { "version": "2.1.27", "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.27.tgz", "integrity": "sha512-JIhqnCasI9yD+SsmkquHBxTSEuZdQX5BuQnS2Vc7puQQQ+8yiP5AY5uWhpdv4YL4VM5c6iliiYWPgJ/nJQLp7w==", + "dev": true, "requires": { "mime-db": "1.44.0" } @@ -5036,7 +5032,7 @@ "prettier": { "version": "1.19.1", "resolved": "https://registry.npmjs.org/prettier/-/prettier-1.19.1.tgz", - "integrity": "sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew==", + "integrity": "sha1-99f1/4qc2HKnvkyhQglZVqYHl8s=", "dev": true }, "process-nextick-args": { diff --git a/package.json b/package.json index da44ca25ea08..cfd1bd9140c2 100644 --- a/package.json +++ b/package.json @@ -44,9 +44,5 @@ "prettier": "prettier", "tsc": "tsc", "multiapi": "ts-node ./scripts/multiapi.ts" - }, - "dependencies": { - "@types/form-data": "^2.5.0", - "form-data": "^3.0.0" } } From 0d32451af29278cec3b44eed56e270b59d45370a Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Fri, 19 Mar 2021 08:56:57 -0700 Subject: [PATCH 017/210] update files. remove common response as it isn't supported. --- .../Alias/preview/1.0/alias.json | 120 ++++++--- .../Common/preview/1.0/common.json | 80 +----- .../DEM/preview/1.0/elevation.json | 181 ++++++++++---- .../Microsoft.Maps/Data/preview/1.0/data.json | 147 +++++++---- .../Dataset/preview/1.0/dataset.json | 155 +++++++----- .../preview/1.0/dwgconversion.json | 137 +++++++---- .../preview/1.0/featurestate.json | 185 +++++++------- .../Feedback/preview/1.0/feedback.json | 65 +++++ .../Geolocation/preview/1.0/geolocation.json | 104 +++++++- .../Mobility/preview/1.0/mobility.json | 228 ++++++++++++------ .../Render/preview/1.0/render.json | 99 +++++--- .../Render/preview/2.0/render.json | 46 +--- .../Tileset/preview/1.0/tileset.json | 6 - .../Microsoft.Maps/WFS/preview/1.0/wfs.json | 3 - specification/maps/data-plane/readme.md | 36 +-- 15 files changed, 1018 insertions(+), 574 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json index 46950c925909..0e3a06e2e4f4 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json @@ -46,7 +46,71 @@ "apiKeyQuery": [] } ], + "responses": { + "202": { + "description": "Request Accepted: The request has been accepted for processing. Please use the URL in the Location Header to retry or access the results.", + "headers": { + "Location": { + "type": "string", + "description": "New URL to check for the results of the long running process." + } + } + }, + "400": { + "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + } + }, + "401": { + "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + }, + "headers": { + "WWW-Authenticate": { + "type": "string", + "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" + } + } + }, + "403": { + "description": "Permission, capacity, or authentication issues.", + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + } + }, + "404": { + "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + } + }, + "500": { + "description": "An error occurred while processing the request. Please try again later.", + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + } + } + }, "parameters": { + "SubscriptionKey": { + "name": "subscription-key", + "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", + "type": "string", + "in": "query", + "required": false, + "x-ms-parameter-location": "client" + }, + "ApiVersion": { + "name": "api-version", + "description": "Version number of Azure Maps API. Current version is 1.0", + "type": "string", + "in": "query", + "required": true, + "default": "1.0", + "x-ms-parameter-location": "client" + }, "CreateResourceId": { "name": "resourceId", "description": "The unique id that references a resource to be aliased.", @@ -85,10 +149,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" } ], "responses": { @@ -105,19 +169,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "#/responses/500" } } }, @@ -132,10 +196,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" } ], "responses": { @@ -146,19 +210,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "#/responses/500" } } } @@ -175,10 +239,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "#/parameters/AliasId" @@ -195,19 +259,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "#/responses/500" } } } @@ -224,10 +288,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "#/parameters/AliasId" @@ -241,19 +305,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index c8e472f84318..ee8ed8d58abc 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -2,9 +2,9 @@ "swagger": "2.0", "info": { "title": "Azure Maps Common Types", - "version": "1.0", - "description": "Common types in Azure Maps." + "version": "1.0" }, + "consumes": [], "produces": [ "application/json", "application/xml" @@ -447,81 +447,5 @@ }, "x-ms-parameter-location": "method" } - }, - "responses": { - "400": { - "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - }, - "x-ms-error-response": true - }, - "401": { - "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - }, - "headers": { - "WWW-Authenticate": { - "type": "string", - "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" - } - }, - "x-ms-error-response": true - }, - "403": { - "description": "Permission, capacity, or authentication issues.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - }, - "x-ms-error-response": true - }, - "404": { - "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - }, - "x-ms-error-response": true - }, - "409": { - "description": "The request could not be completed due to a conflict with the current state of the resource. Likely caused by a parallel update to the same resource.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - }, - "500": { - "description": "An error occurred while processing the request. Please try again later.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - }, - "x-ms-error-response": true - }, - "200Async": { - "description": "The operation's status response.", - "schema": { - "$ref": "#/definitions/LongRunningOperationResult" - } - }, - "201Async": { - "description": "The resource has been created successfully.", - "schema": { - "$ref": "#/definitions/LongRunningOperationResult" - }, - "headers": { - "Location": { - "type": "string", - "description": "A URI where details on the newly created resource can be found." - } - } - }, - "202Async": { - "description": "**Supported only for async request.**\nRequest Accepted: The request has been accepted for processing. Please use the URL in the Location Header to retry or access the results.", - "headers": { - "Location": { - "type": "string", - "description": "New URL to check for the results of the long running process." - } - } - } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json index 2f044af13c86..e8732423d0b3 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json +++ b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json @@ -39,6 +39,97 @@ "apiKeyQuery": [] } ], + "responses": { + "400": { + "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + }, + "x-ms-error-response": true + }, + "401": { + "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + }, + "headers": { + "WWW-Authenticate": { + "type": "string", + "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" + } + }, + "x-ms-error-response": true + }, + "403": { + "description": "Permission, capacity, or authentication issues.", + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + }, + "x-ms-error-response": true + }, + "404": { + "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + }, + "x-ms-error-response": true + }, + "500": { + "description": "An error occurred while processing the request. Please try again later.", + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + }, + "x-ms-error-response": true + } + }, + "parameters": { + "ClientId": { + "name": "x-ms-client-id", + "description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.", + "type": "string", + "in": "header", + "required": false, + "x-ms-parameter-location": "client" + }, + "SubscriptionKey": { + "name": "subscription-key", + "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", + "type": "string", + "in": "query", + "required": false, + "x-ms-parameter-location": "client" + }, + "JsonFormat": { + "name": "format", + "description": "Desired format of the response. Only `json` format is supported.", + "type": "string", + "in": "path", + "required": true, + "enum": [ + "json" + ], + "x-ms-enum": { + "name": "JsonFormat", + "modelAsString": false, + "values": [ + { + "value": "json", + "description": "[The JavaScript Object Notation Data Interchange Format](https://tools.ietf.org/html/rfc8259)" + } + ] + }, + "x-ms-parameter-location": "method" + }, + "ApiVersion": { + "name": "api-version", + "description": "Version number of Azure Maps API. Current version is 1.0", + "type": "string", + "in": "query", + "required": true, + "default": "1.0", + "x-ms-parameter-location": "client" + } + }, "paths": { "/elevation/point/{format}": { "get": { @@ -52,16 +143,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "#/parameters/JsonFormat" }, { "name": "points", @@ -90,19 +181,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "#/responses/500" } } }, @@ -117,16 +208,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "#/parameters/JsonFormat" }, { "name": "pointsRequestBody", @@ -149,19 +240,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "#/responses/500" } } } @@ -178,16 +269,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "#/parameters/JsonFormat" }, { "name": "lines", @@ -226,19 +317,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "#/responses/500" } } }, @@ -253,16 +344,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "#/parameters/JsonFormat" }, { "name": "linesRequestBody", @@ -295,19 +386,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "#/responses/500" } } } @@ -324,16 +415,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "#/parameters/JsonFormat" }, { "name": "bounds", @@ -376,19 +467,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json index de998b107d0e..58e3285ad9ae 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json @@ -45,6 +45,65 @@ "apiKeyQuery": [] } ], + "responses": { + "400": { + "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + } + }, + "401": { + "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + }, + "headers": { + "WWW-Authenticate": { + "type": "string", + "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" + } + } + }, + "403": { + "description": "Permission, capacity, or authentication issues.", + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + } + }, + "404": { + "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + } + }, + "500": { + "description": "An error occurred while processing the request. Please try again later.", + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + } + }, + "201Async": { + "description": "The resource has been created successfully.", + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/LongRunningOperationResult" + }, + "headers": { + "Location": { + "type": "string", + "description": "A URI where details on the newly created resource can be found." + } + } + }, + "202Async": { + "description": "**Supported only for async request.**\nRequest Accepted: The request has been accepted for processing. Please use the URL in the Location Header to retry or access the results.", + "headers": { + "Location": { + "type": "string", + "description": "New URL to check for the results of the long running process." + } + } + } + }, "parameters": { "UploadDataFormat": { @@ -99,13 +158,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "#/parameters/UploadDataFormat" @@ -128,25 +187,25 @@ } }, "201": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/201Async" + "$ref": "#/responses/201Async" }, "202": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" + "$ref": "#/responses/202Async" }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "#/responses/500" } } } @@ -167,13 +226,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "#/parameters/Udid" @@ -196,25 +255,25 @@ } }, "201": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/201Async" + "$ref": "#/responses/201Async" }, "202": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" + "$ref": "#/responses/202Async" }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "#/responses/500" } } }, @@ -229,13 +288,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "#/parameters/Udid" @@ -255,19 +314,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "#/responses/500" } } }, @@ -282,13 +341,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "#/parameters/Udid" @@ -302,19 +361,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "#/responses/500" } } } @@ -331,13 +390,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" } ], "responses": { @@ -354,19 +413,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json index 5eefb588fd86..bf6b18f9f6fd 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json @@ -46,34 +46,73 @@ "apiKeyQuery": [] } ], - "parameters": { - "GeographicResourceLocation": { - "name": "geography", - "description": "This parameter specifies where the Azure Maps Creator resource is located. Valid values are us and eu.", - "in": "path", - "required": true, - "type": "string", - "default": "us", - "enum": [ - "us", - "eu" - ], - "x-ms-enum": { - "name": "GeographicResourceLocation", - "modelAsString": true, - "values": [ - { - "value": "us", - "description": "Used to access an Azure Maps Creator resource in the United States" - }, - { - "value": "eu", - "description": "Used to access an Azure Maps Creator resource in Europe" - } - ] + "responses": { + "400": { + "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + } + }, + "401": { + "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + }, + "headers": { + "WWW-Authenticate": { + "type": "string", + "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" + } + } + }, + "403": { + "description": "Permission, capacity, or authentication issues.", + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + } + }, + "404": { + "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + } + }, + "500": { + "description": "An error occurred while processing the request. Please try again later.", + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + } + }, + "200Async": { + "description": "The operation's status response.", + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/LongRunningOperationResult" + } + }, + "201Async": { + "description": "The resource has been created successfully.", + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/LongRunningOperationResult" }, - "x-ms-parameter-location": "client" + "headers": { + "Location": { + "type": "string", + "description": "A URI where details on the newly created resource can be found." + } + } }, + "202Async": { + "description": "**Supported only for async request.**\nRequest Accepted: The request has been accepted for processing. Please use the URL in the Location Header to retry or access the results.", + "headers": { + "Location": { + "type": "string", + "description": "New URL to check for the results of the long running process." + } + } + } + }, + "parameters": { + "ConversionIdQuery": { "name": "conversionId", "description": "The unique ID used to create the dataset. The `conversionId` must have been obtained from a successful call to the Conversion Service Convert API and must be provided with multiple query parameters with same name (if more than one is provided). May not be provided in conjunction with the `udid` query parameter.", @@ -190,10 +229,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "#/parameters/ConversionIdQuery" @@ -213,25 +252,25 @@ ], "responses": { "201": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/201Async" + "$ref": "#/responses/201Async" }, "202": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" + "$ref": "#/responses/202Async" }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "#/responses/500" } } } @@ -248,10 +287,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "#/parameters/DatasetId" @@ -265,25 +304,25 @@ ], "responses": { "200": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/200Async" + "$ref": "#/responses/200Async" }, "202": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" + "$ref": "#/responses/202Async" }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "#/responses/500" } } } @@ -300,10 +339,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "#/parameters/DatasetId" @@ -317,19 +356,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "#/responses/500" } } } @@ -346,10 +385,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" } ], "responses": { @@ -360,19 +399,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json index a36bb761d863..fc1fa3d4d046 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json @@ -45,34 +45,67 @@ "apiKeyQuery": [] } ], - "parameters": { - "GeographicResourceLocation": { - "name": "geography", - "description": "This parameter specifies where the Azure Maps Creator resource is located. Valid values are us and eu.", - "in": "path", - "required": true, - "type": "string", - "default": "us", - "enum": [ - "us", - "eu" - ], - "x-ms-enum": { - "name": "GeographicResourceLocation", - "modelAsString": true, - "values": [ - { - "value": "us", - "description": "Used to access an Azure Maps Creator resource in the United States" - }, - { - "value": "eu", - "description": "Used to access an Azure Maps Creator resource in Europe" - } - ] + "responses": { + "400": { + "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + } + }, + "401": { + "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + }, + "headers": { + "WWW-Authenticate": { + "type": "string", + "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" + } + } + }, + "403": { + "description": "Permission, capacity, or authentication issues.", + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + } + }, + "404": { + "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + } + }, + "500": { + "description": "An error occurred while processing the request. Please try again later.", + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + } + }, + "201Async": { + "description": "The resource has been created successfully.", + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/LongRunningOperationResult" }, - "x-ms-parameter-location": "client" + "headers": { + "Location": { + "type": "string", + "description": "A URI where details on the newly created resource can be found." + } + } }, + "202Async": { + "description": "**Supported only for async request.**\nRequest Accepted: The request has been accepted for processing. Please use the URL in the Location Header to retry or access the results.", + "headers": { + "Location": { + "type": "string", + "description": "New URL to check for the results of the long running process." + } + } + } + }, + "parameters": { + "UdidQuery": { "name": "udid", "description": "The unique data id for the content. The `udid` must have been obtained from a successful [Data Upload API](https://docs.microsoft.com/en-us/rest/api/maps/data/uploadpreview) call.", @@ -136,13 +169,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "#/parameters/UdidQuery" @@ -156,25 +189,25 @@ ], "responses": { "201": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/201Async" + "$ref": "#/responses/201Async" }, "202": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" + "$ref": "#/responses/202Async" }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "#/responses/500" } } } @@ -191,13 +224,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" } ], "responses": { @@ -208,19 +241,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "#/responses/500" } } } @@ -237,13 +270,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "#/parameters/ConversionId" @@ -257,19 +290,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json index bed50a78652b..a692ea2572d3 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json @@ -45,34 +45,52 @@ "apiKeyQuery": [] } ], - "parameters": { - "GeographicResourceLocation": { - "name": "geography", - "description": "This parameter specifies where the Azure Maps Creator resource is located. Valid values are us and eu.", - "in": "path", - "required": true, - "type": "string", - "default": "us", - "enum": [ - "us", - "eu" - ], - "x-ms-enum": { - "name": "GeographicResourceLocation", - "modelAsString": true, - "values": [ - { - "value": "us", - "description": "Used to access an Azure Maps Creator resource in the United States" - }, - { - "value": "eu", - "description": "Used to access an Azure Maps Creator resource in Europe" - } - ] + "responses": { + "400": { + "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + } + }, + "401": { + "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" }, - "x-ms-parameter-location": "client" + "headers": { + "WWW-Authenticate": { + "type": "string", + "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" + } + } + }, + "403": { + "description": "Permission, capacity, or authentication issues.", + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + } + }, + "404": { + "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + } + }, + "409": { + "description": "The request could not be completed due to a conflict with the current state of the resource. Likely caused by a parallel update to the same resource.", + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + } }, + "500": { + "description": "An error occurred while processing the request. Please try again later.", + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + } + } + }, + "parameters": { + "DatasetIdForCreate": { "name": "datasetId", "description": "The datasetId must have been obtained from a successful [Dataset Create API](https://review.docs.microsoft.com/en-us/rest-staging/api/maps-master/dataset/createpreview?branch=lbs) call.", @@ -143,10 +161,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -160,19 +178,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "#/responses/500" } } }, @@ -187,10 +205,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -201,19 +219,19 @@ "description": "Stateset Deleted." }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "#/responses/500" } } }, @@ -228,10 +246,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -251,19 +269,19 @@ "description": "Stateset styles are updated successfully." }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "#/responses/500" } } } @@ -280,10 +298,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "#/parameters/DatasetIdForCreate" @@ -306,19 +324,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "#/responses/500" } } }, @@ -333,10 +351,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" } ], "responses": { @@ -347,19 +365,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "#/responses/500" } } } @@ -376,10 +394,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "#/parameters/StatesetId" @@ -396,19 +414,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "#/responses/500" } } }, @@ -423,10 +441,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "#/parameters/StatesetId" @@ -449,19 +467,19 @@ "description": "Feature states are updated successfully." }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "#/responses/500" } } }, @@ -476,10 +494,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "#/parameters/StatesetId" @@ -496,22 +514,22 @@ "description": "Feature states deleted successfully." }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "#/responses/404" }, "409": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/409" + "$ref": "#/responses/409" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "#/responses/500" } } } @@ -700,7 +718,6 @@ "StyleRuleBase": { "description": "contains common properties for numeric, string and boolean style rules.", "discriminator": "type", - "type": "object", "required": [ "keyName", "type" diff --git a/specification/maps/data-plane/Microsoft.Maps/Feedback/preview/1.0/feedback.json b/specification/maps/data-plane/Microsoft.Maps/Feedback/preview/1.0/feedback.json index f1f056559b94..179592fd586a 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Feedback/preview/1.0/feedback.json +++ b/specification/maps/data-plane/Microsoft.Maps/Feedback/preview/1.0/feedback.json @@ -38,6 +38,71 @@ "apiKeyQuery": [] } ], + "responses": { + "400": { + "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + } + }, + "401": { + "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + }, + "headers": { + "WWW-Authenticate": { + "type": "string", + "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" + } + } + }, + "403": { + "description": "Permission, capacity, or authentication issues.", + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + } + }, + "404": { + "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + } + }, + "500": { + "description": "An error occurred while processing the request. Please try again later.", + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + } + } + }, + "parameters": { + "ClientId": { + "name": "x-ms-client-id", + "description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.", + "type": "string", + "in": "header", + "required": false, + "x-ms-parameter-location": "client" + }, + "SubscriptionKey": { + "name": "subscription-key", + "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", + "type": "string", + "in": "query", + "required": false, + "x-ms-parameter-location": "client" + }, + "ApiVersion": { + "name": "api-version", + "description": "Version number of Azure Maps API. Current version is 1.0", + "type": "string", + "in": "query", + "required": true, + "default": "1.0", + "x-ms-parameter-location": "client" + } + }, "paths": {}, "definitions": { "GeoJsonBoundingBox": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json index c911b1c40308..ead152ce4f8b 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json +++ b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json @@ -38,6 +38,92 @@ "apiKeyQuery": [] } ], + "responses": { + "400": { + "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + } + }, + "401": { + "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + }, + "headers": { + "WWW-Authenticate": { + "type": "string", + "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" + } + } + }, + "403": { + "description": "Permission, capacity, or authentication issues.", + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + } + }, + "404": { + "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + } + }, + "500": { + "description": "An error occurred while processing the request. Please try again later.", + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + } + } + }, + "parameters": { + "ClientId": { + "name": "x-ms-client-id", + "description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.", + "type": "string", + "in": "header", + "required": false, + "x-ms-parameter-location": "client" + }, + "SubscriptionKey": { + "name": "subscription-key", + "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", + "type": "string", + "in": "query", + "required": false, + "x-ms-parameter-location": "client" + }, + "ApiVersion": { + "name": "api-version", + "description": "Version number of Azure Maps API. Current version is 1.0", + "type": "string", + "in": "query", + "required": true, + "default": "1.0", + "x-ms-parameter-location": "client" + }, + "JsonFormat": { + "name": "format", + "description": "Desired format of the response. Only `json` format is supported.", + "type": "string", + "in": "path", + "required": true, + "enum": [ + "json" + ], + "x-ms-enum": { + "name": "JsonFormat", + "modelAsString": false, + "values": [ + { + "value": "json", + "description": "[The JavaScript Object Notation Data Interchange Format](https://tools.ietf.org/html/rfc8259)" + } + ] + }, + "x-ms-parameter-location": "method" + } + }, "paths": { "/geolocation/ip/{format}": { "get": { @@ -51,16 +137,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "#/parameters/JsonFormat" }, { "name": "ip", @@ -78,19 +164,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json index 57cb02316299..1cbbb66a1294 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json +++ b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json @@ -37,7 +37,91 @@ "apiKeyQuery": [] } ], + "responses": { + "400": { + "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + } + }, + "401": { + "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + }, + "headers": { + "WWW-Authenticate": { + "type": "string", + "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" + } + } + }, + "403": { + "description": "Permission, capacity, or authentication issues.", + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + } + }, + "404": { + "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + } + }, + "500": { + "description": "An error occurred while processing the request. Please try again later.", + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + } + } + }, "parameters": { + "ClientId": { + "name": "x-ms-client-id", + "description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.", + "type": "string", + "in": "header", + "required": false, + "x-ms-parameter-location": "client" + }, + "SubscriptionKey": { + "name": "subscription-key", + "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", + "type": "string", + "in": "query", + "required": false, + "x-ms-parameter-location": "client" + }, + "ApiVersion": { + "name": "api-version", + "description": "Version number of Azure Maps API. Current version is 1.0", + "type": "string", + "in": "query", + "required": true, + "default": "1.0", + "x-ms-parameter-location": "client" + }, + "JsonFormat": { + "name": "format", + "description": "Desired format of the response. Only `json` format is supported.", + "type": "string", + "in": "path", + "required": true, + "enum": [ + "json" + ], + "x-ms-enum": { + "name": "JsonFormat", + "modelAsString": false, + "values": [ + { + "value": "json", + "description": "[The JavaScript Object Notation Data Interchange Format](https://tools.ietf.org/html/rfc8259)" + } + ] + }, + "x-ms-parameter-location": "method" + }, "MetroId": { "name": "metroId", "description": "The unique id of the metro area. Can be retrieved via [Get Metro Area API](https://aka.ms/AzureMapsMobilityMetro).", @@ -69,16 +153,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "#/parameters/JsonFormat" }, { "name": "query", @@ -126,19 +210,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "#/responses/500" } } } @@ -155,16 +239,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "#/parameters/JsonFormat" }, { "name": "query", @@ -225,19 +309,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "#/responses/500" } } } @@ -254,16 +338,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "#/parameters/JsonFormat" }, { "$ref": "#/parameters/MetroId" @@ -311,19 +395,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "#/responses/500" } } } @@ -340,16 +424,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "#/parameters/JsonFormat" }, { "$ref": "#/parameters/MetroId" @@ -421,19 +505,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "#/responses/500" } } } @@ -450,16 +534,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "#/parameters/JsonFormat" }, { "$ref": "#/parameters/MetroId" @@ -548,19 +632,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "#/responses/500" } } } @@ -577,16 +661,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "#/parameters/JsonFormat" }, { "$ref": "#/parameters/MetroId" @@ -893,19 +977,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "#/responses/500" } } } @@ -922,16 +1006,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "#/parameters/JsonFormat" }, { "name": "query", @@ -981,19 +1065,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "#/responses/500" } } } @@ -1010,16 +1094,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "#/parameters/JsonFormat" }, { "$ref": "#/parameters/MetroId" @@ -1232,19 +1316,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json index 1b548eb83a95..2b2d4a8d37c5 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json @@ -39,7 +39,70 @@ "apiKeyQuery": [] } ], + "responses": { + "400": { + "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + } + }, + "401": { + "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + }, + "headers": { + "WWW-Authenticate": { + "type": "string", + "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" + } + } + }, + "403": { + "description": "Permission, capacity, or authentication issues.", + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + } + }, + "404": { + "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + } + }, + "500": { + "description": "An error occurred while processing the request. Please try again later.", + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + } + } + }, "parameters": { + "ClientId": { + "name": "x-ms-client-id", + "description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.", + "type": "string", + "in": "header", + "required": false, + "x-ms-parameter-location": "client" + }, + "SubscriptionKey": { + "name": "subscription-key", + "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", + "type": "string", + "in": "query", + "required": false, + "x-ms-parameter-location": "client" + }, + "ApiVersion": { + "name": "api-version", + "description": "Version number of Azure Maps API. Current version is 1.0", + "type": "string", + "in": "query", + "required": true, + "default": "1.0", + "x-ms-parameter-location": "client" + }, "RasterTileFormat": { "name": "format", "description": "Desired format of the response. Possible value: png.", @@ -928,42 +991,6 @@ } }, "definitions": { - "ODataErrorResponse": { - "type": "object", - "description": "This response object is returned when an error occurs in the Maps API.", - "properties": { - "error": { - "$ref": "#/definitions/ODataError" - } - } - }, - "ODataError": { - "type": "object", - "description": "This object is returned when an error occurs in the Maps API.", - "properties": { - "code": { - "type": "string", - "readOnly": true, - "description": "The ODataError code." - }, - "message": { - "type": "string", - "readOnly": true, - "description": "If available, a human readable description of the error." - }, - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/ODataError" - } - }, - "target": { - "type": "string", - "readOnly": true, - "description": "If available, the target causing the error." - } - } - }, "CopyrightBoundingResult": { "description": "This object is returned from a successful Copyright Bounding call", "type": "object", diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json index 3035ae4e980e..0391a21eb883 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json @@ -43,13 +43,13 @@ "400": { "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { - "$ref": "#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" } }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", "schema": { - "$ref": "#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" }, "headers": { "WWW-Authenticate": { @@ -61,19 +61,19 @@ "403": { "description": "Permission, capacity, or authentication issues.", "schema": { - "$ref": "#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" } }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { - "$ref": "#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" } }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { - "$ref": "#/definitions/ODataErrorResponse" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" } } }, @@ -340,42 +340,6 @@ } }, "definitions": { - "ODataErrorResponse": { - "type": "object", - "description": "This response object is returned when an error occurs in the Maps API.", - "properties": { - "error": { - "$ref": "#/definitions/ODataError" - } - } - }, - "ODataError": { - "type": "object", - "description": "This object is returned when an error occurs in the Maps API.", - "properties": { - "code": { - "type": "string", - "readOnly": true, - "description": "The ODataError code." - }, - "message": { - "type": "string", - "readOnly": true, - "description": "If available, a human readable description of the error." - }, - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/ODataError" - } - }, - "target": { - "type": "string", - "readOnly": true, - "description": "If available, the target causing the error." - } - } - }, "MapTileResultv2": { "description": "The tile returned from a successful API call.", "type": "string", diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json index 07a2dd8795fc..3838c68d7537 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json @@ -236,12 +236,6 @@ } ], "responses": { - "200": { - "description": "Status 200 not expected", - "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" - } - }, "201": { "$ref": "#/responses/201Async" }, diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json index bf9d51ed760c..e116c79b691d 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json @@ -604,9 +604,6 @@ }, "500": { "$ref": "#/responses/500" - }, - "default": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" } } } diff --git a/specification/maps/data-plane/readme.md b/specification/maps/data-plane/readme.md index 4e158ab0398e..61a58d832568 100644 --- a/specification/maps/data-plane/readme.md +++ b/specification/maps/data-plane/readme.md @@ -74,24 +74,24 @@ These settings apply only when `--tag=package-1.0-preview` is specified on the c ``` yaml $(tag) == 'package-1.0-preview' input-file: - Microsoft.Maps/Alias/preview/1.0/alias.json - #- Microsoft.Maps/Data/preview/1.0/data.json - #- Microsoft.Maps/Dataset/preview/1.0/dataset.json - #- Microsoft.Maps/DEM/preview/1.0/elevation.json - #- Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json - #- Microsoft.Maps/FeatureState/preview/1.0/featurestate.json - #- Microsoft.Maps/Feedback/preview/1.0/feedback.json - #- Microsoft.Maps/Geolocation/preview/1.0/geolocation.json - #- Microsoft.Maps/Mobility/preview/1.0/mobility.json - #- Microsoft.Maps/Render/preview/1.0/render.json - #- Microsoft.Maps/Render/preview/2.0/render.json - #- Microsoft.Maps/Route/preview/1.0/route.json - #- Microsoft.Maps/Search/preview/1.0/search.json - #- Microsoft.Maps/Spatial/preview/1.0/spatial.json - #- Microsoft.Maps/Tileset/preview/1.0/tileset.json - #- Microsoft.Maps/Timezone/preview/1.0/timezone.json - #- Microsoft.Maps/Traffic/preview/1.0/traffic.json - #- Microsoft.Maps/Weather/preview/1.0/weather.json - #- Microsoft.Maps/WFS/preview/1.0/wfs.json + - Microsoft.Maps/Data/preview/1.0/data.json + - Microsoft.Maps/Dataset/preview/1.0/dataset.json + - Microsoft.Maps/DEM/preview/1.0/elevation.json + - Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json + - Microsoft.Maps/FeatureState/preview/1.0/featurestate.json + - Microsoft.Maps/Feedback/preview/1.0/feedback.json + - Microsoft.Maps/Geolocation/preview/1.0/geolocation.json + - Microsoft.Maps/Mobility/preview/1.0/mobility.json + - Microsoft.Maps/Render/preview/1.0/render.json + - Microsoft.Maps/Render/preview/2.0/render.json + - Microsoft.Maps/Route/preview/1.0/route.json + - Microsoft.Maps/Search/preview/1.0/search.json + - Microsoft.Maps/Spatial/preview/1.0/spatial.json + - Microsoft.Maps/Tileset/preview/1.0/tileset.json + - Microsoft.Maps/Timezone/preview/1.0/timezone.json + - Microsoft.Maps/Traffic/preview/1.0/traffic.json + - Microsoft.Maps/Weather/preview/1.0/weather.json + - Microsoft.Maps/WFS/preview/1.0/wfs.json ``` # Code Generation From 15038e1c4d7e116786cec21a6d4bfda8674ddedf Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Fri, 19 Mar 2021 09:06:42 -0700 Subject: [PATCH 018/210] update readonly problem --- .../Common/preview/1.0/common.json | 36 ++++++++++++++++--- 1 file changed, 32 insertions(+), 4 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index ee8ed8d58abc..fb95ee88411a 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -144,14 +144,12 @@ "lat": { "description": "Latitude property", "type": "number", - "format": "double", - "readOnly": true + "format": "double" }, "lon": { "description": "Longitude property", "type": "number", - "format": "double", - "readOnly": true + "format": "double" } } }, @@ -322,6 +320,36 @@ } ] }, + "MultiLineString": { + "description": "A valid `GeoJSON MultiLineString` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.5) for details.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJSONGeometry" + }, + { + "properties": { + "type": { + "description": "Specifies the `type` for the geometry. Value should always be equal to \"MultiLineString\".", + "type": "string" + }, + "coordinates": { + "description": "Coordinates for the `MultiLineString` geometry.", + "type": "array", + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/GeoJSONPosition" + } + } + } + }, + "required": [ + "coordinates" + ] + } + ] + }, "Polygon": { "description": "A valid `GeoJSON Polygon` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.6) for details.", "type": "object", From b4f68d90398eba728994165a6fcec51d93e63f8c Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Mon, 22 Mar 2021 02:41:17 -0700 Subject: [PATCH 019/210] Update error correctly to not be a breaking change --- .../data-plane/Microsoft.Maps/Common/preview/1.0/common.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index fb95ee88411a..6936fc3e02b8 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -63,10 +63,10 @@ "readOnly": true }, "error": { - "$ref": "#/definitions/ODataErrorResponse" + "$ref": "#/definitions/ODataError" }, "warning": { - "$ref": "#/definitions/ODataErrorResponse" + "$ref": "#/definitions/ODataError" } } }, From 0ba6c6f02fabc96c15db945cc00cb4e710ab7378 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Mon, 22 Mar 2021 02:50:26 -0700 Subject: [PATCH 020/210] Remove unused definition. --- .../Common/preview/1.0/common.json | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index 6936fc3e02b8..a09312c4c70d 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -373,22 +373,6 @@ } ] }, - "GeoJSONGeometryCollection": { - "description": "A valid `GeoJSON GeometryCollection` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.8) for details.", - "type": "object", - "properties": { - "geometries": { - "description": "Contains a list of valid `GeoJSON` geometry objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude).", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJSONGeometry" - } - } - }, - "required": [ - "geometries" - ] - }, "BatchRequestBody": { "description": "This type represents the request body for the Batch service.", "type": "object", From 14302a296ad487237ca3f7ee21a8db047c7e2f84 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Mon, 22 Mar 2021 02:58:10 -0700 Subject: [PATCH 021/210] Fix GeoJSONGeometryCollection --- .../Common/preview/1.0/common.json | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index a09312c4c70d..9abbe8b632f8 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -373,6 +373,29 @@ } ] }, + "GeoJSONGeometryCollection": { + "description": "A valid `GeoJSON GeometryCollection` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.8) for details.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJSONGeometry" + }, + { + "properties": { + "geometries": { + "description": "Contains a list of valid `GeoJSON` geometry objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude).", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJSONGeometry" + } + } + }, + "required": [ + "geometries" + ] + } + ] + }, "BatchRequestBody": { "description": "This type represents the request body for the Batch service.", "type": "object", From d89fcce30b29dfffd87daa969a836d934b11626c Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Mon, 22 Mar 2021 03:36:54 -0700 Subject: [PATCH 022/210] Fix naming scheme --- .../data-plane/Microsoft.Maps/Common/preview/1.0/common.json | 2 +- .../maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index 9abbe8b632f8..276b3a6e13f8 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -373,7 +373,7 @@ } ] }, - "GeoJSONGeometryCollection": { + "GeometryCollection": { "description": "A valid `GeoJSON GeometryCollection` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.8) for details.", "type": "object", "allOf": [ diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json index 9eb0c9ec520f..519e879d286a 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json @@ -1683,7 +1683,7 @@ "description": "A GeoJSON Geometry collection representing sequence of coordinates used as input for route reconstruction and for calculating zero or more alternative routes to this reference route.\n - The provided sequence of supporting points is used as input for route reconstruction.\n - The alternative routes are calculated between the origin and destination points specified in the base path parameter locations.\n - If both _minDeviationDistance_ and _minDeviationTime_ are set to zero, then these origin and destination points are\n expected to be at (or very near) the beginning and end of the reference route, respectively.\n - Intermediate locations (_waypoints_) are not supported when using <_supportingPoints_>.\n - The reference route may contain traffic incidents of type _ROAD_CLOSURE_, which are\n ignored for the calculation of the reference route's travel time and traffic delay.", "allOf": [ { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJSONGeometryCollection" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeometryCollection" }, { "properties": { From 9910e1a8f9f587b1dfd9af2163a42238a7be7047 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Mon, 22 Mar 2021 03:57:06 -0700 Subject: [PATCH 023/210] fix coord abb --- .../Common/preview/1.0/common.json | 18 +++++++++++++ .../Search/preview/1.0/search.json | 26 +++++++++---------- 2 files changed, 31 insertions(+), 13 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index 276b3a6e13f8..c056a0cdf39f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -153,6 +153,24 @@ } } }, + "CoordinateAbbreviatedReadOnly": { + "description": "A location represented as a latitude and longitude.", + "type": "object", + "properties": { + "lat": { + "description": "Latitude property", + "type": "number", + "format": "double", + "readOnly": true + }, + "lon": { + "description": "Longitude property", + "type": "number", + "format": "double", + "readOnly": true + } + } + }, "Geometry": { "description": "This represents the geometry for one or more geographical features (parks, state boundary etc.) and should be a `GeoJSON` compliant type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946) for details.", "type": "object" diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json index 17801f71c874..6b7b411195f7 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json @@ -2070,7 +2070,7 @@ "$ref": "#/definitions/SearchResultAddress" }, "position": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviated" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviatedReadOnly" }, "viewport": { "$ref": "#/definitions/SearchResultViewport" @@ -2186,7 +2186,7 @@ "$ref": "#/definitions/SearchResultAddress" }, "position": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviated" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviatedReadOnly" }, "viewport": { "$ref": "#/definitions/SearchResultViewport" @@ -2288,7 +2288,7 @@ "$ref": "#/definitions/SearchResultAddress" }, "position": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviated" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviatedReadOnly" }, "viewport": { "$ref": "#/definitions/SearchResultViewport" @@ -2398,7 +2398,7 @@ "$ref": "#/definitions/SearchResultAddress" }, "position": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviated" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviatedReadOnly" }, "viewport": { "$ref": "#/definitions/SearchResultViewport" @@ -2491,7 +2491,7 @@ "$ref": "#/definitions/SearchResultAddress" }, "position": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviated" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviatedReadOnly" }, "viewport": { "$ref": "#/definitions/SearchResultViewport" @@ -2697,7 +2697,7 @@ "$ref": "#/definitions/SearchResultAddress" }, "position": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviated" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviatedReadOnly" }, "viewport": { "$ref": "#/definitions/SearchResultViewport" @@ -2805,7 +2805,7 @@ "$ref": "#/definitions/SearchResultAddress" }, "position": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviated" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviatedReadOnly" }, "viewport": { "$ref": "#/definitions/SearchResultViewport" @@ -2910,7 +2910,7 @@ "$ref": "#/definitions/SearchResultAddress" }, "position": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviated" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviatedReadOnly" }, "viewport": { "$ref": "#/definitions/SearchResultViewport" @@ -3233,10 +3233,10 @@ "type": "object", "properties": { "topLeftPoint": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviated" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviatedReadOnly" }, "btmRightPoint": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviated" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviatedReadOnly" } } }, @@ -3254,7 +3254,7 @@ ] }, "position": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviated" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviatedReadOnly" } } }, @@ -3269,10 +3269,10 @@ "type": "string" }, "from": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviated" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviatedReadOnly" }, "to": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviated" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviatedReadOnly" } } }, From 1ea0928bfdff03b84bf5c2f15cae321c1d2813d2 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Mon, 22 Mar 2021 04:05:17 -0700 Subject: [PATCH 024/210] fix geometryCollection error by using a more generic type for inheritance. --- .../Microsoft.Maps/Common/preview/1.0/common.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index c056a0cdf39f..2e06b71fbd09 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -396,10 +396,14 @@ "type": "object", "allOf": [ { - "$ref": "#/definitions/GeoJSONGeometry" + "$ref": "#/definitions/Geometry" }, { "properties": { + "type": { + "description": "Specifies the `type` for the object. Value should always be equal to \"GeometryCollection\".", + "type": "string" + }, "geometries": { "description": "Contains a list of valid `GeoJSON` geometry objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude).", "type": "array", From 53f04ac01d62eb90b2133ef3b58cd2a462562f2d Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Mon, 22 Mar 2021 06:10:50 -0700 Subject: [PATCH 025/210] update anon def --- .../Common/preview/1.0/common.json | 75 +++++++++++-------- 1 file changed, 44 insertions(+), 31 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index 2e06b71fbd09..7929b48bb0aa 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -232,6 +232,32 @@ } } }, + "Point": { + "description": "A valid `GeoJSON Point` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.2) for details.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJSONGeometry" + }, + { + "schema": { + "$ref": "#/definition/PointData" + } + } + ] + }, + "PointData": { + "description": "Data contained by a `Point`.", + "type": "object", + "properties": { + "coordinates": { + "$ref": "#/definitions/GeoJSONPosition" + } + }, + "required": [ + "coordinates" + ] + }, "MultiPoint": { "description": "A valid `GeoJSON MultiPoint` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.3) for details.", "type": "object", @@ -240,21 +266,27 @@ "$ref": "#/definitions/GeoJSONGeometry" }, { - "properties": { - "coordinates": { - "description": "Coordinates for the `MultiPoint` geometry.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJSONPosition" - } - } - }, - "required": [ - "coordinates" - ] + "schema": { + "$ref": "#/definition/PointData" + } } ] }, + "MultiPointData": { + "description": "Data contained by a `MultiPoint`.", + "properties": { + "coordinates": { + "description": "Coordinates for the `MultiPoint` geometry.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJSONPosition" + } + } + }, + "required": [ + "coordinates" + ] + }, "LineString": { "description": "A valid `GeoJSON LineString` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.4) for details.", "type": "object", @@ -293,25 +325,6 @@ "format": "double" } }, - "Point": { - "description": "A valid `GeoJSON Point` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.2) for details.", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJSONGeometry" - }, - { - "properties": { - "coordinates": { - "$ref": "#/definitions/GeoJSONPosition" - } - }, - "required": [ - "coordinates" - ] - } - ] - }, "MultiPolygon": { "description": "A valid `GeoJSON MultiPolygon` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.7) for details.", "type": "object", From d54c74c0b0a01df2664dbbcf013c7cd188765777 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Mon, 22 Mar 2021 07:52:58 -0700 Subject: [PATCH 026/210] try without schema --- .../Microsoft.Maps/Common/preview/1.0/common.json | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index 7929b48bb0aa..be5d5be23e75 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -240,9 +240,7 @@ "$ref": "#/definitions/GeoJSONGeometry" }, { - "schema": { - "$ref": "#/definition/PointData" - } + "$ref": "#/definition/PointData" } ] }, @@ -266,9 +264,7 @@ "$ref": "#/definitions/GeoJSONGeometry" }, { - "schema": { - "$ref": "#/definition/PointData" - } + "$ref": "#/definition/PointData" } ] }, From e6df6dafc0ce1d7f4f74cea5887c77dee83be722 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Mon, 22 Mar 2021 07:57:12 -0700 Subject: [PATCH 027/210] fix naming issue. --- .../data-plane/Microsoft.Maps/Common/preview/1.0/common.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index be5d5be23e75..b01abb8542ac 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -240,7 +240,7 @@ "$ref": "#/definitions/GeoJSONGeometry" }, { - "$ref": "#/definition/PointData" + "$ref": "#/definitions/PointData" } ] }, @@ -264,7 +264,7 @@ "$ref": "#/definitions/GeoJSONGeometry" }, { - "$ref": "#/definition/PointData" + "$ref": "#/definitions/PointData" } ] }, From 62865ecbfd8ebc892108b95cc4aaf7a4a4f4df5d Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Mon, 22 Mar 2021 08:10:32 -0700 Subject: [PATCH 028/210] add schema --- .../Microsoft.Maps/Common/preview/1.0/common.json | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index b01abb8542ac..4d439b2e3e28 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -240,7 +240,9 @@ "$ref": "#/definitions/GeoJSONGeometry" }, { - "$ref": "#/definitions/PointData" + "schema": { + "$ref": "#/definitions/PointData" + } } ] }, @@ -264,7 +266,9 @@ "$ref": "#/definitions/GeoJSONGeometry" }, { - "$ref": "#/definitions/PointData" + "schema": { + "$ref": "#/definitions/PointData" + } } ] }, From 5d7871ccd1e0c50bfc6a28948fec1163030d1205 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Mon, 22 Mar 2021 09:05:34 -0700 Subject: [PATCH 029/210] try again --- .../Microsoft.Maps/Common/preview/1.0/common.json | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index 4d439b2e3e28..decf985df0cd 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -240,9 +240,7 @@ "$ref": "#/definitions/GeoJSONGeometry" }, { - "schema": { - "$ref": "#/definitions/PointData" - } + "$ref": "#/definitions/PointData" } ] }, @@ -266,9 +264,7 @@ "$ref": "#/definitions/GeoJSONGeometry" }, { - "schema": { - "$ref": "#/definitions/PointData" - } + "$ref": "#/definitions/MultiPointData" } ] }, From aa36273d3cf99c3aaf737bb61115fb1066e7b3ef Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Mon, 22 Mar 2021 11:43:25 -0700 Subject: [PATCH 030/210] update common file --- .../Common/preview/1.0/common.json | 159 ++++++++++-------- 1 file changed, 87 insertions(+), 72 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index decf985df0cd..040309fe927e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -291,19 +291,22 @@ "$ref": "#/definitions/GeoJSONGeometry" }, { - "properties": { - "coordinates": { - "description": "Coordinates for the `LineString` geometry.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJSONPosition" - } - } - }, - "required": [ - "coordinates" - ] + "$ref": "#/definitions/LineStringData" + } + ] + }, + "LineStringData": { + "properties": { + "coordinates": { + "description": "Coordinates for the `LineString` geometry.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJSONPosition" + } } + }, + "required": [ + "coordinates" ] }, "GeoJSONLinearRing": { @@ -329,22 +332,25 @@ "$ref": "#/definitions/GeoJSONGeometry" }, { - "properties": { - "coordinates": { - "description": "Contains a list of valid `GeoJSON` Polygon objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude).", - "type": "array", - "items": { - "type": "array", - "items": { - "$ref": "#/definitions/GeoJSONLinearRing" - } - } + "$ref": "#/definitions/MultiPolygonData" + } + ] + }, + "MultiPolygonData": { + "properties": { + "coordinates": { + "description": "Contains a list of valid `GeoJSON` Polygon objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude).", + "type": "array", + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/GeoJSONLinearRing" } - }, - "required": [ - "coordinates" - ] + } } + }, + "required": [ + "coordinates" ] }, "MultiLineString": { @@ -355,26 +361,29 @@ "$ref": "#/definitions/GeoJSONGeometry" }, { - "properties": { - "type": { - "description": "Specifies the `type` for the geometry. Value should always be equal to \"MultiLineString\".", - "type": "string" - }, - "coordinates": { - "description": "Coordinates for the `MultiLineString` geometry.", - "type": "array", - "items": { - "type": "array", - "items": { - "$ref": "#/definitions/GeoJSONPosition" - } - } + "$ref": "#/definitions/MultiPointStringData" + } + ] + }, + "MultiPointStringData": { + "properties": { + "type": { + "description": "Specifies the `type` for the geometry. Value should always be equal to \"MultiLineString\".", + "type": "string" + }, + "coordinates": { + "description": "Coordinates for the `MultiLineString` geometry.", + "type": "array", + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/GeoJSONPosition" } - }, - "required": [ - "coordinates" - ] + } } + }, + "required": [ + "coordinates" ] }, "Polygon": { @@ -385,19 +394,22 @@ "$ref": "#/definitions/GeoJSONGeometry" }, { - "properties": { - "coordinates": { - "description": "Coordinates for the `Polygon` geometry type.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJSONLinearRing" - } - } - }, - "required": [ - "coordinates" - ] + "$ref": "#/definitions/PolygonData" + } + ] + }, + "PolygonData": { + "properties": { + "coordinates": { + "description": "Coordinates for the `Polygon` geometry type.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJSONLinearRing" + } } + }, + "required": [ + "coordinates" ] }, "GeometryCollection": { @@ -408,23 +420,26 @@ "$ref": "#/definitions/Geometry" }, { - "properties": { - "type": { - "description": "Specifies the `type` for the object. Value should always be equal to \"GeometryCollection\".", - "type": "string" - }, - "geometries": { - "description": "Contains a list of valid `GeoJSON` geometry objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude).", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJSONGeometry" - } - } - }, - "required": [ - "geometries" - ] + "$ref": "#/definitions/GeometryCollectionData" + } + ] + }, + "GeometryCollectionData": { + "properties": { + "type": { + "description": "Specifies the `type` for the object. Value should always be equal to \"GeometryCollection\".", + "type": "string" + }, + "geometries": { + "description": "Contains a list of valid `GeoJSON` geometry objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude).", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJSONGeometry" + } } + }, + "required": [ + "geometries" ] }, "BatchRequestBody": { From 53df9bda82d53087495f47027a9adee434b296c8 Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Mon, 22 Mar 2021 11:51:46 -0700 Subject: [PATCH 031/210] update route.json file --- .../Microsoft.Maps/Route/preview/1.0/route.json | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json index 519e879d286a..09810b83fa4f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json @@ -1680,22 +1680,7 @@ "description": "Post body parameters for Route directions.", "properties": { "supportingPoints": { - "description": "A GeoJSON Geometry collection representing sequence of coordinates used as input for route reconstruction and for calculating zero or more alternative routes to this reference route.\n - The provided sequence of supporting points is used as input for route reconstruction.\n - The alternative routes are calculated between the origin and destination points specified in the base path parameter locations.\n - If both _minDeviationDistance_ and _minDeviationTime_ are set to zero, then these origin and destination points are\n expected to be at (or very near) the beginning and end of the reference route, respectively.\n - Intermediate locations (_waypoints_) are not supported when using <_supportingPoints_>.\n - The reference route may contain traffic incidents of type _ROAD_CLOSURE_, which are\n ignored for the calculation of the reference route's travel time and traffic delay.", - "allOf": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeometryCollection" - }, - { - "properties": { - "geometries": { - "type": "array", - "items": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/Point" - } - } - } - } - ] + "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeometryCollection" }, "avoidVignette": { "description": "This is a list of 3-character, ISO 3166-1, alpha-3 country codes of countries in which all toll roads with vignettes are to be avoided, e.g. \"AUS,CHE\". Toll roads with vignettes in countries not in the list are unaffected. Note: It is an error to specify both **avoidVignette** and **allowVignette**.", From e30251167a1bbe92128a2a7a6091a81c9a9c3523 Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Mon, 22 Mar 2021 12:06:56 -0700 Subject: [PATCH 032/210] Revert "update route.json file" This reverts commit 2858248ea19ece1998617afbb83c1b6633487834. --- .../Microsoft.Maps/Route/preview/1.0/route.json | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json index 09810b83fa4f..519e879d286a 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json @@ -1680,7 +1680,22 @@ "description": "Post body parameters for Route directions.", "properties": { "supportingPoints": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeometryCollection" + "description": "A GeoJSON Geometry collection representing sequence of coordinates used as input for route reconstruction and for calculating zero or more alternative routes to this reference route.\n - The provided sequence of supporting points is used as input for route reconstruction.\n - The alternative routes are calculated between the origin and destination points specified in the base path parameter locations.\n - If both _minDeviationDistance_ and _minDeviationTime_ are set to zero, then these origin and destination points are\n expected to be at (or very near) the beginning and end of the reference route, respectively.\n - Intermediate locations (_waypoints_) are not supported when using <_supportingPoints_>.\n - The reference route may contain traffic incidents of type _ROAD_CLOSURE_, which are\n ignored for the calculation of the reference route's travel time and traffic delay.", + "allOf": [ + { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeometryCollection" + }, + { + "properties": { + "geometries": { + "type": "array", + "items": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/Point" + } + } + } + } + ] }, "avoidVignette": { "description": "This is a list of 3-character, ISO 3166-1, alpha-3 country codes of countries in which all toll roads with vignettes are to be avoided, e.g. \"AUS,CHE\". Toll roads with vignettes in countries not in the list are unaffected. Note: It is an error to specify both **avoidVignette** and **allowVignette**.", From a2e873a5dace69253ec1b7a57962ff343d79acf0 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Tue, 23 Mar 2021 02:22:17 -0700 Subject: [PATCH 033/210] Update geometry collection. --- .../data-plane/Microsoft.Maps/Common/preview/1.0/common.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index 040309fe927e..511bc44e9658 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -417,7 +417,7 @@ "type": "object", "allOf": [ { - "$ref": "#/definitions/Geometry" + "$ref": "#/definitions/GeoJSONGeometry" }, { "$ref": "#/definitions/GeometryCollectionData" From 730bfd35de3e511fe6373686e0a8887dda97914e Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Tue, 23 Mar 2021 04:01:48 -0700 Subject: [PATCH 034/210] fix go modeler error --- .../Route/preview/1.0/route.json | 24 ++++++++++++------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json index 519e879d286a..74edc9266d09 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json @@ -1675,6 +1675,19 @@ } }, "definitions": { + "PointArray": { + "properties": { + "geometries": { + "type": "array", + "items": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/Point" + } + } + }, + "required": [ + "geometries" + ] + }, "RouteDirectionsRequestBody": { "type": "object", "description": "Post body parameters for Route directions.", @@ -1683,17 +1696,10 @@ "description": "A GeoJSON Geometry collection representing sequence of coordinates used as input for route reconstruction and for calculating zero or more alternative routes to this reference route.\n - The provided sequence of supporting points is used as input for route reconstruction.\n - The alternative routes are calculated between the origin and destination points specified in the base path parameter locations.\n - If both _minDeviationDistance_ and _minDeviationTime_ are set to zero, then these origin and destination points are\n expected to be at (or very near) the beginning and end of the reference route, respectively.\n - Intermediate locations (_waypoints_) are not supported when using <_supportingPoints_>.\n - The reference route may contain traffic incidents of type _ROAD_CLOSURE_, which are\n ignored for the calculation of the reference route's travel time and traffic delay.", "allOf": [ { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeometryCollection" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/Geometry" }, { - "properties": { - "geometries": { - "type": "array", - "items": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/Point" - } - } - } + "$ref": "#/definitions/PointArray" } ] }, From 62bc100d4b07630c2f85851a011cf8a80ba4a316 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Tue, 23 Mar 2021 03:35:07 -0700 Subject: [PATCH 035/210] remove type --- .../data-plane/Microsoft.Maps/Common/preview/1.0/common.json | 4 ---- 1 file changed, 4 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index 511bc44e9658..d7fd51781fbc 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -426,10 +426,6 @@ }, "GeometryCollectionData": { "properties": { - "type": { - "description": "Specifies the `type` for the object. Value should always be equal to \"GeometryCollection\".", - "type": "string" - }, "geometries": { "description": "Contains a list of valid `GeoJSON` geometry objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude).", "type": "array", From a3f2ec1356d30d78dcfd1fd51692403933228eab Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Tue, 23 Mar 2021 04:52:49 -0700 Subject: [PATCH 036/210] - fix ModelValidation --- .../data-plane/Microsoft.Maps/Route/preview/1.0/route.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json index 74edc9266d09..1180d47ae071 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json @@ -1677,6 +1677,10 @@ "definitions": { "PointArray": { "properties": { + "type": { + "description": "Specifies the `GeoJSON` geometry type. Must be one of the seven valid GeoJSON geometry types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon and GeometryCollection.", + "type": "string" + }, "geometries": { "type": "array", "items": { From c46e484a62adcf8b3157ec48620394069b51f4a7 Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Tue, 23 Mar 2021 05:19:04 -0700 Subject: [PATCH 037/210] - enable Java and Python generation --- specification/maps/data-plane/readme.java.md | 11 ++++++ specification/maps/data-plane/readme.md | 16 +++++---- .../maps/data-plane/readme.python.md | 34 ++++++++++++++++--- 3 files changed, 50 insertions(+), 11 deletions(-) create mode 100644 specification/maps/data-plane/readme.java.md diff --git a/specification/maps/data-plane/readme.java.md b/specification/maps/data-plane/readme.java.md new file mode 100644 index 000000000000..e71eeddb5bc5 --- /dev/null +++ b/specification/maps/data-plane/readme.java.md @@ -0,0 +1,11 @@ +## Java + +These settings apply only when `--java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(java) +fluent: true +namespace: com.microsoft.azure.maps +license-header: MICROSOFT_MIT_NO_CODEGEN +output-folder: $(azure-libraries-for-java-folder)/azure-maps +``` diff --git a/specification/maps/data-plane/readme.md b/specification/maps/data-plane/readme.md index 61a58d832568..84f39a9e12d6 100644 --- a/specification/maps/data-plane/readme.md +++ b/specification/maps/data-plane/readme.md @@ -103,20 +103,20 @@ This is not used by Autorest itself. ```yaml $(swagger-to-sdk) swagger-to-sdk: - - repo: azure-sdk-for-net - repo: azure-sdk-for-python - repo: azure-sdk-for-java - - repo: azure-sdk-for-go - repo: azure-sdk-for-js + - repo: azure-sdk-for-net + - repo: azure-sdk-for-go ``` -## Go - -See configuration in [readme.go.md](./readme.go.md) - ## Python See configuration in [readme.python.md](./readme.python.md) +## Java + +See configuration in [readme.java.md](./readme.java.md) + ## TypeScript See configuration in [readme.typescript.md](./readme.typescript.md) @@ -124,3 +124,7 @@ See configuration in [readme.typescript.md](./readme.typescript.md) ## CSharp See configuration in [readme.csharp.md](./readme.csharp.md) + +## Go + +See configuration in [readme.go.md](./readme.go.md) diff --git a/specification/maps/data-plane/readme.python.md b/specification/maps/data-plane/readme.python.md index 2983bf197fe7..f47de7404a8c 100644 --- a/specification/maps/data-plane/readme.python.md +++ b/specification/maps/data-plane/readme.python.md @@ -2,16 +2,40 @@ These settings apply only when `--python` is specified on the command line. Please also specify `--python-sdks-folder=`. +Use `--python-mode=update` if you already have a setup.py and just want to update the code itself. -```yaml $(python) +``` yaml $(python) && !$(track2) +python-mode: create python: license-header: MICROSOFT_MIT_NO_VERSION namespace: azure.maps package-name: azure-maps package-version: 1.0-preview clear-output-folder: true +``` +``` yaml $(python) && $(track2) +python-mode: create +license-header: MICROSOFT_MIT_NO_VERSION +namespace: azure.maps +package-name: azure-maps +package-version: 1.0-preview +clear-output-folder: true +``` +``` yaml $(python) && $(python-mode) == 'update' && !$(track2) +python: no-namespace-folders: true - enable-xml: true - vanilla: true - output-folder: $(python-sdks-folder)/maps -``` \ No newline at end of file + output-folder: $(python-sdks-folder)/maps/azure-maps/azure/maps/_generated +``` +``` yaml $(python) && $(python-mode) == 'create' && !$(track2) +python: + basic-setup-py: true + output-folder: $(python-sdks-folder)/maps/azure-maps +``` +``` yaml $(python) && $(python-mode) == 'update' && $(track2) +no-namespace-folders: true +output-folder: $(python-sdks-folder)/maps/azure-maps/azure/maps/_generated +``` +``` yaml $(python) && $(python-mode) == 'create' && $(track2) +basic-setup-py: true +output-folder: $(python-sdks-folder)/maps/azure-maps +``` From 492173c2808016bf00dad047171a20cb0c5fda24 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Tue, 23 Mar 2021 06:48:53 -0700 Subject: [PATCH 038/210] try with new errorDetail. --- .../Microsoft.Maps/Common/preview/1.0/common.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index d7fd51781fbc..e6edad68310f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -63,10 +63,10 @@ "readOnly": true }, "error": { - "$ref": "#/definitions/ODataError" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" }, "warning": { - "$ref": "#/definitions/ODataError" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" } } }, @@ -75,7 +75,7 @@ "description": "This response object is returned when an error occurs in the Maps API.", "properties": { "error": { - "$ref": "#/definitions/ODataError" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" } } }, @@ -188,7 +188,7 @@ "type": "string", "enum": [ "Point", - "MultiPoint", + "cfv", "LineString", "MultiLineString", "Polygon", From f279dc5149eaef856409b3cf31d931bf1711b271 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Tue, 23 Mar 2021 06:53:24 -0700 Subject: [PATCH 039/210] correct paths --- .../Microsoft.Maps/Common/preview/1.0/common.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index e6edad68310f..5fb3b1abf220 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -63,10 +63,10 @@ "readOnly": true }, "error": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" }, "warning": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" } } }, @@ -75,7 +75,7 @@ "description": "This response object is returned when an error occurs in the Maps API.", "properties": { "error": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" } } }, From 00a1be0545a8b560f0759c2f1c740d24bd698afc Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Tue, 23 Mar 2021 08:24:38 -0700 Subject: [PATCH 040/210] revert changes to odataerror. update python sdk. --- .../Common/preview/1.0/common.json | 6 ++-- .../maps/data-plane/readme.python.md | 30 +++++-------------- 2 files changed, 11 insertions(+), 25 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index 5fb3b1abf220..6f15643513ef 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -63,10 +63,10 @@ "readOnly": true }, "error": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" + "$ref": "#/definitions/ODataError" }, "warning": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" + "$ref": "#/definitions/ODataError" } } }, @@ -75,7 +75,7 @@ "description": "This response object is returned when an error occurs in the Maps API.", "properties": { "error": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" + "$ref": "#/definitions/ODataError" } } }, diff --git a/specification/maps/data-plane/readme.python.md b/specification/maps/data-plane/readme.python.md index f47de7404a8c..e7b510f2849e 100644 --- a/specification/maps/data-plane/readme.python.md +++ b/specification/maps/data-plane/readme.python.md @@ -4,38 +4,24 @@ These settings apply only when `--python` is specified on the command line. Please also specify `--python-sdks-folder=`. Use `--python-mode=update` if you already have a setup.py and just want to update the code itself. -``` yaml $(python) && !$(track2) +``` yaml $(python) python-mode: create python: + azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION + payload-flattening-threshold: 2 namespace: azure.maps package-name: azure-maps - package-version: 1.0-preview + package-version: 0.1.0 clear-output-folder: true ``` -``` yaml $(python) && $(track2) -python-mode: create -license-header: MICROSOFT_MIT_NO_VERSION -namespace: azure.maps -package-name: azure-maps -package-version: 1.0-preview -clear-output-folder: true -``` -``` yaml $(python) && $(python-mode) == 'update' && !$(track2) +``` yaml $(python) && $(python-mode) == 'update' python: no-namespace-folders: true - output-folder: $(python-sdks-folder)/maps/azure-maps/azure/maps/_generated + output-folder: $(python-sdks-folder)/maps/azure-maps/azure/maps ``` -``` yaml $(python) && $(python-mode) == 'create' && !$(track2) +``` yaml $(python) && $(python-mode) == 'create' python: basic-setup-py: true output-folder: $(python-sdks-folder)/maps/azure-maps -``` -``` yaml $(python) && $(python-mode) == 'update' && $(track2) -no-namespace-folders: true -output-folder: $(python-sdks-folder)/maps/azure-maps/azure/maps/_generated -``` -``` yaml $(python) && $(python-mode) == 'create' && $(track2) -basic-setup-py: true -output-folder: $(python-sdks-folder)/maps/azure-maps -``` +``` \ No newline at end of file From 11946db89035c137048b071451c1bbe056887ea0 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Tue, 23 Mar 2021 08:56:47 -0700 Subject: [PATCH 041/210] fix typo --- .../data-plane/Microsoft.Maps/Common/preview/1.0/common.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index 6f15643513ef..d7fd51781fbc 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -188,7 +188,7 @@ "type": "string", "enum": [ "Point", - "cfv", + "MultiPoint", "LineString", "MultiLineString", "Polygon", From 9eedf4b89083133804b28e26b5e65c03bad0417c Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Wed, 24 Mar 2021 02:28:45 -0700 Subject: [PATCH 042/210] update error and readonly CoordinateAbbreviated to reuse more. --- .../Alias/preview/1.0/alias.json | 10 ++-- .../Common/preview/1.0/common.json | 58 +------------------ .../DEM/preview/1.0/elevation.json | 10 ++-- .../Microsoft.Maps/Data/preview/1.0/data.json | 14 ++--- .../Dataset/preview/1.0/dataset.json | 10 ++-- .../preview/1.0/dwgconversion.json | 10 ++-- .../preview/1.0/featurestate.json | 12 ++-- .../Feedback/preview/1.0/feedback.json | 10 ++-- .../Geolocation/preview/1.0/geolocation.json | 10 ++-- .../Mobility/preview/1.0/mobility.json | 10 ++-- .../Render/preview/1.0/render.json | 10 ++-- .../Render/preview/2.0/render.json | 10 ++-- .../Route/preview/1.0/route.json | 10 ++-- .../Search/preview/1.0/search.json | 36 ++++++------ .../Spatial/preview/1.0/spatial.json | 10 ++-- .../Tileset/preview/1.0/tileset.json | 10 ++-- .../Timezone/preview/1.0/timezone.json | 10 ++-- .../Traffic/preview/1.0/traffic.json | 10 ++-- .../Microsoft.Maps/WFS/preview/1.0/wfs.json | 10 ++-- .../Weather/preview/1.0/weather.json | 10 ++-- 20 files changed, 113 insertions(+), 167 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json index 0e3a06e2e4f4..2398c9a9b5cd 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json @@ -59,13 +59,13 @@ "400": { "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" }, "headers": { "WWW-Authenticate": { @@ -77,19 +77,19 @@ "403": { "description": "Permission, capacity, or authentication issues.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index d7fd51781fbc..f89314d3237f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -63,46 +63,10 @@ "readOnly": true }, "error": { - "$ref": "#/definitions/ODataError" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" }, "warning": { - "$ref": "#/definitions/ODataError" - } - } - }, - "ODataErrorResponse": { - "type": "object", - "description": "This response object is returned when an error occurs in the Maps API.", - "properties": { - "error": { - "$ref": "#/definitions/ODataError" - } - } - }, - "ODataError": { - "type": "object", - "description": "This object is returned when an error occurs in the Maps API.", - "properties": { - "code": { - "type": "string", - "readOnly": true, - "description": "The ODataError code." - }, - "message": { - "type": "string", - "readOnly": true, - "description": "If available, a human readable description of the error." - }, - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/ODataError" - } - }, - "target": { - "type": "string", - "readOnly": true, - "description": "If available, the target causing the error." + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" } } }, @@ -153,24 +117,6 @@ } } }, - "CoordinateAbbreviatedReadOnly": { - "description": "A location represented as a latitude and longitude.", - "type": "object", - "properties": { - "lat": { - "description": "Latitude property", - "type": "number", - "format": "double", - "readOnly": true - }, - "lon": { - "description": "Longitude property", - "type": "number", - "format": "double", - "readOnly": true - } - } - }, "Geometry": { "description": "This represents the geometry for one or more geographical features (parks, state boundary etc.) and should be a `GeoJSON` compliant type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946) for details.", "type": "object" diff --git a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json index e8732423d0b3..b6e8bce9f5de 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json +++ b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json @@ -43,14 +43,14 @@ "400": { "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" }, "x-ms-error-response": true }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" }, "headers": { "WWW-Authenticate": { @@ -63,21 +63,21 @@ "403": { "description": "Permission, capacity, or authentication issues.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" }, "x-ms-error-response": true }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" }, "x-ms-error-response": true }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" }, "x-ms-error-response": true } diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json index 58e3285ad9ae..f7d3e59b614a 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json @@ -49,13 +49,13 @@ "400": { "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" }, "headers": { "WWW-Authenticate": { @@ -67,19 +67,19 @@ "403": { "description": "Permission, capacity, or authentication issues.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "201Async": { @@ -183,7 +183,7 @@ "200": { "description": "Data upload failed. The uploaded content did not satisfy all the validation checks. The response body contains all the errors that were encountered.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "201": { @@ -251,7 +251,7 @@ "200": { "description": "Data update failed. The uploaded content did not satisfy all the validation checks. The response body contains all the errors that were encountered.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "201": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json index bf6b18f9f6fd..24b7ab125857 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json @@ -50,13 +50,13 @@ "400": { "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" }, "headers": { "WWW-Authenticate": { @@ -68,19 +68,19 @@ "403": { "description": "Permission, capacity, or authentication issues.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "200Async": { diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json index fc1fa3d4d046..fbbd4a50826b 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json @@ -49,13 +49,13 @@ "400": { "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" }, "headers": { "WWW-Authenticate": { @@ -67,19 +67,19 @@ "403": { "description": "Permission, capacity, or authentication issues.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "201Async": { diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json index a692ea2572d3..1efb1c085dc2 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json @@ -49,13 +49,13 @@ "400": { "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" }, "headers": { "WWW-Authenticate": { @@ -67,25 +67,25 @@ "403": { "description": "Permission, capacity, or authentication issues.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "409": { "description": "The request could not be completed due to a conflict with the current state of the resource. Likely caused by a parallel update to the same resource.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, diff --git a/specification/maps/data-plane/Microsoft.Maps/Feedback/preview/1.0/feedback.json b/specification/maps/data-plane/Microsoft.Maps/Feedback/preview/1.0/feedback.json index 179592fd586a..b61d72e7f9ee 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Feedback/preview/1.0/feedback.json +++ b/specification/maps/data-plane/Microsoft.Maps/Feedback/preview/1.0/feedback.json @@ -42,13 +42,13 @@ "400": { "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" }, "headers": { "WWW-Authenticate": { @@ -60,19 +60,19 @@ "403": { "description": "Permission, capacity, or authentication issues.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, diff --git a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json index ead152ce4f8b..21eec05ef576 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json +++ b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json @@ -42,13 +42,13 @@ "400": { "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" }, "headers": { "WWW-Authenticate": { @@ -60,19 +60,19 @@ "403": { "description": "Permission, capacity, or authentication issues.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, diff --git a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json index 1cbbb66a1294..6c46b63b7a7b 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json +++ b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json @@ -41,13 +41,13 @@ "400": { "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" }, "headers": { "WWW-Authenticate": { @@ -59,19 +59,19 @@ "403": { "description": "Permission, capacity, or authentication issues.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json index 2b2d4a8d37c5..053d0912da28 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json @@ -43,13 +43,13 @@ "400": { "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" }, "headers": { "WWW-Authenticate": { @@ -61,19 +61,19 @@ "403": { "description": "Permission, capacity, or authentication issues.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json index 0391a21eb883..3e9f28b5235f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json @@ -43,13 +43,13 @@ "400": { "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" }, "headers": { "WWW-Authenticate": { @@ -61,19 +61,19 @@ "403": { "description": "Permission, capacity, or authentication issues.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json index 1180d47ae071..2b3ef2852924 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json @@ -52,13 +52,13 @@ "400": { "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" }, "headers": { "WWW-Authenticate": { @@ -70,19 +70,19 @@ "403": { "description": "Permission, capacity, or authentication issues.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "202Async": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json index 6b7b411195f7..866d4e535deb 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json @@ -52,13 +52,13 @@ "400": { "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" }, "headers": { "WWW-Authenticate": { @@ -70,19 +70,19 @@ "403": { "description": "Permission, capacity, or authentication issues.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "202Async": { @@ -2070,7 +2070,7 @@ "$ref": "#/definitions/SearchResultAddress" }, "position": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviatedReadOnly" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviated" }, "viewport": { "$ref": "#/definitions/SearchResultViewport" @@ -2186,7 +2186,7 @@ "$ref": "#/definitions/SearchResultAddress" }, "position": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviatedReadOnly" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviated" }, "viewport": { "$ref": "#/definitions/SearchResultViewport" @@ -2288,7 +2288,7 @@ "$ref": "#/definitions/SearchResultAddress" }, "position": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviatedReadOnly" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviated" }, "viewport": { "$ref": "#/definitions/SearchResultViewport" @@ -2398,7 +2398,7 @@ "$ref": "#/definitions/SearchResultAddress" }, "position": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviatedReadOnly" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviated" }, "viewport": { "$ref": "#/definitions/SearchResultViewport" @@ -2491,7 +2491,7 @@ "$ref": "#/definitions/SearchResultAddress" }, "position": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviatedReadOnly" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviated" }, "viewport": { "$ref": "#/definitions/SearchResultViewport" @@ -2697,7 +2697,7 @@ "$ref": "#/definitions/SearchResultAddress" }, "position": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviatedReadOnly" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviated" }, "viewport": { "$ref": "#/definitions/SearchResultViewport" @@ -2805,7 +2805,7 @@ "$ref": "#/definitions/SearchResultAddress" }, "position": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviatedReadOnly" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviated" }, "viewport": { "$ref": "#/definitions/SearchResultViewport" @@ -2910,7 +2910,7 @@ "$ref": "#/definitions/SearchResultAddress" }, "position": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviatedReadOnly" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviated" }, "viewport": { "$ref": "#/definitions/SearchResultViewport" @@ -3233,10 +3233,10 @@ "type": "object", "properties": { "topLeftPoint": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviatedReadOnly" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviated" }, "btmRightPoint": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviatedReadOnly" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviated" } } }, @@ -3254,7 +3254,7 @@ ] }, "position": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviatedReadOnly" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviated" } } }, @@ -3269,10 +3269,10 @@ "type": "string" }, "from": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviatedReadOnly" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviated" }, "to": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviatedReadOnly" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviated" } } }, diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json index 428b991ce9b4..ccb441a10b57 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json @@ -52,13 +52,13 @@ "400": { "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" }, "headers": { "WWW-Authenticate": { @@ -70,19 +70,19 @@ "403": { "description": "Permission, capacity, or authentication issues.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json index 3838c68d7537..dc4aa974bf46 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json @@ -49,13 +49,13 @@ "400": { "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" }, "headers": { "WWW-Authenticate": { @@ -67,19 +67,19 @@ "403": { "description": "Permission, capacity, or authentication issues.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "201Async": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json index 006b54314068..a383c971677e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json +++ b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json @@ -43,13 +43,13 @@ "400": { "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" }, "headers": { "WWW-Authenticate": { @@ -61,19 +61,19 @@ "403": { "description": "Permission, capacity, or authentication issues.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, diff --git a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json index 85045d1f7f03..d8c7048e5b58 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json +++ b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json @@ -52,13 +52,13 @@ "400": { "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" }, "headers": { "WWW-Authenticate": { @@ -70,19 +70,19 @@ "403": { "description": "Permission, capacity, or authentication issues.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json index e116c79b691d..6dc5e2726d15 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json @@ -59,13 +59,13 @@ "400": { "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" }, "headers": { "WWW-Authenticate": { @@ -77,19 +77,19 @@ "403": { "description": "Permission, capacity, or authentication issues.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, diff --git a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json index 515b5cddeb1d..aca36b5728af 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json +++ b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json @@ -41,13 +41,13 @@ "400": { "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" }, "headers": { "WWW-Authenticate": { @@ -59,19 +59,19 @@ "403": { "description": "Permission, capacity, or authentication issues.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/ODataErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, From 6ebcb4242762bfee4083509e3c373ae6973feed0 Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Wed, 24 Mar 2021 02:10:15 -0700 Subject: [PATCH 043/210] - try to build Python SDK --- .../maps/data-plane/readme.python.md | 30 ++++++++++++++----- 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/specification/maps/data-plane/readme.python.md b/specification/maps/data-plane/readme.python.md index e7b510f2849e..f47de7404a8c 100644 --- a/specification/maps/data-plane/readme.python.md +++ b/specification/maps/data-plane/readme.python.md @@ -4,24 +4,38 @@ These settings apply only when `--python` is specified on the command line. Please also specify `--python-sdks-folder=`. Use `--python-mode=update` if you already have a setup.py and just want to update the code itself. -``` yaml $(python) +``` yaml $(python) && !$(track2) python-mode: create python: - azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION - payload-flattening-threshold: 2 namespace: azure.maps package-name: azure-maps - package-version: 0.1.0 + package-version: 1.0-preview clear-output-folder: true ``` -``` yaml $(python) && $(python-mode) == 'update' +``` yaml $(python) && $(track2) +python-mode: create +license-header: MICROSOFT_MIT_NO_VERSION +namespace: azure.maps +package-name: azure-maps +package-version: 1.0-preview +clear-output-folder: true +``` +``` yaml $(python) && $(python-mode) == 'update' && !$(track2) python: no-namespace-folders: true - output-folder: $(python-sdks-folder)/maps/azure-maps/azure/maps + output-folder: $(python-sdks-folder)/maps/azure-maps/azure/maps/_generated ``` -``` yaml $(python) && $(python-mode) == 'create' +``` yaml $(python) && $(python-mode) == 'create' && !$(track2) python: basic-setup-py: true output-folder: $(python-sdks-folder)/maps/azure-maps -``` \ No newline at end of file +``` +``` yaml $(python) && $(python-mode) == 'update' && $(track2) +no-namespace-folders: true +output-folder: $(python-sdks-folder)/maps/azure-maps/azure/maps/_generated +``` +``` yaml $(python) && $(python-mode) == 'create' && $(track2) +basic-setup-py: true +output-folder: $(python-sdks-folder)/maps/azure-maps +``` From fd3172965c9180cead52d2fc85815179cac5cc27 Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Wed, 24 Mar 2021 02:31:31 -0700 Subject: [PATCH 044/210] - try to forcefully build Python SDK --- specification/maps/data-plane/readme.python.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/maps/data-plane/readme.python.md b/specification/maps/data-plane/readme.python.md index f47de7404a8c..2bf5b1f8ef90 100644 --- a/specification/maps/data-plane/readme.python.md +++ b/specification/maps/data-plane/readme.python.md @@ -21,21 +21,21 @@ package-name: azure-maps package-version: 1.0-preview clear-output-folder: true ``` -``` yaml $(python) && $(python-mode) == 'update' && !$(track2) +``` yaml $(python) && $(python-mode) == 'asdf' && !$(track2) python: no-namespace-folders: true output-folder: $(python-sdks-folder)/maps/azure-maps/azure/maps/_generated ``` -``` yaml $(python) && $(python-mode) == 'create' && !$(track2) +``` yaml $(python) && !$(track2) python: basic-setup-py: true output-folder: $(python-sdks-folder)/maps/azure-maps ``` -``` yaml $(python) && $(python-mode) == 'update' && $(track2) +``` yaml $(python) && $(python-mode) == 'asdf' && $(track2) no-namespace-folders: true output-folder: $(python-sdks-folder)/maps/azure-maps/azure/maps/_generated ``` -``` yaml $(python) && $(python-mode) == 'create' && $(track2) +``` yaml $(python) && $(track2) basic-setup-py: true output-folder: $(python-sdks-folder)/maps/azure-maps ``` From f001009aae68aea9aa5bba518736fab6430891a7 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Wed, 24 Mar 2021 02:52:52 -0700 Subject: [PATCH 045/210] Add top level java. --- specification/maps/data-plane/readme.java.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/maps/data-plane/readme.java.md b/specification/maps/data-plane/readme.java.md index e71eeddb5bc5..8e1de50a0bc0 100644 --- a/specification/maps/data-plane/readme.java.md +++ b/specification/maps/data-plane/readme.java.md @@ -4,8 +4,8 @@ These settings apply only when `--java` is specified on the command line. Please also specify `--azure-libraries-for-java-folder=`. ``` yaml $(java) -fluent: true -namespace: com.microsoft.azure.maps -license-header: MICROSOFT_MIT_NO_CODEGEN -output-folder: $(azure-libraries-for-java-folder)/azure-maps +java: + namespace: com.microsoft.azure.maps + license-header: MICROSOFT_MIT_NO_CODEGEN + output-folder: $(azure-libraries-for-java-folder)/azure-maps ``` From 2be8e2c0a033f12e44853880a931fdae84b55ce1 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Wed, 24 Mar 2021 05:18:33 -0700 Subject: [PATCH 046/210] update warnings from lint diff --- .../Microsoft.Maps/Dataset/preview/1.0/dataset.json | 1 + .../FeatureState/preview/1.0/featurestate.json | 6 +++++- .../Microsoft.Maps/Search/preview/1.0/search.json | 6 +++++- .../maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json | 6 +++++- 4 files changed, 16 insertions(+), 3 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json index 24b7ab125857..87ff7abcad7c 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json @@ -280,6 +280,7 @@ "x-publish": true, "description": "**Dataset Import API**\n\n**Applies to**: see pricing [tiers](https://azure.microsoft.com/en-us/pricing/details/azure-maps/).\n
\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API \nand SDK. The Dataset APIs are part of Creator. This API allows the caller to bulk import data into a dataset \nfrom data that was uploaded to the Azure Maps Data service.
\n\n### Submit Import Request\n\nTo import data into your dataset, you will use a `PATCH` request where the `datasetId` query parameter is the \ndataset you want to import your data into, the `udid` query parameter is the data you want to import, and the `type` \nparameter will describe the data type to use for the import data.
\n\nThe Import API is a \n[long-running request](https://aka.ms/am-creator-lrt).", "operationId": "Dataset_ImportPreview", + "x-ms-long-running-operation": true, "x-ms-examples": { "Import data into previously created dataset": { "$ref": "./examples/Dataset_Import.json" diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json index 1efb1c085dc2..06e10de6fdaf 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json @@ -734,7 +734,11 @@ "number", "boolean", "string" - ] + ], + "x-ms-enum": { + "name": "StyleRuleBaseType", + "modelAsString": false + } } } }, diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json index 866d4e535deb..31ebf76f2b9c 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json @@ -3251,7 +3251,11 @@ "enum": [ "main", "minor" - ] + ], + "x-ms-enum": { + "name": "EntryPointType", + "modelAsString": false + } }, "position": { "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviated" diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json index 6dc5e2726d15..81be7afa1700 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json @@ -842,7 +842,11 @@ "Polygon", "MultiPolygon", "GeometryCollection" - ] + ], + "x-ms-enum": { + "name": "GeometryType", + "modelAsString": false + } }, "featureTypes": { "description": "type of features returned", From 376014565fe017947a30de646460a5cb43bd03d8 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Wed, 24 Mar 2021 06:50:24 -0700 Subject: [PATCH 047/210] try java generation with the inline file. --- specification/maps/data-plane/readme.java.md | 11 ----------- specification/maps/data-plane/readme.md | 11 ++++++++++- 2 files changed, 10 insertions(+), 12 deletions(-) delete mode 100644 specification/maps/data-plane/readme.java.md diff --git a/specification/maps/data-plane/readme.java.md b/specification/maps/data-plane/readme.java.md deleted file mode 100644 index 8e1de50a0bc0..000000000000 --- a/specification/maps/data-plane/readme.java.md +++ /dev/null @@ -1,11 +0,0 @@ -## Java - -These settings apply only when `--java` is specified on the command line. -Please also specify `--azure-libraries-for-java-folder=`. - -``` yaml $(java) -java: - namespace: com.microsoft.azure.maps - license-header: MICROSOFT_MIT_NO_CODEGEN - output-folder: $(azure-libraries-for-java-folder)/azure-maps -``` diff --git a/specification/maps/data-plane/readme.md b/specification/maps/data-plane/readme.md index 84f39a9e12d6..a52eb63fc411 100644 --- a/specification/maps/data-plane/readme.md +++ b/specification/maps/data-plane/readme.md @@ -115,7 +115,16 @@ See configuration in [readme.python.md](./readme.python.md) ## Java -See configuration in [readme.java.md](./readme.java.md) +These settings apply only when `--java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(java) +java: + azure-arm: true + namespace: com.microsoft.azure.maps + license-header: MICROSOFT_MIT_NO_CODEGEN + output-folder: $(azure-libraries-for-java-folder)/azure-maps +``` ## TypeScript From 86e54cbe7ce7813016e597fbbbc965bf9f53f3ed Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Fri, 2 Apr 2021 02:39:02 -0700 Subject: [PATCH 048/210] update Java compilation with right tags. --- .../maps/resource-manager/readme.java.md | 61 ++++++++++++++++++ specification/maps/resource-manager/readme.md | 62 ------------------- 2 files changed, 61 insertions(+), 62 deletions(-) create mode 100644 specification/maps/resource-manager/readme.java.md diff --git a/specification/maps/resource-manager/readme.java.md b/specification/maps/resource-manager/readme.java.md new file mode 100644 index 000000000000..b632d46188d0 --- /dev/null +++ b/specification/maps/resource-manager/readme.java.md @@ -0,0 +1,61 @@ +## Java + +These settings apply only when `--java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(java) +azure-arm: true +fluent: true +namespace: com.microsoft.azure.management.maps +license-header: MICROSOFT_MIT_NO_CODEGEN +payload-flattening-threshold: 1 +output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-maps +``` + +### Java multi-api + +``` yaml $(java) && $(multiapi) +batch: + - tag: package-2017-01 + - tag: package-2018-05 + - tag: package-preview-2020-02 +``` + +### Tag: package-preview-2020-02 and java + +These settings apply only when `--tag=package-preview-2020-02 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-preview-2020-02' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.maps.v2020_02_01_preview + output-folder: $(azure-libraries-for-java-folder)/sdk/maps/mgmt-v2020_02_01_preview +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-2017-01 and java + +These settings apply only when `--tag=package-2017-01 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2017-01' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.maps.v2017_01_01_preview + output-folder: $(azure-libraries-for-java-folder)/sdk/maps/mgmt-v2017_01_01_preview +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-2018-05 and java + +These settings apply only when `--tag=package-2018-05 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2018-05' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.maps.v2018_05_01 + output-folder: $(azure-libraries-for-java-folder)/sdk/maps/mgmt-v2018_05_01 +regenerate-manager: true +generate-interface: true +``` diff --git a/specification/maps/resource-manager/readme.md b/specification/maps/resource-manager/readme.md index 37d96a20a3ee..9f0fa7a59e01 100644 --- a/specification/maps/resource-manager/readme.md +++ b/specification/maps/resource-manager/readme.md @@ -118,68 +118,6 @@ See configuration in [readme.python.md](./readme.python.md) See configuration in [readme.go.md](./readme.go.md) -## Java - -These settings apply only when `--java` is specified on the command line. -Please also specify `--azure-libraries-for-java-folder=`. - -``` yaml $(java) -azure-arm: true -fluent: true -namespace: com.microsoft.azure.management.maps -license-header: MICROSOFT_MIT_NO_CODEGEN -payload-flattening-threshold: 1 -output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-maps -``` - -### Java multi-api - -``` yaml $(java) && $(multiapi) -batch: - - tag: package-2017-01 - - tag: package-2018-05 - - tag: package-2020-02 -``` - -### Tag: package-2020-02 and java - -These settings apply only when `--tag=package-2020-02 --java` is specified on the command line. -Please also specify `--azure-libraries-for-java=`. - -``` yaml $(tag) == 'package-2020-02' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.maps.v2020_02_01_preview - output-folder: $(azure-libraries-for-java-folder)/sdk/maps/mgmt-v2020_02_01_preview -regenerate-manager: true -generate-interface: true -``` - -### Tag: package-2017-01 and java - -These settings apply only when `--tag=package-2017-01 --java` is specified on the command line. -Please also specify `--azure-libraries-for-java=`. - -``` yaml $(tag) == 'package-2017-01' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.maps.v2017_01_01_preview - output-folder: $(azure-libraries-for-java-folder)/sdk/maps/mgmt-v2017_01_01_preview -regenerate-manager: true -generate-interface: true -``` - -### Tag: package-2018-05 and java - -These settings apply only when `--tag=package-2018-05 --java` is specified on the command line. -Please also specify `--azure-libraries-for-java=`. - -``` yaml $(tag) == 'package-2018-05' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.maps.v2018_05_01 - output-folder: $(azure-libraries-for-java-folder)/sdk/maps/mgmt-v2018_05_01 -regenerate-manager: true -generate-interface: true -``` - ## Suppression ``` yaml From ec97969b0a060ecf3f77a6a252d07a6241fc90c2 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Mon, 12 Apr 2021 00:57:13 -0700 Subject: [PATCH 049/210] Fix compilation warnings --- .../Common/preview/1.0/common.json | 12 +++-- .../preview/1.0/featurestate.json | 1 + .../Route/preview/1.0/route.json | 2 + .../Traffic/preview/1.0/traffic.json | 20 +------ specification/maps/data-plane/readme.md | 52 +++++++++++++++++-- specification/maps/resource-manager/readme.md | 4 ++ 6 files changed, 63 insertions(+), 28 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index f89314d3237f..4bfb30fbff37 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -215,6 +215,7 @@ ] }, "MultiPointData": { + "type": "object", "description": "Data contained by a `MultiPoint`.", "properties": { "coordinates": { @@ -242,6 +243,7 @@ ] }, "LineStringData": { + "type": "object", "properties": { "coordinates": { "description": "Coordinates for the `LineString` geometry.", @@ -283,6 +285,7 @@ ] }, "MultiPolygonData": { + "type": "object", "properties": { "coordinates": { "description": "Contains a list of valid `GeoJSON` Polygon objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude).", @@ -312,6 +315,7 @@ ] }, "MultiPointStringData": { + "type": "object", "properties": { "type": { "description": "Specifies the `type` for the geometry. Value should always be equal to \"MultiLineString\".", @@ -345,6 +349,7 @@ ] }, "PolygonData": { + "type": "object", "properties": { "coordinates": { "description": "Coordinates for the `Polygon` geometry type.", @@ -371,6 +376,7 @@ ] }, "GeometryCollectionData": { + "type": "object", "properties": { "geometries": { "description": "Contains a list of valid `GeoJSON` geometry objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude).", @@ -411,14 +417,12 @@ "latitude": { "description": "Latitude property", "type": "number", - "format": "double", - "readOnly": true + "format": "double" }, "longitude": { "description": "Longitude property", "type": "number", - "format": "double", - "readOnly": true + "format": "double" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json index 06e10de6fdaf..404c0a5db313 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json @@ -717,6 +717,7 @@ }, "StyleRuleBase": { "description": "contains common properties for numeric, string and boolean style rules.", + "type": "object", "discriminator": "type", "required": [ "keyName", diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json index 2b3ef2852924..26825b7dde11 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json @@ -1676,6 +1676,7 @@ }, "definitions": { "PointArray": { + "type": "object", "properties": { "type": { "description": "Specifies the `GeoJSON` geometry type. Must be one of the seven valid GeoJSON geometry types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon and GeometryCollection.", @@ -1697,6 +1698,7 @@ "description": "Post body parameters for Route directions.", "properties": { "supportingPoints": { + "type": "object", "description": "A GeoJSON Geometry collection representing sequence of coordinates used as input for route reconstruction and for calculating zero or more alternative routes to this reference route.\n - The provided sequence of supporting points is used as input for route reconstruction.\n - The alternative routes are calculated between the origin and destination points specified in the base path parameter locations.\n - If both _minDeviationDistance_ and _minDeviationTime_ are set to zero, then these origin and destination points are\n expected to be at (or very near) the beginning and end of the reference route, respectively.\n - Intermediate locations (_waypoints_) are not supported when using <_supportingPoints_>.\n - The reference route may contain traffic incidents of type _ROAD_CLOSURE_, which are\n ignored for the calculation of the reference route's travel time and traffic delay.", "allOf": [ { diff --git a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json index d8c7048e5b58..6418d53f5753 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json +++ b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json @@ -838,24 +838,6 @@ } }, "definitions": { - "Coordinate": { - "description": "A location represented as a latitude and longitude.", - "type": "object", - "properties": { - "latitude": { - "description": "Latitude property", - "type": "number", - "format": "double", - "readOnly": true - }, - "longitude": { - "description": "Longitude property", - "type": "number", - "format": "double", - "readOnly": true - } - } - }, "TrafficFlowTileResult": { "description": "This image is returned from a successful Traffic Flow Tile call", "type": "string", @@ -914,7 +896,7 @@ "type": "array", "readOnly": true, "items": { - "$ref": "#/definitions/Coordinate" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/Coordinate" } } } diff --git a/specification/maps/data-plane/readme.md b/specification/maps/data-plane/readme.md index a52eb63fc411..f87988fc69f8 100644 --- a/specification/maps/data-plane/readme.md +++ b/specification/maps/data-plane/readme.md @@ -119,11 +119,11 @@ These settings apply only when `--java` is specified on the command line. Please also specify `--azure-libraries-for-java-folder=`. ``` yaml $(java) -java: - azure-arm: true - namespace: com.microsoft.azure.maps - license-header: MICROSOFT_MIT_NO_CODEGEN - output-folder: $(azure-libraries-for-java-folder)/azure-maps +namespace: com.microsoft.azure.maps +license-header: MICROSOFT_MIT_NO_CODEGEN +java: true +payload-flattening-threshold: 0 +output-folder: $(azure-libraries-for-java-folder)/azure-maps ``` ## TypeScript @@ -137,3 +137,45 @@ See configuration in [readme.csharp.md](./readme.csharp.md) ## Go See configuration in [readme.go.md](./readme.go.md) + +## Multi-API/Profile support for AutoRest v3 generators + +AutoRest V3 generators require the use of `--tag=all-api-versions` to select api files. + +This block is updated by an automatic script. Edits may be lost! + +``` yaml $(tag) == 'all-api-versions' /* autogenerated */ +# include the azure profile definitions from the standard location +require: $(this-folder)/../../../profiles/readme.md + +# all the input files across all versions +input-file: + - $(this-folder)/Microsoft.Maps/Alias/preview/1.0/alias.json + - $(this-folder)/Microsoft.Maps/Data/preview/1.0/data.json + - $(this-folder)/Microsoft.Maps/Dataset/preview/1.0/dataset.json + - $(this-folder)/Microsoft.Maps/DEM/preview/1.0/elevation.json + - $(this-folder)/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json + - $(this-folder)/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json + - $(this-folder)/Microsoft.Maps/Feedback/preview/1.0/feedback.json + - $(this-folder)/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json + - $(this-folder)/Microsoft.Maps/Mobility/preview/1.0/mobility.json + - $(this-folder)/Microsoft.Maps/Render/preview/1.0/render.json + - $(this-folder)/Microsoft.Maps/Render/preview/2.0/render.json + #- $(this-folder)/Microsoft.Maps/Route/preview/1.0/route.json + - $(this-folder)/Microsoft.Maps/Search/preview/1.0/search.json + - $(this-folder)/Microsoft.Maps/Spatial/preview/1.0/spatial.json + - $(this-folder)/Microsoft.Maps/Tileset/preview/1.0/tileset.json + - $(this-folder)/Microsoft.Maps/Timezone/preview/1.0/timezone.json + - $(this-folder)/Microsoft.Maps/Traffic/preview/1.0/traffic.json + - $(this-folder)/Microsoft.Maps/Weather/preview/1.0/weather.json + - $(this-folder)/Microsoft.Maps/WFS/preview/1.0/wfs.json + +``` + +If there are files that should not be in the `all-api-versions` set, +uncomment the `exclude-file` section below and add the file paths. + +``` yaml $(tag) == 'all-api-versions' +#exclude-file: +# - $(this-folder)/Microsoft.Example/stable/2010-01-01/somefile.json +``` diff --git a/specification/maps/resource-manager/readme.md b/specification/maps/resource-manager/readme.md index 9f0fa7a59e01..7a90ce6f94d3 100644 --- a/specification/maps/resource-manager/readme.md +++ b/specification/maps/resource-manager/readme.md @@ -118,6 +118,10 @@ See configuration in [readme.python.md](./readme.python.md) See configuration in [readme.go.md](./readme.go.md) +## Java + +See configuration in [readme.java.md](./readme.java.md) + ## Suppression ``` yaml From 11b5d69f376b6a51ed90894ba20e4c9ed0e8a861 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Wed, 14 Apr 2021 05:39:34 -0700 Subject: [PATCH 050/210] Update readme namespace names --- specification/maps/data-plane/readme.csharp.md | 9 ++++----- specification/maps/data-plane/readme.java.md | 9 +++++++++ specification/maps/data-plane/readme.md | 13 ++----------- specification/maps/data-plane/readme.python.md | 16 ++++++++-------- .../maps/data-plane/readme.typescript.md | 5 +++-- 5 files changed, 26 insertions(+), 26 deletions(-) create mode 100644 specification/maps/data-plane/readme.java.md diff --git a/specification/maps/data-plane/readme.csharp.md b/specification/maps/data-plane/readme.csharp.md index 02f542097e75..fa1c55a0fb09 100644 --- a/specification/maps/data-plane/readme.csharp.md +++ b/specification/maps/data-plane/readme.csharp.md @@ -5,10 +5,9 @@ Please also specify `--csharp-sdks-folder=`. - -``` yaml $(java) -namespace: com.microsoft.azure.maps -license-header: MICROSOFT_MIT_NO_CODEGEN -java: true -payload-flattening-threshold: 0 -output-folder: $(azure-libraries-for-java-folder)/azure-maps -``` +See configuration in [readme.java.md](./readme.java.md) ## TypeScript @@ -161,7 +152,7 @@ input-file: - $(this-folder)/Microsoft.Maps/Mobility/preview/1.0/mobility.json - $(this-folder)/Microsoft.Maps/Render/preview/1.0/render.json - $(this-folder)/Microsoft.Maps/Render/preview/2.0/render.json - #- $(this-folder)/Microsoft.Maps/Route/preview/1.0/route.json + - $(this-folder)/Microsoft.Maps/Route/preview/1.0/route.json - $(this-folder)/Microsoft.Maps/Search/preview/1.0/search.json - $(this-folder)/Microsoft.Maps/Spatial/preview/1.0/spatial.json - $(this-folder)/Microsoft.Maps/Tileset/preview/1.0/tileset.json diff --git a/specification/maps/data-plane/readme.python.md b/specification/maps/data-plane/readme.python.md index 2bf5b1f8ef90..09a0794fc81f 100644 --- a/specification/maps/data-plane/readme.python.md +++ b/specification/maps/data-plane/readme.python.md @@ -8,34 +8,34 @@ Use `--python-mode=update` if you already have a setup.py and just want to updat python-mode: create python: license-header: MICROSOFT_MIT_NO_VERSION - namespace: azure.maps - package-name: azure-maps + namespace: azure.maps.service + package-name: azure-maps-service package-version: 1.0-preview clear-output-folder: true ``` ``` yaml $(python) && $(track2) python-mode: create license-header: MICROSOFT_MIT_NO_VERSION -namespace: azure.maps -package-name: azure-maps +namespace: azure.maps.service +package-name: azure-maps-service package-version: 1.0-preview clear-output-folder: true ``` ``` yaml $(python) && $(python-mode) == 'asdf' && !$(track2) python: no-namespace-folders: true - output-folder: $(python-sdks-folder)/maps/azure-maps/azure/maps/_generated + output-folder: $(python-sdks-folder)/maps/azure-maps-service/azure/maps/_generated ``` ``` yaml $(python) && !$(track2) python: basic-setup-py: true - output-folder: $(python-sdks-folder)/maps/azure-maps + output-folder: $(python-sdks-folder)/maps/azure-maps-service ``` ``` yaml $(python) && $(python-mode) == 'asdf' && $(track2) no-namespace-folders: true -output-folder: $(python-sdks-folder)/maps/azure-maps/azure/maps/_generated +output-folder: $(python-sdks-folder)/maps/azure-maps-service/azure/maps/_generated ``` ``` yaml $(python) && $(track2) basic-setup-py: true -output-folder: $(python-sdks-folder)/maps/azure-maps +output-folder: $(python-sdks-folder)/maps/azure-maps-service ``` diff --git a/specification/maps/data-plane/readme.typescript.md b/specification/maps/data-plane/readme.typescript.md index b6fbc478fc4f..84f3d47cac18 100644 --- a/specification/maps/data-plane/readme.typescript.md +++ b/specification/maps/data-plane/readme.typescript.md @@ -5,8 +5,9 @@ Please also specify `--typescript-sdks-folder= Date: Wed, 14 Apr 2021 05:52:12 -0700 Subject: [PATCH 051/210] Make enums be modelAsString: true --- .../Microsoft.Maps/FeatureState/preview/1.0/featurestate.json | 2 +- .../data-plane/Microsoft.Maps/Search/preview/1.0/search.json | 2 +- .../maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json index 404c0a5db313..0693183f52e5 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json @@ -738,7 +738,7 @@ ], "x-ms-enum": { "name": "StyleRuleBaseType", - "modelAsString": false + "modelAsString": true } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json index 31ebf76f2b9c..6bb8aa1829bf 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json @@ -3254,7 +3254,7 @@ ], "x-ms-enum": { "name": "EntryPointType", - "modelAsString": false + "modelAsString": true } }, "position": { diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json index 81be7afa1700..4485482ed51f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json @@ -845,7 +845,7 @@ ], "x-ms-enum": { "name": "GeometryType", - "modelAsString": false + "modelAsString": true } }, "featureTypes": { From c3264dc06a98cd72dbcb89ee47f348fef7405dec Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Thu, 15 Apr 2021 05:03:00 -0700 Subject: [PATCH 052/210] Add x-ms-error-response to error responses --- .../Alias/preview/1.0/alias.json | 15 ++++++++++----- .../Microsoft.Maps/Data/preview/1.0/data.json | 18 ++++++++++++------ .../Dataset/preview/1.0/dataset.json | 15 ++++++++++----- .../preview/1.0/dwgconversion.json | 15 ++++++++++----- .../FeatureState/preview/1.0/featurestate.json | 18 ++++++++++++------ .../Feedback/preview/1.0/feedback.json | 15 ++++++++++----- .../Geolocation/preview/1.0/geolocation.json | 15 ++++++++++----- .../Mobility/preview/1.0/mobility.json | 15 ++++++++++----- .../Render/preview/1.0/render.json | 15 ++++++++++----- .../Render/preview/2.0/render.json | 15 ++++++++++----- .../Route/preview/1.0/route.json | 15 ++++++++++----- .../Search/preview/1.0/search.json | 15 ++++++++++----- .../Spatial/preview/1.0/spatial.json | 15 ++++++++++----- .../Tileset/preview/1.0/tileset.json | 15 ++++++++++----- .../Timezone/preview/1.0/timezone.json | 15 ++++++++++----- .../Traffic/preview/1.0/traffic.json | 15 ++++++++++----- .../Microsoft.Maps/WFS/preview/1.0/wfs.json | 15 ++++++++++----- .../Weather/preview/1.0/weather.json | 15 ++++++++++----- 18 files changed, 184 insertions(+), 92 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json index 2398c9a9b5cd..122eae9cc749 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json @@ -60,7 +60,8 @@ "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", @@ -72,25 +73,29 @@ "type": "string", "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" } - } + }, + "x-ms-error-response": true }, "403": { "description": "Permission, capacity, or authentication issues.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true } }, "parameters": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json index f7d3e59b614a..a99c4b4639ee 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json @@ -50,7 +50,8 @@ "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", @@ -62,7 +63,8 @@ "type": "string", "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" } - } + }, + "x-ms-error-response": true }, "403": { "description": "Permission, capacity, or authentication issues.", @@ -74,13 +76,15 @@ "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "201Async": { "description": "The resource has been created successfully.", @@ -184,7 +188,8 @@ "description": "Data upload failed. The uploaded content did not satisfy all the validation checks. The response body contains all the errors that were encountered.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "201": { "$ref": "#/responses/201Async" @@ -252,7 +257,8 @@ "description": "Data update failed. The uploaded content did not satisfy all the validation checks. The response body contains all the errors that were encountered.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "201": { "$ref": "#/responses/201Async" diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json index 87ff7abcad7c..6f2256aba783 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json @@ -51,7 +51,8 @@ "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", @@ -63,25 +64,29 @@ "type": "string", "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" } - } + }, + "x-ms-error-response": true }, "403": { "description": "Permission, capacity, or authentication issues.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "200Async": { "description": "The operation's status response.", diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json index fbbd4a50826b..18ad8c925e8c 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json @@ -50,7 +50,8 @@ "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", @@ -62,25 +63,29 @@ "type": "string", "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" } - } + }, + "x-ms-error-response": true }, "403": { "description": "Permission, capacity, or authentication issues.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "201Async": { "description": "The resource has been created successfully.", diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json index 0693183f52e5..51b8d24b229a 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json @@ -50,7 +50,8 @@ "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", @@ -62,31 +63,36 @@ "type": "string", "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" } - } + }, + "x-ms-error-response": true }, "403": { "description": "Permission, capacity, or authentication issues.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "409": { "description": "The request could not be completed due to a conflict with the current state of the resource. Likely caused by a parallel update to the same resource.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true } }, "parameters": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Feedback/preview/1.0/feedback.json b/specification/maps/data-plane/Microsoft.Maps/Feedback/preview/1.0/feedback.json index b61d72e7f9ee..a898bcdfb82f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Feedback/preview/1.0/feedback.json +++ b/specification/maps/data-plane/Microsoft.Maps/Feedback/preview/1.0/feedback.json @@ -43,7 +43,8 @@ "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", @@ -55,25 +56,29 @@ "type": "string", "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" } - } + }, + "x-ms-error-response": true }, "403": { "description": "Permission, capacity, or authentication issues.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true } }, "parameters": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json index 21eec05ef576..4987a7c79901 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json +++ b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json @@ -43,7 +43,8 @@ "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", @@ -55,25 +56,29 @@ "type": "string", "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" } - } + }, + "x-ms-error-response": true }, "403": { "description": "Permission, capacity, or authentication issues.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true } }, "parameters": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json index 6c46b63b7a7b..a502e1f1aa12 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json +++ b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json @@ -42,7 +42,8 @@ "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", @@ -54,25 +55,29 @@ "type": "string", "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" } - } + }, + "x-ms-error-response": true }, "403": { "description": "Permission, capacity, or authentication issues.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true } }, "parameters": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json index 053d0912da28..34d18a5628cc 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json @@ -44,7 +44,8 @@ "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", @@ -56,25 +57,29 @@ "type": "string", "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" } - } + }, + "x-ms-error-response": true }, "403": { "description": "Permission, capacity, or authentication issues.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true } }, "parameters": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json index 3e9f28b5235f..cc711e32b814 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json @@ -44,7 +44,8 @@ "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", @@ -56,25 +57,29 @@ "type": "string", "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" } - } + }, + "x-ms-error-response": true }, "403": { "description": "Permission, capacity, or authentication issues.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true } }, "parameters": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json index 26825b7dde11..ffca0bfcb7d0 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json @@ -53,7 +53,8 @@ "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", @@ -65,25 +66,29 @@ "type": "string", "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" } - } + }, + "x-ms-error-response": true }, "403": { "description": "Permission, capacity, or authentication issues.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "202Async": { "description": "**Supported only for async request.**\nRequest Accepted: The request has been accepted for processing. Please use the URL in the Location Header to retry or access the results.", diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json index 6bb8aa1829bf..78c2901120c5 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json @@ -53,7 +53,8 @@ "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", @@ -65,25 +66,29 @@ "type": "string", "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" } - } + }, + "x-ms-error-response": true }, "403": { "description": "Permission, capacity, or authentication issues.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "202Async": { "description": "**Supported only for async request.**\nRequest Accepted: The request has been accepted for processing. Please use the URL in the Location Header to retry or access the results.", diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json index ccb441a10b57..c043503772f0 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json @@ -53,7 +53,8 @@ "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", @@ -65,25 +66,29 @@ "type": "string", "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" } - } + }, + "x-ms-error-response": true }, "403": { "description": "Permission, capacity, or authentication issues.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true } }, "parameters": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json index dc4aa974bf46..1c3cec7f1eb8 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json @@ -50,7 +50,8 @@ "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", @@ -62,25 +63,29 @@ "type": "string", "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" } - } + }, + "x-ms-error-response": true }, "403": { "description": "Permission, capacity, or authentication issues.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "201Async": { "description": "The resource has been created successfully.", diff --git a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json index a383c971677e..aeea044642de 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json +++ b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json @@ -44,7 +44,8 @@ "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", @@ -56,25 +57,29 @@ "type": "string", "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" } - } + }, + "x-ms-error-response": true }, "403": { "description": "Permission, capacity, or authentication issues.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true } }, "parameters": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json index 6418d53f5753..f5e393ada0e2 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json +++ b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json @@ -53,7 +53,8 @@ "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", @@ -65,25 +66,29 @@ "type": "string", "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" } - } + }, + "x-ms-error-response": true }, "403": { "description": "Permission, capacity, or authentication issues.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true } }, "parameters": { diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json index 4485482ed51f..4a68063f32e2 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json @@ -60,7 +60,8 @@ "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", @@ -72,25 +73,29 @@ "type": "string", "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" } - } + }, + "x-ms-error-response": true }, "403": { "description": "Permission, capacity, or authentication issues.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true } }, "parameters": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json index aca36b5728af..652a4950e178 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json +++ b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json @@ -42,7 +42,8 @@ "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", @@ -54,25 +55,29 @@ "type": "string", "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" } - } + }, + "x-ms-error-response": true }, "403": { "description": "Permission, capacity, or authentication issues.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true } }, "parameters": { From 8319bd97a5a4581eaf95988cf7d4db03ef3e5336 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Fri, 16 Apr 2021 07:33:50 -0700 Subject: [PATCH 053/210] Remove feedback.json and feedback reference from readme.md. --- .../Feedback/preview/1.0/feedback.json | 562 ------------------ specification/maps/data-plane/readme.md | 2 - 2 files changed, 564 deletions(-) delete mode 100644 specification/maps/data-plane/Microsoft.Maps/Feedback/preview/1.0/feedback.json diff --git a/specification/maps/data-plane/Microsoft.Maps/Feedback/preview/1.0/feedback.json b/specification/maps/data-plane/Microsoft.Maps/Feedback/preview/1.0/feedback.json deleted file mode 100644 index a898bcdfb82f..000000000000 --- a/specification/maps/data-plane/Microsoft.Maps/Feedback/preview/1.0/feedback.json +++ /dev/null @@ -1,562 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Azure Maps Feedback Service", - "version": "1.0" - }, - "host": "atlas.microsoft.com", - "schemes": [ - "https" - ], - "consumes": [], - "produces": [ - "application/json", - "application/xml" - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", - "scopes": { - "user_impersonation": "Impersonates a user's Azure Active Directory account." - } - }, - "apiKeyQuery": { - "type": "apiKey", - "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", - "name": "subscription-key", - "in": "query" - } - }, - "security": [ - { - "azure_auth": [] - }, - { - "apiKeyQuery": [] - } - ], - "responses": { - "400": { - "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "401": { - "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "headers": { - "WWW-Authenticate": { - "type": "string", - "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" - } - }, - "x-ms-error-response": true - }, - "403": { - "description": "Permission, capacity, or authentication issues.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "404": { - "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "500": { - "description": "An error occurred while processing the request. Please try again later.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - } - }, - "parameters": { - "ClientId": { - "name": "x-ms-client-id", - "description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.", - "type": "string", - "in": "header", - "required": false, - "x-ms-parameter-location": "client" - }, - "SubscriptionKey": { - "name": "subscription-key", - "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", - "type": "string", - "in": "query", - "required": false, - "x-ms-parameter-location": "client" - }, - "ApiVersion": { - "name": "api-version", - "description": "Version number of Azure Maps API. Current version is 1.0", - "type": "string", - "in": "query", - "required": true, - "default": "1.0", - "x-ms-parameter-location": "client" - } - }, - "paths": {}, - "definitions": { - "GeoJsonBoundingBox": { - "description": "Bounding Box. The bounding box is an array of length 2*n where n is\nthe number of dimensions represented in the contained geometries,\nwith all axes of the most southwesterly point followed by all axes\nof the more northeasterly point. The axes order of a bbox follows\nthe axes order of geometries.\n\nThe edges of the bounding box follow lines of constant longitude,\nlatitude, and elevation.", - "type": "array", - "items": { - "type": "number", - "format": "double" - } - }, - "FeedbackStatusResponse": { - "type": "object", - "required": [ - "formatVersion", - "feedbackId", - "status", - "createDate", - "featureType", - "action", - "request" - ], - "properties": { - "formatVersion": { - "type": "string" - }, - "feedbackId": { - "type": "string" - }, - "status": { - "type": "string" - }, - "createDate": { - "type": "string" - }, - "featureType": { - "type": "string" - }, - "action": { - "type": "string" - }, - "request": { - "description": "The original request object.", - "type": "object" - } - } - }, - "FeedbackAddPoiRequestBody": { - "type": "object", - "required": [ - "location", - "bbox", - "feature" - ], - "properties": { - "isMock": { - "type": "boolean" - }, - "location": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJSONPosition" - }, - "bbox": { - "$ref": "#/definitions/GeoJsonBoundingBox" - }, - "comments": { - "type": "string" - }, - "contactInformation": { - "$ref": "#/definitions/FeedbackContactInformation" - }, - "feature": { - "$ref": "#/definitions/FeedbackPoiFeature" - } - } - }, - "FeedbackFixPoiRequestBody": { - "type": "object", - "required": [ - "location", - "bbox", - "feature" - ], - "properties": { - "isMock": { - "type": "boolean" - }, - "location": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJSONPosition" - }, - "bbox": { - "$ref": "#/definitions/GeoJsonBoundingBox" - }, - "comments": { - "type": "string" - }, - "contactInformation": { - "$ref": "#/definitions/FeedbackContactInformation" - }, - "feature": { - "$ref": "#/definitions/FeedbackPoiUpdateFeature" - } - } - }, - "FeedbackDeletePoiRequestBody": { - "type": "object", - "required": [ - "location", - "bbox", - "feature" - ], - "properties": { - "isMock": { - "type": "boolean" - }, - "location": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJSONPosition" - }, - "bbox": { - "$ref": "#/definitions/GeoJsonBoundingBox" - }, - "comments": { - "type": "string" - }, - "contactInformation": { - "$ref": "#/definitions/FeedbackContactInformation" - }, - "feature": { - "$ref": "#/definitions/FeedbackPoiFeature" - } - } - }, - "FeedbackPoiFeature": { - "type": "object", - "required": [ - "name", - "category", - "geometry" - ], - "properties": { - "featureId": { - "type": "string" - }, - "name": { - "type": "string" - }, - "category": { - "type": "string" - }, - "subcategory": { - "type": "string" - }, - "emailAddress": { - "type": "string" - }, - "faxNumber": { - "type": "string" - }, - "telephoneNumber": { - "type": "string" - }, - "website": { - "type": "string" - }, - "houseNumber": { - "type": "string" - }, - "streetName": { - "type": "string" - }, - "city": { - "type": "string" - }, - "postCode": { - "type": "string" - }, - "stateName": { - "type": "string" - }, - "country": { - "type": "string" - }, - "geometry": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/Point" - } - } - }, - "FeedbackPoiUpdateFeature": { - "type": "object", - "required": [ - "name", - "category", - "geometry" - ], - "properties": { - "featureId": { - "type": "string" - }, - "name": { - "$ref": "#/definitions/FeedbackStringFieldUpdate" - }, - "category": { - "$ref": "#/definitions/FeedbackStringFieldUpdate" - }, - "subcategory": { - "$ref": "#/definitions/FeedbackStringFieldUpdate" - }, - "emailAddress": { - "$ref": "#/definitions/FeedbackStringFieldUpdate" - }, - "faxNumber": { - "$ref": "#/definitions/FeedbackStringFieldUpdate" - }, - "telephoneNumber": { - "$ref": "#/definitions/FeedbackStringFieldUpdate" - }, - "website": { - "$ref": "#/definitions/FeedbackStringFieldUpdate" - }, - "houseNumber": { - "$ref": "#/definitions/FeedbackStringFieldUpdate" - }, - "streetName": { - "$ref": "#/definitions/FeedbackStringFieldUpdate" - }, - "city": { - "$ref": "#/definitions/FeedbackStringFieldUpdate" - }, - "postCode": { - "$ref": "#/definitions/FeedbackStringFieldUpdate" - }, - "stateName": { - "$ref": "#/definitions/FeedbackStringFieldUpdate" - }, - "country": { - "$ref": "#/definitions/FeedbackStringFieldUpdate" - }, - "geometry": { - "$ref": "#/definitions/FeedbackGeometryFieldUpdate" - } - } - }, - "FeedbackAddAddressRequestBody": { - "type": "object", - "required": [ - "location", - "bbox", - "feature" - ], - "properties": { - "isMock": { - "type": "boolean" - }, - "location": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJSONPosition" - }, - "bbox": { - "$ref": "#/definitions/GeoJsonBoundingBox" - }, - "comments": { - "type": "string" - }, - "contactInformation": { - "$ref": "#/definitions/FeedbackContactInformation" - }, - "feature": { - "$ref": "#/definitions/FeedbackAddressFeature" - } - } - }, - "FeedbackFixAddressRequestBody": { - "type": "object", - "required": [ - "location", - "bbox", - "feature" - ], - "properties": { - "isMock": { - "type": "boolean" - }, - "location": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJSONPosition" - }, - "bbox": { - "$ref": "#/definitions/GeoJsonBoundingBox" - }, - "comments": { - "type": "string" - }, - "contactInformation": { - "$ref": "#/definitions/FeedbackContactInformation" - }, - "feature": { - "$ref": "#/definitions/FeedbackAddressUpdateFeature" - } - } - }, - "FeedbackDeleteAddressRequestBody": { - "type": "object", - "required": [ - "location", - "bbox", - "feature" - ], - "properties": { - "isMock": { - "type": "boolean" - }, - "location": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJSONPosition" - }, - "bbox": { - "$ref": "#/definitions/GeoJsonBoundingBox" - }, - "comments": { - "type": "string" - }, - "contactInformation": { - "$ref": "#/definitions/FeedbackContactInformation" - }, - "feature": { - "$ref": "#/definitions/FeedbackAddressFeature" - } - } - }, - "FeedbackAddressFeature": { - "type": "object", - "required": [ - "houseNumber", - "streetName", - "city", - "postCode", - "geometry" - ], - "properties": { - "featureId": { - "type": "string" - }, - "houseNumber": { - "type": "string" - }, - "streetName": { - "type": "string" - }, - "city": { - "type": "string" - }, - "postCode": { - "type": "string" - }, - "stateName": { - "type": "string" - }, - "country": { - "type": "string" - }, - "geometry": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/Point" - } - } - }, - "FeedbackAddressUpdateFeature": { - "type": "object", - "required": [ - "houseNumber", - "streetName", - "city", - "postCode", - "geometry" - ], - "properties": { - "featureId": { - "type": "string" - }, - "houseNumber": { - "$ref": "#/definitions/FeedbackStringFieldUpdate" - }, - "streetName": { - "$ref": "#/definitions/FeedbackStringFieldUpdate" - }, - "city": { - "$ref": "#/definitions/FeedbackStringFieldUpdate" - }, - "postCode": { - "$ref": "#/definitions/FeedbackStringFieldUpdate" - }, - "stateName": { - "$ref": "#/definitions/FeedbackStringFieldUpdate" - }, - "country": { - "$ref": "#/definitions/FeedbackStringFieldUpdate" - }, - "geometry": { - "$ref": "#/definitions/FeedbackGeometryFieldUpdate" - } - } - }, - "FeedbackFixOtherRequestBody": { - "type": "object", - "required": [ - "location", - "bbox" - ], - "properties": { - "isMock": { - "type": "boolean" - }, - "location": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJSONPosition" - }, - "bbox": { - "$ref": "#/definitions/GeoJsonBoundingBox" - }, - "comments": { - "type": "string" - }, - "contactInformation": { - "$ref": "#/definitions/FeedbackContactInformation" - } - } - }, - "FeedbackContactInformation": { - "type": "object", - "properties": { - "emailAddress": { - "type": "string" - } - } - }, - "FeedbackStringFieldUpdate": { - "type": "object", - "properties": { - "current": { - "type": "string" - }, - "proposed": { - "type": "string" - } - } - }, - "FeedbackGeometryFieldUpdate": { - "type": "object", - "properties": { - "current": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/Geometry" - }, - "proposed": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/Geometry" - } - } - } - } -} diff --git a/specification/maps/data-plane/readme.md b/specification/maps/data-plane/readme.md index c2d79371f05e..b84179740363 100644 --- a/specification/maps/data-plane/readme.md +++ b/specification/maps/data-plane/readme.md @@ -79,7 +79,6 @@ input-file: - Microsoft.Maps/DEM/preview/1.0/elevation.json - Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json - Microsoft.Maps/FeatureState/preview/1.0/featurestate.json - - Microsoft.Maps/Feedback/preview/1.0/feedback.json - Microsoft.Maps/Geolocation/preview/1.0/geolocation.json - Microsoft.Maps/Mobility/preview/1.0/mobility.json - Microsoft.Maps/Render/preview/1.0/render.json @@ -147,7 +146,6 @@ input-file: - $(this-folder)/Microsoft.Maps/DEM/preview/1.0/elevation.json - $(this-folder)/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json - $(this-folder)/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json - - $(this-folder)/Microsoft.Maps/Feedback/preview/1.0/feedback.json - $(this-folder)/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json - $(this-folder)/Microsoft.Maps/Mobility/preview/1.0/mobility.json - $(this-folder)/Microsoft.Maps/Render/preview/1.0/render.json From ff363f98ccbce545fa7807458e137d2d9d4f4701 Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Thu, 15 Apr 2021 07:09:43 -0700 Subject: [PATCH 054/210] Fix "security" requirement object to have valid scope for OAuth2 security scheme type --- .../data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json | 4 +++- .../data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json | 4 +++- .../Microsoft.Maps/Dataset/preview/1.0/dataset.json | 4 +++- .../DwgConversion/preview/1.0/dwgconversion.json | 4 +++- .../Microsoft.Maps/FeatureState/preview/1.0/featurestate.json | 4 +++- .../Microsoft.Maps/Geolocation/preview/1.0/geolocation.json | 4 +++- .../Microsoft.Maps/Mobility/preview/1.0/mobility.json | 4 +++- .../data-plane/Microsoft.Maps/Render/preview/1.0/render.json | 4 +++- .../data-plane/Microsoft.Maps/Render/preview/2.0/render.json | 4 +++- .../data-plane/Microsoft.Maps/Route/preview/1.0/route.json | 4 +++- .../data-plane/Microsoft.Maps/Search/preview/1.0/search.json | 4 +++- .../Microsoft.Maps/Spatial/preview/1.0/spatial.json | 4 +++- .../Microsoft.Maps/Tileset/preview/1.0/tileset.json | 4 +++- .../Microsoft.Maps/Timezone/preview/1.0/timezone.json | 4 +++- .../Microsoft.Maps/Traffic/preview/1.0/traffic.json | 4 +++- .../maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json | 4 +++- .../Microsoft.Maps/Weather/preview/1.0/weather.json | 4 +++- 17 files changed, 51 insertions(+), 17 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json index 122eae9cc749..0e395c1fdc78 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json @@ -40,7 +40,9 @@ }, "security": [ { - "azure_auth": [] + "azure_auth": [ + "user_impersonation" + ] }, { "apiKeyQuery": [] diff --git a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json index b6e8bce9f5de..5329615645e8 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json +++ b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json @@ -33,7 +33,9 @@ }, "security": [ { - "azure_auth": [] + "azure_auth": [ + "user_impersonation" + ] }, { "apiKeyQuery": [] diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json index 6f2256aba783..887281684f84 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json @@ -40,7 +40,9 @@ }, "security": [ { - "azure_auth": [] + "azure_auth": [ + "user_impersonation" + ] }, { "apiKeyQuery": [] diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json index 18ad8c925e8c..217509ea4752 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json @@ -39,7 +39,9 @@ }, "security": [ { - "azure_auth": [] + "azure_auth": [ + "user_impersonation" + ] }, { "apiKeyQuery": [] diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json index 51b8d24b229a..4ea61f257683 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json @@ -39,7 +39,9 @@ }, "security": [ { - "azure_auth": [] + "azure_auth": [ + "user_impersonation" + ] }, { "apiKeyQuery": [] diff --git a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json index 4987a7c79901..927f2c0f24c4 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json +++ b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json @@ -32,7 +32,9 @@ }, "security": [ { - "azure_auth": [] + "azure_auth": [ + "user_impersonation" + ] }, { "apiKeyQuery": [] diff --git a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json index a502e1f1aa12..5b7fba9de4b6 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json +++ b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json @@ -31,7 +31,9 @@ }, "security": [ { - "azure_auth": [] + "azure_auth": [ + "user_impersonation" + ] }, { "apiKeyQuery": [] diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json index 34d18a5628cc..d87e81517285 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json @@ -33,7 +33,9 @@ }, "security": [ { - "azure_auth": [] + "azure_auth": [ + "user_impersonation" + ] }, { "apiKeyQuery": [] diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json index cc711e32b814..ee7b2fc4cad3 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json @@ -33,7 +33,9 @@ }, "security": [ { - "azure_auth": [] + "azure_auth": [ + "user_impersonation" + ] }, { "apiKeyQuery": [] diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json index ffca0bfcb7d0..7cf2d7313d3b 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json @@ -33,7 +33,9 @@ }, "security": [ { - "azure_auth": [] + "azure_auth": [ + "user_impersonation" + ] }, { "apiKeyQuery": [] diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json index 78c2901120c5..bf9742f7462a 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json @@ -33,7 +33,9 @@ }, "security": [ { - "azure_auth": [] + "azure_auth": [ + "user_impersonation" + ] }, { "apiKeyQuery": [] diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json index c043503772f0..74eec8829e66 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json @@ -33,7 +33,9 @@ }, "security": [ { - "azure_auth": [] + "azure_auth": [ + "user_impersonation" + ] }, { "apiKeyQuery": [] diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json index 1c3cec7f1eb8..82f3ac6703a6 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json @@ -39,7 +39,9 @@ }, "security": [ { - "azure_auth": [] + "azure_auth": [ + "user_impersonation" + ] }, { "apiKeyQuery": [] diff --git a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json index aeea044642de..2dea98a2f5a3 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json +++ b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json @@ -33,7 +33,9 @@ }, "security": [ { - "azure_auth": [] + "azure_auth": [ + "user_impersonation" + ] }, { "apiKeyQuery": [] diff --git a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json index f5e393ada0e2..1f99c49786ab 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json +++ b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json @@ -33,7 +33,9 @@ }, "security": [ { - "azure_auth": [] + "azure_auth": [ + "user_impersonation" + ] }, { "apiKeyQuery": [] diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json index 4a68063f32e2..6d518148511f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json @@ -40,7 +40,9 @@ }, "security": [ { - "azure_auth": [] + "azure_auth": [ + "user_impersonation" + ] }, { "apiKeyQuery": [] diff --git a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json index 652a4950e178..2a7cecc7b3ed 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json +++ b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json @@ -31,7 +31,9 @@ }, "security": [ { - "azure_auth": [] + "azure_auth": [ + "user_impersonation" + ] }, { "apiKeyQuery": [] From 35d9c73c2473b8ca1a88f3f6ba310711a34c45e4 Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Thu, 15 Apr 2021 07:59:50 -0700 Subject: [PATCH 055/210] Fix "security" requirement object to have valid scope for OAuth2 security scheme type - add missing file --- .../maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json index a99c4b4639ee..041249e08d6e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json @@ -39,7 +39,9 @@ }, "security": [ { - "azure_auth": [] + "azure_auth": [ + "user_impersonation" + ] }, { "apiKeyQuery": [] From 7fe5b31a94f798189ddd7eeab7fc7dbd2584e997 Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Fri, 16 Apr 2021 04:39:16 -0700 Subject: [PATCH 056/210] Use common client parameters - part 1 --- .../Alias/preview/1.0/alias.json | 33 +--- .../Common/preview/1.0/common.json | 14 +- .../DEM/preview/1.0/elevation.json | 88 +++-------- .../Microsoft.Maps/Data/preview/1.0/data.json | 33 ++-- .../Dataset/preview/1.0/dataset.json | 17 +- .../preview/1.0/dwgconversion.json | 19 ++- .../preview/1.0/featurestate.json | 33 ++-- .../Geolocation/preview/1.0/geolocation.json | 56 +------ .../Mobility/preview/1.0/mobility.json | 149 ++++++------------ .../Render/preview/1.0/render.json | 76 +++------ .../Render/preview/2.0/render.json | 31 +--- .../Route/preview/1.0/route.json | 80 ++-------- 12 files changed, 175 insertions(+), 454 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json index 0e395c1fdc78..0d95175ff05c 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json @@ -101,23 +101,6 @@ } }, "parameters": { - "SubscriptionKey": { - "name": "subscription-key", - "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", - "type": "string", - "in": "query", - "required": false, - "x-ms-parameter-location": "client" - }, - "ApiVersion": { - "name": "api-version", - "description": "Version number of Azure Maps API. Current version is 1.0", - "type": "string", - "in": "query", - "required": true, - "default": "1.0", - "x-ms-parameter-location": "client" - }, "CreateResourceId": { "name": "resourceId", "description": "The unique id that references a resource to be aliased.", @@ -156,10 +139,10 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" } ], "responses": { @@ -203,10 +186,10 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" } ], "responses": { @@ -246,10 +229,10 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/AliasId" @@ -295,10 +278,10 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/AliasId" diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index 4bfb30fbff37..ca7a516c7fae 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -4,11 +4,6 @@ "title": "Azure Maps Common Types", "version": "1.0" }, - "consumes": [], - "produces": [ - "application/json", - "application/xml" - ], "paths": {}, "definitions": { "LongRunningOperationResult": { @@ -433,8 +428,7 @@ "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", "type": "string", "in": "query", - "required": false, - "x-ms-parameter-location": "client" + "required": false }, "ApiVersion": { "name": "api-version", @@ -442,16 +436,14 @@ "type": "string", "in": "query", "required": true, - "default": "1.0", - "x-ms-parameter-location": "client" + "default": "1.0" }, "ClientId": { "name": "x-ms-client-id", "description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.", "type": "string", "in": "header", - "required": false, - "x-ms-parameter-location": "client" + "required": false }, "JsonFormat": { "name": "format", diff --git a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json index 5329615645e8..99a3e95da035 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json +++ b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json @@ -84,54 +84,6 @@ "x-ms-error-response": true } }, - "parameters": { - "ClientId": { - "name": "x-ms-client-id", - "description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.", - "type": "string", - "in": "header", - "required": false, - "x-ms-parameter-location": "client" - }, - "SubscriptionKey": { - "name": "subscription-key", - "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", - "type": "string", - "in": "query", - "required": false, - "x-ms-parameter-location": "client" - }, - "JsonFormat": { - "name": "format", - "description": "Desired format of the response. Only `json` format is supported.", - "type": "string", - "in": "path", - "required": true, - "enum": [ - "json" - ], - "x-ms-enum": { - "name": "JsonFormat", - "modelAsString": false, - "values": [ - { - "value": "json", - "description": "[The JavaScript Object Notation Data Interchange Format](https://tools.ietf.org/html/rfc8259)" - } - ] - }, - "x-ms-parameter-location": "method" - }, - "ApiVersion": { - "name": "api-version", - "description": "Version number of Azure Maps API. Current version is 1.0", - "type": "string", - "in": "query", - "required": true, - "default": "1.0", - "x-ms-parameter-location": "client" - } - }, "paths": { "/elevation/point/{format}": { "get": { @@ -145,16 +97,16 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "points", @@ -210,16 +162,16 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "pointsRequestBody", @@ -271,16 +223,16 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "lines", @@ -346,16 +298,16 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "linesRequestBody", @@ -417,16 +369,16 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "bounds", diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json index 041249e08d6e..2bb46f926005 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json @@ -72,7 +72,8 @@ "description": "Permission, capacity, or authentication issues.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } + }, + "x-ms-error-response": true }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", @@ -164,13 +165,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/UploadDataFormat" @@ -233,13 +234,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/Udid" @@ -296,13 +297,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/Udid" @@ -349,13 +350,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/Udid" @@ -398,13 +399,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" } ], "responses": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json index 887281684f84..0ad945cfc5b5 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json @@ -119,7 +119,6 @@ } }, "parameters": { - "ConversionIdQuery": { "name": "conversionId", "description": "The unique ID used to create the dataset. The `conversionId` must have been obtained from a successful call to the Conversion Service Convert API and must be provided with multiple query parameters with same name (if more than one is provided). May not be provided in conjunction with the `udid` query parameter.", @@ -236,10 +235,10 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/ConversionIdQuery" @@ -295,10 +294,10 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/DatasetId" @@ -347,10 +346,10 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/DatasetId" @@ -393,10 +392,10 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" } ], "responses": { diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json index 217509ea4752..67131420b018 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json @@ -112,7 +112,6 @@ } }, "parameters": { - "UdidQuery": { "name": "udid", "description": "The unique data id for the content. The `udid` must have been obtained from a successful [Data Upload API](https://docs.microsoft.com/en-us/rest/api/maps/data/uploadpreview) call.", @@ -176,13 +175,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/UdidQuery" @@ -231,13 +230,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" } ], "responses": { @@ -277,13 +276,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/ConversionId" diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json index 4ea61f257683..1083ab95983f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json @@ -98,7 +98,6 @@ } }, "parameters": { - "DatasetIdForCreate": { "name": "datasetId", "description": "The datasetId must have been obtained from a successful [Dataset Create API](https://review.docs.microsoft.com/en-us/rest-staging/api/maps-master/dataset/createpreview?branch=lbs) call.", @@ -169,10 +168,10 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -213,10 +212,10 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -254,10 +253,10 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -306,10 +305,10 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/DatasetIdForCreate" @@ -359,10 +358,10 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" } ], "responses": { @@ -402,10 +401,10 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/StatesetId" @@ -449,10 +448,10 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/StatesetId" @@ -502,10 +501,10 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/StatesetId" diff --git a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json index 927f2c0f24c4..53d7ca05de42 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json +++ b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json @@ -83,54 +83,6 @@ "x-ms-error-response": true } }, - "parameters": { - "ClientId": { - "name": "x-ms-client-id", - "description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.", - "type": "string", - "in": "header", - "required": false, - "x-ms-parameter-location": "client" - }, - "SubscriptionKey": { - "name": "subscription-key", - "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", - "type": "string", - "in": "query", - "required": false, - "x-ms-parameter-location": "client" - }, - "ApiVersion": { - "name": "api-version", - "description": "Version number of Azure Maps API. Current version is 1.0", - "type": "string", - "in": "query", - "required": true, - "default": "1.0", - "x-ms-parameter-location": "client" - }, - "JsonFormat": { - "name": "format", - "description": "Desired format of the response. Only `json` format is supported.", - "type": "string", - "in": "path", - "required": true, - "enum": [ - "json" - ], - "x-ms-enum": { - "name": "JsonFormat", - "modelAsString": false, - "values": [ - { - "value": "json", - "description": "[The JavaScript Object Notation Data Interchange Format](https://tools.ietf.org/html/rfc8259)" - } - ] - }, - "x-ms-parameter-location": "method" - } - }, "paths": { "/geolocation/ip/{format}": { "get": { @@ -144,16 +96,16 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "ip", diff --git a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json index 5b7fba9de4b6..5ea34d1e0250 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json +++ b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json @@ -83,52 +83,6 @@ } }, "parameters": { - "ClientId": { - "name": "x-ms-client-id", - "description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.", - "type": "string", - "in": "header", - "required": false, - "x-ms-parameter-location": "client" - }, - "SubscriptionKey": { - "name": "subscription-key", - "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", - "type": "string", - "in": "query", - "required": false, - "x-ms-parameter-location": "client" - }, - "ApiVersion": { - "name": "api-version", - "description": "Version number of Azure Maps API. Current version is 1.0", - "type": "string", - "in": "query", - "required": true, - "default": "1.0", - "x-ms-parameter-location": "client" - }, - "JsonFormat": { - "name": "format", - "description": "Desired format of the response. Only `json` format is supported.", - "type": "string", - "in": "path", - "required": true, - "enum": [ - "json" - ], - "x-ms-enum": { - "name": "JsonFormat", - "modelAsString": false, - "values": [ - { - "value": "json", - "description": "[The JavaScript Object Notation Data Interchange Format](https://tools.ietf.org/html/rfc8259)" - } - ] - }, - "x-ms-parameter-location": "method" - }, "MetroId": { "name": "metroId", "description": "The unique id of the metro area. Can be retrieved via [Get Metro Area API](https://aka.ms/AzureMapsMobilityMetro).", @@ -160,16 +114,16 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "query", @@ -202,8 +156,7 @@ "description": "2-character [ISO 3166-1](https://www.iso.org/iso-3166-country-codes.html) alpha-2 country code. E.g. US." } ] - }, - "x-ms-parameter-location": "method" + } }, { "$ref": "#/parameters/MobilityLanguage" @@ -246,16 +199,16 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "query", @@ -301,8 +254,7 @@ } ] } - }, - "x-ms-parameter-location": "method" + } }, { "$ref": "#/parameters/MobilityLanguage" @@ -345,16 +297,16 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "$ref": "#/parameters/MetroId" @@ -431,16 +383,16 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "$ref": "#/parameters/MetroId" @@ -541,16 +493,16 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "$ref": "#/parameters/MetroId" @@ -586,8 +538,7 @@ "description": "The GTFS stop Id. GTFS stop Ids are provided by the transit authority and are subject to change.
**Note**: When this value is used, the metroId parameter is required." } ] - }, - "x-ms-parameter-location": "method" + } }, { "name": "detailType", @@ -668,16 +619,16 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "$ref": "#/parameters/MetroId" @@ -718,8 +669,7 @@ "description": "The GTFS stop Id. GTFS stop Ids are provided by the transit authority and are subject to change.
**Note**: When this value is used, the metroId parameter is required." } ] - }, - "x-ms-parameter-location": "method" + } }, { "name": "destination", @@ -757,8 +707,7 @@ "description": "The GTFS stop Id. GTFS stop Ids are provided by the transit authority and are subject to change.
**Note**: When this value is used, the metroId parameter is required." } ] - }, - "x-ms-parameter-location": "method" + } }, { "name": "modeType", @@ -791,8 +740,7 @@ } ] } - }, - "x-ms-parameter-location": "method" + } }, { "name": "transitType", @@ -850,8 +798,7 @@ } ] } - }, - "x-ms-parameter-location": "method" + } }, { "name": "agency", @@ -892,8 +839,7 @@ "description": "The name of the transit agency, e.g. Metro Transit." } ] - }, - "x-ms-parameter-location": "method" + } }, { "name": "time", @@ -1013,16 +959,16 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "query", @@ -1057,8 +1003,7 @@ } ] } - }, - "x-ms-parameter-location": "method" + } }, { "$ref": "#/parameters/MobilityLanguage" @@ -1101,16 +1046,16 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "$ref": "#/parameters/MetroId" @@ -1156,8 +1101,7 @@ "description": "Returns arrivals of a line to stops near the user’s location. The applicable location query specified as a comma separated string composed by latitude followed by longitude e.g. \"47.641268,-122.125679\"." } ] - }, - "x-ms-parameter-location": "method" + } }, { "name": "stopQueryType", @@ -1183,8 +1127,7 @@ "description": "The GTFS stop Id. GTFS stop Ids are provided by the transit authority and are subject to change.
**Note**: When this value is used, the metroId parameter is required." } ] - }, - "x-ms-parameter-location": "method" + } }, { "name": "limit", @@ -1258,8 +1201,7 @@ } ] } - }, - "x-ms-parameter-location": "method" + } }, { "name": "agency", @@ -1300,8 +1242,7 @@ "description": "The name of the transit agency, e.g. Metro Transit." } ] - }, - "x-ms-parameter-location": "method" + } }, { "name": "timeoutInSeconds", diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json index d87e81517285..0dffa8e816ca 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json @@ -85,31 +85,6 @@ } }, "parameters": { - "ClientId": { - "name": "x-ms-client-id", - "description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.", - "type": "string", - "in": "header", - "required": false, - "x-ms-parameter-location": "client" - }, - "SubscriptionKey": { - "name": "subscription-key", - "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", - "type": "string", - "in": "query", - "required": false, - "x-ms-parameter-location": "client" - }, - "ApiVersion": { - "name": "api-version", - "description": "Version number of Azure Maps API. Current version is 1.0", - "type": "string", - "in": "query", - "required": true, - "default": "1.0", - "x-ms-parameter-location": "client" - }, "RasterTileFormat": { "name": "format", "description": "Desired format of the response. Possible value: png.", @@ -282,13 +257,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/RasterTileFormat" @@ -470,13 +445,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TileFormat" @@ -630,13 +605,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/VectorZoom" @@ -652,8 +627,7 @@ "in": "query", "description": "The stateset id.", "required": true, - "type": "string", - "x-ms-parameter-location": "method" + "type": "string" } ], "produces": [ @@ -697,13 +671,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TextFormat" @@ -746,13 +720,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/RasterTileFormat" @@ -829,13 +803,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TextFormat" @@ -895,13 +869,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TextFormat" @@ -956,13 +930,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TextFormat" diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json index ee7b2fc4cad3..f4ca3b6be376 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json @@ -85,31 +85,6 @@ } }, "parameters": { - "ClientId": { - "name": "x-ms-client-id", - "description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.", - "type": "string", - "in": "header", - "required": false, - "x-ms-parameter-location": "client" - }, - "SubscriptionKey": { - "name": "subscription-key", - "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", - "type": "string", - "in": "query", - "required": false, - "x-ms-parameter-location": "client" - }, - "ApiVersion": { - "name": "api-version", - "description": "Version number of Azure Maps API. Current version is 2.0", - "type": "string", - "in": "query", - "required": true, - "default": "2.0", - "x-ms-parameter-location": "client" - }, "TilesetId_rv2": { "name": "tilesetId", "description": "A tileset is a collection of raster or vector data broken up into a uniform grid of square tiles at preset zoom levels. Every tileset has a **tilesetId** to use when making requests. The **tilesetId** for tilesets created using [Azure Maps Creator](https://aka.ms/amcreator) are generated through the [Tileset Create API](https://docs.microsoft.com/en-us/rest/api/maps/tileset). The ready-to-use tilesets supplied by Azure Maps are listed below. For example, microsoft.base.", @@ -257,13 +232,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TilesetId_rv2" diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json index 7cf2d7313d3b..2edb3e0ef1bb 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json @@ -103,52 +103,6 @@ } }, "parameters": { - "ClientId": { - "name": "x-ms-client-id", - "description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.", - "type": "string", - "in": "header", - "required": false, - "x-ms-parameter-location": "client" - }, - "SubscriptionKey": { - "name": "subscription-key", - "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", - "type": "string", - "in": "query", - "required": false, - "x-ms-parameter-location": "client" - }, - "ApiVersion": { - "name": "api-version", - "description": "Version number of Azure Maps API. Current version is 1.0", - "type": "string", - "in": "query", - "required": true, - "default": "1.0", - "x-ms-parameter-location": "client" - }, - "JsonFormat": { - "name": "format", - "description": "Desired format of the response. Only `json` format is supported.", - "type": "string", - "in": "path", - "required": true, - "enum": [ - "json" - ], - "x-ms-enum": { - "name": "JsonFormat", - "modelAsString": true, - "values": [ - { - "value": "json", - "description": "[The JavaScript Object Notation Data Interchange Format](https://tools.ietf.org/html/rfc8259)" - } - ] - }, - "x-ms-parameter-location": "method" - }, "TextFormat": { "name": "format", "description": "Desired format of the response. Value can be either _json_ or _xml_.", @@ -922,16 +876,16 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "waitForResults", @@ -1045,13 +999,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TextFormat" @@ -1243,13 +1197,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TextFormat" @@ -1452,13 +1406,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TextFormat" @@ -1628,16 +1582,16 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "routeDirectionsBatchRequestBody", From 920a676e3dbecaddfd629773a99166a8b47a20ab Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Mon, 19 Apr 2021 00:50:18 -0700 Subject: [PATCH 057/210] Use common client parameters - part 2 --- .../Common/preview/2.0/common.json | 32 ++++ .../Render/preview/2.0/render.json | 6 +- .../Search/preview/1.0/search.json | 167 ++++++------------ .../Spatial/preview/1.0/spatial.json | 118 ++++--------- .../Tileset/preview/1.0/tileset.json | 66 ++----- .../Timezone/preview/1.0/timezone.json | 97 +++------- .../Traffic/preview/1.0/traffic.json | 76 ++------ .../Microsoft.Maps/WFS/preview/1.0/wfs.json | 69 +++----- .../Weather/preview/1.0/weather.json | 110 ++++-------- 9 files changed, 232 insertions(+), 509 deletions(-) create mode 100644 specification/maps/data-plane/Microsoft.Maps/Common/preview/2.0/common.json diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/2.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/2.0/common.json new file mode 100644 index 000000000000..f3d3225ca806 --- /dev/null +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/2.0/common.json @@ -0,0 +1,32 @@ +{ + "swagger": "2.0", + "info": { + "title": "Azure Maps Common Types", + "version": "2.0" + }, + "paths": {}, + "parameters": { + "SubscriptionKey": { + "name": "subscription-key", + "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", + "type": "string", + "in": "query", + "required": false + }, + "ApiVersion": { + "name": "api-version", + "description": "Version number of Azure Maps API. Current version is 2.0", + "type": "string", + "in": "query", + "required": true, + "default": "2.0" + }, + "ClientId": { + "name": "x-ms-client-id", + "description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.", + "type": "string", + "in": "header", + "required": false + } + } +} diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json index f4ca3b6be376..dbbf53a9d383 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json @@ -232,13 +232,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TilesetId_rv2" diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json index bf9742f7462a..ce821b6fad1d 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json @@ -103,52 +103,6 @@ } }, "parameters": { - "ClientId": { - "name": "x-ms-client-id", - "description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.", - "type": "string", - "in": "header", - "required": false, - "x-ms-parameter-location": "client" - }, - "SubscriptionKey": { - "name": "subscription-key", - "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", - "type": "string", - "in": "query", - "required": false, - "x-ms-parameter-location": "client" - }, - "ApiVersion": { - "name": "api-version", - "description": "Version number of Azure Maps API. Current version is 1.0", - "type": "string", - "in": "query", - "required": true, - "default": "1.0", - "x-ms-parameter-location": "client" - }, - "JsonFormat": { - "name": "format", - "description": "Desired format of the response. Only `json` format is supported.", - "type": "string", - "in": "path", - "required": true, - "enum": [ - "json" - ], - "x-ms-enum": { - "name": "JsonFormat", - "modelAsString": true, - "values": [ - { - "value": "json", - "description": "[The JavaScript Object Notation Data Interchange Format](https://tools.ietf.org/html/rfc8259)" - } - ] - }, - "x-ms-parameter-location": "method" - }, "TextFormat": { "name": "format", "description": "Desired format of the response. Value can be either _json_ or _xml_.", @@ -516,24 +470,23 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "geometries", "in": "query", "description": "Comma separated list of geometry UUIDs, previously retrieved from an Online Search request.", "required": true, - "type": "string", - "x-ms-parameter-location": "method" + "type": "string" } ], "responses": { @@ -576,13 +529,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TextFormat" @@ -592,8 +545,7 @@ "in": "query", "description": "The applicable query string (e.g., \"seattle\", \"pizza\"). Can _also_ be specified as a comma separated string composed by latitude followed by longitude (e.g., \"47.641268, -122.125679\"). Must be properly URL encoded.", "required": true, - "type": "string", - "x-ms-parameter-location": "method" + "type": "string" }, { "$ref": "#/parameters/Typeahead" @@ -704,13 +656,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TextFormat" @@ -720,8 +672,7 @@ "in": "query", "description": "The POI name to search for (e.g., \"statue of liberty\", \"starbucks\"), must be properly URL encoded.", "required": true, - "type": "string", - "x-ms-parameter-location": "method" + "type": "string" }, { "$ref": "#/parameters/Typeahead" @@ -809,13 +760,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TextFormat" @@ -898,13 +849,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TextFormat" @@ -914,8 +865,7 @@ "in": "query", "description": "The POI category to search for (e.g., \"AIRPORT\", \"RESTAURANT\"), must be properly URL encoded. Supported main categories can be requested by calling [Get Search POI Category Tree API](https://aka.ms/AzureMapsPOICategoryTree). List of available categories can also be found [here](https://docs.microsoft.com/azure/azure-maps/supported-search-categories). We recommend to use POI Search Category Tree API to request the supported categories.", "required": true, - "type": "string", - "x-ms-parameter-location": "method" + "type": "string" }, { "$ref": "#/parameters/Typeahead" @@ -1003,24 +953,23 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "language", "in": "query", "description": "Language in which search results should be returned. Should be one of supported IETF language tags, except NGT and NGT-Latn. Language tag is case insensitive. When data in specified language is not available for a specific field, default language is used (English).\n\nPlease refer to [Supported Languages](https://docs.microsoft.com/azure/azure-maps/supported-languages) for details.", "required": false, - "type": "string", - "x-ms-parameter-location": "method" + "type": "string" } ], "responses": { @@ -1060,13 +1009,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TextFormat" @@ -1076,8 +1025,7 @@ "in": "query", "description": "The address to search for (e.g., \"1 Microsoft way, Redmond, WA\"), must be properly URL encoded.", "required": true, - "type": "string", - "x-ms-parameter-location": "method" + "type": "string" }, { "$ref": "#/parameters/Typeahead" @@ -1153,13 +1101,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TextFormat" @@ -1279,8 +1227,7 @@ "description": "Postal Code / Zip Code" } ] - }, - "x-ms-parameter-location": "method" + } }, { "$ref": "#/parameters/View" @@ -1323,13 +1270,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TextFormat" @@ -1396,13 +1343,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TextFormat" @@ -1537,13 +1484,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/PoiQuery" @@ -1619,13 +1566,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/CategorySet" @@ -1716,16 +1663,16 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "searchFuzzyBatchRequestBody", @@ -1784,16 +1731,16 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "searchAddressBatchRequestBody", @@ -1852,16 +1799,16 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "searchAddressReverseBatchRequestBody", diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json index 74eec8829e66..47851521f771 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json @@ -94,52 +94,6 @@ } }, "parameters": { - "ClientId": { - "name": "x-ms-client-id", - "description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.", - "type": "string", - "in": "header", - "required": false, - "x-ms-parameter-location": "client" - }, - "SubscriptionKey": { - "name": "subscription-key", - "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", - "type": "string", - "in": "query", - "required": false, - "x-ms-parameter-location": "client" - }, - "ApiVersion": { - "name": "api-version", - "description": "Version number of Azure Maps API. Current version is 1.0", - "type": "string", - "in": "query", - "required": true, - "default": "1.0", - "x-ms-parameter-location": "client" - }, - "JsonFormat": { - "name": "format", - "description": "Desired format of the response. Only `json` format is supported.", - "type": "string", - "in": "path", - "required": true, - "enum": [ - "json" - ], - "x-ms-enum": { - "name": "JsonFormat", - "modelAsString": true, - "values": [ - { - "value": "json", - "description": "[The JavaScript Object Notation Data Interchange Format](https://tools.ietf.org/html/rfc8259)" - } - ] - }, - "x-ms-parameter-location": "method" - }, "TextFormat": { "name": "format", "description": "Desired format of the response. Value can be either _json_ or _xml_.", @@ -235,16 +189,16 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "deviceId", @@ -354,16 +308,16 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "deviceId", @@ -477,16 +431,16 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "bufferRequestBody", @@ -536,16 +490,16 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "$ref": "#/parameters/UdidSpatial" @@ -598,16 +552,16 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "lat", @@ -678,16 +632,16 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "$ref": "#/parameters/UdidSpatial" @@ -754,16 +708,16 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "lat", @@ -827,16 +781,16 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "$ref": "#/parameters/UdidSpatial" @@ -896,16 +850,16 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "query", diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json index 82f3ac6703a6..a8be94e4213c 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json @@ -139,59 +139,13 @@ }, "x-ms-parameter-location": "client" }, - "ClientId": { - "name": "x-ms-client-id", - "description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.", - "type": "string", - "in": "header", - "required": false, - "x-ms-parameter-location": "client" - }, - "SubscriptionKey": { - "name": "subscription-key", - "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", - "type": "string", - "in": "query", - "required": false, - "x-ms-parameter-location": "client" - }, - "ApiVersion": { - "name": "api-version", - "description": "Version number of Azure Maps API. Current version is 1.0", - "type": "string", - "in": "query", - "required": true, - "default": "1.0", - "x-ms-parameter-location": "client" - }, - "JsonFormat": { - "name": "format", - "description": "Desired format of the response. Only `json` format is supported.", - "type": "string", - "in": "path", - "required": true, - "enum": [ - "json" - ], - "x-ms-enum": { - "name": "JsonFormat", - "modelAsString": true, - "values": [ - { - "value": "json", - "description": "[The JavaScript Object Notation Data Interchange Format](https://tools.ietf.org/html/rfc8259)" - } - ] - }, - "x-ms-parameter-location": "method" - }, "DatasetIdQuery": { "name": "datasetId", "description": "The unique `datasetId` that the tileset create API uses to retrieve features to generate tiles. The `datasetId` must have been obtained from a successful [Dataset Create API](/en-us/rest/api/maps/dataset/createpreview) call.", "type": "string", "in": "query", "required": true, - "x-ms-parameter-location": "client" + "x-ms-parameter-location": "method" }, "TilesetId": { "name": "tilesetId", @@ -227,13 +181,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/DatasetIdQuery" @@ -279,13 +233,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" } ], "responses": { @@ -325,13 +279,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TilesetId" diff --git a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json index 2dea98a2f5a3..6bd9111464e3 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json +++ b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json @@ -85,52 +85,6 @@ } }, "parameters": { - "ClientId": { - "name": "x-ms-client-id", - "description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.", - "type": "string", - "in": "header", - "required": false, - "x-ms-parameter-location": "client" - }, - "SubscriptionKey": { - "name": "subscription-key", - "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", - "type": "string", - "in": "query", - "required": false, - "x-ms-parameter-location": "client" - }, - "ApiVersion": { - "name": "api-version", - "description": "Version number of Azure Maps API. Current version is 1.0", - "type": "string", - "in": "query", - "required": true, - "default": "1.0", - "x-ms-parameter-location": "client" - }, - "JsonFormat": { - "name": "format", - "description": "Desired format of the response. Only `json` format is supported.", - "type": "string", - "in": "path", - "required": true, - "enum": [ - "json" - ], - "x-ms-enum": { - "name": "JsonFormat", - "modelAsString": true, - "values": [ - { - "value": "json", - "description": "[The JavaScript Object Notation Data Interchange Format](https://tools.ietf.org/html/rfc8259)" - } - ] - }, - "x-ms-parameter-location": "method" - }, "TimezoneAcceptLanguage": { "name": "Accept-Language", "in": "header", @@ -215,13 +169,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TimezoneAcceptLanguage" @@ -239,15 +193,14 @@ "$ref": "#/parameters/TimezoneTransitionsYears" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "query", "in": "query", "description": "The IANA time zone ID.", "required": true, - "type": "string", - "x-ms-parameter-location": "method" + "type": "string" } ], "responses": { @@ -290,13 +243,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TimezoneAcceptLanguage" @@ -314,7 +267,7 @@ "$ref": "#/parameters/TimezoneTransitionsYears" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "query", @@ -364,16 +317,16 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" } ], "responses": { @@ -416,16 +369,16 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" } ], "responses": { @@ -468,16 +421,16 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" } ], "responses": { @@ -520,16 +473,16 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "query", diff --git a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json index 1f99c49786ab..9518a1dbe7c1 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json +++ b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json @@ -94,52 +94,6 @@ } }, "parameters": { - "ClientId": { - "name": "x-ms-client-id", - "description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.", - "type": "string", - "in": "header", - "required": false, - "x-ms-parameter-location": "client" - }, - "SubscriptionKey": { - "name": "subscription-key", - "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", - "type": "string", - "in": "query", - "required": false, - "x-ms-parameter-location": "client" - }, - "ApiVersion": { - "name": "api-version", - "description": "Version number of Azure Maps API. Current version is 1.0", - "type": "string", - "in": "query", - "required": true, - "default": "1.0", - "x-ms-parameter-location": "client" - }, - "JsonFormat": { - "name": "format", - "description": "Desired format of the response. Only `json` format is supported.", - "type": "string", - "in": "path", - "required": true, - "enum": [ - "json" - ], - "x-ms-enum": { - "name": "JsonFormat", - "modelAsString": true, - "values": [ - { - "value": "json", - "description": "[The JavaScript Object Notation Data Interchange Format](https://tools.ietf.org/html/rfc8259)" - } - ] - }, - "x-ms-parameter-location": "method" - }, "TextFormat": { "name": "format", "description": "Desired format of the response. Value can be either _json_ or _xml_.", @@ -265,13 +219,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TileFormat" @@ -372,13 +326,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TextFormat" @@ -492,13 +446,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TileFormat" @@ -597,13 +551,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TextFormat" @@ -764,13 +718,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TextFormat" diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json index 6d518148511f..83153a510753 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json @@ -128,31 +128,6 @@ }, "x-ms-parameter-location": "client" }, - "ClientId": { - "name": "x-ms-client-id", - "description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.", - "type": "string", - "in": "header", - "required": false, - "x-ms-parameter-location": "client" - }, - "SubscriptionKey": { - "name": "subscription-key", - "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", - "type": "string", - "in": "query", - "required": false, - "x-ms-parameter-location": "client" - }, - "ApiVersion": { - "name": "api-version", - "description": "Version number of Azure Maps API. Current version is 1.0", - "type": "string", - "in": "query", - "required": true, - "default": "1.0", - "x-ms-parameter-location": "client" - }, "Datasetid": { "name": "datasetid", "type": "string", @@ -216,13 +191,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/Datasetid" @@ -265,13 +240,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/Datasetid" @@ -314,13 +289,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/Datasetid" @@ -363,13 +338,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/Datasetid" @@ -415,13 +390,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/Datasetid" @@ -467,13 +442,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/Datasetid" @@ -528,10 +503,10 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/Datasetid" @@ -578,10 +553,10 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/Datasetid" diff --git a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json index 2a7cecc7b3ed..d1b298ddc2f1 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json +++ b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json @@ -83,52 +83,6 @@ } }, "parameters": { - "ClientId": { - "name": "x-ms-client-id", - "description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.", - "type": "string", - "in": "header", - "required": false, - "x-ms-parameter-location": "client" - }, - "SubscriptionKey": { - "name": "subscription-key", - "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", - "type": "string", - "in": "query", - "required": false, - "x-ms-parameter-location": "client" - }, - "ApiVersion": { - "name": "api-version", - "description": "Version number of Azure Maps API. Current version is 1.0", - "type": "string", - "in": "query", - "required": true, - "default": "1.0", - "x-ms-parameter-location": "client" - }, - "JsonFormat": { - "name": "format", - "description": "Desired format of the response. Only `json` format is supported.", - "type": "string", - "in": "path", - "required": true, - "enum": [ - "json" - ], - "x-ms-enum": { - "name": "JsonFormat", - "modelAsString": true, - "values": [ - { - "value": "json", - "description": "[The JavaScript Object Notation Data Interchange Format](https://tools.ietf.org/html/rfc8259)" - } - ] - }, - "x-ms-parameter-location": "method" - }, "WeatherLanguage": { "name": "language", "description": "Language in which search results should be returned. Should be one of supported IETF language tags, case insensitive. When data in specified language is not available for a specific field, default language is used. Default value is en-us. \n\nPlease refer to [Supported languages](https://docs.microsoft.com/azure/azure-maps/supported-languages) for details.", @@ -177,16 +131,16 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "query", @@ -245,16 +199,16 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "query", @@ -310,16 +264,16 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "query", @@ -378,16 +332,16 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "query", @@ -453,16 +407,16 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "query", @@ -521,16 +475,16 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "query", @@ -579,16 +533,16 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "query", @@ -644,16 +598,16 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "query", From 1e901a86847f546f8a94e3dc39df5cfdca81e2d3 Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Mon, 19 Apr 2021 01:57:04 -0700 Subject: [PATCH 058/210] Fix lint errors --- .../Microsoft.Maps/Common/preview/1.0/common.json | 9 ++++++--- .../Microsoft.Maps/Common/preview/2.0/common.json | 9 ++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index ca7a516c7fae..95546be0d3c6 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -428,7 +428,8 @@ "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", "type": "string", "in": "query", - "required": false + "required": false, + "x-ms-parameter-location": "client" }, "ApiVersion": { "name": "api-version", @@ -436,14 +437,16 @@ "type": "string", "in": "query", "required": true, - "default": "1.0" + "default": "1.0", + "x-ms-parameter-location": "client" }, "ClientId": { "name": "x-ms-client-id", "description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.", "type": "string", "in": "header", - "required": false + "required": false, + "x-ms-parameter-location": "client" }, "JsonFormat": { "name": "format", diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/2.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/2.0/common.json index f3d3225ca806..141b544d14d6 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/2.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/2.0/common.json @@ -11,7 +11,8 @@ "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", "type": "string", "in": "query", - "required": false + "required": false, + "x-ms-parameter-location": "client" }, "ApiVersion": { "name": "api-version", @@ -19,14 +20,16 @@ "type": "string", "in": "query", "required": true, - "default": "2.0" + "default": "2.0", + "x-ms-parameter-location": "client" }, "ClientId": { "name": "x-ms-client-id", "description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.", "type": "string", "in": "header", - "required": false + "required": false, + "x-ms-parameter-location": "client" } } } From 1d66b0fee7faf25e42b36604ecfb72a6a1ab6359 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Mon, 19 Apr 2021 05:26:52 -0700 Subject: [PATCH 059/210] update go namespace to the correct one. --- specification/maps/data-plane/readme.go.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/maps/data-plane/readme.go.md b/specification/maps/data-plane/readme.go.md index 6f45f66091aa..63e110ce5929 100644 --- a/specification/maps/data-plane/readme.go.md +++ b/specification/maps/data-plane/readme.go.md @@ -5,7 +5,7 @@ These settings apply only when `--go` is specified on the command line. ``` yaml $(go) go: license-header: MICROSOFT_APACHE_NO_VERSION - namespace: maps + namespace: azmaps clear-output-folder: true ``` @@ -22,5 +22,5 @@ These settings apply only when `--tag=package-1.0-preview --go` is specified on Please also specify `--go-sdk-folder=`. ``` yaml $(tag) == 'package-1.0-preview' && $(go) -output-folder: $(go-sdk-folder)/services/preview/$(namespace)/1.0/$(namespace) +output-folder: $(go-sdk-folder)/services/preview/maps/1.0/$(namespace) ``` \ No newline at end of file From e06271f21501eb3edd6a30451e086d51b71c6957 Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Mon, 19 Apr 2021 04:20:45 -0700 Subject: [PATCH 060/210] Use common response objects to fix duplicate schemas --- .../Alias/preview/1.0/alias.json | 92 ++------ .../Common/preview/1.0/common.json | 124 +++++++++- .../Common/preview/2.0/common.json | 35 --- .../DEM/preview/1.0/elevation.json | 93 ++------ .../Microsoft.Maps/Data/preview/1.0/data.json | 122 +++------- .../Dataset/preview/1.0/dataset.json | 118 ++-------- .../preview/1.0/dwgconversion.json | 98 ++------ .../preview/1.0/featurestate.json | 132 ++++------- .../Geolocation/preview/1.0/geolocation.json | 53 +---- .../Mobility/preview/1.0/mobility.json | 123 ++++------ .../Render/preview/1.0/render.json | 123 ++++------ .../Render/preview/2.0/render.json | 59 +---- .../Route/preview/1.0/route.json | 115 +++------- .../Search/preview/1.0/search.json | 217 +++++++----------- .../Spatial/preview/1.0/spatial.json | 142 ++++-------- .../Tileset/preview/1.0/tileset.json | 98 ++------ .../Timezone/preview/1.0/timezone.json | 103 +++------ .../Traffic/preview/1.0/traffic.json | 102 ++------ .../Microsoft.Maps/WFS/preview/1.0/wfs.json | 132 ++++------- .../Weather/preview/1.0/weather.json | 123 ++++------ 20 files changed, 674 insertions(+), 1530 deletions(-) delete mode 100644 specification/maps/data-plane/Microsoft.Maps/Common/preview/2.0/common.json diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json index 0d95175ff05c..458f6c7284c4 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json @@ -48,58 +48,6 @@ "apiKeyQuery": [] } ], - "responses": { - "202": { - "description": "Request Accepted: The request has been accepted for processing. Please use the URL in the Location Header to retry or access the results.", - "headers": { - "Location": { - "type": "string", - "description": "New URL to check for the results of the long running process." - } - } - }, - "400": { - "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "401": { - "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "headers": { - "WWW-Authenticate": { - "type": "string", - "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" - } - }, - "x-ms-error-response": true - }, - "403": { - "description": "Permission, capacity, or authentication issues.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "404": { - "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "500": { - "description": "An error occurred while processing the request. Please try again later.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - } - }, "parameters": { "CreateResourceId": { "name": "resourceId", @@ -159,19 +107,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -200,19 +148,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -249,19 +197,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -295,19 +243,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index 95546be0d3c6..0cc81b4a8250 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -4,6 +4,15 @@ "title": "Azure Maps Common Types", "version": "1.0" }, + "host": "atlas.microsoft.com", + "schemes": [ + "https" + ], + "consumes": [], + "produces": [ + "application/json", + "application/xml" + ], "paths": {}, "definitions": { "LongRunningOperationResult": { @@ -440,6 +449,15 @@ "default": "1.0", "x-ms-parameter-location": "client" }, + "ApiVersionV2": { + "name": "api-version", + "description": "Version number of Azure Maps API. Current version is 2.0", + "type": "string", + "in": "query", + "required": true, + "default": "2.0", + "x-ms-parameter-location": "client" + }, "ClientId": { "name": "x-ms-client-id", "description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.", @@ -469,5 +487,109 @@ }, "x-ms-parameter-location": "method" } - } + }, + "responses": { + "200Async": { + "description": "The operation's status response.", + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/LongRunningOperationResult" + } + }, + "201Async": { + "description": "The resource has been created successfully.", + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/LongRunningOperationResult" + }, + "headers": { + "Location": { + "type": "string", + "description": "A URI where details on the newly created resource can be found." + } + } + }, + "202Async": { + "description": "**Supported only for async request.**\nRequest Accepted: The request has been accepted for processing. Please use the URL in the Location Header to retry or access the results.", + "headers": { + "Location": { + "type": "string", + "description": "New URL to check for the results of the long running process." + } + } + }, + "400": { + "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + }, + "401": { + "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "headers": { + "WWW-Authenticate": { + "type": "string", + "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" + } + }, + "x-ms-error-response": true + }, + "403": { + "description": "Permission, capacity, or authentication issues.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + }, + "404": { + "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + }, + "409": { + "description": "The request could not be completed due to a conflict with the current state of the resource. Likely caused by a parallel update to the same resource.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + }, + "500": { + "description": "An error occurred while processing the request. Please try again later.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + } + }, + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "scopes": { + "user_impersonation": "Impersonates a user's Azure Active Directory account." + } + }, + "apiKeyQuery": { + "type": "apiKey", + "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", + "name": "subscription-key", + "in": "query" + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + }, + { + "apiKeyQuery": [] + } + ] } diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/2.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/2.0/common.json deleted file mode 100644 index 141b544d14d6..000000000000 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/2.0/common.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Azure Maps Common Types", - "version": "2.0" - }, - "paths": {}, - "parameters": { - "SubscriptionKey": { - "name": "subscription-key", - "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", - "type": "string", - "in": "query", - "required": false, - "x-ms-parameter-location": "client" - }, - "ApiVersion": { - "name": "api-version", - "description": "Version number of Azure Maps API. Current version is 2.0", - "type": "string", - "in": "query", - "required": true, - "default": "2.0", - "x-ms-parameter-location": "client" - }, - "ClientId": { - "name": "x-ms-client-id", - "description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.", - "type": "string", - "in": "header", - "required": false, - "x-ms-parameter-location": "client" - } - } -} diff --git a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json index 99a3e95da035..fb712f6b2f4a 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json +++ b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json @@ -41,49 +41,6 @@ "apiKeyQuery": [] } ], - "responses": { - "400": { - "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "401": { - "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "headers": { - "WWW-Authenticate": { - "type": "string", - "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" - } - }, - "x-ms-error-response": true - }, - "403": { - "description": "Permission, capacity, or authentication issues.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "404": { - "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "500": { - "description": "An error occurred while processing the request. Please try again later.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - } - }, "paths": { "/elevation/point/{format}": { "get": { @@ -135,19 +92,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -194,19 +151,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -271,19 +228,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -340,19 +297,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -421,19 +378,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json index 2bb46f926005..15b9f69dab41 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json @@ -47,70 +47,6 @@ "apiKeyQuery": [] } ], - "responses": { - "400": { - "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "401": { - "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "headers": { - "WWW-Authenticate": { - "type": "string", - "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" - } - }, - "x-ms-error-response": true - }, - "403": { - "description": "Permission, capacity, or authentication issues.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "404": { - "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "500": { - "description": "An error occurred while processing the request. Please try again later.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "201Async": { - "description": "The resource has been created successfully.", - "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/LongRunningOperationResult" - }, - "headers": { - "Location": { - "type": "string", - "description": "A URI where details on the newly created resource can be found." - } - } - }, - "202Async": { - "description": "**Supported only for async request.**\nRequest Accepted: The request has been accepted for processing. Please use the URL in the Location Header to retry or access the results.", - "headers": { - "Location": { - "type": "string", - "description": "New URL to check for the results of the long running process." - } - } - } - }, "parameters": { "UploadDataFormat": { @@ -195,25 +131,25 @@ "x-ms-error-response": true }, "201": { - "$ref": "#/responses/201Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/201Async" }, "202": { - "$ref": "#/responses/202Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -264,25 +200,25 @@ "x-ms-error-response": true }, "201": { - "$ref": "#/responses/201Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/201Async" }, "202": { - "$ref": "#/responses/202Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -323,19 +259,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -370,19 +306,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -422,19 +358,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json index 0ad945cfc5b5..9bda35c9d3d3 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json @@ -48,76 +48,6 @@ "apiKeyQuery": [] } ], - "responses": { - "400": { - "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "401": { - "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "headers": { - "WWW-Authenticate": { - "type": "string", - "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" - } - }, - "x-ms-error-response": true - }, - "403": { - "description": "Permission, capacity, or authentication issues.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "404": { - "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "500": { - "description": "An error occurred while processing the request. Please try again later.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "200Async": { - "description": "The operation's status response.", - "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/LongRunningOperationResult" - } - }, - "201Async": { - "description": "The resource has been created successfully.", - "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/LongRunningOperationResult" - }, - "headers": { - "Location": { - "type": "string", - "description": "A URI where details on the newly created resource can be found." - } - } - }, - "202Async": { - "description": "**Supported only for async request.**\nRequest Accepted: The request has been accepted for processing. Please use the URL in the Location Header to retry or access the results.", - "headers": { - "Location": { - "type": "string", - "description": "New URL to check for the results of the long running process." - } - } - } - }, "parameters": { "ConversionIdQuery": { "name": "conversionId", @@ -258,25 +188,25 @@ ], "responses": { "201": { - "$ref": "#/responses/201Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/201Async" }, "202": { - "$ref": "#/responses/202Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -311,25 +241,25 @@ ], "responses": { "200": { - "$ref": "#/responses/200Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/200Async" }, "202": { - "$ref": "#/responses/202Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -363,19 +293,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -406,19 +336,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json index 67131420b018..49cff020c8b4 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json @@ -47,70 +47,6 @@ "apiKeyQuery": [] } ], - "responses": { - "400": { - "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "401": { - "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "headers": { - "WWW-Authenticate": { - "type": "string", - "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" - } - }, - "x-ms-error-response": true - }, - "403": { - "description": "Permission, capacity, or authentication issues.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "404": { - "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "500": { - "description": "An error occurred while processing the request. Please try again later.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "201Async": { - "description": "The resource has been created successfully.", - "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/LongRunningOperationResult" - }, - "headers": { - "Location": { - "type": "string", - "description": "A URI where details on the newly created resource can be found." - } - } - }, - "202Async": { - "description": "**Supported only for async request.**\nRequest Accepted: The request has been accepted for processing. Please use the URL in the Location Header to retry or access the results.", - "headers": { - "Location": { - "type": "string", - "description": "New URL to check for the results of the long running process." - } - } - } - }, "parameters": { "UdidQuery": { "name": "udid", @@ -195,25 +131,25 @@ ], "responses": { "201": { - "$ref": "#/responses/201Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/201Async" }, "202": { - "$ref": "#/responses/202Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -247,19 +183,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -296,19 +232,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json index 1083ab95983f..ea18da0f4708 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json @@ -47,56 +47,6 @@ "apiKeyQuery": [] } ], - "responses": { - "400": { - "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "401": { - "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "headers": { - "WWW-Authenticate": { - "type": "string", - "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" - } - }, - "x-ms-error-response": true - }, - "403": { - "description": "Permission, capacity, or authentication issues.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "404": { - "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "409": { - "description": "The request could not be completed due to a conflict with the current state of the resource. Likely caused by a parallel update to the same resource.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "500": { - "description": "An error occurred while processing the request. Please try again later.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - } - }, "parameters": { "DatasetIdForCreate": { "name": "datasetId", @@ -185,19 +135,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -226,19 +176,19 @@ "description": "Stateset Deleted." }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -276,19 +226,19 @@ "description": "Stateset styles are updated successfully." }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -331,19 +281,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -372,19 +322,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -421,19 +371,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -474,19 +424,19 @@ "description": "Feature states are updated successfully." }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -521,22 +471,22 @@ "description": "Feature states deleted successfully." }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "409": { - "$ref": "#/responses/409" + "$ref": "../../../Common/preview/1.0/common.json#/responses/409" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json index 53d7ca05de42..c4f7fe63b5ad 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json +++ b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json @@ -40,49 +40,6 @@ "apiKeyQuery": [] } ], - "responses": { - "400": { - "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "401": { - "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "headers": { - "WWW-Authenticate": { - "type": "string", - "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" - } - }, - "x-ms-error-response": true - }, - "403": { - "description": "Permission, capacity, or authentication issues.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "404": { - "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "500": { - "description": "An error occurred while processing the request. Please try again later.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - } - }, "paths": { "/geolocation/ip/{format}": { "get": { @@ -123,19 +80,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json index 5ea34d1e0250..a7958b67c925 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json +++ b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json @@ -39,49 +39,6 @@ "apiKeyQuery": [] } ], - "responses": { - "400": { - "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "401": { - "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "headers": { - "WWW-Authenticate": { - "type": "string", - "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" - } - }, - "x-ms-error-response": true - }, - "403": { - "description": "Permission, capacity, or authentication issues.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "404": { - "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "500": { - "description": "An error occurred while processing the request. Please try again later.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - } - }, "parameters": { "MetroId": { "name": "metroId", @@ -170,19 +127,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -268,19 +225,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -354,19 +311,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -464,19 +421,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -590,19 +547,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -930,19 +887,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -1017,19 +974,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -1264,19 +1221,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json index 0dffa8e816ca..dfdc03c556c5 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json @@ -41,49 +41,6 @@ "apiKeyQuery": [] } ], - "responses": { - "400": { - "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "401": { - "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "headers": { - "WWW-Authenticate": { - "type": "string", - "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" - } - }, - "x-ms-error-response": true - }, - "403": { - "description": "Permission, capacity, or authentication issues.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "404": { - "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "500": { - "description": "An error occurred while processing the request. Please try again later.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - } - }, "parameters": { "RasterTileFormat": { "name": "format", @@ -416,19 +373,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -576,19 +533,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -642,19 +599,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -691,19 +648,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -774,19 +731,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -840,19 +797,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -901,19 +858,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -953,19 +910,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json index dbbf53a9d383..cdd48e289b6d 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json @@ -41,49 +41,6 @@ "apiKeyQuery": [] } ], - "responses": { - "400": { - "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "401": { - "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "headers": { - "WWW-Authenticate": { - "type": "string", - "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" - } - }, - "x-ms-error-response": true - }, - "403": { - "description": "Permission, capacity, or authentication issues.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "404": { - "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "500": { - "description": "An error occurred while processing the request. Please try again later.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - } - }, "parameters": { "TilesetId_rv2": { "name": "tilesetId", @@ -232,13 +189,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/TilesetId_rv2" @@ -303,19 +260,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json index 2edb3e0ef1bb..8e24daa9d5d9 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json @@ -41,67 +41,6 @@ "apiKeyQuery": [] } ], - "responses": { - "202": { - "description": "Request Accepted: The request has been accepted for processing. Please use the URL in the Location Header to retry or access the results.", - "headers": { - "Location": { - "type": "string", - "description": "New URL to check for the results of the long running process." - } - } - }, - "400": { - "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "401": { - "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "headers": { - "WWW-Authenticate": { - "type": "string", - "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" - } - }, - "x-ms-error-response": true - }, - "403": { - "description": "Permission, capacity, or authentication issues.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "404": { - "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "500": { - "description": "An error occurred while processing the request. Please try again later.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "202Async": { - "description": "**Supported only for async request.**\nRequest Accepted: The request has been accepted for processing. Please use the URL in the Location Header to retry or access the results.", - "headers": { - "Location": { - "type": "string", - "description": "New URL to check for the results of the long running process." - } - } - } - }, "parameters": { "TextFormat": { "name": "format", @@ -964,22 +903,22 @@ } }, "202": { - "$ref": "#/responses/202Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } }, "produces": [ @@ -1170,19 +1109,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -1377,19 +1316,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -1549,19 +1488,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -1611,22 +1550,22 @@ } }, "202": { - "$ref": "#/responses/202Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } }, "produces": [ diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json index ce821b6fad1d..0ad2f5f0c2f5 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json @@ -41,67 +41,6 @@ "apiKeyQuery": [] } ], - "responses": { - "202": { - "description": "Request Accepted: The request has been accepted for processing. Please use the URL in the Location Header to retry or access the results.", - "headers": { - "Location": { - "type": "string", - "description": "New URL to check for the results of the long running process." - } - } - }, - "400": { - "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "401": { - "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "headers": { - "WWW-Authenticate": { - "type": "string", - "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" - } - }, - "x-ms-error-response": true - }, - "403": { - "description": "Permission, capacity, or authentication issues.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "404": { - "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "500": { - "description": "An error occurred while processing the request. Please try again later.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "202Async": { - "description": "**Supported only for async request.**\nRequest Accepted: The request has been accepted for processing. Please use the URL in the Location Header to retry or access the results.", - "headers": { - "Location": { - "type": "string", - "description": "New URL to check for the results of the long running process." - } - } - } - }, "parameters": { "TextFormat": { "name": "format", @@ -497,19 +436,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } }, "produces": [ @@ -627,19 +566,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -731,19 +670,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -820,19 +759,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -924,19 +863,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -980,19 +919,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -1072,19 +1011,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -1241,19 +1180,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -1314,19 +1253,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -1449,19 +1388,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -1537,19 +1476,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -1630,19 +1569,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -1692,22 +1631,22 @@ } }, "202": { - "$ref": "#/responses/202Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } }, "produces": [ @@ -1760,22 +1699,22 @@ } }, "202": { - "$ref": "#/responses/202Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } }, "produces": [ @@ -1828,22 +1767,22 @@ } }, "202": { - "$ref": "#/responses/202Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } }, "produces": [ diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json index 47851521f771..2c36f2ae9883 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json @@ -41,58 +41,6 @@ "apiKeyQuery": [] } ], - "responses": { - "202": { - "description": "Request Accepted: The request has been accepted for processing. Please use the URL in the Location Header to retry or access the results.", - "headers": { - "Location": { - "type": "string", - "description": "New URL to check for the results of the long running process." - } - } - }, - "400": { - "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "401": { - "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "headers": { - "WWW-Authenticate": { - "type": "string", - "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" - } - }, - "x-ms-error-response": true - }, - "403": { - "description": "Permission, capacity, or authentication issues.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "404": { - "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "500": { - "description": "An error occurred while processing the request. Please try again later.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - } - }, "parameters": { "TextFormat": { "name": "format", @@ -281,19 +229,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -402,19 +350,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -463,19 +411,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -523,19 +471,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -605,19 +553,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -679,19 +627,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -754,19 +702,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -821,19 +769,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -880,19 +828,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json index a8be94e4213c..1d560b3765d6 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json @@ -47,70 +47,6 @@ "apiKeyQuery": [] } ], - "responses": { - "400": { - "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "401": { - "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "headers": { - "WWW-Authenticate": { - "type": "string", - "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" - } - }, - "x-ms-error-response": true - }, - "403": { - "description": "Permission, capacity, or authentication issues.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "404": { - "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "500": { - "description": "An error occurred while processing the request. Please try again later.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "201Async": { - "description": "The resource has been created successfully.", - "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/LongRunningOperationResult" - }, - "headers": { - "Location": { - "type": "string", - "description": "A URI where details on the newly created resource can be found." - } - } - }, - "202Async": { - "description": "**Supported only for async request.**\nRequest Accepted: The request has been accepted for processing. Please use the URL in the Location Header to retry or access the results.", - "headers": { - "Location": { - "type": "string", - "description": "New URL to check for the results of the long running process." - } - } - } - }, "parameters": { "GeographicResourceLocation": { "name": "geography", @@ -198,25 +134,25 @@ ], "responses": { "201": { - "$ref": "#/responses/201Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/201Async" }, "202": { - "$ref": "#/responses/202Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -250,19 +186,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -299,19 +235,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json index 6bd9111464e3..4072a8c404a8 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json +++ b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json @@ -41,49 +41,6 @@ "apiKeyQuery": [] } ], - "responses": { - "400": { - "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "401": { - "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "headers": { - "WWW-Authenticate": { - "type": "string", - "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" - } - }, - "x-ms-error-response": true - }, - "403": { - "description": "Permission, capacity, or authentication issues.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "404": { - "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "500": { - "description": "An error occurred while processing the request. Please try again later.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - } - }, "parameters": { "TimezoneAcceptLanguage": { "name": "Accept-Language", @@ -211,19 +168,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } }, "produces": [ @@ -285,19 +242,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } }, "produces": [ @@ -337,19 +294,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } }, "produces": [ @@ -389,19 +346,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } }, "produces": [ @@ -441,19 +398,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } }, "produces": [ @@ -507,19 +464,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } }, "produces": [ diff --git a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json index 9518a1dbe7c1..c988f6851d8e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json +++ b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json @@ -41,58 +41,6 @@ "apiKeyQuery": [] } ], - "responses": { - "202": { - "description": "Request Accepted: The request has been accepted for processing. Please use the URL in the Location Header to retry or access the results.", - "headers": { - "Location": { - "type": "string", - "description": "New URL to check for the results of the long running process." - } - } - }, - "400": { - "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "401": { - "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "headers": { - "WWW-Authenticate": { - "type": "string", - "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" - } - }, - "x-ms-error-response": true - }, - "403": { - "description": "Permission, capacity, or authentication issues.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "404": { - "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "500": { - "description": "An error occurred while processing the request. Please try again later.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - } - }, "parameters": { "TextFormat": { "name": "format", @@ -294,19 +242,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } }, "produces": [ @@ -417,19 +365,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -519,19 +467,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } }, "produces": [ @@ -689,19 +637,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -780,19 +728,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json index 83153a510753..d2f218a38ce5 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json @@ -48,58 +48,6 @@ "apiKeyQuery": [] } ], - "responses": { - "202": { - "description": "Request Accepted: The request has been accepted for processing. Please use the URL in the Location Header to retry or access the results.", - "headers": { - "Location": { - "type": "string", - "description": "New URL to check for the results of the long running process." - } - } - }, - "400": { - "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "401": { - "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "headers": { - "WWW-Authenticate": { - "type": "string", - "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" - } - }, - "x-ms-error-response": true - }, - "403": { - "description": "Permission, capacity, or authentication issues.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "404": { - "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "500": { - "description": "An error occurred while processing the request. Please try again later.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - } - }, "parameters": { "GeographicResourceLocation": { "name": "geography", @@ -211,19 +159,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -260,19 +208,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -309,19 +257,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -361,19 +309,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -413,19 +361,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -474,19 +422,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -526,19 +474,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -573,19 +521,19 @@ "description": "Feature Deleted." }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json index d1b298ddc2f1..1839cb658250 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json +++ b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json @@ -39,49 +39,6 @@ "apiKeyQuery": [] } ], - "responses": { - "400": { - "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "401": { - "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "headers": { - "WWW-Authenticate": { - "type": "string", - "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" - } - }, - "x-ms-error-response": true - }, - "403": { - "description": "Permission, capacity, or authentication issues.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "404": { - "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "500": { - "description": "An error occurred while processing the request. Please try again later.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - } - }, "parameters": { "WeatherLanguage": { "name": "language", @@ -171,19 +128,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -236,19 +193,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -304,19 +261,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -379,19 +336,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -447,19 +404,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -505,19 +462,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -570,19 +527,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -647,19 +604,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } From 2612e3ab90d8584b5e1daffec465da2d1be9f54a Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Mon, 19 Apr 2021 04:54:45 -0700 Subject: [PATCH 061/210] Fix semantic & model validation W/A for OAV as it is not able to parse Swagger file without "responses" object. --- .../maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json | 1 + .../data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json | 1 + .../maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json | 1 + .../data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json | 1 + .../Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json | 1 + .../Microsoft.Maps/FeatureState/preview/1.0/featurestate.json | 1 + .../Microsoft.Maps/Geolocation/preview/1.0/geolocation.json | 1 + .../data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json | 1 + .../data-plane/Microsoft.Maps/Render/preview/1.0/render.json | 1 + .../data-plane/Microsoft.Maps/Render/preview/2.0/render.json | 1 + .../maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json | 1 + .../data-plane/Microsoft.Maps/Search/preview/1.0/search.json | 1 + .../data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json | 1 + .../data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json | 1 + .../data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json | 1 + .../data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json | 1 + .../maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json | 1 + .../data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json | 1 + 18 files changed, 18 insertions(+) diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json index 458f6c7284c4..807c40c1cad7 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json @@ -48,6 +48,7 @@ "apiKeyQuery": [] } ], + "responses": {}, "parameters": { "CreateResourceId": { "name": "resourceId", diff --git a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json index fb712f6b2f4a..ef68b8eee607 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json +++ b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json @@ -41,6 +41,7 @@ "apiKeyQuery": [] } ], + "responses": {}, "paths": { "/elevation/point/{format}": { "get": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json index 15b9f69dab41..959eef30bce1 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json @@ -47,6 +47,7 @@ "apiKeyQuery": [] } ], + "responses": {}, "parameters": { "UploadDataFormat": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json index 9bda35c9d3d3..b2c6937d942a 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json @@ -48,6 +48,7 @@ "apiKeyQuery": [] } ], + "responses": {}, "parameters": { "ConversionIdQuery": { "name": "conversionId", diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json index 49cff020c8b4..c36fba6fe4fa 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json @@ -47,6 +47,7 @@ "apiKeyQuery": [] } ], + "responses": {}, "parameters": { "UdidQuery": { "name": "udid", diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json index ea18da0f4708..07c58a73a4b6 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json @@ -47,6 +47,7 @@ "apiKeyQuery": [] } ], + "responses": {}, "parameters": { "DatasetIdForCreate": { "name": "datasetId", diff --git a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json index c4f7fe63b5ad..9f5690cc73ac 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json +++ b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json @@ -40,6 +40,7 @@ "apiKeyQuery": [] } ], + "responses": {}, "paths": { "/geolocation/ip/{format}": { "get": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json index a7958b67c925..77b13e42b8f3 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json +++ b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json @@ -39,6 +39,7 @@ "apiKeyQuery": [] } ], + "responses": {}, "parameters": { "MetroId": { "name": "metroId", diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json index dfdc03c556c5..184ab3e5e56a 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json @@ -41,6 +41,7 @@ "apiKeyQuery": [] } ], + "responses": {}, "parameters": { "RasterTileFormat": { "name": "format", diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json index cdd48e289b6d..ffd3ca6db068 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json @@ -41,6 +41,7 @@ "apiKeyQuery": [] } ], + "responses": {}, "parameters": { "TilesetId_rv2": { "name": "tilesetId", diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json index 8e24daa9d5d9..37e71f1f01b2 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json @@ -41,6 +41,7 @@ "apiKeyQuery": [] } ], + "responses": {}, "parameters": { "TextFormat": { "name": "format", diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json index 0ad2f5f0c2f5..627da43fcfa9 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json @@ -41,6 +41,7 @@ "apiKeyQuery": [] } ], + "responses": {}, "parameters": { "TextFormat": { "name": "format", diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json index 2c36f2ae9883..fb52fe60f3a6 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json @@ -41,6 +41,7 @@ "apiKeyQuery": [] } ], + "responses": {}, "parameters": { "TextFormat": { "name": "format", diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json index 1d560b3765d6..c49539953a62 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json @@ -47,6 +47,7 @@ "apiKeyQuery": [] } ], + "responses": {}, "parameters": { "GeographicResourceLocation": { "name": "geography", diff --git a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json index 4072a8c404a8..64f6d9ade2ea 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json +++ b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json @@ -41,6 +41,7 @@ "apiKeyQuery": [] } ], + "responses": {}, "parameters": { "TimezoneAcceptLanguage": { "name": "Accept-Language", diff --git a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json index c988f6851d8e..aad436c79ac6 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json +++ b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json @@ -41,6 +41,7 @@ "apiKeyQuery": [] } ], + "responses": {}, "parameters": { "TextFormat": { "name": "format", diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json index d2f218a38ce5..0ad7869ce95c 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json @@ -48,6 +48,7 @@ "apiKeyQuery": [] } ], + "responses": {}, "parameters": { "GeographicResourceLocation": { "name": "geography", diff --git a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json index 1839cb658250..418ed608b4d2 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json +++ b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json @@ -39,6 +39,7 @@ "apiKeyQuery": [] } ], + "responses": {}, "parameters": { "WeatherLanguage": { "name": "language", From 749b7d79c7ae04351e43768939af704853de39cd Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Mon, 19 Apr 2021 05:23:30 -0700 Subject: [PATCH 062/210] Fix autorest duplicate schema warnings Use common schema for Language, View, xTileIndex & yTileIndex between Render 1.0, Render 2.0, Search 1.0 and Traffic 1.0. --- .../Render/preview/1.0/render.json | 24 ++-------- .../Render/preview/2.0/render.json | 44 ++----------------- .../Traffic/preview/1.0/traffic.json | 28 ++---------- 3 files changed, 12 insertions(+), 84 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json index 184ab3e5e56a..628188282bd9 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json @@ -64,14 +64,6 @@ }, "x-ms-parameter-location": "method" }, - "Language": { - "name": "language", - "in": "query", - "description": "Language in which search results should be returned. Should be one of supported IETF language tags, case insensitive. When data in specified language is not available for a specific field, default language is used.\n\nPlease refer to [Supported Languages](https://docs.microsoft.com/en-us/azure/azure-maps/supported-languages) for details.", - "required": false, - "type": "string", - "x-ms-parameter-location": "method" - }, "TileFormat": { "name": "format", "description": "Desired format of the response. Possible values are png & pbf.", @@ -192,14 +184,6 @@ ], "default": "yes", "x-ms-parameter-location": "method" - }, - "View": { - "name": "view", - "in": "query", - "description": "The View parameter specifies which set of geopolitically disputed content is returned via Azure Maps services, including borders and labels displayed on the map. The View parameter (also referred to as “user region parameter”) will show the correct maps for that country/region. By default, the View parameter is set to “Unified” even if you haven’t defined it in the request. It is your responsibility to determine the location of your users, and then set the View parameter correctly for that location. Alternatively, you have the option to set ‘View=Auto’, which will return the map data based on the IP address of the request. The View parameter in Azure Maps must be used in compliance with applicable laws, including those regarding mapping, of the country where maps, images and other data and third party content that you are authorized to access via Azure Maps is made available. Example: view=IN.\n\nPlease refer to [Supported Views](https://aka.ms/AzureMapsLocalizationViews) for details and to see the available Views.", - "required": false, - "type": "string", - "x-ms-parameter-location": "method" } }, "paths": { @@ -331,10 +315,10 @@ "default": 512 }, { - "$ref": "#/parameters/Language" + "$ref": "../../../Search/preview/1.0/search.json#/parameters/Language" }, { - "$ref": "#/parameters/View" + "$ref": "../../../Search/preview/1.0/search.json#/parameters/View" }, { "name": "pins", @@ -515,10 +499,10 @@ } }, { - "$ref": "#/parameters/Language" + "$ref": "../../../Search/preview/1.0/search.json#/parameters/Language" }, { - "$ref": "#/parameters/View" + "$ref": "../../../Search/preview/1.0/search.json#/parameters/View" } ], "produces": [ diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json index ffd3ca6db068..5b65b72d25d3 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json @@ -119,26 +119,6 @@ }, "x-ms-parameter-location": "method" }, - "xTileIndex": { - "name": "x", - "x-ms-client-name": "xTileIndex", - "in": "query", - "description": "X coordinate of the tile on zoom grid. Value must be in the range [0, 2`zoom` -1].\n\nPlease see [Zoom Levels and Tile Grid](https://docs.microsoft.com/en-us/azure/location-based-services/zoom-levels-and-tile-grid) for details.", - "required": true, - "type": "integer", - "format": "int32", - "x-ms-parameter-location": "method" - }, - "yTileIndex": { - "name": "y", - "x-ms-client-name": "yTileIndex", - "in": "query", - "description": "Y coordinate of the tile on zoom grid. Value must be in the range [0, 2`zoom` -1].\n\nPlease see [Zoom Levels and Tile Grid](https://docs.microsoft.com/en-us/azure/location-based-services/zoom-levels-and-tile-grid) for details.", - "required": true, - "type": "integer", - "format": "int32", - "x-ms-parameter-location": "method" - }, "MapTileV2Zoom": { "name": "zoom", "in": "query", @@ -148,14 +128,6 @@ "format": "int32", "x-ms-parameter-location": "method" }, - "Language": { - "name": "language", - "in": "query", - "description": "Language in which search results should be returned. Should be one of supported IETF language tags, case insensitive. When data in specified language is not available for a specific field, default language is used.\n\nPlease refer to [Supported Languages](https://docs.microsoft.com/en-us/azure/azure-maps/supported-languages) for details.", - "required": false, - "type": "string", - "x-ms-parameter-location": "method" - }, "Text": { "name": "text", "in": "query", @@ -168,14 +140,6 @@ ], "default": "yes", "x-ms-parameter-location": "method" - }, - "View": { - "name": "view", - "in": "query", - "description": "The View parameter specifies which set of geopolitically disputed content is returned via Azure Maps services, including borders and labels displayed on the map. The View parameter (also referred to as “user region parameter”) will show the correct maps for that country/region. By default, the View parameter is set to “Unified” even if you haven’t defined it in the request. It is your responsibility to determine the location of your users, and then set the View parameter correctly for that location. Alternatively, you have the option to set ‘View=Auto’, which will return the map data based on the IP address of the request. The View parameter in Azure Maps must be used in compliance with applicable laws, including those regarding mapping, of the country where maps, images and other data and third party content that you are authorized to access via Azure Maps is made available. Example: view=IN.\n\nPlease refer to [Supported Views](https://aka.ms/AzureMapsLocalizationViews) for details and to see the available Views.", - "required": false, - "type": "string", - "x-ms-parameter-location": "method" } }, "paths": { @@ -205,10 +169,10 @@ "$ref": "#/parameters/MapTileV2Zoom" }, { - "$ref": "#/parameters/xTileIndex" + "$ref": "../1.0/render.json#/parameters/xTileIndex" }, { - "$ref": "#/parameters/yTileIndex" + "$ref": "../1.0/render.json#/parameters/yTileIndex" }, { "name": "timeStamp", @@ -244,10 +208,10 @@ } }, { - "$ref": "#/parameters/Language" + "$ref": "../../../Search/preview/1.0/search.json#/parameters/Language" }, { - "$ref": "#/parameters/View" + "$ref": "../../../Search/preview/1.0/search.json#/parameters/View" } ], "produces": [ diff --git a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json index aad436c79ac6..901ffc200b0d 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json +++ b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json @@ -133,26 +133,6 @@ "type": "integer", "format": "int32", "x-ms-parameter-location": "method" - }, - "xTileIndex": { - "name": "x", - "x-ms-client-name": "xTileIndex", - "in": "query", - "description": "X coordinate of the tile on zoom grid. Value must be in the range [0, 2`zoom` -1].\n\nPlease see [Zoom Levels and Tile Grid](https://docs.microsoft.com/en-us/azure/location-based-services/zoom-levels-and-tile-grid) for details.", - "required": true, - "type": "integer", - "format": "int32", - "x-ms-parameter-location": "method" - }, - "yTileIndex": { - "name": "y", - "x-ms-client-name": "yTileIndex", - "in": "query", - "description": "Y coordinate of the tile on zoom grid. Value must be in the range [0, 2`zoom` -1].\n\nPlease see [Zoom Levels and Tile Grid](https://docs.microsoft.com/en-us/azure/location-based-services/zoom-levels-and-tile-grid) for details.", - "required": true, - "type": "integer", - "format": "int32", - "x-ms-parameter-location": "method" } }, "paths": { @@ -218,10 +198,10 @@ "$ref": "#/parameters/RasterVectorZoom" }, { - "$ref": "#/parameters/xTileIndex" + "$ref": "../../../Render/preview/1.0/render.json#/parameters/xTileIndex" }, { - "$ref": "#/parameters/yTileIndex" + "$ref": "../../../Render/preview/1.0/render.json#/parameters/yTileIndex" }, { "name": "thickness", @@ -445,10 +425,10 @@ "$ref": "#/parameters/RasterVectorZoom" }, { - "$ref": "#/parameters/xTileIndex" + "$ref": "../../../Render/preview/1.0/render.json#/parameters/xTileIndex" }, { - "$ref": "#/parameters/yTileIndex" + "$ref": "../../../Render/preview/1.0/render.json#/parameters/yTileIndex" }, { "name": "t", From 6c7f13fdc2fb171d37d0d73b88753d4ffbf816c1 Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Mon, 19 Apr 2021 07:03:20 -0700 Subject: [PATCH 063/210] Fix C# generation of StyleRuleBaseType enum type --- .../FeatureState/preview/1.0/featurestate.json | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json index 07c58a73a4b6..8cebacae02a4 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json @@ -675,8 +675,8 @@ }, "StyleRuleBase": { "description": "contains common properties for numeric, string and boolean style rules.", - "type": "object", "discriminator": "type", + "type": "object", "required": [ "keyName", "type" @@ -696,7 +696,21 @@ ], "x-ms-enum": { "name": "StyleRuleBaseType", - "modelAsString": true + "modelAsString": true, + "values": [ + { + "value": "number", + "description": "Number type of stateset style." + }, + { + "value": "boolean", + "description": "Boolean type of stateset style." + }, + { + "value": "string", + "description": "String type of stateset style." + } + ] } } } From c70c20fad312047a31fbf706c43aeb77c5eafeba Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Tue, 20 Apr 2021 04:44:08 -0700 Subject: [PATCH 064/210] Fix license header for GO lang --- specification/maps/data-plane/readme.go.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/maps/data-plane/readme.go.md b/specification/maps/data-plane/readme.go.md index 63e110ce5929..c2b94b7df94c 100644 --- a/specification/maps/data-plane/readme.go.md +++ b/specification/maps/data-plane/readme.go.md @@ -4,7 +4,7 @@ These settings apply only when `--go` is specified on the command line. ``` yaml $(go) go: - license-header: MICROSOFT_APACHE_NO_VERSION + license-header: MICROSOFT_MIT_NO_VERSION namespace: azmaps clear-output-folder: true ``` From 7abba0d8d477657eec7203a9a30901934fdb5e87 Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Tue, 20 Apr 2021 04:45:33 -0700 Subject: [PATCH 065/210] Fix inheritance of the StyleRuleBase type in the FeatureState API --- .../preview/1.0/featurestate.json | 90 +++++++++++-------- 1 file changed, 54 insertions(+), 36 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json index 8cebacae02a4..19236fb6eefd 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json @@ -700,15 +700,18 @@ "values": [ { "value": "number", - "description": "Number type of stateset style." + "description": "Number type of stateset style.", + "name": "NumberTypeStyleRule" }, { "value": "boolean", - "description": "Boolean type of stateset style." + "description": "Boolean type of stateset style.", + "name": "BooleanTypeStyleRule" }, { "value": "string", - "description": "String type of stateset style." + "description": "String type of stateset style.", + "name": "StringTypeStyleRule" } ] } @@ -717,57 +720,72 @@ }, "BooleanTypeStyleRule": { "description": "the boolean type style rule object.", - "type": "object", "allOf": [ { "$ref": "#/definitions/StyleRuleBase" + }, + { + "type": "object", + "properties": { + "rules": { + "description": "Boolean style rules.", + "type": "array", + "items": { + "$ref": "#/definitions/BooleanRuleObject" + } + } + }, + "required": [ + "rules" + ] } - ], - "properties": { - "rules": { - "description": "Boolean style rules.", - "type": "array", - "items": { - "$ref": "#/definitions/BooleanRuleObject" - } - } - } + ] }, "NumberTypeStyleRule": { "description": "The numeric type style rule object.", - "type": "object", "allOf": [ { "$ref": "#/definitions/StyleRuleBase" + }, + { + "type": "object", + "properties": { + "rules": { + "description": "Numeric style rules.", + "type": "array", + "items": { + "$ref": "#/definitions/NumberRuleObject" + } + } + }, + "required": [ + "rules" + ] } - ], - "properties": { - "rules": { - "description": "Numeric style rules.", - "type": "array", - "items": { - "$ref": "#/definitions/NumberRuleObject" - } - } - } + ] }, "StringTypeStyleRule": { "description": "The string type style rule object.", - "type": "object", "allOf": [ { "$ref": "#/definitions/StyleRuleBase" + }, + { + "type": "object", + "properties": { + "rules": { + "description": "String style rules.", + "type": "array", + "items": { + "$ref": "#/definitions/StringRuleObject" + } + } + }, + "required": [ + "rules" + ] } - ], - "properties": { - "rules": { - "description": "String style rules.", - "type": "array", - "items": { - "$ref": "#/definitions/StringRuleObject" - } - } - } + ] } } } From 7a84939bb5527ab08c1d4ddca690f8ef329347df Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Tue, 20 Apr 2021 05:39:16 -0700 Subject: [PATCH 066/210] Revert resource-manager changes. --- .../maps/resource-manager/readme.java.md | 61 ------------------- specification/maps/resource-manager/readme.md | 60 +++++++++++++++++- 2 files changed, 59 insertions(+), 62 deletions(-) delete mode 100644 specification/maps/resource-manager/readme.java.md diff --git a/specification/maps/resource-manager/readme.java.md b/specification/maps/resource-manager/readme.java.md deleted file mode 100644 index b632d46188d0..000000000000 --- a/specification/maps/resource-manager/readme.java.md +++ /dev/null @@ -1,61 +0,0 @@ -## Java - -These settings apply only when `--java` is specified on the command line. -Please also specify `--azure-libraries-for-java-folder=`. - -``` yaml $(java) -azure-arm: true -fluent: true -namespace: com.microsoft.azure.management.maps -license-header: MICROSOFT_MIT_NO_CODEGEN -payload-flattening-threshold: 1 -output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-maps -``` - -### Java multi-api - -``` yaml $(java) && $(multiapi) -batch: - - tag: package-2017-01 - - tag: package-2018-05 - - tag: package-preview-2020-02 -``` - -### Tag: package-preview-2020-02 and java - -These settings apply only when `--tag=package-preview-2020-02 --java` is specified on the command line. -Please also specify `--azure-libraries-for-java=`. - -``` yaml $(tag) == 'package-preview-2020-02' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.maps.v2020_02_01_preview - output-folder: $(azure-libraries-for-java-folder)/sdk/maps/mgmt-v2020_02_01_preview -regenerate-manager: true -generate-interface: true -``` - -### Tag: package-2017-01 and java - -These settings apply only when `--tag=package-2017-01 --java` is specified on the command line. -Please also specify `--azure-libraries-for-java=`. - -``` yaml $(tag) == 'package-2017-01' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.maps.v2017_01_01_preview - output-folder: $(azure-libraries-for-java-folder)/sdk/maps/mgmt-v2017_01_01_preview -regenerate-manager: true -generate-interface: true -``` - -### Tag: package-2018-05 and java - -These settings apply only when `--tag=package-2018-05 --java` is specified on the command line. -Please also specify `--azure-libraries-for-java=`. - -``` yaml $(tag) == 'package-2018-05' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.maps.v2018_05_01 - output-folder: $(azure-libraries-for-java-folder)/sdk/maps/mgmt-v2018_05_01 -regenerate-manager: true -generate-interface: true -``` diff --git a/specification/maps/resource-manager/readme.md b/specification/maps/resource-manager/readme.md index 7a90ce6f94d3..37d96a20a3ee 100644 --- a/specification/maps/resource-manager/readme.md +++ b/specification/maps/resource-manager/readme.md @@ -120,7 +120,65 @@ See configuration in [readme.go.md](./readme.go.md) ## Java -See configuration in [readme.java.md](./readme.java.md) +These settings apply only when `--java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(java) +azure-arm: true +fluent: true +namespace: com.microsoft.azure.management.maps +license-header: MICROSOFT_MIT_NO_CODEGEN +payload-flattening-threshold: 1 +output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-maps +``` + +### Java multi-api + +``` yaml $(java) && $(multiapi) +batch: + - tag: package-2017-01 + - tag: package-2018-05 + - tag: package-2020-02 +``` + +### Tag: package-2020-02 and java + +These settings apply only when `--tag=package-2020-02 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2020-02' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.maps.v2020_02_01_preview + output-folder: $(azure-libraries-for-java-folder)/sdk/maps/mgmt-v2020_02_01_preview +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-2017-01 and java + +These settings apply only when `--tag=package-2017-01 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2017-01' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.maps.v2017_01_01_preview + output-folder: $(azure-libraries-for-java-folder)/sdk/maps/mgmt-v2017_01_01_preview +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-2018-05 and java + +These settings apply only when `--tag=package-2018-05 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2018-05' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.maps.v2018_05_01 + output-folder: $(azure-libraries-for-java-folder)/sdk/maps/mgmt-v2018_05_01 +regenerate-manager: true +generate-interface: true +``` ## Suppression From 65f34929601e38a957ec6f2e30e12f0bc263a072 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Tue, 20 Apr 2021 05:56:15 -0700 Subject: [PATCH 067/210] Remove current version. --- .../data-plane/Microsoft.Maps/Common/preview/1.0/common.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index 0cc81b4a8250..dcc0414aa7b7 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -442,7 +442,7 @@ }, "ApiVersion": { "name": "api-version", - "description": "Version number of Azure Maps API. Current version is 1.0", + "description": "Version number of Azure Maps API.", "type": "string", "in": "query", "required": true, @@ -451,7 +451,7 @@ }, "ApiVersionV2": { "name": "api-version", - "description": "Version number of Azure Maps API. Current version is 2.0", + "description": "Version number of Azure Maps API.", "type": "string", "in": "query", "required": true, From 41dd1159e037dc669ab032b4deb645bbd410e00f Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Tue, 20 Apr 2021 06:10:36 -0700 Subject: [PATCH 068/210] Update java namespace. --- specification/maps/data-plane/readme.java.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/maps/data-plane/readme.java.md b/specification/maps/data-plane/readme.java.md index c51d03df3553..d1293f165e3e 100644 --- a/specification/maps/data-plane/readme.java.md +++ b/specification/maps/data-plane/readme.java.md @@ -1,9 +1,9 @@ ## Java ``` yaml $(java) -namespace: com.microsoft.azure.maps.service +namespace: com.azure.maps.service license-header: MICROSOFT_MIT_NO_CODEGEN -java: true +java: trues payload-flattening-threshold: 0 output-folder: $(azure-libraries-for-java-folder)/azure-maps-service ``` \ No newline at end of file From 16974924be7a8bb93debfc8af013679ad571e8cf Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Tue, 20 Apr 2021 08:55:13 -0700 Subject: [PATCH 069/210] Fix StyleRuleBase type inherited types generation --- .../preview/1.0/featurestate.json | 116 ++++++++++-------- 1 file changed, 67 insertions(+), 49 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json index 19236fb6eefd..068339741f7a 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json @@ -700,92 +700,110 @@ "values": [ { "value": "number", - "description": "Number type of stateset style.", - "name": "NumberTypeStyleRule" + "description": "Number type of stateset style." }, { "value": "boolean", - "description": "Boolean type of stateset style.", - "name": "BooleanTypeStyleRule" + "description": "Boolean type of stateset style." }, { "value": "string", - "description": "String type of stateset style.", - "name": "StringTypeStyleRule" + "description": "String type of stateset style." } ] } } } }, - "BooleanTypeStyleRule": { + "boolean": { "description": "the boolean type style rule object.", + "x-ms-client-name": "BooleanTypeStyleRule", + "type": "object", "allOf": [ { "$ref": "#/definitions/StyleRuleBase" }, { - "type": "object", - "properties": { - "rules": { - "description": "Boolean style rules.", - "type": "array", - "items": { - "$ref": "#/definitions/BooleanRuleObject" - } - } - }, - "required": [ - "rules" - ] + "$ref": "#/definitions/BooleanTypeStyleRuleProperties" + } + ] + }, + "BooleanTypeStyleRuleProperties": { + "description": "Boolean type style rule properties definition.", + "x-ms-external": true, + "type": "object", + "properties": { + "rules": { + "description": "Boolean style rules.", + "type": "array", + "items": { + "$ref": "#/definitions/BooleanRuleObject" + } } + }, + "required": [ + "rules" ] }, - "NumberTypeStyleRule": { + "number": { "description": "The numeric type style rule object.", + "x-ms-client-name": "NumberTypeStyleRule", + "type": "object", "allOf": [ { "$ref": "#/definitions/StyleRuleBase" }, { - "type": "object", - "properties": { - "rules": { - "description": "Numeric style rules.", - "type": "array", - "items": { - "$ref": "#/definitions/NumberRuleObject" - } - } - }, - "required": [ - "rules" - ] + "$ref": "#/definitions/NumberTypeStyleRuleProperties" } ] }, - "StringTypeStyleRule": { + "NumberTypeStyleRuleProperties": { + "description": "Number type style rule properties definition.", + "x-ms-external": true, + "type": "object", + "properties": { + "rules": { + "description": "Numeric style rules.", + "type": "array", + "items": { + "$ref": "#/definitions/NumberRuleObject" + } + } + }, + "required": [ + "rules" + ] + }, + "string": { "description": "The string type style rule object.", + "x-ms-client-name": "StringTypeStyleRule", + "type": "object", "allOf": [ { "$ref": "#/definitions/StyleRuleBase" }, { - "type": "object", - "properties": { - "rules": { - "description": "String style rules.", - "type": "array", - "items": { - "$ref": "#/definitions/StringRuleObject" - } - } - }, - "required": [ - "rules" - ] + "$ref": "#/definitions/StringTypeStyleRuleProperties" } ] - } + }, + "StringTypeStyleRuleProperties": { + "description": "String type style rule properties definition.", + "x-ms-external": true, + "type": "object", + "properties": { + "rules": { + "description": "String style rules.", + "type": "array", + "items": { + "$ref": "#/definitions/StringRuleObject" + } + } + }, + "required": [ + "rules" + ] +} } } From 5d52384065bd44c2996d9113fd49951ae79cdbbc Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Wed, 21 Apr 2021 06:28:16 -0700 Subject: [PATCH 070/210] Fix prettier error --- .../Microsoft.Maps/FeatureState/preview/1.0/featurestate.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json index 068339741f7a..c1b74f7eaa78 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json @@ -773,7 +773,7 @@ }, "required": [ "rules" - ] + ] }, "string": { "description": "The string type style rule object.", From 4f6f740e9de420ea23f802831d95e141c131ea4f Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Wed, 21 Apr 2021 07:55:11 -0700 Subject: [PATCH 071/210] Use common GeoJson naming & fix inheritance --- .../Common/preview/1.0/common.json | 106 +++++++++--------- .../preview/1.0/featurestate.json | 43 +++---- .../Spatial/preview/1.0/spatial.json | 16 +-- .../Microsoft.Maps/WFS/preview/1.0/wfs.json | 10 +- 4 files changed, 82 insertions(+), 93 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index dcc0414aa7b7..03cd219aa25f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -125,7 +125,22 @@ "description": "This represents the geometry for one or more geographical features (parks, state boundary etc.) and should be a `GeoJSON` compliant type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946) for details.", "type": "object" }, - "GeoJSONGeometry": { + "GeoJsonPosition": { + "description": "A valid `GeoJSON Position` geometry type. A `Position` is an array of numbers with two or more elements. The first two elements are _longitude_ and _latitude_, precisely in that order. _Altitude/Elevation_ is an optional third element. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.1) for details.", + "type": "array", + "items": { + "type": "number", + "format": "double" + } + }, + "GeoJsonLinearRing": { + "description": "Though a linear ring is not explicitly represented as a GeoJSON geometry type, it helps in defining the polygon as an array of linear rings. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.6) for details.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonPosition" + } + }, + "GeoJsonGeometry": { "description": "A valid `GeoJSON` geometry object. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1) for details.", "type": "object", "discriminator": "type", @@ -146,7 +161,7 @@ "GeometryCollection" ], "x-ms-enum": { - "name": "GeoJSONGeometryType", + "name": "GeoJsonGeometryType", "modelAsString": false, "values": [ { @@ -187,7 +202,7 @@ "type": "object", "allOf": [ { - "$ref": "#/definitions/GeoJSONGeometry" + "$ref": "#/definitions/GeoJsonGeometry" }, { "$ref": "#/definitions/PointData" @@ -199,7 +214,7 @@ "type": "object", "properties": { "coordinates": { - "$ref": "#/definitions/GeoJSONPosition" + "$ref": "#/definitions/GeoJsonPosition" } }, "required": [ @@ -211,7 +226,7 @@ "type": "object", "allOf": [ { - "$ref": "#/definitions/GeoJSONGeometry" + "$ref": "#/definitions/GeoJsonGeometry" }, { "$ref": "#/definitions/MultiPointData" @@ -226,7 +241,7 @@ "description": "Coordinates for the `MultiPoint` geometry.", "type": "array", "items": { - "$ref": "#/definitions/GeoJSONPosition" + "$ref": "#/definitions/GeoJsonPosition" } } }, @@ -239,7 +254,7 @@ "type": "object", "allOf": [ { - "$ref": "#/definitions/GeoJSONGeometry" + "$ref": "#/definitions/GeoJsonGeometry" }, { "$ref": "#/definitions/LineStringData" @@ -253,7 +268,7 @@ "description": "Coordinates for the `LineString` geometry.", "type": "array", "items": { - "$ref": "#/definitions/GeoJSONPosition" + "$ref": "#/definitions/GeoJsonPosition" } } }, @@ -261,43 +276,32 @@ "coordinates" ] }, - "GeoJSONLinearRing": { - "description": "Though a linear ring is not explicitly represented as a GeoJSON geometry type, it helps in defining the polygon as an array of linear rings. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.6) for details.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJSONPosition" - } - }, - "GeoJSONPosition": { - "description": "A valid `GeoJSON Position` geometry type. A `Position` is an array of numbers with two or more elements. The first two elements are _longitude_ and _latitude_, precisely in that order. _Altitude/Elevation_ is an optional third element. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.1) for details.", - "type": "array", - "items": { - "type": "number", - "format": "double" - } - }, - "MultiPolygon": { - "description": "A valid `GeoJSON MultiPolygon` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.7) for details.", + "MultiLineString": { + "description": "A valid `GeoJSON MultiLineString` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.5) for details.", "type": "object", "allOf": [ { - "$ref": "#/definitions/GeoJSONGeometry" + "$ref": "#/definitions/GeoJsonGeometry" }, { - "$ref": "#/definitions/MultiPolygonData" + "$ref": "#/definitions/MultiLineStringData" } ] }, - "MultiPolygonData": { + "MultiLineStringData": { "type": "object", "properties": { + "type": { + "description": "Specifies the `type` for the geometry. Value should always be equal to \"MultiLineString\".", + "type": "string" + }, "coordinates": { - "description": "Contains a list of valid `GeoJSON` Polygon objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude).", + "description": "Coordinates for the `MultiLineString` geometry.", "type": "array", "items": { "type": "array", "items": { - "$ref": "#/definitions/GeoJSONLinearRing" + "$ref": "#/definitions/GeoJsonPosition" } } } @@ -306,33 +310,26 @@ "coordinates" ] }, - "MultiLineString": { - "description": "A valid `GeoJSON MultiLineString` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.5) for details.", + "Polygon": { + "description": "A valid `GeoJSON Polygon` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.6) for details.", "type": "object", "allOf": [ { - "$ref": "#/definitions/GeoJSONGeometry" + "$ref": "#/definitions/GeoJsonGeometry" }, { - "$ref": "#/definitions/MultiPointStringData" + "$ref": "#/definitions/PolygonData" } ] }, - "MultiPointStringData": { + "PolygonData": { "type": "object", "properties": { - "type": { - "description": "Specifies the `type` for the geometry. Value should always be equal to \"MultiLineString\".", - "type": "string" - }, "coordinates": { - "description": "Coordinates for the `MultiLineString` geometry.", + "description": "Coordinates for the `Polygon` geometry type.", "type": "array", "items": { - "type": "array", - "items": { - "$ref": "#/definitions/GeoJSONPosition" - } + "$ref": "#/definitions/GeoJsonLinearRing" } } }, @@ -340,26 +337,29 @@ "coordinates" ] }, - "Polygon": { - "description": "A valid `GeoJSON Polygon` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.6) for details.", + "MultiPolygon": { + "description": "A valid `GeoJSON MultiPolygon` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.7) for details.", "type": "object", "allOf": [ { - "$ref": "#/definitions/GeoJSONGeometry" + "$ref": "#/definitions/GeoJsonGeometry" }, { - "$ref": "#/definitions/PolygonData" + "$ref": "#/definitions/MultiPolygonData" } ] }, - "PolygonData": { + "MultiPolygonData": { "type": "object", "properties": { "coordinates": { - "description": "Coordinates for the `Polygon` geometry type.", + "description": "Contains a list of valid `GeoJSON` Polygon objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude).", "type": "array", "items": { - "$ref": "#/definitions/GeoJSONLinearRing" + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonLinearRing" + } } } }, @@ -372,7 +372,7 @@ "type": "object", "allOf": [ { - "$ref": "#/definitions/GeoJSONGeometry" + "$ref": "#/definitions/GeoJsonGeometry" }, { "$ref": "#/definitions/GeometryCollectionData" @@ -386,7 +386,7 @@ "description": "Contains a list of valid `GeoJSON` geometry objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude).", "type": "array", "items": { - "$ref": "#/definitions/GeoJSONGeometry" + "$ref": "#/definitions/GeoJsonGeometry" } } }, diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json index c1b74f7eaa78..ab9c1bf64788 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json @@ -598,10 +598,6 @@ } } }, - "StyleObject": { - "description": "The stateset style model. The style rule could be a numeric type style rule or a boolean type style rule. Refer to NumberRuleObject, StringRuleObject and BooleanRuleObject definitions [here](https://aka.ms/AzureMapsStatesetStylesObject). ", - "type": "object" - }, "NumberRuleObject": { "description": "The numeric rule", "type": "object", @@ -610,7 +606,7 @@ "$ref": "#/definitions/RangeObject" }, "color": { - "description": "Color is a JSON string in a variety of permitted formats, HTML-style hex values, RGB (\"#ff0\", \"#ffff00\", \"rgb(255, 255, 0)\"), RGBA (\"rgba(255, 255, 0, 1)\"), HSL(\"hsl(100, 50%, 50%)\"), and HSLA(\"hsla(100, 50%, 50%, 1)\"). Predefined HTML colors names, like yellow and blue, are also permitted.", + "description": "The color when value is within the range. Color is a JSON string in a variety of permitted formats, HTML-style hex values, RGB (\"#ff0\", \"#ffff00\", \"rgb(255, 255, 0)\"), RGBA (\"rgba(255, 255, 0, 1)\"), HSL(\"hsl(100, 50%, 50%)\"), and HSLA(\"hsla(100, 50%, 50%, 1)\"). Predefined HTML colors names, like yellow and blue, are also permitted.", "type": "string" } } @@ -646,11 +642,11 @@ "type": "object", "properties": { "true": { - "description": "The color when value is true.", + "description": "The color when value is true. Color is a JSON string in a variety of permitted formats, HTML-style hex values, RGB (\"#ff0\", \"#ffff00\", \"rgb(255, 255, 0)\"), RGBA (\"rgba(255, 255, 0, 1)\"), HSL(\"hsl(100, 50%, 50%)\"), and HSLA(\"hsla(100, 50%, 50%, 1)\"). Predefined HTML colors names, like yellow and blue, are also permitted.", "type": "string" }, "false": { - "description": "The color when value is false.", + "description": "The color when value is false. Color is a JSON string in a variety of permitted formats, HTML-style hex values, RGB (\"#ff0\", \"#ffff00\", \"rgb(255, 255, 0)\"), RGBA (\"rgba(255, 255, 0, 1)\"), HSL(\"hsl(100, 50%, 50%)\"), and HSLA(\"hsla(100, 50%, 50%, 1)\"). Predefined HTML colors names, like yellow and blue, are also permitted.", "type": "string" } } @@ -658,23 +654,13 @@ "StringRuleObject": { "description": "The string rule. The string value matching is case sensitive. If a feature's state doesn't match any of the values defined here, that feature will not have any dynamic style. If duplicate string values are given, the first one takes precedence.", "type": "object", - "properties": { - "stateValue1": { - "description": "The color when value string is stateValue1.", - "type": "string" - }, - "stateValue2": { - "description": "The color when value string is stateValue2.", - "type": "string" - }, - "stateValueN": { - "description": "The color when value string is stateValueN.", - "type": "string" - } + "additionalProperties": { + "description": "The color when the keyName value string is equal to this property name. Color is a JSON string in a variety of permitted formats, HTML-style hex values, RGB (\"#ff0\", \"#ffff00\", \"rgb(255, 255, 0)\"), RGBA (\"rgba(255, 255, 0, 1)\"), HSL(\"hsl(100, 50%, 50%)\"), and HSLA(\"hsla(100, 50%, 50%, 1)\"). Predefined HTML colors names, like yellow and blue, are also permitted.", + "type": "string" } }, - "StyleRuleBase": { - "description": "contains common properties for numeric, string and boolean style rules.", + "StyleObject": { + "description": "The stateset style model. The style rule could be a numeric type style rule or a boolean type style rule. Refer to NumberRuleObject, StringRuleObject and BooleanRuleObject definitions [here](https://aka.ms/AzureMapsStatesetStylesObject). ", "discriminator": "type", "type": "object", "required": [ @@ -695,7 +681,7 @@ "string" ], "x-ms-enum": { - "name": "StyleRuleBaseType", + "name": "StyleObjectType", "modelAsString": true, "values": [ { @@ -718,10 +704,11 @@ "boolean": { "description": "the boolean type style rule object.", "x-ms-client-name": "BooleanTypeStyleRule", + "x-ms-discriminator-value": "boolean", "type": "object", "allOf": [ { - "$ref": "#/definitions/StyleRuleBase" + "$ref": "#/definitions/StyleObject" }, { "$ref": "#/definitions/BooleanTypeStyleRuleProperties" @@ -748,10 +735,11 @@ "number": { "description": "The numeric type style rule object.", "x-ms-client-name": "NumberTypeStyleRule", + "x-ms-discriminator-value": "number", "type": "object", "allOf": [ { - "$ref": "#/definitions/StyleRuleBase" + "$ref": "#/definitions/StyleObject" }, { "$ref": "#/definitions/NumberTypeStyleRuleProperties" @@ -778,10 +766,11 @@ "string": { "description": "The string type style rule object.", "x-ms-client-name": "StringTypeStyleRule", + "x-ms-discriminator-value": "string", "type": "object", "allOf": [ { - "$ref": "#/definitions/StyleRuleBase" + "$ref": "#/definitions/StyleObject" }, { "$ref": "#/definitions/StringTypeStyleRuleProperties" @@ -804,6 +793,6 @@ "required": [ "rules" ] -} + } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json index fb52fe60f3a6..d0b5025fb3fe 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json @@ -330,7 +330,7 @@ "description": "The geofencing GeoJSON data.", "required": true, "schema": { - "$ref": "#/definitions/GeoJSONFeatureCollection" + "$ref": "#/definitions/GeoJsonFeatureCollection" } } ], @@ -539,7 +539,7 @@ "description": "The FeatureCollection of Point geometries from which closest point to source point should be determined. All the feature's properties should contain `geometryId`, which is used for identifying the geometry and is case-sensitive.", "required": true, "schema": { - "$ref": "#/definitions/GeoJSONFeatureCollection" + "$ref": "#/definitions/GeoJsonFeatureCollection" } } ], @@ -688,7 +688,7 @@ "description": "A FeatureCollection with a set of Polygon/MultiPolygon geometries. The maximum number of vertices accepted to form a Polygon is 10,000. All the feature's properties should contain `geometryId`, which is used for identifying the geometry and is case-sensitive.", "required": true, "schema": { - "$ref": "#/definitions/GeoJSONFeatureCollection" + "$ref": "#/definitions/GeoJsonFeatureCollection" } } ], @@ -866,7 +866,7 @@ } } }, - "GeoJSONFeatureCollection": { + "GeoJsonFeatureCollection": { "description": "A valid `GeoJSON FeatureCollection` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.3) for details.", "type": "object", "properties": { @@ -878,7 +878,7 @@ "description": "Contains a list of valid `GeoJSON Feature` objects.", "type": "array", "items": { - "description": "A valid `GeoJSON Feature` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.2) for details.", + "description": "", "type": "object", "properties": { "type": { @@ -886,7 +886,7 @@ "type": "string" }, "geometry": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJSONGeometry" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonGeometry" }, "properties": { "description": "Properties can contain any additional metadata about the `Feature`. Value can be any JSON object or a JSON null value", @@ -983,7 +983,7 @@ "type": "object", "properties": { "geometries": { - "$ref": "#/definitions/GeoJSONFeatureCollection" + "$ref": "#/definitions/GeoJsonFeatureCollection" }, "distances": { "description": "List of the distances to compute the buffer for, one-to-one per Feature in the collection, or one for all Features in the collection.", @@ -1017,7 +1017,7 @@ }, "result": { "description": "The FeatureCollection of buffers for the input.", - "$ref": "#/definitions/GeoJSONFeatureCollection" + "$ref": "#/definitions/GeoJsonFeatureCollection" } } }, diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json index 0ad7869ce95c..391e92ac7b6a 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json @@ -840,7 +840,7 @@ "features": { "type": "array", "items": { - "$ref": "#/definitions/FeatureGeoJSON" + "$ref": "#/definitions/GeoJsonFeature" } }, "links": { @@ -858,7 +858,7 @@ ], "properties": { "feature": { - "$ref": "#/definitions/FeatureGeoJSON" + "$ref": "#/definitions/GeoJsonFeature" }, "links": { "type": "array", @@ -868,8 +868,8 @@ } } }, - "FeatureGeoJSON": { - "description": "GeoJSON Feature", + "GeoJsonFeature": { + "description": "A valid `GeoJSON Feature` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.2) for details.", "type": "object", "required": [ "type", @@ -878,7 +878,7 @@ ], "properties": { "type": { - "description": "feature", + "description": "Specifies the `type` for the object. Value should always be equal to \"Feature\".", "type": "string" }, "geometry": { From 6ad656cc5e0808a761de706d55fbb9a897c84543 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Thu, 22 Apr 2021 11:18:56 +0200 Subject: [PATCH 072/210] Update 200 response to be 200Async instead of error response. Also update the examples for the given routes. --- .../Microsoft.Maps/Data/preview/1.0/data.json | 12 ++---------- .../Data/preview/1.0/examples/Update.json | 8 ++++---- .../Data/preview/1.0/examples/Upload.json | 8 ++++---- 3 files changed, 10 insertions(+), 18 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json index 959eef30bce1..da23cebd99e5 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json @@ -125,11 +125,7 @@ ], "responses": { "200": { - "description": "Data upload failed. The uploaded content did not satisfy all the validation checks. The response body contains all the errors that were encountered.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true + "$ref": "../../../Common/preview/1.0/common.json#/responses/200Async" }, "201": { "$ref": "../../../Common/preview/1.0/common.json#/responses/201Async" @@ -194,11 +190,7 @@ ], "responses": { "200": { - "description": "Data update failed. The uploaded content did not satisfy all the validation checks. The response body contains all the errors that were encountered.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true + "$ref": "../../../Common/preview/1.0/common.json#/responses/200Async" }, "201": { "$ref": "../../../Common/preview/1.0/common.json#/responses/201Async" diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/examples/Update.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/examples/Update.json index fbefa37257db..6c32b9fd0620 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/examples/Update.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/examples/Update.json @@ -46,10 +46,10 @@ "200": { "headers": {}, "body": { - "error": { - "code": "400 Bad Request", - "message": "Upload request failed. Your data has been removed as we encountered the following problems with it: Map data is not a valid GeoJSON geometry." - } + "operationId": "{operationId}", + "status": "Succeeded", + "created": "2020-01-02 1:02:03 AM +00:00", + "resourceLocation": "https://atlas.microsoft.com/mapData/metadata/{resourceId}?api-version=1.0" } }, "400": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/examples/Upload.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/examples/Upload.json index 1eef53581827..48fb1e7f3fad 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/examples/Upload.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/examples/Upload.json @@ -46,10 +46,10 @@ "200": { "headers": {}, "body": { - "error": { - "code": "400 Bad Request", - "message": "Upload request failed. Your data has been removed as we encountered the following problems with it: Map data is not a valid GeoJSON geometry." - } + "operationId": "{operationId}", + "status": "Succeeded", + "created": "2020-01-02 1:02:03 AM +00:00", + "resourceLocation": "https://atlas.microsoft.com/mapData/metadata/{resourceId}?api-version=1.0" } }, "400": { From a2953957d90920e137692e99e442ad6cfe7d212d Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Thu, 22 Apr 2021 05:55:12 -0700 Subject: [PATCH 073/210] Fix StyleRuleBase type inherited types generation --- .../preview/1.0/examples/CreateStateset.json | 6 +- .../preview/1.0/examples/GetStateset.json | 20 +++--- .../preview/1.0/examples/Stateset_List.json | 20 +++--- .../preview/1.0/examples/UpdateStateset.json | 4 +- .../preview/1.0/featurestate.json | 62 ++++++------------- 5 files changed, 44 insertions(+), 68 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/examples/CreateStateset.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/examples/CreateStateset.json index 26077a93784b..03933c179a41 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/examples/CreateStateset.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/examples/CreateStateset.json @@ -7,7 +7,7 @@ "statesetCreateRequestBody": { "styles": [ { - "keyname": "s1", + "keyName": "s1", "type": "boolean", "rules": [ { @@ -17,7 +17,7 @@ ] }, { - "keyname": "s2", + "keyName": "s2", "type": "number", "rules": [ { @@ -49,7 +49,7 @@ ] }, { - "keyname": "s3", + "keyName": "s3", "type": "string", "rules": [ { diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/examples/GetStateset.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/examples/GetStateset.json index 655b55546d1c..e7aaab0433ed 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/examples/GetStateset.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/examples/GetStateset.json @@ -31,34 +31,34 @@ "range": { "minimum": null, "maximum": null, - "exclusiveMinumum": null, - "exclusiveMaximum": "50" + "exclusiveMinimum": null, + "exclusiveMaximum": 50 }, "color": "#343deb" }, { "range": { - "minimum": "50", + "minimum": 50, "maximum": null, - "exclusiveMinumum": null, - "exclusiveMaximum": "69" + "exclusiveMinimum": null, + "exclusiveMaximum": 69 }, "color": "#34ebb1" }, { "range": { - "minimum": "69", + "minimum": 69, "maximum": null, - "exclusiveMinumum": null, - "exclusiveMaximum": "90" + "exclusiveMinimum": null, + "exclusiveMaximum": 90 }, "color": "#eba834" }, { "range": { - "minimum": "90", + "minimum": 90, "maximum": null, - "exclusiveMinumum": null, + "exclusiveMinimum": null, "exclusiveMaximum": null }, "color": "#eb3434" diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/examples/Stateset_List.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/examples/Stateset_List.json index 94eede94963b..f99f8aaca75a 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/examples/Stateset_List.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/examples/Stateset_List.json @@ -33,34 +33,34 @@ "range": { "minimum": null, "maximum": null, - "exclusiveMinumum": null, - "exclusiveMaximum": "50" + "exclusiveMinimum": null, + "exclusiveMaximum": 50 }, "color": "#343deb" }, { "range": { - "minimum": "50", + "minimum": 50, "maximum": null, - "exclusiveMinumum": null, - "exclusiveMaximum": "69" + "exclusiveMinimum": null, + "exclusiveMaximum": 69 }, "color": "#34ebb1" }, { "range": { - "minimum": "69", + "minimum": 69, "maximum": null, - "exclusiveMinumum": null, - "exclusiveMaximum": "90" + "exclusiveMinimum": null, + "exclusiveMaximum": 90 }, "color": "#eba834" }, { "range": { - "minimum": "90", + "minimum": 90, "maximum": null, - "exclusiveMinumum": null, + "exclusiveMinimum": null, "exclusiveMaximum": null }, "color": "#eb3434" diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/examples/UpdateStateset.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/examples/UpdateStateset.json index 02d4c988a0a1..12723bb33929 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/examples/UpdateStateset.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/examples/UpdateStateset.json @@ -7,7 +7,7 @@ "statesetStyleUpdateRequestBody": { "styles": [ { - "keyname": "s1", + "keyName": "s1", "type": "boolean", "rules": [ { @@ -17,7 +17,7 @@ ] }, { - "keyname": "s2", + "keyName": "s2", "type": "number", "rules": [ { diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json index ab9c1bf64788..b9610f69b69b 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json @@ -599,7 +599,7 @@ } }, "NumberRuleObject": { - "description": "The numeric rule", + "description": "The numeric rule. The color is selected from the first range it falls into.", "type": "object", "properties": { "range": { @@ -612,7 +612,7 @@ } }, "RangeObject": { - "description": "The numeric value range for this style rule, If the value is in the range, all the conditions must hold true.", + "description": "The numeric value range for this style rule. If the value is in the range, all the conditions must hold true.", "type": "object", "properties": { "minimum": { @@ -638,7 +638,7 @@ } }, "BooleanRuleObject": { - "description": "the boolean rule", + "description": "The boolean rule. The color is selected based on the logic value of the key.", "type": "object", "properties": { "true": { @@ -676,8 +676,8 @@ "description": "The type of stateset style.", "type": "string", "enum": [ - "number", "boolean", + "number", "string" ], "x-ms-enum": { @@ -685,40 +685,34 @@ "modelAsString": true, "values": [ { - "value": "number", - "description": "Number type of stateset style." + "value": "boolean", + "description": "Boolean type of stateset style.", + "name": "BooleanTypeStyleRule" }, { - "value": "boolean", - "description": "Boolean type of stateset style." + "value": "number", + "description": "Number type of stateset style.", + "name": "NumberTypeStyleRule" }, { "value": "string", - "description": "String type of stateset style." + "description": "String type of stateset style.", + "name": "StringTypeStyleRule" } ] } } } }, - "boolean": { - "description": "the boolean type style rule object.", - "x-ms-client-name": "BooleanTypeStyleRule", + "BooleanTypeStyleRule": { + "description": "The boolean type style rule object.", "x-ms-discriminator-value": "boolean", "type": "object", "allOf": [ { "$ref": "#/definitions/StyleObject" - }, - { - "$ref": "#/definitions/BooleanTypeStyleRuleProperties" } - ] - }, - "BooleanTypeStyleRuleProperties": { - "description": "Boolean type style rule properties definition.", - "x-ms-external": true, - "type": "object", + ], "properties": { "rules": { "description": "Boolean style rules.", @@ -732,24 +726,15 @@ "rules" ] }, - "number": { + "NumberTypeStyleRule": { "description": "The numeric type style rule object.", - "x-ms-client-name": "NumberTypeStyleRule", "x-ms-discriminator-value": "number", "type": "object", "allOf": [ { "$ref": "#/definitions/StyleObject" - }, - { - "$ref": "#/definitions/NumberTypeStyleRuleProperties" } - ] - }, - "NumberTypeStyleRuleProperties": { - "description": "Number type style rule properties definition.", - "x-ms-external": true, - "type": "object", + ], "properties": { "rules": { "description": "Numeric style rules.", @@ -763,24 +748,15 @@ "rules" ] }, - "string": { + "StringTypeStyleRule": { "description": "The string type style rule object.", - "x-ms-client-name": "StringTypeStyleRule", "x-ms-discriminator-value": "string", "type": "object", "allOf": [ { "$ref": "#/definitions/StyleObject" - }, - { - "$ref": "#/definitions/StringTypeStyleRuleProperties" } - ] - }, - "StringTypeStyleRuleProperties": { - "description": "String type style rule properties definition.", - "x-ms-external": true, - "type": "object", + ], "properties": { "rules": { "description": "String style rules.", From 5b6e7ff9065686f7cb054ea857c5c9fa5d69f321 Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Thu, 22 Apr 2021 07:58:54 -0700 Subject: [PATCH 074/210] Fix 'avoid' parameter in Route service to be actually an array of things to avoid --- .../Route/preview/1.0/route.json | 100 +++++++++--------- 1 file changed, 52 insertions(+), 48 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json index 37e71f1f01b2..1cdb96d46f7c 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json @@ -303,54 +303,58 @@ }, "x-ms-parameter-location": "method" }, - "Avoid": { + "RouteAvoidList": { "name": "avoid", "in": "query", "description": "Specifies something that the route calculation should try to avoid when determining the route. Can be specified multiple times in one request, for example, '&avoid=motorways&avoid=tollRoads&avoid=ferries'. In calculateReachableRange requests, the value alreadyUsedRoads must not be used.", "required": false, - "type": "string", - "enum": [ - "tollRoads", - "motorways", - "ferries", - "unpavedRoads", - "carpools", - "alreadyUsedRoads", - "borderCrossings" - ], - "x-ms-enum": { - "name": "Avoid", - "modelAsString": true, - "values": [ - { - "value": "tollRoads", - "description": "Avoids toll roads." - }, - { - "value": "motorways", - "description": "Avoids motorways" - }, - { - "value": "ferries", - "description": "Avoids ferries" - }, - { - "value": "unpavedRoads", - "description": "Avoids unpaved roads" - }, - { - "value": "carpools", - "description": "Avoids routes that require the use of carpool (HOV/High Occupancy Vehicle) lanes." - }, - { - "value": "alreadyUsedRoads", - "description": "Avoids using the same road multiple times. Most useful in conjunction with `routeType`=thrilling." - }, - { - "value": "borderCrossings", - "description": "Avoids border crossings in route calculation." - } - ] + "type": "array", + "collectionFormat": "multi", + "items": { + "type": "string", + "enum": [ + "tollRoads", + "motorways", + "ferries", + "unpavedRoads", + "carpools", + "alreadyUsedRoads", + "borderCrossings" + ], + "x-ms-enum": { + "name": "RouteAvoidType", + "modelAsString": true, + "values": [ + { + "value": "tollRoads", + "description": "Avoids toll roads." + }, + { + "value": "motorways", + "description": "Avoids motorways" + }, + { + "value": "ferries", + "description": "Avoids ferries" + }, + { + "value": "unpavedRoads", + "description": "Avoids unpaved roads" + }, + { + "value": "carpools", + "description": "Avoids routes that require the use of carpool (HOV/High Occupancy Vehicle) lanes." + }, + { + "value": "alreadyUsedRoads", + "description": "Avoids using the same road multiple times. Most useful in conjunction with `routeType`=thrilling." + }, + { + "value": "borderCrossings", + "description": "Avoids border crossings in route calculation." + } + ] + } }, "x-ms-parameter-location": "method" }, @@ -875,7 +879,7 @@ "$ref": "#/parameters/TravelMode" }, { - "$ref": "#/parameters/Avoid" + "$ref": "#/parameters/RouteAvoidList" }, { "$ref": "#/parameters/Traffic" @@ -1051,7 +1055,7 @@ "$ref": "#/parameters/TravelMode" }, { - "$ref": "#/parameters/Avoid" + "$ref": "#/parameters/RouteAvoidList" }, { "$ref": "#/parameters/Traffic" @@ -1249,7 +1253,7 @@ "$ref": "#/parameters/TravelMode" }, { - "$ref": "#/parameters/Avoid" + "$ref": "#/parameters/RouteAvoidList" }, { "$ref": "#/parameters/Traffic" @@ -1406,7 +1410,7 @@ "$ref": "#/parameters/Traffic" }, { - "$ref": "#/parameters/Avoid" + "$ref": "#/parameters/RouteAvoidList" }, { "$ref": "#/parameters/TravelMode" From f052fca08211a9e6fbfd24249ba45d474b8aca80 Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Mon, 26 Apr 2021 03:48:40 -0700 Subject: [PATCH 075/210] Rename definitions to have at least two words (fix AZC0012 error) and add missing x-ms-enums. --- .../Common/preview/1.0/common.json | 4 +- .../DEM/preview/1.0/elevation.json | 2 +- .../Dataset/preview/1.0/dataset.json | 4 +- .../Mobility/preview/1.0/mobility.json | 100 +++++++++--------- .../Render/preview/1.0/render.json | 22 +++- .../Render/preview/2.0/render.json | 14 +++ .../Route/preview/1.0/route.json | 32 +++--- .../Timezone/preview/1.0/timezone.json | 12 +-- .../Traffic/preview/1.0/traffic.json | 18 +++- .../Microsoft.Maps/WFS/preview/1.0/wfs.json | 28 ++--- .../Weather/preview/1.0/weather.json | 64 +++++------ 11 files changed, 171 insertions(+), 129 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index 03cd219aa25f..fef03f6eadcc 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -33,7 +33,7 @@ "Succeeded" ], "x-ms-enum": { - "name": "type", + "name": "LroStatus", "modelAsString": false, "values": [ { @@ -414,7 +414,7 @@ } } }, - "Coordinate": { + "CoordinatePair": { "description": "A location represented as a latitude and longitude.", "type": "object", "properties": { diff --git a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json index ef68b8eee607..70101a578fe3 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json +++ b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json @@ -411,7 +411,7 @@ "description": "The elevation data.", "properties": { "coordinate": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/Coordinate" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatePair" }, "elevationInMeter": { "description": "The elevation value in meters.", diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json index b2c6937d942a..43373237c224 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json @@ -82,7 +82,7 @@ "required": true, "x-ms-parameter-location": "method" }, - "Type": { + "DataType": { "name": "type", "type": "string", "in": "query", @@ -178,7 +178,7 @@ "$ref": "#/parameters/UdidDataset" }, { - "$ref": "#/parameters/Type" + "$ref": "#/parameters/DataType" }, { "$ref": "#/parameters/AppendDatasetId" diff --git a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json index 77b13e42b8f3..1ed01131e0f2 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json +++ b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json @@ -1275,13 +1275,13 @@ "agencies": { "type": "array", "items": { - "$ref": "#/definitions/Agency" + "$ref": "#/definitions/AgencyDetails" } }, "alerts": { "type": "array", "items": { - "$ref": "#/definitions/Alert" + "$ref": "#/definitions/AlertInformation" } } } @@ -1303,16 +1303,16 @@ "type": "object", "properties": { "stop": { - "$ref": "#/definitions/Stop" + "$ref": "#/definitions/LegStop" }, "lines": { - "$ref": "#/definitions/Lines" + "$ref": "#/definitions/ItineraryLines" }, "lineGroups": { - "$ref": "#/definitions/LineGroups" + "$ref": "#/definitions/ItineraryLineGroups" }, "alerts": { - "$ref": "#/definitions/Alerts" + "$ref": "#/definitions/ItineraryStopAlerts" } } }, @@ -1355,24 +1355,24 @@ "properties": { "lineGroup": { "description": "Groups together all lines that are logically part of the same group. Typically contains 2 lines having the same agency and line, one going from A to B, and the other from B to A.", - "$ref": "#/definitions/LineGroup" + "$ref": "#/definitions/ItineraryLineGroup" }, "lines": { "description": "The line group’s basic info and list of the lines.", - "$ref": "#/definitions/Lines" + "$ref": "#/definitions/ItineraryLines" }, "stops": { "description": "List of stops the line group goes through.", "type": "array", "items": { - "$ref": "#/definitions/Stop" + "$ref": "#/definitions/LegStop" } }, "patterns": { "description": "List of patterns this group is comprised of. A pattern consists of a stop sequence and shape per a line in GeoJSON format.", "type": "array", "items": { - "$ref": "#/definitions/Pattern" + "$ref": "#/definitions/ItineraryPattern" } }, "schedule": { @@ -1420,10 +1420,10 @@ "type": "object", "properties": { "topLeftPoint": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/Coordinate" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatePair" }, "btmRightPoint": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/Coordinate" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatePair" } } }, @@ -1444,14 +1444,14 @@ }, "position": { "description": "The transit object's position.", - "$ref": "../../../Common/preview/1.0/common.json#/definitions/Coordinate" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatePair" }, "viewport": { "$ref": "#/definitions/ResultViewport" } } }, - "Stop": { + "LegStop": { "description": "The stop's basic info", "type": "object", "properties": { @@ -1473,7 +1473,7 @@ }, "position": { "description": "The Stop's location, latitude and longitude.", - "$ref": "../../../Common/preview/1.0/common.json#/definitions/Coordinate" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatePair" }, "mainTransitType": { "description": "The transit type of most lines stopping at this stop. One of Tram, Subway, Rail, Bus, Ferry, CableCar, Gondola, Funicular", @@ -1489,14 +1489,14 @@ } } }, - "Lines": { + "ItineraryLines": { "description": "A list of stop lines", "type": "array", "items": { - "$ref": "#/definitions/Line" + "$ref": "#/definitions/ItineraryLine" } }, - "Line": { + "ItineraryLine": { "description": "A stop line", "type": "object", "properties": { @@ -1542,14 +1542,14 @@ } } }, - "LineGroups": { + "ItineraryLineGroups": { "description": "A list of line groups", "type": "array", "items": { - "$ref": "#/definitions/LineGroup" + "$ref": "#/definitions/ItineraryLineGroup" } }, - "LineGroup": { + "ItineraryLineGroup": { "description": "A line group", "type": "object", "properties": { @@ -1587,14 +1587,14 @@ } } }, - "Alerts": { + "ItineraryStopAlerts": { "description": "A list of stop alerts", "type": "array", "items": { - "$ref": "#/definitions/Alert" + "$ref": "#/definitions/AlertInformation" } }, - "Alert": { + "AlertInformation": { "description": "Basic information associated with the active alert. Returned if specified in the request and there is an active alert in the metro area.", "type": "object", "properties": { @@ -1733,10 +1733,10 @@ "description": "An array summarizing the legs of this itinerary.", "type": "array", "items": { - "$ref": "#/definitions/Leg" + "$ref": "#/definitions/ItineraryLeg" } }, - "Leg": { + "ItineraryLeg": { "type": "object", "properties": { "legType": { @@ -1755,7 +1755,7 @@ "description": "In case of walk or bike leg, the directions.", "type": "array", "items": { - "$ref": "#/definitions/Step" + "$ref": "#/definitions/ItineraryStep" } }, "origin": { @@ -1771,19 +1771,19 @@ }, "lineGroup": { "description": "In case of a public transit leg, the line group serving this leg.", - "$ref": "#/definitions/LineGroup" + "$ref": "#/definitions/ItineraryLineGroup" }, "line": { "description": "In case of a public transit leg, the line serving this leg.", - "$ref": "#/definitions/Line" + "$ref": "#/definitions/ItineraryLine" }, "stops": { "description": "List of stops comprising the line’s route within the leg (e.g. the stops the leg passes through).", - "$ref": "#/definitions/Stops" + "$ref": "#/definitions/LegStops" }, "departures": { "description": "Relevant for Public Transit and Wait legs only", - "$ref": "#/definitions/Departures" + "$ref": "#/definitions/LegDepartures" }, "legFare": { "description": "Leg level public transit fare information. Returned only if fare information is available for the entire itinerary.", @@ -1877,19 +1877,19 @@ "properties": { "price": { "description": "The total price for all tickets a user is expected to purchase in order to complete this itinerary.", - "$ref": "#/definitions/Price" + "$ref": "#/definitions/FarePrice" }, "tickets": { "description": "An array describing the individual prices of each of the tickets that the user is expected to purchase throughout this itinerary. The list isn’t ordered.", "type": "array", "items": { - "$ref": "#/definitions/Tickets" + "$ref": "#/definitions/FareTicket" } } } }, - "Tickets": { - "description": "An array describing the individual prices of each of the tickets that the user is expected to purchase throughout this itinerary. The list isn’t ordered.", + "FareTicket": { + "description": "The price of a ticket that the user is expected to purchase throughout this itinerary.", "type": "object", "properties": { "amount": { @@ -1910,18 +1910,18 @@ "fares": { "type": "array", "items": { - "$ref": "#/definitions/Fares" + "$ref": "#/definitions/FareDetail" } } } }, - "Fares": { + "FareDetail": { "description": "Detailed fare information for the leg.", "type": "object", "properties": { "price": { "description": "The price of the ticket when purchased for the individual leg, not for the entire route at once.", - "$ref": "#/definitions/Price" + "$ref": "#/definitions/FarePrice" }, "usage": { "description": "Supported values are:\n\n * pay – user is expected to pay for this ticket in order to consume the current leg\n * transfer – user can use a ticket purchased in a previous leg in order to consume the current leg. In general, when transfer is specified, the number of transfers is counted, and has a limit.\n * continue – user can use a ticket purchased in a previous leg in order to consume the current leg. In general, when continue is specified, the number of transfers isn’t incremented for this leg.\n * upgrade – user is expected to upgrade a ticket purchased in a previous leg in order to consume the current leg.", @@ -1929,7 +1929,7 @@ } } }, - "Price": { + "FarePrice": { "type": "object", "properties": { "amount": { @@ -1947,22 +1947,22 @@ "type": "object", "properties": { "position": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/Coordinate" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatePair" } } }, - "Stops": { + "LegStops": { "type": "array", "items": { - "$ref": "#/definitions/Stop" + "$ref": "#/definitions/LegStop" } }, - "Step": { + "ItineraryStep": { "type": "object", "properties": { "direction": { "description": "The walking direction associated with this step.", - "$ref": "#/definitions/Direction" + "$ref": "#/definitions/WalkingDirection" }, "streetName": { "description": "The name of the street in which this step takes place.", @@ -1970,7 +1970,7 @@ } } }, - "Direction": { + "WalkingDirection": { "description": "The walking directions guidance.", "type": "object", "properties": { @@ -2105,7 +2105,7 @@ } } }, - "Departures": { + "LegDepartures": { "type": "array", "items": { "$ref": "#/definitions/LineArrival" @@ -2133,7 +2133,7 @@ } } }, - "Pattern": { + "ItineraryPattern": { "type": "object", "description": "Stop-shape-segments of the trip pattern, which are an ordered list of the stops and the shapes connecting them.", "properties": { @@ -2171,7 +2171,7 @@ } } }, - "Agency": { + "AgencyDetails": { "type": "object", "description": "Details of the agency. Returned if specified in the request.", "properties": { @@ -2280,11 +2280,11 @@ }, "line": { "description": "The public transit type of the line.", - "$ref": "#/definitions/Line" + "$ref": "#/definitions/ItineraryLine" }, "stop": { "description": "Object for the given stop.", - "$ref": "#/definitions/Stop" + "$ref": "#/definitions/LegStop" } } }, diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json index 628188282bd9..0f24f4e3f454 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json @@ -182,6 +182,20 @@ "yes", "no" ], + "x-ms-enum":{ + "name": "IncludeText", + "modelAsString": true, + "values": [ + { + "value": "yes", + "description": "Include all textual data in response." + }, + { + "value": "no", + "description": "Exclude textual data from response. Only images and country names will be in response." + } + ] + }, "default": "yes", "x-ms-parameter-location": "method" } @@ -937,12 +951,12 @@ "type": "array", "readOnly": true, "items": { - "$ref": "#/definitions/Region" + "$ref": "#/definitions/RegionCopyrights" } } } }, - "Region": { + "RegionCopyrights": { "type": "object", "properties": { "copyrights": { @@ -1012,7 +1026,7 @@ "type": "array", "readOnly": true, "items": { - "$ref": "#/definitions/Region" + "$ref": "#/definitions/RegionCopyrights" } } } @@ -1040,7 +1054,7 @@ "type": "array", "readOnly": true, "items": { - "$ref": "#/definitions/Region" + "$ref": "#/definitions/RegionCopyrights" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json index 5b65b72d25d3..1e1fddf7b1de 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json @@ -138,6 +138,20 @@ "yes", "no" ], + "x-ms-enum":{ + "name": "IncludeText", + "modelAsString": true, + "values": [ + { + "value": "yes", + "description": "Include all textual data in response." + }, + { + "value": "no", + "description": "Exclude textual data from response. Only images and country names will be in response." + } + ] + }, "default": "yes", "x-ms-parameter-location": "method" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json index 1cdb96d46f7c..97a6936a849b 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json @@ -182,7 +182,7 @@ }, "x-ms-parameter-location": "method" }, - "Windingness": { + "WindingnessLevel": { "name": "windingness", "in": "query", "description": "Level of turns for thrilling route. This parameter can only be used in conjunction with `routeType`=thrilling.", @@ -195,7 +195,7 @@ "high" ], "x-ms-enum": { - "name": "Windingness", + "name": "WindingnessLevel", "modelAsString": true, "values": [ { @@ -214,7 +214,7 @@ }, "x-ms-parameter-location": "method" }, - "Hilliness": { + "HillinessDegree": { "name": "hilliness", "in": "query", "description": "Degree of hilliness for thrilling route. This parameter can only be used in conjunction with `routeType`=thrilling.", @@ -227,7 +227,7 @@ "high" ], "x-ms-enum": { - "name": "Hilliness", + "name": "HillinessDegree", "modelAsString": true, "values": [ { @@ -870,10 +870,10 @@ "$ref": "#/parameters/VehicleWeightMatrix" }, { - "$ref": "#/parameters/Windingness" + "$ref": "#/parameters/WindingnessLevel" }, { - "$ref": "#/parameters/Hilliness" + "$ref": "#/parameters/HillinessDegree" }, { "$ref": "#/parameters/TravelMode" @@ -1046,10 +1046,10 @@ "$ref": "#/parameters/VehicleCommercial" }, { - "$ref": "#/parameters/Windingness" + "$ref": "#/parameters/WindingnessLevel" }, { - "$ref": "#/parameters/Hilliness" + "$ref": "#/parameters/HillinessDegree" }, { "$ref": "#/parameters/TravelMode" @@ -1244,10 +1244,10 @@ "$ref": "#/parameters/VehicleCommercial" }, { - "$ref": "#/parameters/Windingness" + "$ref": "#/parameters/WindingnessLevel" }, { - "$ref": "#/parameters/Hilliness" + "$ref": "#/parameters/HillinessDegree" }, { "$ref": "#/parameters/TravelMode" @@ -1416,10 +1416,10 @@ "$ref": "#/parameters/TravelMode" }, { - "$ref": "#/parameters/Hilliness" + "$ref": "#/parameters/HillinessDegree" }, { - "$ref": "#/parameters/Windingness" + "$ref": "#/parameters/WindingnessLevel" }, { "$ref": "#/parameters/VehicleAxleWeight" @@ -1750,7 +1750,7 @@ "type": "array", "readOnly": true, "items": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/Coordinate" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatePair" } } } @@ -1944,7 +1944,7 @@ "readOnly": true }, "point": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/Coordinate" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatePair" }, "pointIndex": { "description": "The index of the point in the list of polyline \"points\" corresponding to the point of the instruction.", @@ -2355,14 +2355,14 @@ "properties": { "center": { "description": "Center point of the reachable range", - "$ref": "../../../Common/preview/1.0/common.json#/definitions/Coordinate" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatePair" }, "boundary": { "description": "Polygon boundary of the reachable range represented as a list of points.", "type": "array", "readOnly": true, "items": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/Coordinate" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatePair" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json index 64f6d9ade2ea..7ae2fec2e398 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json +++ b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json @@ -487,7 +487,7 @@ } }, "definitions": { - "Country": { + "CountryRecord": { "type": "object", "description": "A country record.", "properties": { @@ -694,11 +694,11 @@ "type": "array", "readOnly": true, "items": { - "$ref": "#/definitions/Country" + "$ref": "#/definitions/CountryRecord" } }, "Names": { - "$ref": "#/definitions/Names" + "$ref": "#/definitions/TimezoneNames" }, "ReferenceTime": { "$ref": "#/definitions/ReferenceTimeById" @@ -738,11 +738,11 @@ "type": "array", "readOnly": true, "items": { - "$ref": "#/definitions/Country" + "$ref": "#/definitions/CountryRecord" } }, "Names": { - "$ref": "#/definitions/Names" + "$ref": "#/definitions/TimezoneNames" }, "ReferenceTime": { "$ref": "#/definitions/ReferenceTimeByCoordinates" @@ -760,7 +760,7 @@ } } }, - "Names": { + "TimezoneNames": { "type": "object", "description": "Timezone names object.", "properties": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json index 901ffc200b0d..628dd8bb335c 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json +++ b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json @@ -566,7 +566,21 @@ "enum": [ "EPSG900913", "EPSG4326" - ] + ], + "x-ms-enum": { + "name": "ProjectionStandard", + "modelAsString": true, + "values": [ + { + "value": "EPSG900913", + "description": "[EPSG900913](http://docs.openlayers.org/library/spherical_mercator.html)" + }, + { + "value": "EPSG4326", + "description": "[EPSG4326](http://spatialreference.org/ref/epsg/4326/)" + } + ] + } }, { "name": "geometries", @@ -786,7 +800,7 @@ "type": "array", "readOnly": true, "items": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/Coordinate" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatePair" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json index 391e92ac7b6a..00e9ef036a67 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json @@ -156,7 +156,7 @@ "200": { "description": "Ok", "schema": { - "$ref": "#/definitions/Root" + "$ref": "#/definitions/LandingPage" } }, "400": { @@ -254,7 +254,7 @@ "200": { "description": "Ok", "schema": { - "$ref": "#/definitions/Content" + "$ref": "#/definitions/CollectionsResponse" } }, "400": { @@ -471,7 +471,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/Feature" + "$ref": "#/definitions/FeatureResponse" } }, "400": { @@ -541,7 +541,7 @@ } }, "definitions": { - "Root": { + "LandingPage": { "type": "object", "required": [ "links" @@ -550,7 +550,7 @@ "links": { "type": "array", "items": { - "$ref": "#/definitions/Link" + "$ref": "#/definitions/WfsEndpointLink" } } } @@ -575,7 +575,7 @@ } } }, - "Link": { + "WfsEndpointLink": { "description": "Links to other WFS endpoints", "type": "object", "required": [ @@ -602,7 +602,7 @@ } } }, - "Content": { + "CollectionsResponse": { "type": "object", "required": [ "links", @@ -612,7 +612,7 @@ "links": { "type": "array", "items": { - "$ref": "#/definitions/Link" + "$ref": "#/definitions/WfsEndpointLink" }, "example": [ { @@ -664,7 +664,7 @@ "links": { "type": "array", "items": { - "$ref": "#/definitions/Link" + "$ref": "#/definitions/WfsEndpointLink" }, "example": [ { @@ -714,7 +714,7 @@ "links": { "type": "array", "items": { - "$ref": "#/definitions/Link" + "$ref": "#/definitions/WfsEndpointLink" }, "example": [ { @@ -796,7 +796,7 @@ "links": { "type": "array", "items": { - "$ref": "#/definitions/Link" + "$ref": "#/definitions/WfsEndpointLink" } } } @@ -846,12 +846,12 @@ "links": { "type": "array", "items": { - "$ref": "#/definitions/Link" + "$ref": "#/definitions/WfsEndpointLink" } } } }, - "Feature": { + "FeatureResponse": { "type": "object", "required": [ "feature" @@ -863,7 +863,7 @@ "links": { "type": "array", "items": { - "$ref": "#/definitions/Link" + "$ref": "#/definitions/WfsEndpointLink" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json index 418ed608b4d2..b92e5fa9b215 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json +++ b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json @@ -49,7 +49,7 @@ "required": false, "x-ms-parameter-location": "method" }, - "WeatherUnit": { + "WeatherDataUnit": { "name": "unit", "description": "Specifies to return the data in either metric units or imperial units. Default value is metric.", "default": "metric", @@ -61,7 +61,7 @@ "imperial" ], "x-ms-enum": { - "name": "Unit", + "name": "WeatherDataUnit", "modelAsString": true, "values": [ { @@ -108,7 +108,7 @@ "required": true }, { - "$ref": "#/parameters/WeatherUnit" + "$ref": "#/parameters/WeatherDataUnit" }, { "name": "duration", @@ -241,7 +241,7 @@ "required": true }, { - "$ref": "#/parameters/WeatherUnit" + "$ref": "#/parameters/WeatherDataUnit" }, { "name": "duration", @@ -309,7 +309,7 @@ "required": true }, { - "$ref": "#/parameters/WeatherUnit" + "$ref": "#/parameters/WeatherDataUnit" }, { "name": "details", @@ -384,7 +384,7 @@ "required": true }, { - "$ref": "#/parameters/WeatherUnit" + "$ref": "#/parameters/WeatherDataUnit" }, { "name": "duration", @@ -643,7 +643,7 @@ } } }, - "Wind": { + "WindDetails": { "type": "object", "description": "Wind details being returned including speed and direction.", "properties": { @@ -757,11 +757,11 @@ "description": "The dewpoint temperature in specified unit. The dewpoint temperature is the temperature that the air must be cooled to in order to reach saturation." }, "wind": { - "$ref": "#/definitions/Wind", + "$ref": "#/definitions/WindDetails", "description": "Wind details being returned including speed and direction." }, "windGust": { - "$ref": "#/definitions/Wind", + "$ref": "#/definitions/WindDetails", "description": "Wind gust. Wind gust is a sudden, brief increase in speed of the wind." }, "relativeHumidity": { @@ -903,7 +903,7 @@ } } }, - "Interval": { + "ForecastInterval": { "type": "object", "properties": { "startTime": { @@ -929,11 +929,11 @@ "description": "Key that specifies the threshold value. Along with precipitationType, can be used to determine the simplifiedColor. If dbz is zero, not present in the response." }, "color": { - "$ref": "#/definitions/Color", + "$ref": "#/definitions/ColorValue", "description": "The full spectrum color that maps to the dBZ (decibel relative to Z). If dbz is zero, color is not present in the response." }, "simplifiedColor": { - "$ref": "#/definitions/Color", + "$ref": "#/definitions/ColorValue", "description": "The band color that maps to the precipitation type and threshold. If dbz is zero, not present in the response." }, "precipitationType": { @@ -969,12 +969,12 @@ "type": "array", "description": "Forecast data for each interval in the forecast.", "items": { - "$ref": "#/definitions/Interval" + "$ref": "#/definitions/ForecastInterval" } } } }, - "Color": { + "ColorValue": { "type": "object", "properties": { "red": { @@ -1020,7 +1020,7 @@ 3 ], "x-ms-enum": { - "name": "Quarter", + "name": "DayQuarter", "modelAsString": true, "values": [ { @@ -1073,11 +1073,11 @@ "description": "Relative humidity is the amount of water vapor present in air expressed as a percentage of the amount needed for saturation at the same temperature." }, "wind": { - "$ref": "#/definitions/Wind", + "$ref": "#/definitions/WindDetails", "description": "Wind details being returned including speed and direction." }, "windGust": { - "$ref": "#/definitions/Wind", + "$ref": "#/definitions/WindDetails", "description": "Wind gust. Wind gust is a sudden, brief increase in speed of the wind." }, "visibility": { @@ -1291,11 +1291,11 @@ "description": "The dewpoint temperature in specified unit. The dewpoint temperature is the temperature that the air must be cooled to in order to reach saturation." }, "wind": { - "$ref": "#/definitions/Wind", + "$ref": "#/definitions/WindDetails", "description": "Wind details being returned including speed and direction." }, "windGust": { - "$ref": "#/definitions/Wind", + "$ref": "#/definitions/WindDetails", "description": "Wind gust. Wind gust is a sudden, brief increase in speed of the wind." }, "uvIndex": { @@ -1569,11 +1569,11 @@ "description": "Percent representing the probability of ice. For example, '30'." }, "wind": { - "$ref": "#/definitions/Wind", + "$ref": "#/definitions/WindDetails", "description": "Wind details being returned including speed and direction." }, "windGust": { - "$ref": "#/definitions/Wind", + "$ref": "#/definitions/WindDetails", "description": "Wind gust. Wind gust is a sudden, brief increase in speed of the wind." }, "totalLiquid": { @@ -1628,7 +1628,7 @@ "description": "Numeric value representing an image that displays the `iconPhrase`. Please refer to [Weather Service Concepts](https://aka.ms/AzureMapsWeatherConcepts) for details." }, "hazards": { - "$ref": "#/definitions/Hazards" + "$ref": "#/definitions/WeatherHazards" } } }, @@ -1643,7 +1643,7 @@ "type": "array", "description": "Data for each waypoint returned in the same order as specified in the request.", "items": { - "$ref": "#/definitions/Waypoint" + "$ref": "#/definitions/WeatherWaypoint" } } } @@ -1678,7 +1678,7 @@ } } }, - "Waypoint": { + "WeatherWaypoint": { "type": "object", "properties": { "iconCode": { @@ -1703,10 +1703,10 @@ "$ref": "#/definitions/WeatherUnit" }, "wind": { - "$ref": "#/definitions/Wind" + "$ref": "#/definitions/WindDetails" }, "windGust": { - "$ref": "#/definitions/Wind" + "$ref": "#/definitions/WindDetails" }, "precipitation": { "$ref": "#/definitions/WeatherAlongRoutePrecipitation" @@ -1721,17 +1721,17 @@ "description": "A rating that indicates how blinding the sun is for the driver." }, "hazards": { - "$ref": "#/definitions/Hazards" + "$ref": "#/definitions/WeatherHazards" }, "notifications": { "type": "array", "items": { - "$ref": "#/definitions/Notification" + "$ref": "#/definitions/WeatherNotification" } } } }, - "Hazards": { + "WeatherHazards": { "type": "object", "properties": { "maxHazardIndex": { @@ -1762,7 +1762,7 @@ } } }, - "Notification": { + "WeatherNotification": { "type": "object", "properties": { "type": { @@ -1809,7 +1809,7 @@ "description": "A unique numerical identifier for a weather alert." }, "description": { - "$ref": "#/definitions/Description", + "$ref": "#/definitions/SevereWeatherAlertDescription", "description": "Description of the alert." }, "category": { @@ -1851,7 +1851,7 @@ } } }, - "Description": { + "SevereWeatherAlertDescription": { "type": "object", "description": "Description of a severe weather alert.", "properties": { From 58fbf3b1c7de81e343263f2213c36df2a2839cbe Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Mon, 26 Apr 2021 03:56:50 -0700 Subject: [PATCH 076/210] Fix prettier --- .../data-plane/Microsoft.Maps/Render/preview/1.0/render.json | 2 +- .../data-plane/Microsoft.Maps/Render/preview/2.0/render.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json index 0f24f4e3f454..157abc970aa7 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json @@ -182,7 +182,7 @@ "yes", "no" ], - "x-ms-enum":{ + "x-ms-enum": { "name": "IncludeText", "modelAsString": true, "values": [ diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json index 1e1fddf7b1de..a564e575f0db 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json @@ -138,7 +138,7 @@ "yes", "no" ], - "x-ms-enum":{ + "x-ms-enum": { "name": "IncludeText", "modelAsString": true, "values": [ From 5bc8e02173b5d8811fbc88cfee186a5a9861cbba Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Mon, 26 Apr 2021 12:12:18 -0700 Subject: [PATCH 077/210] Fix GeoJSON type hierarchy and WFS examples --- .../Common/preview/1.0/common.json | 256 ++++++++++++------ .../DEM/preview/1.0/elevation.json | 6 +- .../Mobility/preview/1.0/mobility.json | 16 +- .../Route/preview/1.0/route.json | 42 +-- .../Search/preview/1.0/search.json | 32 +-- .../Spatial/preview/1.0/spatial.json | 45 +-- .../Traffic/preview/1.0/traffic.json | 2 +- .../WFS/preview/1.0/examples/DeleteItem.json | 2 +- .../preview/1.0/examples/GetCollection.json | 2 +- .../1.0/examples/GetCollectionDefinition.json | 2 +- .../preview/1.0/examples/GetCollections.json | 2 +- .../preview/1.0/examples/GetConformance.json | 2 +- .../WFS/preview/1.0/examples/GetItem.json | 4 +- .../WFS/preview/1.0/examples/GetItems.json | 4 +- .../preview/1.0/examples/GetLandingPage.json | 2 +- .../Microsoft.Maps/WFS/preview/1.0/wfs.json | 165 +++++------ 16 files changed, 295 insertions(+), 289 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index fef03f6eadcc..5ec4da44ba8c 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -74,6 +74,26 @@ } } }, + "BatchRequestBody": { + "description": "This type represents the request body for the Batch service.", + "type": "object", + "properties": { + "batchItems": { + "description": "The list of queries/requests to process", + "type": "array", + "items": { + "description": "Batch Query object", + "type": "object", + "properties": { + "query": { + "description": "Partial query string", + "type": "string" + } + } + } + } + } + }, "BatchResponse": { "description": "This object is returned from a successful Batch service call", "type": "object", @@ -105,9 +125,25 @@ } } }, - "CoordinateAbbreviated": { + "CoordinatesPair": { "description": "A location represented as a latitude and longitude.", "type": "object", + "properties": { + "latitude": { + "description": "Latitude property", + "type": "number", + "format": "double" + }, + "longitude": { + "description": "Longitude property", + "type": "number", + "format": "double" + } + } + }, + "CoordinatesPairAbbreviated": { + "description": "A location represented as a latitude and longitude using short names 'lat' & 'lon'.", + "type": "object", "properties": { "lat": { "description": "Latitude property", @@ -121,12 +157,8 @@ } } }, - "Geometry": { - "description": "This represents the geometry for one or more geographical features (parks, state boundary etc.) and should be a `GeoJSON` compliant type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946) for details.", - "type": "object" - }, "GeoJsonPosition": { - "description": "A valid `GeoJSON Position` geometry type. A `Position` is an array of numbers with two or more elements. The first two elements are _longitude_ and _latitude_, precisely in that order. _Altitude/Elevation_ is an optional third element. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.1) for details.", + "description": "A `Position` is an array of numbers with two or more elements. The first two elements are _longitude_ and _latitude_, precisely in that order. _Altitude/Elevation_ is an optional third element. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.1) for details.", "type": "array", "items": { "type": "number", @@ -140,8 +172,8 @@ "$ref": "#/definitions/GeoJsonPosition" } }, - "GeoJsonGeometry": { - "description": "A valid `GeoJSON` geometry object. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1) for details.", + "GeoJsonObject": { + "description": "A valid `GeoJSON` object. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3) for details.", "type": "object", "discriminator": "type", "required": [ @@ -149,7 +181,7 @@ ], "properties": { "type": { - "description": "Specifies the `GeoJSON` geometry type. Must be one of the seven valid GeoJSON geometry types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon and GeometryCollection.", + "description": "Specifies the `GeoJSON` type. Must be one of the nine valid GeoJSON object types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon, GeometryCollection, Feature and FeatureCollection.", "type": "string", "enum": [ "Point", @@ -158,59 +190,88 @@ "MultiLineString", "Polygon", "MultiPolygon", - "GeometryCollection" + "GeometryCollection", + "Feature", + "FeatureCollection" ], "x-ms-enum": { - "name": "GeoJsonGeometryType", + "name": "GeoJsonObjectType", "modelAsString": false, "values": [ { "value": "Point", - "description": "`GeoJSON Point` geometry." + "description": "`GeoJSON Point` geometry.", + "name": "GeoJsonPoint" }, { "value": "MultiPoint", - "description": "`GeoJSON MultiPoint` geometry." + "description": "`GeoJSON MultiPoint` geometry.", + "name": "GeoJsonMultiPoint" }, { "value": "LineString", - "description": "`GeoJSON LineString` geometry." + "description": "`GeoJSON LineString` geometry.", + "name": "GeoJsonLineString" }, { "value": "MultiLineString", - "description": "`GeoJSON MultiLineString` geometry." + "description": "`GeoJSON MultiLineString` geometry.", + "name": "GeoJsonMultiLineString" }, { "value": "Polygon", - "description": "`GeoJSON Polygon` geometry." + "description": "`GeoJSON Polygon` geometry.", + "name": "GeoJsonPolygon" }, { "value": "MultiPolygon", - "description": "`GeoJSON MultiPolygon` geometry." + "description": "`GeoJSON MultiPolygon` geometry.", + "name": "GeoJsonMultiPolygon" }, { "value": "GeometryCollection", - "description": "`GeoJSON GeometryCollection` geometry." + "description": "`GeoJSON GeometryCollection` geometry.", + "name": "GeoJsonGeometryCollection" + }, + { + "value": "Feature", + "description": "`GeoJSON Feature` object.", + "name": "GeoJsonFeature" + }, + { + "value": "FeatureCollection", + "description": "`GeoJSON FeatureCollection` object.", + "name": "GeoJsonFeatureCollection" } ] } } } }, - "Point": { + "GeoJsonGeometry": { + "description": "A valid `GeoJSON` geometry object. The type must be one of the seven valid GeoJSON geometry types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon and GeometryCollection. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1) for details.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonObject" + } + ] + }, + "GeoJsonPoint": { "description": "A valid `GeoJSON Point` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.2) for details.", + "x-ms-discriminator-value": "Point", "type": "object", "allOf": [ { "$ref": "#/definitions/GeoJsonGeometry" }, { - "$ref": "#/definitions/PointData" + "$ref": "#/definitions/GeoJsonPointData" } ] }, - "PointData": { - "description": "Data contained by a `Point`.", + "GeoJsonPointData": { + "description": "Data contained by a `GeoJson Point`.", "type": "object", "properties": { "coordinates": { @@ -221,24 +282,25 @@ "coordinates" ] }, - "MultiPoint": { + "GeoJsonMultiPoint": { "description": "A valid `GeoJSON MultiPoint` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.3) for details.", + "x-ms-discriminator-value": "MultiPoint", "type": "object", "allOf": [ { "$ref": "#/definitions/GeoJsonGeometry" }, { - "$ref": "#/definitions/MultiPointData" + "$ref": "#/definitions/GeoJsonMultiPointData" } ] }, - "MultiPointData": { + "GeoJsonMultiPointData": { "type": "object", - "description": "Data contained by a `MultiPoint`.", + "description": "Data contained by a `GeoJson MultiPoint`.", "properties": { "coordinates": { - "description": "Coordinates for the `MultiPoint` geometry.", + "description": "Coordinates for the `GeoJson MultiPoint` geometry.", "type": "array", "items": { "$ref": "#/definitions/GeoJsonPosition" @@ -249,23 +311,24 @@ "coordinates" ] }, - "LineString": { + "GeoJsonLineString": { "description": "A valid `GeoJSON LineString` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.4) for details.", + "x-ms-discriminator-value": "LineString", "type": "object", "allOf": [ { "$ref": "#/definitions/GeoJsonGeometry" }, { - "$ref": "#/definitions/LineStringData" + "$ref": "#/definitions/GeoJsonLineStringData" } ] }, - "LineStringData": { + "GeoJsonLineStringData": { "type": "object", "properties": { "coordinates": { - "description": "Coordinates for the `LineString` geometry.", + "description": "Coordinates for the `GeoJson LineString` geometry.", "type": "array", "items": { "$ref": "#/definitions/GeoJsonPosition" @@ -276,33 +339,27 @@ "coordinates" ] }, - "MultiLineString": { + "GeoJsonMultiLineString": { "description": "A valid `GeoJSON MultiLineString` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.5) for details.", + "x-ms-discriminator-value": "MultiLineString", "type": "object", "allOf": [ { "$ref": "#/definitions/GeoJsonGeometry" }, { - "$ref": "#/definitions/MultiLineStringData" + "$ref": "#/definitions/GeoJsonMultiLineStringData" } ] }, - "MultiLineStringData": { + "GeoJsonMultiLineStringData": { "type": "object", "properties": { - "type": { - "description": "Specifies the `type` for the geometry. Value should always be equal to \"MultiLineString\".", - "type": "string" - }, "coordinates": { - "description": "Coordinates for the `MultiLineString` geometry.", + "description": "Coordinates for the `GeoJson MultiLineString` geometry.", "type": "array", "items": { - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonPosition" - } + "$ref": "#/definitions/GeoJsonLinearRing" } } }, @@ -310,23 +367,24 @@ "coordinates" ] }, - "Polygon": { + "GeoJsonPolygon": { "description": "A valid `GeoJSON Polygon` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.6) for details.", + "x-ms-discriminator-value": "Polygon", "type": "object", "allOf": [ { "$ref": "#/definitions/GeoJsonGeometry" }, { - "$ref": "#/definitions/PolygonData" + "$ref": "#/definitions/GeoJsonPolygonData" } ] }, - "PolygonData": { + "GeoJsonPolygonData": { "type": "object", "properties": { "coordinates": { - "description": "Coordinates for the `Polygon` geometry type.", + "description": "Coordinates for the `GeoJson Polygon` geometry type.", "type": "array", "items": { "$ref": "#/definitions/GeoJsonLinearRing" @@ -337,23 +395,24 @@ "coordinates" ] }, - "MultiPolygon": { + "GeoJsonMultiPolygon": { "description": "A valid `GeoJSON MultiPolygon` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.7) for details.", + "x-ms-discriminator-value": "MultiPolygon", "type": "object", "allOf": [ { "$ref": "#/definitions/GeoJsonGeometry" }, { - "$ref": "#/definitions/MultiPolygonData" + "$ref": "#/definitions/GeoJsonMultiPolygonData" } ] }, - "MultiPolygonData": { + "GeoJsonMultiPolygonData": { "type": "object", "properties": { "coordinates": { - "description": "Contains a list of valid `GeoJSON` Polygon objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude).", + "description": "Contains a list of valid `GeoJSON Polygon` objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude).", "type": "array", "items": { "type": "array", @@ -367,19 +426,20 @@ "coordinates" ] }, - "GeometryCollection": { + "GeoJsonGeometryCollection": { "description": "A valid `GeoJSON GeometryCollection` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.8) for details.", + "x-ms-discriminator-value": "GeometryCollection", "type": "object", "allOf": [ { "$ref": "#/definitions/GeoJsonGeometry" }, { - "$ref": "#/definitions/GeometryCollectionData" + "$ref": "#/definitions/GeoJsonGeometryCollectionData" } ] }, - "GeometryCollectionData": { + "GeoJsonGeometryCollectionData": { "type": "object", "properties": { "geometries": { @@ -394,41 +454,69 @@ "geometries" ] }, - "BatchRequestBody": { - "description": "This type represents the request body for the Batch service.", + "GeoJsonFeature": { + "description": "A valid `GeoJSON Feature` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.2) for details.", + "x-ms-discriminator-value": "Feature", "type": "object", - "properties": { - "batchItems": { - "description": "The list of queries/requests to process", - "type": "array", - "items": { - "description": "Batch Query object", - "type": "object", - "properties": { - "query": { - "description": "Partial query string", - "type": "string" - } - } - } + "allOf": [ + { + "$ref": "#/definitions/GeoJsonObject" + }, + { + "$ref": "#/definitions/GeoJsonFeatureData" } - } + ] }, - "CoordinatePair": { - "description": "A location represented as a latitude and longitude.", + "GeoJsonFeatureData": { "type": "object", "properties": { - "latitude": { - "description": "Latitude property", - "type": "number", - "format": "double" + "geometry": { + "$ref": "#/definitions/GeoJsonGeometry" }, - "longitude": { - "description": "Longitude property", - "type": "number", - "format": "double" + "properties": { + "description": "Properties can contain any additional metadata about the `Feature`. Value can be any JSON object or a JSON null value", + "type": "object" + }, + "id": { + "description": "Identifier for the feature.", + "type": "string" + }, + "featureType": { + "description": "The type of the feature. The value depends on the data model the current feature is part of. Some data models may have an empty value.", + "type": "string" } - } + }, + "required": [ + "geometry" + ] + }, + "GeoJsonFeatureCollection": { + "description": "A valid `GeoJSON FeatureCollection` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.3) for details.", + "x-ms-discriminator-value": "FeatureCollection", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonObject" + }, + { + "$ref": "#/definitions/GeoJsonFeatureCollectionData" + } + ] + }, + "GeoJsonFeatureCollectionData": { + "type": "object", + "properties": { + "features": { + "description": "Contains a list of valid `GeoJSON Feature` objects.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonFeature" + } + } + }, + "required": [ + "features" + ] } }, "parameters": { @@ -492,13 +580,13 @@ "200Async": { "description": "The operation's status response.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/LongRunningOperationResult" + "$ref": "#/definitions/LongRunningOperationResult" } }, "201Async": { "description": "The resource has been created successfully.", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/LongRunningOperationResult" + "$ref": "#/definitions/LongRunningOperationResult" }, "headers": { "Location": { diff --git a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json index 70101a578fe3..95c9ec0eff5c 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json +++ b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json @@ -411,7 +411,7 @@ "description": "The elevation data.", "properties": { "coordinate": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatePair" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPair" }, "elevationInMeter": { "description": "The elevation value in meters.", @@ -467,14 +467,14 @@ "type": "array", "description": "The post elevation points array request body. The length of the array ranges from 2 to 2000.", "items": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviated" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPairAbbreviated" } }, "LinesInRequestBody": { "type": "array", "description": "The post elevation lines request body.", "items": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviated" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPairAbbreviated" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json index 1ed01131e0f2..e0d81ffc994b 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json +++ b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json @@ -1408,7 +1408,7 @@ "type": "string" }, "geometry": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/Polygon" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonPolygon" }, "viewport": { "$ref": "#/definitions/ResultViewport" @@ -1420,10 +1420,10 @@ "type": "object", "properties": { "topLeftPoint": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatePair" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPair" }, "btmRightPoint": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatePair" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPair" } } }, @@ -1444,7 +1444,7 @@ }, "position": { "description": "The transit object's position.", - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatePair" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPair" }, "viewport": { "$ref": "#/definitions/ResultViewport" @@ -1473,7 +1473,7 @@ }, "position": { "description": "The Stop's location, latitude and longitude.", - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatePair" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPair" }, "mainTransitType": { "description": "The transit type of most lines stopping at this stop. One of Tram, Subway, Rail, Bus, Ferry, CableCar, Gondola, Funicular", @@ -1767,7 +1767,7 @@ "$ref": "#/definitions/LegPoint" }, "geometry": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/LineString" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonLineString" }, "lineGroup": { "description": "In case of a public transit leg, the line group serving this leg.", @@ -1947,7 +1947,7 @@ "type": "object", "properties": { "position": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatePair" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPair" } } }, @@ -2154,7 +2154,7 @@ }, "geometry": { "description": "Stop sequence and shape per a line in GeoJSON format.", - "$ref": "../../../Common/preview/1.0/common.json#/definitions/LineString" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonLineString" } } }, diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json index 97a6936a849b..b28049789a8a 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json @@ -1580,39 +1580,13 @@ } }, "definitions": { - "PointArray": { - "type": "object", - "properties": { - "type": { - "description": "Specifies the `GeoJSON` geometry type. Must be one of the seven valid GeoJSON geometry types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon and GeometryCollection.", - "type": "string" - }, - "geometries": { - "type": "array", - "items": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/Point" - } - } - }, - "required": [ - "geometries" - ] - }, "RouteDirectionsRequestBody": { "type": "object", "description": "Post body parameters for Route directions.", "properties": { "supportingPoints": { - "type": "object", "description": "A GeoJSON Geometry collection representing sequence of coordinates used as input for route reconstruction and for calculating zero or more alternative routes to this reference route.\n - The provided sequence of supporting points is used as input for route reconstruction.\n - The alternative routes are calculated between the origin and destination points specified in the base path parameter locations.\n - If both _minDeviationDistance_ and _minDeviationTime_ are set to zero, then these origin and destination points are\n expected to be at (or very near) the beginning and end of the reference route, respectively.\n - Intermediate locations (_waypoints_) are not supported when using <_supportingPoints_>.\n - The reference route may contain traffic incidents of type _ROAD_CLOSURE_, which are\n ignored for the calculation of the reference route's travel time and traffic delay.", - "allOf": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/Geometry" - }, - { - "$ref": "#/definitions/PointArray" - } - ] + "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonGeometryCollection" }, "avoidVignette": { "description": "This is a list of 3-character, ISO 3166-1, alpha-3 country codes of countries in which all toll roads with vignettes are to be avoided, e.g. \"AUS,CHE\". Toll roads with vignettes in countries not in the list are unaffected. Note: It is an error to specify both **avoidVignette** and **allowVignette**.", @@ -1630,7 +1604,7 @@ }, "avoidAreas": { "description": "A GeoJSON MultiPolygon representing list of areas to avoid. Only rectangle polygons are supported. The maximum size of a rectangle is about 160x160 km. Maximum number of avoided areas is **10**. It cannot cross the 180th meridian. It must be between -80 and +80 degrees of latitude.", - "$ref": "../../../Common/preview/1.0/common.json#/definitions/MultiPolygon" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonMultiPolygon" } } }, @@ -1750,7 +1724,7 @@ "type": "array", "readOnly": true, "items": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatePair" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPair" } } } @@ -1944,7 +1918,7 @@ "readOnly": true }, "point": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatePair" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPair" }, "pointIndex": { "description": "The index of the point in the list of polyline \"points\" corresponding to the point of the instruction.", @@ -2355,14 +2329,14 @@ "properties": { "center": { "description": "Center point of the reachable range", - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatePair" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPair" }, "boundary": { "description": "Polygon boundary of the reachable range represented as a list of points.", "type": "array", "readOnly": true, "items": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatePair" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPair" } } } @@ -2470,10 +2444,10 @@ "type": "object", "properties": { "origins": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/MultiPoint" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonMultiPoint" }, "destinations": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/MultiPoint" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonMultiPoint" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json index 627da43fcfa9..f7a1fb0106cb 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json @@ -1870,7 +1870,7 @@ }, "geometryData": { "description": "Geometry data in GeoJSON format. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946) for details. Present only if \"error\" is not present.", - "$ref": "../../../Common/preview/1.0/common.json#/definitions/Geometry" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonObject" } } }, @@ -1964,7 +1964,7 @@ "$ref": "#/definitions/SearchResultAddress" }, "position": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviated" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPairAbbreviated" }, "viewport": { "$ref": "#/definitions/SearchResultViewport" @@ -2080,7 +2080,7 @@ "$ref": "#/definitions/SearchResultAddress" }, "position": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviated" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPairAbbreviated" }, "viewport": { "$ref": "#/definitions/SearchResultViewport" @@ -2182,7 +2182,7 @@ "$ref": "#/definitions/SearchResultAddress" }, "position": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviated" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPairAbbreviated" }, "viewport": { "$ref": "#/definitions/SearchResultViewport" @@ -2292,7 +2292,7 @@ "$ref": "#/definitions/SearchResultAddress" }, "position": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviated" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPairAbbreviated" }, "viewport": { "$ref": "#/definitions/SearchResultViewport" @@ -2385,7 +2385,7 @@ "$ref": "#/definitions/SearchResultAddress" }, "position": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviated" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPairAbbreviated" }, "viewport": { "$ref": "#/definitions/SearchResultViewport" @@ -2591,7 +2591,7 @@ "$ref": "#/definitions/SearchResultAddress" }, "position": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviated" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPairAbbreviated" }, "viewport": { "$ref": "#/definitions/SearchResultViewport" @@ -2699,7 +2699,7 @@ "$ref": "#/definitions/SearchResultAddress" }, "position": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviated" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPairAbbreviated" }, "viewport": { "$ref": "#/definitions/SearchResultViewport" @@ -2804,7 +2804,7 @@ "$ref": "#/definitions/SearchResultAddress" }, "position": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviated" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPairAbbreviated" }, "viewport": { "$ref": "#/definitions/SearchResultViewport" @@ -2831,7 +2831,7 @@ "type": "object", "properties": { "geometry": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/Geometry" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonObject" } } }, @@ -2840,7 +2840,7 @@ "type": "object", "properties": { "route": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/LineString" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonLineString" } } }, @@ -3127,10 +3127,10 @@ "type": "object", "properties": { "topLeftPoint": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviated" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPairAbbreviated" }, "btmRightPoint": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviated" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPairAbbreviated" } } }, @@ -3152,7 +3152,7 @@ } }, "position": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviated" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPairAbbreviated" } } }, @@ -3167,10 +3167,10 @@ "type": "string" }, "from": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviated" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPairAbbreviated" }, "to": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinateAbbreviated" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPairAbbreviated" } } }, diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json index d0b5025fb3fe..ff9c32c9ee5e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json @@ -330,7 +330,7 @@ "description": "The geofencing GeoJSON data.", "required": true, "schema": { - "$ref": "#/definitions/GeoJsonFeatureCollection" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonFeatureCollection" } } ], @@ -539,7 +539,7 @@ "description": "The FeatureCollection of Point geometries from which closest point to source point should be determined. All the feature's properties should contain `geometryId`, which is used for identifying the geometry and is case-sensitive.", "required": true, "schema": { - "$ref": "#/definitions/GeoJsonFeatureCollection" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonFeatureCollection" } } ], @@ -688,7 +688,7 @@ "description": "A FeatureCollection with a set of Polygon/MultiPolygon geometries. The maximum number of vertices accepted to form a Polygon is 10,000. All the feature's properties should contain `geometryId`, which is used for identifying the geometry and is case-sensitive.", "required": true, "schema": { - "$ref": "#/definitions/GeoJsonFeatureCollection" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonFeatureCollection" } } ], @@ -866,41 +866,6 @@ } } }, - "GeoJsonFeatureCollection": { - "description": "A valid `GeoJSON FeatureCollection` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.3) for details.", - "type": "object", - "properties": { - "type": { - "description": "Specifies the `type` for the object. Value should always be equal to \"FeatureCollection\".", - "type": "string" - }, - "features": { - "description": "Contains a list of valid `GeoJSON Feature` objects.", - "type": "array", - "items": { - "description": "", - "type": "object", - "properties": { - "type": { - "description": "Specifies the `type` for the object. Value should always be equal to \"Feature\".", - "type": "string" - }, - "geometry": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonGeometry" - }, - "properties": { - "description": "Properties can contain any additional metadata about the `Feature`. Value can be any JSON object or a JSON null value", - "type": "object" - } - } - } - } - }, - "required": [ - "features", - "type" - ] - }, "GeofenceGeometry": { "description": "The geofencing geometry.", "type": "object", @@ -983,7 +948,7 @@ "type": "object", "properties": { "geometries": { - "$ref": "#/definitions/GeoJsonFeatureCollection" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonFeatureCollection" }, "distances": { "description": "List of the distances to compute the buffer for, one-to-one per Feature in the collection, or one for all Features in the collection.", @@ -1017,7 +982,7 @@ }, "result": { "description": "The FeatureCollection of buffers for the input.", - "$ref": "#/definitions/GeoJsonFeatureCollection" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonFeatureCollection" } } }, diff --git a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json index 628dd8bb335c..161364013941 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json +++ b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json @@ -800,7 +800,7 @@ "type": "array", "readOnly": true, "items": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatePair" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPair" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/DeleteItem.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/DeleteItem.json index 72fdf9389540..3428e57a2a85 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/DeleteItem.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/DeleteItem.json @@ -2,7 +2,7 @@ "parameters": { "geography": "us", "api-version": "1.0", - "datasetid": "018fda98-e638-0edf-5ef7-28491ff3bed4", + "datasetId": "018fda98-e638-0edf-5ef7-28491ff3bed4", "subscription-key": "[subscription-key]", "collectionId": "facility", "featureId": "FCL39" diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetCollection.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetCollection.json index 289c2decdf0c..082b1bbf184d 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetCollection.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetCollection.json @@ -2,7 +2,7 @@ "parameters": { "geography": "us", "api-version": "1.0", - "datasetid": "018fda98-e638-0edf-5ef7-28491ff3bed4", + "datasetId": "018fda98-e638-0edf-5ef7-28491ff3bed4", "subscription-key": "[subscription-key]", "collectionId": "unit" }, diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetCollectionDefinition.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetCollectionDefinition.json index 5abb684137ba..c46a541b876b 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetCollectionDefinition.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetCollectionDefinition.json @@ -2,7 +2,7 @@ "parameters": { "geography": "us", "api-version": "1.0", - "datasetid": "018fda98-e638-0edf-5ef7-28491ff3bed4", + "datasetId": "018fda98-e638-0edf-5ef7-28491ff3bed4", "subscription-key": "[subscription-key]", "collectionId": "unit" }, diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetCollections.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetCollections.json index c66647770907..3e2cac9af8e7 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetCollections.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetCollections.json @@ -2,7 +2,7 @@ "parameters": { "geography": "us", "api-version": "1.0", - "datasetid": "018fda98-e638-0edf-5ef7-28491ff3bed4", + "datasetId": "018fda98-e638-0edf-5ef7-28491ff3bed4", "subscription-key": "[subscription-key]" }, "responses": { diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetConformance.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetConformance.json index 48086e702d21..a1c712147b7b 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetConformance.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetConformance.json @@ -2,7 +2,7 @@ "parameters": { "geography": "us", "api-version": "1.0", - "datasetid": "018fda98-e638-0edf-5ef7-28491ff3bed4", + "datasetId": "018fda98-e638-0edf-5ef7-28491ff3bed4", "subscription-key": "[subscription-key]" }, "responses": { diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetItem.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetItem.json index 20f6305c4e7e..76cab8fb1278 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetItem.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetItem.json @@ -2,7 +2,7 @@ "parameters": { "geography": "us", "api-version": "1.0", - "datasetid": "018fda98-e638-0edf-5ef7-28491ff3bed4", + "datasetId": "018fda98-e638-0edf-5ef7-28491ff3bed4", "subscription-key": "[subscription-key]", "collectionId": "unit", "featureId": "UNIT39" @@ -11,7 +11,7 @@ "200": { "body": { "feature": { - "type": "feature", + "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [ diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetItems.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetItems.json index 1862a002e696..428b37befd66 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetItems.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetItems.json @@ -2,7 +2,7 @@ "parameters": { "geography": "us", "api-version": "1.0", - "datasetid": "018fda98-e638-0edf-5ef7-28491ff3bed4", + "datasetId": "018fda98-e638-0edf-5ef7-28491ff3bed4", "subscription-key": "[subscription-key]", "collectionId": "unit", "limit": 1, @@ -14,7 +14,7 @@ "type": "FeatureCollection", "features": [ { - "type": "feature", + "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [ diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetLandingPage.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetLandingPage.json index 508aba14bca4..ee083a1143cd 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetLandingPage.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetLandingPage.json @@ -2,7 +2,7 @@ "parameters": { "geography": "us", "api-version": "1.0", - "datasetid": "018fda98-e638-0edf-5ef7-28491ff3bed4", + "datasetId": "018fda98-e638-0edf-5ef7-28491ff3bed4", "subscription-key": "[subscription-key]" }, "responses": { diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json index 00e9ef036a67..35a77e5d7e81 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json @@ -50,35 +50,8 @@ ], "responses": {}, "parameters": { - "GeographicResourceLocation": { - "name": "geography", - "description": "This parameter specifies where the Azure Maps Creator resource is located. Valid values are us and eu.", - "in": "path", - "required": true, - "type": "string", - "default": "us", - "enum": [ - "us", - "eu" - ], - "x-ms-enum": { - "name": "GeographicResourceLocation", - "modelAsString": true, - "values": [ - { - "value": "us", - "description": "Used to access an Azure Maps Creator resource in the United States" - }, - { - "value": "eu", - "description": "Used to access an Azure Maps Creator resource in Europe" - } - ] - }, - "x-ms-parameter-location": "client" - }, - "Datasetid": { - "name": "datasetid", + "DatasetId": { + "name": "datasetId", "type": "string", "in": "path", "description": "The identifier for the dataset to query from.", @@ -128,7 +101,7 @@ } }, "paths": { - "/wfs/datasets/{datasetid}/": { + "/wfs/datasets/{datasetId}/": { "get": { "x-publish": true, "description": "Creator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. The Web Feature Service (WFS) API is part of Creator. WFS API follows the [Open Geospatial Consortium API standard for Features](http://docs.opengeospatial.org/is/17-069r3/17-069r3.html) to query [Datasets](https://docs.microsoft.com/en-us/rest/api/maps/dataset/createpreview). \nA dataset consists of multiple feature collections. A feature collection is a collection of features of a similar type, based on a common schema.\nThe Get Landing Page API provides links to the API definition, the Conformance statements and the metadata about the feature data in this dataset.", @@ -149,7 +122,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/Datasetid" + "$ref": "#/parameters/DatasetId" } ], "responses": { @@ -177,7 +150,7 @@ } } }, - "/wfs/datasets/{datasetid}/conformance": { + "/wfs/datasets/{datasetId}/conformance": { "get": { "description": "Creator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. The Web Feature Service (WFS) API is part of Creator. WFS API follows the [Open Geospatial Consortium API standard for Features](http://docs.opengeospatial.org/is/17-069r3/17-069r3.html) to query [Datasets](https://docs.microsoft.com/en-us/rest/api/maps/dataset/createpreview). \nA dataset consists of multiple feature collections. A feature collection is a collection of features of a similar type, based on a common schema.\nThe Get Requirements Classes lists all requirements classes specified in the standard that the server conforms to.", "x-publish": true, @@ -198,7 +171,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/Datasetid" + "$ref": "#/parameters/DatasetId" } ], "responses": { @@ -226,7 +199,7 @@ } } }, - "/wfs/datasets/{datasetid}/collections": { + "/wfs/datasets/{datasetId}/collections": { "get": { "description": "Creator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. The Web Feature Service (WFS) API is part of Creator. WFS API follows the [Open Geospatial Consortium API standard for Features](http://docs.opengeospatial.org/is/17-069r3/17-069r3.html) to query [Datasets](https://docs.microsoft.com/en-us/rest/api/maps/dataset/createpreview). \nA dataset consists of multiple feature collections. A feature collection is a collection of features of a similar type, based on a common schema.\nThe Collections Description API provides descriptions of all the collections in a given dataset.", "operationId": "WFS_CollectionsDescriptionPreview", @@ -247,7 +220,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/Datasetid" + "$ref": "#/parameters/DatasetId" } ], "responses": { @@ -275,7 +248,7 @@ } } }, - "/wfs/datasets/{datasetid}/collections/{collectionId}": { + "/wfs/datasets/{datasetId}/collections/{collectionId}": { "get": { "description": "Creator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. The Web Feature Service (WFS) API is part of Creator. WFS API follows the [Open Geospatial Consortium API standard for Features](http://docs.opengeospatial.org/is/17-069r3/17-069r3.html) to query [Datasets](https://docs.microsoft.com/en-us/rest/api/maps/dataset/createpreview). \nA dataset consists of multiple feature collections. A feature collection is a collection of features of a similar type, based on a common schema.\n \nThe Collection Description API provides the description of a given collection. It includes the links to the operations that can be performed on the collection.", "operationId": "WFS_CollectionDescriptionPreview", @@ -296,7 +269,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/Datasetid" + "$ref": "#/parameters/DatasetId" }, { "$ref": "#/parameters/CollectionId" @@ -327,7 +300,7 @@ } } }, - "/wfs/datasets/{datasetid}/collections/{collectionId}/definition": { + "/wfs/datasets/{datasetId}/collections/{collectionId}/definition": { "get": { "description": "Creator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. The Web Feature Service (WFS) API is part of Creator. WFS API follows the [Open Geospatial Consortium API standard for Features](http://docs.opengeospatial.org/is/17-069r3/17-069r3.html) to query [Datasets](https://docs.microsoft.com/en-us/rest/api/maps/dataset/createpreview). \nA dataset consists of multiple feature collections. A feature collection is a collection of features of a similar type, based on a common schema.\n \nThe Collection Definition API provides the detailed data model of a given collection.", "operationId": "WFS_CollectionDefinitionPreview", @@ -348,7 +321,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/Datasetid" + "$ref": "#/parameters/DatasetId" }, { "$ref": "#/parameters/CollectionId" @@ -379,7 +352,7 @@ } } }, - "/wfs/datasets/{datasetid}/collections/{collectionId}/items": { + "/wfs/datasets/{datasetId}/collections/{collectionId}/items": { "get": { "description": "Creator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. The Web Feature Service (WFS) API is part of Creator. WFS API follows the [Open Geospatial Consortium API standard for Features](http://docs.opengeospatial.org/is/17-069r3/17-069r3.html) to query [Datasets](https://docs.microsoft.com/en-us/rest/api/maps/dataset/createpreview). \nA dataset consists of multiple feature collections. A feature collection is a collection of features of a similar type, based on a common schema.\nThe Get Features API returns the list of features in the given collection.", "operationId": "WFS_GetFeaturesPreview", @@ -400,7 +373,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/Datasetid" + "$ref": "#/parameters/DatasetId" }, { "$ref": "#/parameters/CollectionId" @@ -419,7 +392,7 @@ "200": { "description": "Ok", "schema": { - "$ref": "#/definitions/FeatureCollectionGeoJSON" + "$ref": "#/definitions/ExtendedGeoJsonFeatureCollection" } }, "400": { @@ -440,7 +413,7 @@ } } }, - "/wfs/datasets/{datasetid}/collections/{collectionId}/items/{featureId}": { + "/wfs/datasets/{datasetId}/collections/{collectionId}/items/{featureId}": { "get": { "description": "Creator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. The Web Feature Service (WFS) API is part of Creator. WFS API follows the [Open Geospatial Consortium API standard for Features](http://docs.opengeospatial.org/is/17-069r3/17-069r3.html) to query [Datasets](https://docs.microsoft.com/en-us/rest/api/maps/dataset/createpreview). \nA dataset consists of multiple feature collections. A feature collection is a collection of features of a similar type, based on a common schema.\nThe Get Feature API returns the feature identified by the provided id in the given collection.", "x-publish": true, @@ -458,7 +431,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/Datasetid" + "$ref": "#/parameters/DatasetId" }, { "$ref": "#/parameters/CollectionId" @@ -508,7 +481,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/Datasetid" + "$ref": "#/parameters/DatasetId" }, { "$ref": "#/parameters/CollectionId" @@ -775,8 +748,45 @@ "GeometryCollection" ], "x-ms-enum": { - "name": "GeometryType", - "modelAsString": true + "name": "GeoJsonGeometryType", + "modelAsString": true, + "values": [ + { + "value": "Point", + "description": "`GeoJSON Point` geometry.", + "name": "GeoJsonPoint" + }, + { + "value": "MultiPoint", + "description": "`GeoJSON MultiPoint` geometry.", + "name": "GeoJsonMultiPoint" + }, + { + "value": "LineString", + "description": "`GeoJSON LineString` geometry.", + "name": "GeoJsonLineString" + }, + { + "value": "MultiLineString", + "description": "`GeoJSON MultiLineString` geometry.", + "name": "GeoJsonMultiLineString" + }, + { + "value": "Polygon", + "description": "`GeoJSON Polygon` geometry.", + "name": "GeoJsonPolygon" + }, + { + "value": "MultiPolygon", + "description": "`GeoJSON MultiPolygon` geometry.", + "name": "GeoJsonMultiPolygon" + }, + { + "value": "GeometryCollection", + "description": "`GeoJSON GeometryCollection` geometry.", + "name": "GeoJsonGeometryCollection" + } + ] } }, "featureTypes": { @@ -824,25 +834,25 @@ } } }, - "FeatureCollectionGeoJSON": { + "ExtendedGeoJsonFeatureCollection": { + "description": "A valid `GeoJSON FeatureCollection` object type extended with numberReturned and links array. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.3) for details.", + "x-ms-discriminator-value": "FeatureCollection", "type": "object", - "required": [ - "type", - "features" - ], - "properties": { - "type": { - "type": "string" + "allOf": [ + { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonFeatureCollection" }, + { + "$ref": "#/definitions/ExtendedGeoJsonFeatureCollectionData" + } + ] + }, + "ExtendedGeoJsonFeatureCollectionData": { + "type": "object", + "properties": { "numberReturned": { "type": "integer" }, - "features": { - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonFeature" - } - }, "links": { "type": "array", "items": { @@ -858,7 +868,7 @@ ], "properties": { "feature": { - "$ref": "#/definitions/GeoJsonFeature" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonFeature" }, "links": { "type": "array", @@ -867,37 +877,6 @@ } } } - }, - "GeoJsonFeature": { - "description": "A valid `GeoJSON Feature` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.2) for details.", - "type": "object", - "required": [ - "type", - "geometry", - "properties" - ], - "properties": { - "type": { - "description": "Specifies the `type` for the object. Value should always be equal to \"Feature\".", - "type": "string" - }, - "geometry": { - "description": "This represents the geometry for one or more geographical features (parks, state boundary etc.) and should be a `GeoJSON` compliant type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946) for details.", - "type": "object" - }, - "properties": { - "description": "Additional properties of the feature.", - "type": "object" - }, - "id": { - "description": "Identifier for the feature.", - "type": "string" - }, - "featureType": { - "description": "The type of the feature. The value depends on the data model the current feature is part of. Some data models may have an empty value.", - "type": "string" - } - } } } } From 6ad43cac75634dc98ff611dcf56ef5b3c43f168f Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Tue, 27 Apr 2021 08:06:32 -0700 Subject: [PATCH 078/210] Fix long running operation definitions and examples --- .../Common/preview/1.0/common.json | 10 +++++- .../Microsoft.Maps/Data/preview/1.0/data.json | 6 ++++ .../Data/preview/1.0/examples/Update.json | 36 +++++++++++++------ .../Data/preview/1.0/examples/Upload.json | 36 +++++++++++++------ .../Dataset/preview/1.0/dataset.json | 9 +++++ .../preview/1.0/examples/Dataset_Create.json | 16 +++++++++ .../preview/1.0/examples/Dataset_Import.json | 19 ++++++++++ .../preview/1.0/dwgconversion.json | 3 ++ .../preview/1.0/examples/Conversion.json | 16 +++++++++ .../Tileset/preview/1.0/examples/Create.json | 16 +++++++++ .../Tileset/preview/1.0/tileset.json | 3 ++ 11 files changed, 149 insertions(+), 21 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index 5ec4da44ba8c..8e6a6080859c 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -581,7 +581,8 @@ "description": "The operation's status response.", "schema": { "$ref": "#/definitions/LongRunningOperationResult" - } + }, + "x-ms-error-response": true }, "201Async": { "description": "The resource has been created successfully.", @@ -645,6 +646,13 @@ }, "x-ms-error-response": true }, + "409StorageLimit": { + "description": "The [data storage limit](https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/azure-subscription-service-limits#azure-maps-limits) is reached on the Azure Maps account. You can always use the [Data Delete API](https://docs.microsoft.com/en-us/rest/api/maps/data/deletepreview) to delete old/unused content and create space for new uploads.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json index da23cebd99e5..f43e04a4fc27 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json @@ -145,6 +145,9 @@ "404": { "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, + "409": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/409StorageLimit" + }, "500": { "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } @@ -210,6 +213,9 @@ "404": { "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, + "409": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/409StorageLimit" + }, "500": { "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/examples/Update.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/examples/Update.json index 6c32b9fd0620..e9b67a2ab01e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/examples/Update.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/examples/Update.json @@ -25,6 +25,22 @@ } }, "responses": { + "200": { + "headers": {}, + "body": { + "operationId": "{operationId}", + "status": "Failed", + "created": "2020-01-02 1:02:03 AM +00:00", + "error": { + "code": "InvalidFeature", + "message": "The provided feature is invalid.", + "details": { + "code": "NoGeometry", + "message": "No geometry was provided with the feature." + } + } + } + }, "201": { "headers": { "Location": "https://atlas.microsoft.com/mapData/metadata/{udid}?api-version=1.0", @@ -34,7 +50,7 @@ "operationId": "{operationId}", "status": "Succeeded", "created": "2020-01-02 1:02:03 AM +00:00", - "resourceLocation": "https://atlas.microsoft.com/mapData/metadata/{resourceId}?api-version=1.0" + "resourceLocation": "https://atlas.microsoft.com/mapData/metadata/{udid}?api-version=1.0" } }, "202": { @@ -43,15 +59,6 @@ "Access-Control-Expose-Headers": "Location" } }, - "200": { - "headers": {}, - "body": { - "operationId": "{operationId}", - "status": "Succeeded", - "created": "2020-01-02 1:02:03 AM +00:00", - "resourceLocation": "https://atlas.microsoft.com/mapData/metadata/{resourceId}?api-version=1.0" - } - }, "400": { "headers": {}, "body": { @@ -88,6 +95,15 @@ } } }, + "409": { + "headers": {}, + "body": { + "error": { + "code": "409 Conflict", + "message": "The data storage limit is reached on the Azure Maps account. You can always use the Data Delete API to delete old/unused content and create space for new uploads." + } + } + }, "500": { "headers": {}, "body": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/examples/Upload.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/examples/Upload.json index 48fb1e7f3fad..771c9bacb42b 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/examples/Upload.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/examples/Upload.json @@ -25,6 +25,22 @@ } }, "responses": { + "200": { + "headers": {}, + "body": { + "operationId": "{operationId}", + "status": "Failed", + "created": "2020-01-02 1:02:03 AM +00:00", + "error": { + "code": "InvalidFeature", + "message": "The provided feature is invalid.", + "details": { + "code": "NoGeometry", + "message": "No geometry was provided with the feature." + } + } + } + }, "201": { "headers": { "Location": "https://atlas.microsoft.com/mapData/metadata/{udid}?api-version=1.0", @@ -34,7 +50,7 @@ "operationId": "{operationId}", "status": "Succeeded", "created": "2020-01-02 1:02:03 AM +00:00", - "resourceLocation": "https://atlas.microsoft.com/mapData/metadata/{resourceId}?api-version=1.0" + "resourceLocation": "https://atlas.microsoft.com/mapData/metadata/{udid}?api-version=1.0" } }, "202": { @@ -43,15 +59,6 @@ "Access-Control-Expose-Headers": "Location" } }, - "200": { - "headers": {}, - "body": { - "operationId": "{operationId}", - "status": "Succeeded", - "created": "2020-01-02 1:02:03 AM +00:00", - "resourceLocation": "https://atlas.microsoft.com/mapData/metadata/{resourceId}?api-version=1.0" - } - }, "400": { "headers": {}, "body": { @@ -88,6 +95,15 @@ } } }, + "409": { + "headers": {}, + "body": { + "error": { + "code": "409 Conflict", + "message": "The data storage limit is reached on the Azure Maps account. You can always use the Data Delete API to delete old/unused content and create space for new uploads." + } + } + }, "500": { "headers": {}, "body": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json index 43373237c224..08e9aef05a11 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json @@ -188,6 +188,9 @@ } ], "responses": { + "200": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/200Async" + }, "201": { "$ref": "../../../Common/preview/1.0/common.json#/responses/201Async" }, @@ -218,6 +221,9 @@ "description": "**Dataset Import API**\n\n**Applies to**: see pricing [tiers](https://azure.microsoft.com/en-us/pricing/details/azure-maps/).\n
\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API \nand SDK. The Dataset APIs are part of Creator. This API allows the caller to bulk import data into a dataset \nfrom data that was uploaded to the Azure Maps Data service.
\n\n### Submit Import Request\n\nTo import data into your dataset, you will use a `PATCH` request where the `datasetId` query parameter is the \ndataset you want to import your data into, the `udid` query parameter is the data you want to import, and the `type` \nparameter will describe the data type to use for the import data.
\n\nThe Import API is a \n[long-running request](https://aka.ms/am-creator-lrt).", "operationId": "Dataset_ImportPreview", "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, "x-ms-examples": { "Import data into previously created dataset": { "$ref": "./examples/Dataset_Import.json" @@ -244,6 +250,9 @@ "200": { "$ref": "../../../Common/preview/1.0/common.json#/responses/200Async" }, + "201": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/201Async" + }, "202": { "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" }, diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/examples/Dataset_Create.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/examples/Dataset_Create.json index e59db5d0820e..14e4afd43c44 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/examples/Dataset_Create.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/examples/Dataset_Create.json @@ -7,6 +7,22 @@ "type": "facility" }, "responses": { + "200": { + "headers": {}, + "body": { + "operationId": "{operationId}", + "status": "Failed", + "created": "2020-01-02 1:02:03 AM +00:00", + "error": { + "code": "InvalidFeature", + "message": "The provided feature is invalid.", + "details": { + "code": "NoGeometry", + "message": "No geometry was provided with the feature." + } + } + } + }, "201": { "headers": { "Location": "https://us.atlas.microsoft.com/dataset/{datasetId}?api-version=1.0", diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/examples/Dataset_Import.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/examples/Dataset_Import.json index 074bd5c20371..70ea81f259a1 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/examples/Dataset_Import.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/examples/Dataset_Import.json @@ -10,6 +10,25 @@ "responses": { "200": { "headers": {}, + "body": { + "operationId": "{operationId}", + "status": "Failed", + "created": "2020-01-02 1:02:03 AM +00:00", + "error": { + "code": "InvalidFeature", + "message": "The provided feature is invalid.", + "details": { + "code": "NoGeometry", + "message": "No geometry was provided with the feature." + } + } + } + }, + "201": { + "headers": { + "Location": "https://atlas.microsoft.com/dataset/{datasetId}?api-version=1.0", + "Access-Control-Expose-Headers": "Location" + }, "body": { "operationId": "{operationId}", "status": "Succeeded", diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json index c36fba6fe4fa..a3f71e2fcfca 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json @@ -131,6 +131,9 @@ } ], "responses": { + "200": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/200Async" + }, "201": { "$ref": "../../../Common/preview/1.0/common.json#/responses/201Async" }, diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/examples/Conversion.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/examples/Conversion.json index 620928efd64a..61e5faa9ee94 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/examples/Conversion.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/examples/Conversion.json @@ -7,6 +7,22 @@ "inputType": "DWG" }, "responses": { + "200": { + "headers": {}, + "body": { + "operationId": "{operationId}", + "status": "Failed", + "created": "2020-01-02 1:02:03 AM +00:00", + "error": { + "code": "InvalidFeature", + "message": "The provided feature is invalid.", + "details": { + "code": "NoGeometry", + "message": "No geometry was provided with the feature." + } + } + } + }, "201": { "headers": { "Location": "https://us.atlas.microsoft.com/conversion/{conversionId}?api-version=1.0", diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/examples/Create.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/examples/Create.json index d95ef6727f62..082b00590fcf 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/examples/Create.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/examples/Create.json @@ -6,6 +6,22 @@ "datasetId": "[dataset-Id]" }, "responses": { + "200": { + "headers": {}, + "body": { + "operationId": "{operationId}", + "status": "Failed", + "created": "2020-01-02 1:02:03 AM +00:00", + "error": { + "code": "InvalidFeature", + "message": "The provided feature is invalid.", + "details": { + "code": "NoGeometry", + "message": "No geometry was provided with the feature." + } + } + } + }, "201": { "headers": { "Location": "https://us.atlas.microsoft.com/tileset/{tilesetId}?api-version=1.0", diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json index c49539953a62..949e919f9d18 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json @@ -134,6 +134,9 @@ } ], "responses": { + "200": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/200Async" + }, "201": { "$ref": "../../../Common/preview/1.0/common.json#/responses/201Async" }, From 8d1de4dfa8a53074fe1ff90413cda09842a22092 Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Tue, 27 Apr 2021 13:18:49 -0700 Subject: [PATCH 079/210] Add missing descriptions --- .../Mobility/preview/1.0/mobility.json | 6 ++++++ .../Microsoft.Maps/Search/preview/1.0/search.json | 2 ++ .../Microsoft.Maps/WFS/preview/1.0/wfs.json | 15 +++++++++++++++ .../Weather/preview/1.0/weather.json | 11 +++++++++-- 4 files changed, 32 insertions(+), 2 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json index e0d81ffc994b..b6ed430c8e71 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json +++ b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json @@ -1246,6 +1246,7 @@ "type": "object", "properties": { "results": { + "description": "All resulting metro area details.", "type": "array", "items": { "$ref": "#/definitions/MetroAreaResult" @@ -1273,12 +1274,14 @@ } }, "agencies": { + "description": "A list of all public transit agencies operating in the given metro area.", "type": "array", "items": { "$ref": "#/definitions/AgencyDetails" } }, "alerts": { + "description": "A list of all public transit alerts within the given metro area.", "type": "array", "items": { "$ref": "#/definitions/AlertInformation" @@ -1291,6 +1294,7 @@ "type": "object", "properties": { "results": { + "description": "All resulting nearby transit details.", "type": "array", "items": { "$ref": "#/definitions/TransitObjectResult" @@ -1321,6 +1325,7 @@ "type": "object", "properties": { "results": { + "description": "All resulting transit stops details.", "type": "array", "items": { "$ref": "#/definitions/ItineraryResult" @@ -1908,6 +1913,7 @@ "type": "object", "properties": { "fares": { + "description": "Details of the fare.", "type": "array", "items": { "$ref": "#/definitions/FareDetail" diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json index f7a1fb0106cb..31bb9757fbb3 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json @@ -3161,9 +3161,11 @@ "type": "object", "properties": { "rangeLeft": { + "description": "Address range on the left side of the street.", "type": "string" }, "rangeRight": { + "description": "Address range on the right side of the street.", "type": "string" }, "from": { diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json index 35a77e5d7e81..a688f45f97d5 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json @@ -521,6 +521,7 @@ ], "properties": { "links": { + "description": "Links to other WFS endpoints.", "type": "array", "items": { "$ref": "#/definitions/WfsEndpointLink" @@ -535,6 +536,7 @@ ], "properties": { "conformsTo": { + "description": "List of requirements classes that the server conforms to.", "type": "array", "items": { "type": "string" @@ -556,21 +558,26 @@ ], "properties": { "href": { + "description": "The link target.", "type": "string" }, "rel": { + "description": "The relation type.", "type": "string", "example": "prev" }, "type": { + "description": "A hint indicating what the media type of the result of dereferencing the link should be.", "type": "string", "example": "application/geo+json" }, "hreflang": { + "description": "A hint indicating what the language of the result of dereferencing the link should be.", "type": "string", "example": "en" }, "title": { + "description": "Used to label the destination of a link such that it can be used as a human-readable identifier (e.g., a menu entry) in the language indicated by the Content-Language header field (if present).", "type": "string" } } @@ -583,6 +590,7 @@ ], "properties": { "links": { + "description": "Links to other WFS endpoints.", "type": "array", "items": { "$ref": "#/definitions/WfsEndpointLink" @@ -609,6 +617,7 @@ ] }, "collections": { + "description": "All the collections in a given dataset.", "type": "array", "items": { "$ref": "#/definitions/CollectionInfo" @@ -635,6 +644,7 @@ "example": "2020-01-02T03:04:05" }, "links": { + "description": "Links to other WFS endpoints.", "type": "array", "items": { "$ref": "#/definitions/WfsEndpointLink" @@ -685,6 +695,7 @@ "example": "Buildings in the city of Bonn." }, "links": { + "description": "Links to other WFS endpoints.", "type": "array", "items": { "$ref": "#/definitions/WfsEndpointLink" @@ -804,6 +815,7 @@ } }, "links": { + "description": "Links to other WFS endpoints.", "type": "array", "items": { "$ref": "#/definitions/WfsEndpointLink" @@ -851,9 +863,11 @@ "type": "object", "properties": { "numberReturned": { + "description": "Number of returned features.", "type": "integer" }, "links": { + "description": "Links to other WFS endpoints.", "type": "array", "items": { "$ref": "#/definitions/WfsEndpointLink" @@ -871,6 +885,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonFeature" }, "links": { + "description": "Links to other WFS endpoints.", "type": "array", "items": { "$ref": "#/definitions/WfsEndpointLink" diff --git a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json index b92e5fa9b215..18b77e0b6636 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json +++ b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json @@ -625,6 +625,7 @@ }, "definitions": { "WeatherUnit": { + "description": "Specific value of a given unit related to weather.", "type": "object", "properties": { "value": { @@ -1145,6 +1146,7 @@ "type": "object", "properties": { "results": { + "description": "Detailed current weather conditions.", "type": "array", "items": { "$ref": "#/definitions/CurrentConditions" @@ -1467,10 +1469,10 @@ "description": "Night" }, "sources": { + "description": "Source(s) of the forecast data.", "type": "array", "items": { - "type": "string", - "description": "Source(s) of the forecast data." + "type": "string" } } } @@ -1491,6 +1493,7 @@ } }, "LocalSource": { + "description": "Local weather data provider information.", "type": "object", "properties": { "id": { @@ -1620,6 +1623,7 @@ } }, "WeatherAlongRouteSummary": { + "description": "Short summary of the weather along the route.", "type": "object", "properties": { "iconCode": { @@ -1649,6 +1653,7 @@ } }, "WeatherAlongRoutePrecipitation": { + "description": "Precipitation forecast of the weather along the route.", "type": "object", "properties": { "dbz": { @@ -1724,6 +1729,7 @@ "$ref": "#/definitions/WeatherHazards" }, "notifications": { + "description": "List of weather hazard notifications.", "type": "array", "items": { "$ref": "#/definitions/WeatherNotification" @@ -1732,6 +1738,7 @@ } }, "WeatherHazards": { + "description": "Description of the weather hazard affecting the trip.", "type": "object", "properties": { "maxHazardIndex": { From f7acfcae1875a0ea99807c47bbb72fcdb9547600 Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Wed, 28 Apr 2021 15:30:59 -0700 Subject: [PATCH 080/210] Define batch responses in more detail & remove redundant definitions in Search API --- .../Common/preview/1.0/common.json | 27 +- .../Route/preview/1.0/route.json | 45 +- .../Search/preview/1.0/search.json | 1116 +++++------------ 3 files changed, 394 insertions(+), 794 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index 8e6a6080859c..a5542d1dba4f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -79,15 +79,16 @@ "type": "object", "properties": { "batchItems": { - "description": "The list of queries/requests to process", + "description": "The list of queries to process.", "type": "array", "items": { "description": "Batch Query object", "type": "object", "properties": { "query": { - "description": "Partial query string", - "type": "string" + "description": "Partial query string.", + "type": "string", + "example": "?query=One, Microsoft Way, Redmond, WA 98052&limit=3" } } } @@ -95,7 +96,7 @@ } }, "BatchResponse": { - "description": "This object is returned from a successful Batch service call", + "description": "This object is returned from a successful Batch service call. Extend with 'batchItems' property.", "type": "object", "properties": { "summary": { @@ -114,14 +115,18 @@ "readOnly": true } } - }, - "batchItems": { - "description": "Array containing the batch results", - "type": "array", + } + } + }, + "BatchItem": { + "description": "An item returned from Batch API. Extend with 'response' property.", + "type": "object", + "properties": { + "statusCode": { + "description": "HTTP request status code.", + "type": "number", "readOnly": true, - "items": { - "type": "object" - } + "example": 200 } } }, diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json index b28049789a8a..ff47a76df64a 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json @@ -1551,7 +1551,7 @@ "200": { "description": "OK", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/BatchResponse" + "$ref": "#/definitions/RouteDirectionsBatchResponse" } }, "202": { @@ -2450,6 +2450,49 @@ "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonMultiPoint" } } + }, + "RouteDirectionsBatchResponse": { + "description": "This object is returned from a successful Route Directions Batch service call.", + "type": "object", + "allOf": [ + { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/BatchResponse" + } + ], + "properties": { + "batchItems": { + "description": "Array containing the batch results.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/RouteDirectionsBatchItem" + } + } + } + }, + "RouteDirectionsBatchItem": { + "description": "An item returned from Route Directions Batch service call.", + "type": "object", + "allOf": [ + { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/BatchItem" + } + ], + "properties": { + "response": { + "description": "The result of the query. RouteDirectionsResponse if the query completed successfully, ErrorResponse otherwise.", + "type": "object", + "readOnly": true, + "allOf": [ + { + "$ref": "#/definitions/RouteDirectionsResponse" + }, + { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + ] + } + } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json index 31bb9757fbb3..85fd29b1f52b 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json @@ -1628,7 +1628,7 @@ "200": { "description": "OK", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/BatchResponse" + "$ref": "#/definitions/SearchFuzzyBatchResponse" } }, "202": { @@ -1696,7 +1696,7 @@ "200": { "description": "OK", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/BatchResponse" + "$ref": "#/definitions/SearchAddressBatchResponse" } }, "202": { @@ -1764,7 +1764,7 @@ "200": { "description": "OK", "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/BatchResponse" + "$ref": "#/definitions/SearchAddressReverseBatchResponse" } }, "202": { @@ -1874,25 +1874,8 @@ } } }, - "SearchFuzzyResponse": { - "description": "This object is returned from a successful Search Fuzzy call", - "type": "object", - "properties": { - "summary": { - "$ref": "#/definitions/SearchFuzzySummary" - }, - "results": { - "description": "Results array", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/SearchFuzzyResult" - } - } - } - }, - "SearchFuzzySummary": { - "description": "Summary object for a Search Fuzzy response", + "SearchCommonSummary": { + "description": "Summary object for all Search API responses.", "type": "object", "readOnly": true, "properties": { @@ -1916,6 +1899,11 @@ "type": "integer", "readOnly": true }, + "limit": { + "description": "Maximum number of responses that will be returned", + "readOnly": true, + "type": "integer" + }, "offset": { "description": "Offset property", "type": "integer", @@ -1930,11 +1918,23 @@ "description": "FuzzyLevel property", "type": "integer", "readOnly": true + }, + "geoBias": { + "description": "Indication when the internal search engine has applied a geospatial bias to improve the ranking of results. In some methods, this can be affected by setting the lat and lon parameters where available. In other cases it is purely internal.", + "type": "object", + "readOnly": true, + "allOf": [ + { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPairAbbreviated" + } + ] } } }, - "SearchFuzzyResult": { + "SearchCommonResult": { + "description": "Result object for all Search API responses.", "type": "object", + "readOnly": true, "properties": { "type": { "description": "One of:\n* POI\n* Street\n* Geography\n* Point Address\n* Address Range\n* Cross Street", @@ -1949,6 +1949,9 @@ "score": { "$ref": "#/definitions/SearchResultScore" }, + "dist": { + "$ref": "#/definitions/SearchResultDistance" + }, "info": { "description": "Info property", "type": "string", @@ -1972,6 +1975,7 @@ "entryPoints": { "description": "Entry Points array", "type": "array", + "readOnly": true, "items": { "$ref": "#/definitions/SearchResultEntryPoint" } @@ -1981,848 +1985,255 @@ }, "dataSources": { "$ref": "#/definitions/DataSources" - } - } - }, - "SearchPoiResponse": { - "description": "This object is returned from a successful Search POI call", - "type": "object", - "properties": { - "summary": { - "$ref": "#/definitions/SearchPoiSummary" - }, - "results": { - "description": "Results array", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/SearchPoiResult" - } - } - } - }, - "SearchPoiSummary": { - "description": "Summary object for a Search POI response", - "type": "object", - "readOnly": true, - "properties": { - "query": { - "description": "Query property", - "type": "string", - "readOnly": true - }, - "queryType": { - "description": "QueryType property", - "type": "string", - "readOnly": true - }, - "queryTime": { - "description": "QueryTime property", - "type": "integer", - "readOnly": true - }, - "numResults": { - "description": "NumResults property", - "type": "integer", - "readOnly": true - }, - "offset": { - "description": "Offset property", - "type": "integer", - "readOnly": true - }, - "totalResults": { - "description": "TotalResults property", - "type": "integer", - "readOnly": true - }, - "fuzzyLevel": { - "description": "FuzzyLevel property", - "type": "integer", - "readOnly": true - }, - "geoBias": { - "$ref": "#/definitions/SearchSummaryGeoBias" - } - } - }, - "SearchPoiResult": { - "type": "object", - "properties": { - "type": { - "description": "Type property", - "type": "string", - "readOnly": true }, - "id": { - "description": "Id property", + "matchType": { "type": "string", - "readOnly": true - }, - "score": { - "$ref": "#/definitions/SearchResultScore" - }, - "dist": { - "$ref": "#/definitions/SearchResultDistance" + "readOnly": true, + "description": "Information on the type of match.\n\nOne of:\n * AddressPoint\n * HouseNumberRange\n * Street" }, - "info": { - "description": "Info property", - "type": "string", + "detourTime": { + "description": "Detour time in seconds", + "type": "number", "readOnly": true - }, - "entityType": { - "$ref": "#/definitions/EntityType" - }, - "poi": { - "$ref": "#/definitions/SearchResultPoi" - }, - "address": { - "$ref": "#/definitions/SearchResultAddress" - }, - "position": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPairAbbreviated" - }, - "viewport": { - "$ref": "#/definitions/SearchResultViewport" - }, - "entryPoints": { - "description": "Entry Points array", - "type": "array", - "items": { - "$ref": "#/definitions/SearchResultEntryPoint" - } } } }, - "SearchNearbyResponse": { - "description": "This object is returned from a successful Search Nearby call", + "SearchFuzzyResponse": { + "description": "This object is returned from a successful Search Fuzzy call", "type": "object", "properties": { "summary": { - "$ref": "#/definitions/SearchNearbySummary" + "description": "Summary object for a Search Fuzzy response", + "readOnly": true, + "$ref": "#/definitions/SearchCommonSummary" }, "results": { "description": "Results array", "type": "array", "readOnly": true, "items": { - "$ref": "#/definitions/SearchNearbyResult" + "description": "Result object for a Search Fuzzy response", + "readOnly": true, + "$ref": "#/definitions/SearchCommonResult" } } } }, - "SearchNearbySummary": { - "description": "Summary object for a Search Nearby response", - "type": "object", - "readOnly": true, - "properties": { - "queryType": { - "description": "QueryType property", - "type": "string", - "readOnly": true - }, - "queryTime": { - "description": "QueryTime property", - "type": "integer", - "readOnly": true - }, - "numResults": { - "description": "NumResults property", - "type": "integer", - "readOnly": true - }, - "offset": { - "description": "Offset property", - "type": "integer", - "readOnly": true - }, - "totalResults": { - "description": "TotalResults property", - "type": "integer", - "readOnly": true - }, - "fuzzyLevel": { - "description": "FuzzyLevel property", - "type": "integer", - "readOnly": true - }, - "geoBias": { - "$ref": "#/definitions/SearchSummaryGeoBias" - } - } - }, - "SearchNearbyResult": { + "SearchPoiResponse": { + "description": "This object is returned from a successful Search POI call", "type": "object", "properties": { - "type": { - "description": "Type property", - "type": "string", - "readOnly": true - }, - "id": { - "description": "Id property", - "type": "string", - "readOnly": true - }, - "score": { - "$ref": "#/definitions/SearchResultScore" - }, - "dist": { - "$ref": "#/definitions/SearchResultDistance" - }, - "info": { - "description": "Info property", - "type": "string", - "readOnly": true - }, - "poi": { - "$ref": "#/definitions/SearchResultPoi" - }, - "address": { - "$ref": "#/definitions/SearchResultAddress" - }, - "position": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPairAbbreviated" - }, - "viewport": { - "$ref": "#/definitions/SearchResultViewport" + "summary": { + "description": "Summary object for a Search POI response", + "readOnly": true, + "$ref": "#/definitions/SearchCommonSummary" }, - "entryPoints": { - "description": "Entry Points array", + "results": { + "description": "Results array", "type": "array", + "readOnly": true, "items": { - "$ref": "#/definitions/SearchResultEntryPoint" + "description": "Result object for a Search POI response", + "readOnly": true, + "$ref": "#/definitions/SearchCommonResult" } } } }, - "SearchPoiCategoryResponse": { - "description": "This object is returned from a successful Search POI Category call", + "SearchNearbyResponse": { + "description": "This object is returned from a successful Search Nearby call", "type": "object", "properties": { "summary": { - "$ref": "#/definitions/SearchPoiCategorySummary" + "description": "Summary object for a Search Nearby response", + "readOnly": true, + "$ref": "#/definitions/SearchCommonSummary" }, "results": { "description": "Results array", "type": "array", "readOnly": true, "items": { - "$ref": "#/definitions/SearchPoiCategoryResult" + "description": "Result object for a Search Nearby response", + "readOnly": true, + "$ref": "#/definitions/SearchCommonResult" } } } - }, - "SearchPoiCategorySummary": { - "description": "Summary object for a Search POI Category response", - "type": "object", - "readOnly": true, - "properties": { - "query": { - "description": "Query property", - "type": "string", - "readOnly": true - }, - "queryType": { - "description": "QueryType property", - "type": "string", - "readOnly": true - }, - "queryTime": { - "description": "QueryTime property", - "type": "integer", - "readOnly": true - }, - "numResults": { - "description": "NumResults property", - "type": "integer", - "readOnly": true - }, - "offset": { - "description": "Offset property", - "type": "integer", - "readOnly": true - }, - "totalResults": { - "description": "TotalResults property", - "type": "integer", - "readOnly": true - }, - "fuzzyLevel": { - "description": "FuzzyLevel property", - "type": "integer", - "readOnly": true - }, - "geoBias": { - "$ref": "#/definitions/SearchSummaryGeoBias" - } - } - }, - "SearchPoiCategoryResult": { - "type": "object", - "properties": { - "type": { - "description": "Type property", - "type": "string", - "readOnly": true - }, - "id": { - "description": "Id property", - "type": "string", - "readOnly": true - }, - "score": { - "$ref": "#/definitions/SearchResultScore" - }, - "dist": { - "$ref": "#/definitions/SearchResultDistance" - }, - "info": { - "description": "Info property", - "type": "string", - "readOnly": true - }, - "entityType": { - "$ref": "#/definitions/EntityType" - }, - "poi": { - "$ref": "#/definitions/SearchResultPoi" - }, - "address": { - "$ref": "#/definitions/SearchResultAddress" - }, - "position": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPairAbbreviated" - }, - "viewport": { - "$ref": "#/definitions/SearchResultViewport" - }, - "entryPoints": { - "description": "Entry Points array", - "type": "array", - "items": { - "$ref": "#/definitions/SearchResultEntryPoint" - } - } - } - }, - "SearchAddressResponse": { - "description": "This object is returned from a successful Search Address call", - "type": "object", - "properties": { - "summary": { - "$ref": "#/definitions/SearchAddressSummary" - }, - "results": { - "description": "Results array", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/SearchAddressResult" - } - } - } - }, - "SearchAddressSummary": { - "description": "Summary object for a Search Address response", - "type": "object", - "readOnly": true, - "properties": { - "query": { - "description": "Query property", - "type": "string", - "readOnly": true - }, - "queryType": { - "description": "QueryType property", - "type": "string", - "readOnly": true - }, - "queryTime": { - "description": "QueryTime property", - "type": "integer", - "readOnly": true - }, - "numResults": { - "description": "NumResults property", - "type": "integer", - "readOnly": true - }, - "offset": { - "description": "Offset property", - "type": "integer", - "readOnly": true - }, - "totalResults": { - "description": "TotalResults property", - "type": "integer", - "readOnly": true - }, - "fuzzyLevel": { - "description": "FuzzyLevel property", - "type": "integer", - "readOnly": true - } - } - }, - "SearchAddressResult": { - "type": "object", - "properties": { - "type": { - "description": "One of:\n* POI\n* Street\n* Geography\n* Point Address\n* Address Range\n* Cross Street", - "type": "string", - "readOnly": true - }, - "id": { - "description": "Id property", - "type": "string", - "readOnly": true - }, - "score": { - "$ref": "#/definitions/SearchResultScore" - }, - "address": { - "$ref": "#/definitions/SearchResultAddress" - }, - "position": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPairAbbreviated" - }, - "viewport": { - "$ref": "#/definitions/SearchResultViewport" - }, - "entryPoints": { - "description": "Entry Points array", - "type": "array", - "items": { - "$ref": "#/definitions/SearchResultEntryPoint" - } - }, - "dataSources": { - "$ref": "#/definitions/DataSources" - } - } - }, - "SearchAddressReverseResponse": { - "description": "This object is returned from a successful Search Address Reverse call", - "type": "object", - "properties": { - "summary": { - "$ref": "#/definitions/SearchAddressReverseSummary" - }, - "addresses": { - "description": "Addresses array", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/SearchAddressReverseResult" - } - } - } - }, - "SearchAddressReverseSummary": { - "description": "Summary object for a Search Address Reverse response", - "type": "object", - "readOnly": true, - "properties": { - "queryTime": { - "description": "QueryTime property", - "type": "integer", - "readOnly": true - }, - "numResults": { - "description": "NumResults property", - "type": "integer", - "readOnly": true - } - } - }, - "SearchAddressReverseResult": { - "type": "object", - "properties": { - "address": { - "$ref": "#/definitions/SearchResultAddress" - }, - "position": { - "type": "string", - "readOnly": true, - "description": "Position property in the form of \"{latitude},{longitude}\"" - }, - "matchType": { - "type": "string", - "readOnly": true, - "description": "Information on the type of match.\n\nOne of:\n * AddressPoint\n * HouseNumberRange\n * Street" - } - } - }, - "SearchAddressReverseCrossStreetResponse": { - "description": "This object is returned from a successful Search Address Reverse CrossStreet call", - "type": "object", - "properties": { - "summary": { - "$ref": "#/definitions/SearchAddressReverseCrossStreetSummary" - }, - "addresses": { - "description": "Addresses array", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/SearchAddressReverseCrossStreetResult" - } - } - } - }, - "SearchAddressReverseCrossStreetSummary": { - "description": "Summary object for a Search Address Reverse Cross Street response", - "type": "object", - "readOnly": true, - "properties": { - "queryTime": { - "description": "QueryTime property", - "type": "integer", - "readOnly": true - }, - "numResults": { - "description": "NumResults property", - "type": "integer", - "readOnly": true - } - } - }, - "SearchAddressReverseCrossStreetResult": { - "type": "object", - "properties": { - "address": { - "$ref": "#/definitions/SearchResultAddress" - }, - "position": { - "type": "string", - "readOnly": true, - "description": "Position property in the form of \"{latitude},{longitude}\"" - } - } - }, - "SearchAddressStructuredResponse": { - "description": "This object is returned from a successful Search Address Structured call", - "type": "object", - "properties": { - "summary": { - "$ref": "#/definitions/SearchAddressStructuredSummary" - }, - "results": { - "description": "Results array", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/SearchAddressStructuredResult" - } - } - } - }, - "SearchAddressStructuredSummary": { - "description": "Summary object for a Search Address Structured response", - "type": "object", - "readOnly": true, - "properties": { - "query": { - "description": "Query property", - "type": "string", - "readOnly": true - }, - "queryType": { - "description": "QueryType property", - "type": "string", - "readOnly": true - }, - "queryTime": { - "description": "QueryTime property", - "type": "integer", - "readOnly": true - }, - "numResults": { - "description": "NumResults property", - "type": "integer", - "readOnly": true - }, - "limit": { - "description": "Maximum number of responses that will be returned", - "readOnly": true, - "type": "integer" - }, - "offset": { - "description": "Offset property", - "type": "integer", - "readOnly": true - }, - "totalResults": { - "description": "TotalResults property", - "type": "integer", - "readOnly": true - }, - "fuzzyLevel": { - "description": "FuzzyLevel property", - "type": "integer", - "readOnly": true - }, - "geoBias": { - "$ref": "#/definitions/SearchSummaryGeoBias" - } - } - }, - "SearchAddressStructuredResult": { - "type": "object", - "properties": { - "type": { - "description": "Type property", - "type": "string", - "readOnly": true - }, - "id": { - "description": "Id property", - "type": "string", - "readOnly": true - }, - "score": { - "$ref": "#/definitions/SearchResultScore" - }, - "dist": { - "$ref": "#/definitions/SearchResultDistance" - }, - "address": { - "$ref": "#/definitions/SearchResultAddress" - }, - "position": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPairAbbreviated" - }, - "viewport": { - "$ref": "#/definitions/SearchResultViewport" - }, - "entryPoints": { - "description": "Entry Points array", - "type": "array", - "items": { - "$ref": "#/definitions/SearchResultEntryPoint" - } - }, - "addressRanges": { - "$ref": "#/definitions/SearchResultAddressRanges" - } - } - }, - "SearchGeometryResponse": { - "description": "This object is returned from a successful Search By Geometry call", - "type": "object", - "properties": { - "summary": { - "$ref": "#/definitions/SearchGeometrySummary" - }, - "results": { - "description": "A list of Search Inside Geometry results.", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/SearchGeometryResult" - } - } - } - }, - "SearchGeometrySummary": { - "description": "Summary object for a Search Geometry response", - "type": "object", - "readOnly": true, - "properties": { - "query": { - "description": "Query property", - "type": "string", - "readOnly": true - }, - "queryType": { - "description": "QueryType property", - "type": "string", - "readOnly": true - }, - "queryTime": { - "description": "QueryTime property", - "type": "integer", - "readOnly": true - }, - "numResults": { - "description": "NumResults property", - "type": "integer", - "readOnly": true - }, - "offset": { - "description": "Offset property", - "type": "integer", - "readOnly": true - }, - "totalResults": { - "description": "TotalResults property", - "type": "integer", - "readOnly": true - }, - "fuzzyLevel": { - "description": "FuzzyLevel property", - "type": "integer", - "readOnly": true - } - } - }, - "SearchGeometryResult": { - "description": "This type represents the Search Inside Geometry result object.", - "type": "object", - "properties": { - "type": { - "description": "Type property", - "type": "string", - "readOnly": true - }, - "id": { - "description": "Id property", - "type": "string", - "readOnly": true - }, - "score": { - "$ref": "#/definitions/SearchResultScore" - }, - "info": { - "description": "Info property", - "type": "string", - "readOnly": true - }, - "entityType": { - "$ref": "#/definitions/EntityType" - }, - "poi": { - "$ref": "#/definitions/SearchResultPoi" - }, - "address": { - "$ref": "#/definitions/SearchResultAddress" - }, - "position": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPairAbbreviated" - }, - "viewport": { - "$ref": "#/definitions/SearchResultViewport" + }, + "SearchPoiCategoryResponse": { + "description": "This object is returned from a successful Search POI Category call", + "type": "object", + "properties": { + "summary": { + "description": "Summary object for a Search POI Category response", + "readOnly": true, + "$ref": "#/definitions/SearchCommonSummary" }, - "entryPoints": { - "description": "Entry Points array", + "results": { + "description": "Results array", "type": "array", + "readOnly": true, "items": { - "$ref": "#/definitions/SearchResultEntryPoint" + "description": "Result object for a Search POI Category response", + "readOnly": true, + "$ref": "#/definitions/SearchCommonResult" } } } }, - "SearchAlongRouteResponse": { - "description": "This object is returned from a successful Search Along Route call.", + "SearchAddressResponse": { + "description": "This object is returned from a successful Search Address call", "type": "object", "properties": { "summary": { - "$ref": "#/definitions/SearchAlongRouteSummary" + "description": "Summary object for a Search Address response", + "readOnly": true, + "$ref": "#/definitions/SearchCommonSummary" }, "results": { - "description": "A list of Search Along Route results.", + "description": "Results array", "type": "array", "readOnly": true, "items": { - "$ref": "#/definitions/SearchAlongRouteResult" + "description": "Result object for a Search Address response", + "readOnly": true, + "$ref": "#/definitions/SearchCommonResult" } } } }, - "SearchAlongRouteSummary": { - "description": "Summary object for a Search Along Route response", + "SearchAddressReverseResponse": { + "description": "This object is returned from a successful Search Address Reverse call", "type": "object", - "readOnly": true, "properties": { - "query": { - "description": "Query property", - "type": "string", - "readOnly": true - }, - "queryType": { - "description": "QueryType property", - "type": "string", - "readOnly": true - }, - "queryTime": { - "description": "QueryTime property", - "type": "integer", - "readOnly": true - }, - "numResults": { - "description": "NumResults property", - "type": "integer", - "readOnly": true - }, - "offset": { - "description": "Offset property", - "type": "integer", - "readOnly": true - }, - "totalResults": { - "description": "TotalResults property", - "type": "integer", - "readOnly": true + "summary": { + "description": "Summary object for a Search Address Reverse response", + "readOnly": true, + "$ref": "#/definitions/SearchCommonSummary" }, - "fuzzyLevel": { - "description": "FuzzyLevel property", - "type": "integer", - "readOnly": true + "addresses": { + "description": "Addresses array", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/SearchAddressReverseResult" + } } } }, - "SearchAlongRouteResult": { - "description": "This type represents the Search Along Route result object.", + "SearchAddressReverseResult": { + "description": "Result object for a Search Address Reverse response", "type": "object", "properties": { - "type": { - "description": "Type property", - "type": "string", - "readOnly": true + "address": { + "$ref": "#/definitions/SearchResultAddress" }, - "id": { - "description": "Id property", + "position": { "type": "string", - "readOnly": true - }, - "score": { - "$ref": "#/definitions/SearchResultScore" + "readOnly": true, + "description": "Position property in the form of \"{latitude},{longitude}\"" }, - "info": { - "description": "Info property", + "matchType": { "type": "string", - "readOnly": true - }, - "entityType": { - "$ref": "#/definitions/EntityType" - }, - "poi": { - "$ref": "#/definitions/SearchResultPoi" + "readOnly": true, + "description": "Information on the type of match.\n\nOne of:\n * AddressPoint\n * HouseNumberRange\n * Street" + } + } + }, + "SearchAddressReverseCrossStreetResponse": { + "description": "This object is returned from a successful Search Address Reverse CrossStreet call", + "type": "object", + "properties": { + "summary": { + "description": "Summary object for a Search Address Reverse Cross Street response", + "readOnly": true, + "$ref": "#/definitions/SearchCommonSummary" }, + "addresses": { + "description": "Addresses array", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/SearchAddressReverseCrossStreetResult" + } + } + } + }, + "SearchAddressReverseCrossStreetResult": { + "description": "Result object for a Search Address Reverse Cross Street response", + "type": "object", + "properties": { "address": { "$ref": "#/definitions/SearchResultAddress" }, "position": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPairAbbreviated" - }, - "viewport": { - "$ref": "#/definitions/SearchResultViewport" + "type": "string", + "readOnly": true, + "description": "Position property in the form of \"{latitude},{longitude}\"" + } + } + }, + "SearchAddressStructuredResponse": { + "description": "This object is returned from a successful Search Address Structured call", + "type": "object", + "properties": { + "summary": { + "description": "Summary object for a Search Address Structured response", + "readOnly": true, + "$ref": "#/definitions/SearchCommonSummary" }, - "entryPoints": { - "description": "Entry Points array", + "results": { + "description": "Results array", "type": "array", + "readOnly": true, "items": { - "$ref": "#/definitions/SearchResultEntryPoint" + "description": "Result object for a Search Address Structured response", + "readOnly": true, + "$ref": "#/definitions/SearchCommonResult" } + } + } + }, + "SearchGeometryResponse": { + "description": "This object is returned from a successful Search By Geometry call", + "type": "object", + "properties": { + "summary": { + "description": "Summary object for a Search Geometry response", + "readOnly": true, + "$ref": "#/definitions/SearchCommonSummary" }, - "dist": { - "$ref": "#/definitions/SearchResultDistance" + "results": { + "description": "A list of Search Inside Geometry results.", + "type": "array", + "readOnly": true, + "items": { + "description": "This type represents the Search Inside Geometry result object.", + "readOnly": true, + "$ref": "#/definitions/SearchCommonResult" + } + } + } + }, + "SearchAlongRouteResponse": { + "description": "This object is returned from a successful Search Along Route call.", + "type": "object", + "properties": { + "summary": { + "description": "Summary object for a Search Along Route response", + "readOnly": true, + "$ref": "#/definitions/SearchCommonSummary" }, - "detourTime": { - "description": "Detour time in seconds", - "type": "number", - "readOnly": true + "results": { + "description": "A list of Search Along Route results.", + "type": "array", + "readOnly": true, + "items": { + "description": "This type represents the Search Along Route result object.", + "readOnly": true, + "$ref": "#/definitions/SearchCommonResult" + } } } }, @@ -2847,6 +2258,7 @@ "SearchResultPoi": { "description": "Details of the returned POI including information such as the name, phone, url address, and classifications.", "type": "object", + "readOnly": true, "properties": { "name": { "description": "Name of the POI property", @@ -3015,6 +2427,7 @@ "SearchResultAddress": { "description": "The address of the result", "type": "object", + "readOnly": true, "properties": { "buildingNumber": { "description": "Building Number property", @@ -3119,12 +2532,18 @@ "description": "An address component which represents the name of a geographic area or locality that groups a number of addressable objects for addressing purposes, without being an administrative unit. This field is used to build the `freeformAddress` property.", "type": "string", "readOnly": true + }, + "boundingBox": { + "description": "Bounding box coordinates.", + "type": "object", + "readOnly": true } } }, "SearchResultViewport": { "description": "The viewport that covers the result represented by the top-left and bottom-right coordinates of the viewport.", "type": "object", + "readOnly": true, "properties": { "topLeftPoint": { "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPairAbbreviated" @@ -3137,6 +2556,7 @@ "SearchResultEntryPoint": { "description": "The entry point for the POI being returned.", "type": "object", + "readOnly": true, "properties": { "type": { "description": "The type of entry point. Value can be either _main_ or _minor_.", @@ -3159,6 +2579,7 @@ "SearchResultAddressRanges": { "description": "Describes the address range on both sides of the street for a search result. Coordinates for the start and end locations of the address range are included.", "type": "object", + "readOnly": true, "properties": { "rangeLeft": { "description": "Address range on the left side of the street.", @@ -3206,6 +2627,7 @@ "DataSources": { "description": "Optional section. Reference ids for use with the [Get Search Polygon](https://docs.microsoft.com/rest/api/maps/search/getsearchpolygon) API.", "type": "object", + "readOnly": true, "properties": { "geometry": { "$ref": "#/definitions/DataSourcesGeometry" @@ -3226,6 +2648,7 @@ "EntityType": { "description": "Geography entity type. Present only when entityType was requested and is available.", "type": "string", + "readOnly": true, "enum": [ "Country", "CountrySubdivision", @@ -3274,6 +2697,135 @@ } ] } + }, + "SearchFuzzyBatchResponse": { + "description": "This object is returned from a successful Search Fuzzy Batch service call.", + "type": "object", + "allOf": [ + { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/BatchResponse" + } + ], + "properties": { + "batchItems": { + "description": "Array containing the batch results.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/SearchFuzzyBatchItem" + } + } + } + }, + "SearchFuzzyBatchItem": { + "description": "An item returned from Search Fuzzy Batch service call.", + "type": "object", + "allOf": [ + { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/BatchItem" + } + ], + "properties": { + "response": { + "description": "The result of the query. SearchFuzzyResponse if the query completed successfully, ErrorResponse otherwise.", + "type": "object", + "readOnly": true, + "allOf": [ + { + "$ref": "#/definitions/SearchFuzzyResponse" + }, + { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + ] + } + } + }, + "SearchAddressBatchResponse": { + "description": "This object is returned from a successful Search Address Batch service call.", + "type": "object", + "allOf": [ + { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/BatchResponse" + } + ], + "properties": { + "batchItems": { + "description": "Array containing the batch results.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/SearchAddressBatchItem" + } + } + } + }, + "SearchAddressBatchItem": { + "description": "An item returned from Search Address Batch service call.", + "type": "object", + "allOf": [ + { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/BatchItem" + } + ], + "properties": { + "response": { + "description": "The result of the query. SearchAddressResponse if the query completed successfully, ErrorResponse otherwise.", + "type": "object", + "readOnly": true, + "allOf": [ + { + "$ref": "#/definitions/SearchAddressResponse" + }, + { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + ] + } + } + }, + "SearchAddressReverseBatchResponse": { + "description": "This object is returned from a successful Search Address Reverse Batch service call.", + "type": "object", + "allOf": [ + { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/BatchResponse" + } + ], + "properties": { + "batchItems": { + "description": "Array containing the batch results.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/SearchAddressReverseBatchItem" + } + } + } + }, + "SearchAddressReverseBatchItem": { + "description": "An item returned from Search Address Reverse Batch service call.", + "type": "object", + "allOf": [ + { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/BatchItem" + } + ], + "properties": { + "response": { + "description": "The result of the query. SearchAddressReverseResponse if the query completed successfully, ErrorResponse otherwise.", + "type": "object", + "readOnly": true, + "allOf": [ + { + "$ref": "#/definitions/SearchAddressReverseResponse" + }, + { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + ] + } + } } } } From 339398b9c31587216f33da9e6e20647520ef786f Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Thu, 29 Apr 2021 07:20:08 -0700 Subject: [PATCH 081/210] Alias - remove unused definitions and empty 204 response --- .../Alias/preview/1.0/alias.json | 32 ++----------------- .../preview/1.0/examples/Alias_Assign.json | 4 +-- .../preview/1.0/examples/Alias_Delete.json | 4 +-- 3 files changed, 4 insertions(+), 36 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json index 807c40c1cad7..362db71c70f6 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json @@ -50,14 +50,6 @@ ], "responses": {}, "parameters": { - "CreateResourceId": { - "name": "resourceId", - "description": "The unique id that references a resource to be aliased.", - "type": "string", - "in": "query", - "required": false, - "x-ms-parameter-location": "method" - }, "AssignResourceId": { "name": "resourceId", "description": "The unique id that references a resource to be aliased.", @@ -99,12 +91,6 @@ "description": "Content created successfully. The response body contains the newly created alias id `aliasId`.", "schema": { "$ref": "#/definitions/AliasCreateResponse" - }, - "headers": { - "Access-Control-Expose-Headers": { - "type": "string", - "description": "The list of response headers that can be read by the client." - } } }, "400": { @@ -192,10 +178,7 @@ ], "responses": { "204": { - "description": "Alias was assigned successfully.", - "schema": { - "$ref": "#/definitions/AliasAssignResponse" - } + "description": "Alias was assigned successfully." }, "400": { "$ref": "../../../Common/preview/1.0/common.json#/responses/400" @@ -238,10 +221,7 @@ ], "responses": { "204": { - "description": "Alias delete request completed successfully. The content for `aliasId` was deleted on the server.", - "schema": { - "$ref": "#/definitions/AliasDeleteResponse" - } + "description": "Alias delete request completed successfully. The content for `aliasId` was deleted on the server." }, "400": { "$ref": "../../../Common/preview/1.0/common.json#/responses/400" @@ -274,14 +254,6 @@ } } }, - "AliasAssignResponse": { - "description": "The response model for the Assign API. The response body will be empty signifying the assign was successful.", - "type": "object" - }, - "AliasDeleteResponse": { - "description": "The response model for the Delete API. The response body will be empty signifying there's alias available with the given `aliasId` anymore.", - "type": "object" - }, "AliasListResponse": { "description": "The response model for the List API. Returns a list of all the previously created aliases.", "type": "object", diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/examples/Alias_Assign.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/examples/Alias_Assign.json index 510eadf5d277..ab6ca20f8c98 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/examples/Alias_Assign.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/examples/Alias_Assign.json @@ -7,9 +7,7 @@ "resourceId": "[resourceId]" }, "responses": { - "204": { - "body": {} - }, + "204": {}, "400": { "headers": {}, "body": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/examples/Alias_Delete.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/examples/Alias_Delete.json index fc920bdb905e..2d1b3fb8b4f4 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/examples/Alias_Delete.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/examples/Alias_Delete.json @@ -6,9 +6,7 @@ "aliasId": "[aliasId]" }, "responses": { - "204": { - "body": {} - }, + "204": {}, "400": { "headers": {}, "body": { From 41c20e33a0ceb3b33d7d241483063299dc0c9eb5 Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Thu, 29 Apr 2021 07:21:06 -0700 Subject: [PATCH 082/210] Data - remove unused definitions, empty 204 responses and file upload parameters --- .../Microsoft.Maps/Data/preview/1.0/data.json | 78 ++++++++----------- .../Data/preview/1.0/examples/Delete.json | 4 +- .../Data/preview/1.0/examples/Download.json | 66 +--------------- 3 files changed, 33 insertions(+), 115 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json index f43e04a4fc27..3cf5a12f6662 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json @@ -52,6 +52,7 @@ "UploadDataFormat": { "name": "dataFormat", + "x-ms-client-name": "UploadDataFormat", "description": "Data format of the content being uploaded.", "type": "string", "in": "query", @@ -76,8 +77,9 @@ }, "x-ms-parameter-location": "method" }, - "Udid": { + "UploadDataId": { "name": "udid", + "x-ms-client-name": "UploadDataId", "description": "The unique data id for the content. The `udid` must have been obtained from a successful [Data Upload API](https://docs.microsoft.com/en-us/rest/api/maps/data/uploadpreview) call.", "type": "string", "in": "path", @@ -100,6 +102,9 @@ "$ref": "./examples/Upload.json" } }, + "consumes": [ + "multipart/form-data" + ], "parameters": [ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" @@ -115,12 +120,10 @@ }, { "name": "UploadContent", - "in": "body", "description": "The content to upload.", - "required": true, - "schema": { - "type": "object" - } + "type": "file", + "in": "formData", + "required": true } ], "responses": { @@ -168,6 +171,9 @@ "$ref": "./examples/Update.json" } }, + "consumes": [ + "multipart/form-data" + ], "parameters": [ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" @@ -179,16 +185,14 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/Udid" + "$ref": "#/parameters/UploadDataId" }, { "name": "UpdateContent", - "in": "body", "description": "The new content that will update/replace the previously uploaded content.", - "required": true, - "schema": { - "type": "object" - } + "type": "file", + "in": "formData", + "required": true } ], "responses": { @@ -230,6 +234,11 @@ "$ref": "./examples/Download.json" } }, + "produces": [ + "application/json", + "application/vnd.geo+json", + "application/octet-stream" + ], "parameters": [ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" @@ -241,14 +250,14 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/Udid" + "$ref": "#/parameters/UploadDataId" } ], "responses": { "200": { "description": "Data download request completed successfully. The response body will contain the content for the passed in `udid`.", "schema": { - "$ref": "#/definitions/MapDataDownloadResponse" + "type": "file" }, "headers": { "Content-Type": { @@ -257,20 +266,12 @@ } } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "description": "An error occurred while processing the request. Please try again later.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true } } }, @@ -294,15 +295,12 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/Udid" + "$ref": "#/parameters/UploadDataId" } ], "responses": { "204": { - "description": "Data delete request completed successfully. The content for `udid` was deleted on the server.", - "schema": { - "$ref": "#/definitions/MapDataDeleteResponse" - } + "description": "Data delete request completed successfully. The content for `udid` was deleted on the server." }, "400": { "$ref": "../../../Common/preview/1.0/common.json#/responses/400" @@ -348,12 +346,6 @@ "description": "List data request completed successfully. The response body contains a list of all the previously uploaded data.", "schema": { "$ref": "#/definitions/MapDataListResponse" - }, - "headers": { - "Content-Type": { - "type": "string", - "description": "The content-type for the Download API response." - } } }, "400": { @@ -376,14 +368,6 @@ } }, "definitions": { - "MapDataDownloadResponse": { - "description": "The response model for the Data Download API. The response body will contain the content for the passed in `udid`.", - "type": "object" - }, - "MapDataDeleteResponse": { - "description": "The response model for the Data Delete API. The response body will be empty signifying there's no content available for the `udid` anymore.", - "type": "object" - }, "MapDataListResponse": { "description": "The response model for the Data List API. Returns a list of all the previously uploaded data.", "type": "object", diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/examples/Delete.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/examples/Delete.json index 50c9ce448af5..2cb02557df93 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/examples/Delete.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/examples/Delete.json @@ -6,9 +6,7 @@ "udid": "25084fb7-307a-4720-8f91-7952a0b91012" }, "responses": { - "204": { - "body": {} - }, + "204": {}, "400": { "headers": {}, "body": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/examples/Download.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/examples/Download.json index 92222b3078f2..5daecf4bb618 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/examples/Download.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/examples/Download.json @@ -7,71 +7,7 @@ }, "responses": { "200": { - "headers": {}, - "body": { - "type": "FeatureCollection", - "features": [ - { - "type": "Feature", - "geometry": { - "type": "Point", - "coordinates": [ - -122.126986, - 47.639754 - ] - }, - "properties": { - "geometryId": "001", - "radius": 500 - } - } - ] - } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } + "body": "{file}" } } } From 9b1bed05da75f69714fe67f8ed7ae2cac8a103d4 Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Fri, 30 Apr 2021 02:01:14 -0700 Subject: [PATCH 083/210] Dataset - remove unused definitions and empty 204 response --- .../Dataset/preview/1.0/dataset.json | 26 +++++++------------ .../preview/1.0/examples/Dataset_Delete.json | 4 +-- 2 files changed, 11 insertions(+), 19 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json index 08e9aef05a11..d00a437be67a 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json @@ -52,6 +52,7 @@ "parameters": { "ConversionIdQuery": { "name": "conversionId", + "x-ms-client-name": "ConversionId", "description": "The unique ID used to create the dataset. The `conversionId` must have been obtained from a successful call to the Conversion Service Convert API and must be provided with multiple query parameters with same name (if more than one is provided). May not be provided in conjunction with the `udid` query parameter.", "type": "string", "in": "query", @@ -60,6 +61,7 @@ }, "UdidDataset": { "name": "udid", + "x-ms-client-name": "UdidDataset", "description": "The unique data ID used to create the dataset. The `udid` must have been obtained from a successful call to the Data Service Upload API and must be provided with multiple query parameters with the same name (if more than one is provided). May not be provided in conjunction with `conversionId` query parameter.", "type": "string", "in": "query", @@ -68,6 +70,7 @@ }, "DescriptionDataset": { "name": "description", + "x-ms-client-name": "DescriptionDataset", "description": "The description to be given to the dataset.", "type": "string", "in": "query", @@ -76,6 +79,7 @@ }, "DatasetId": { "name": "datasetId", + "x-ms-client-name": "DatasetId", "type": "string", "in": "path", "description": "The identifier for the dataset to query from.", @@ -84,6 +88,7 @@ }, "DataType": { "name": "type", + "x-ms-client-name": "DatasetType", "type": "string", "in": "query", "description": "The type of data to create the dataset with.", @@ -105,6 +110,7 @@ }, "ImportUdid": { "name": "udid", + "x-ms-client-name": "ImportUdid", "description": "The unique data ID used to import data into the dataset. The `udid` must have been obtained from a successful call to the Data Service Upload API.", "type": "string", "in": "query", @@ -113,6 +119,7 @@ }, "ImportType": { "name": "type", + "x-ms-client-name": "ImportDataType", "type": "string", "in": "query", "description": "The type of data to import into the dataset with.", @@ -134,19 +141,12 @@ }, "AppendDatasetId": { "name": "datasetId", + "x-ms-client-name": "AppendDatasetId", "type": "string", "in": "query", "description": "The ID for the dataset to append to.", "required": false, "x-ms-parameter-location": "method" - }, - "StatusId": { - "name": "statusId", - "type": "string", - "in": "path", - "description": "The ID to query the status for the dataset create/import request.", - "required": true, - "x-ms-parameter-location": "method" } }, "paths": { @@ -297,10 +297,7 @@ ], "responses": { "204": { - "description": "The dataset delete request completed successfully. The resource referenced by the `datasetId` was deleted from the server.", - "schema": { - "$ref": "#/definitions/DatasetDeleteResponse" - } + "description": "The dataset delete request completed successfully. The resource referenced by the `datasetId` was deleted from the server." }, "400": { "$ref": "../../../Common/preview/1.0/common.json#/responses/400" @@ -365,10 +362,6 @@ } }, "definitions": { - "DatasetDeleteResponse": { - "description": "The response model for the Dataset Delete API. The response body will be empty signifying there's no content available for the `datasetId` anymore.", - "type": "object" - }, "DatasetListResponse": { "description": "The response model for the Dataset List API. The response body will contain a list of all the previously created datasets.", "type": "object", @@ -386,6 +379,7 @@ "DatasetDetailInfo": { "description": "Detail information for the dataset.", "type": "object", + "readOnly": true, "properties": { "created": { "description": "The created timestamp for the dataset.", diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/examples/Dataset_Delete.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/examples/Dataset_Delete.json index 865652b9cbd8..1f5b1859dffc 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/examples/Dataset_Delete.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/examples/Dataset_Delete.json @@ -6,9 +6,7 @@ "datasetId": "[datasetId]" }, "responses": { - "204": { - "body": {} - }, + "204": {}, "400": { "headers": {}, "body": { From f26db4d978c707eb8b5c9b94cfad8c12d572bc91 Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Fri, 30 Apr 2021 02:09:33 -0700 Subject: [PATCH 084/210] Fix description and linter validation --- .../Dataset/preview/1.0/dataset.json | 2 +- .../Microsoft.Maps/WFS/preview/1.0/wfs.json | 24 +++++++------------ 2 files changed, 9 insertions(+), 17 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json index d00a437be67a..a509136be103 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json @@ -419,7 +419,7 @@ } }, "udids": { - "description": "The list of `conversionId` that were used to create the dataset.", + "description": "The list of `udid` that were used to create the dataset.", "type": "array", "readOnly": true, "items": { diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json index a688f45f97d5..9abf52df3b21 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json @@ -50,14 +50,6 @@ ], "responses": {}, "parameters": { - "DatasetId": { - "name": "datasetId", - "type": "string", - "in": "path", - "description": "The identifier for the dataset to query from.", - "required": true, - "x-ms-parameter-location": "method" - }, "LimitWfs": { "name": "limit", "in": "query", @@ -122,7 +114,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/DatasetId" + "$ref": "../../../Dataset/preview/1.0/dataset.json#/parameters/DatasetId" } ], "responses": { @@ -171,7 +163,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/DatasetId" + "$ref": "../../../Dataset/preview/1.0/dataset.json#/parameters/DatasetId" } ], "responses": { @@ -220,7 +212,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/DatasetId" + "$ref": "../../../Dataset/preview/1.0/dataset.json#/parameters/DatasetId" } ], "responses": { @@ -269,7 +261,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/DatasetId" + "$ref": "../../../Dataset/preview/1.0/dataset.json#/parameters/DatasetId" }, { "$ref": "#/parameters/CollectionId" @@ -321,7 +313,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/DatasetId" + "$ref": "../../../Dataset/preview/1.0/dataset.json#/parameters/DatasetId" }, { "$ref": "#/parameters/CollectionId" @@ -373,7 +365,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/DatasetId" + "$ref": "../../../Dataset/preview/1.0/dataset.json#/parameters/DatasetId" }, { "$ref": "#/parameters/CollectionId" @@ -431,7 +423,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/DatasetId" + "$ref": "../../../Dataset/preview/1.0/dataset.json#/parameters/DatasetId" }, { "$ref": "#/parameters/CollectionId" @@ -481,7 +473,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/DatasetId" + "$ref": "../../../Dataset/preview/1.0/dataset.json#/parameters/DatasetId" }, { "$ref": "#/parameters/CollectionId" From 8b0f34aa1ff2b556ea24377d40c675b861395c1d Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Fri, 30 Apr 2021 13:17:52 -0700 Subject: [PATCH 085/210] Elevation - remove unused definitions, merge some of them to get less models --- .../DEM/preview/1.0/elevation.json | 113 ++++++------------ 1 file changed, 38 insertions(+), 75 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json index 95c9ec0eff5c..5a55ef4161a5 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json +++ b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json @@ -69,16 +69,13 @@ { "name": "points", "in": "query", - "description": "The string representation of a list of points. A point is defined in lat/lon WGS84 coordinate reference system format. If multiple points are requested, each of the points in a list should be separated by the pipe ('|') character. The maximum number of points that can be requested in a single request is 2,000. The resolution of the elevation data will be the highest for a single point and will decrease if multiple points are spread further apart. ", + "description": "The string representation of a list of points. A point is defined in lon/lat WGS84 coordinate reference system format. If multiple points are requested, each of the points in a list should be separated by the pipe ('|') character. The maximum number of points that can be requested in a single request is 2,000. The resolution of the elevation data will be the highest for a single point and will decrease if multiple points are spread further apart. ", "required": true, "type": "array", "collectionFormat": "pipes", "items": { - "type": "array", - "collectionFormat": "csv", - "items": { - "type": "string" - } + "type": "string", + "pattern": "\\s*[-]?\\d+[.]\\d+\\s*[,]\\s*[-]?\\d+[.]\\d+\\s*" } } ], @@ -89,7 +86,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/PointsResult" + "description": "The response from a successful Elevation Points request.", + "$ref": "#/definitions/ElevationResult" } }, "400": { @@ -111,7 +109,7 @@ }, "post": { "summary": "Query Elevation Data for Multiple Points", - "description": "**Applies to**: S1 pricing tier.\n\nThe Post Data for Points API provides elevation data for multiple points. A point is defined in lat/lon coordinate format. Use the POST endpoint only if you intend to pass multiple points in the request. If you intend to pass a single coordinate into the API, use the [GET Data For Points API](https://docs.microsoft.com/en-us/rest/api/maps/elevation/getdataforpoints).", + "description": "**Applies to**: S1 pricing tier.\n\nThe Post Data for Points API provides elevation data for multiple points. A point is defined lon/lat coordinate format. Use the POST endpoint only if you intend to pass multiple points in the request. If you intend to pass a single coordinate into the API, use the [GET Data For Points API](https://docs.microsoft.com/en-us/rest/api/maps/elevation/getdataforpoints).", "operationId": "Elevation_PostDataForPoints", "x-ms-examples": { "PostDataForPoints": { @@ -134,10 +132,14 @@ { "name": "pointsRequestBody", "in": "body", - "description": "The string representation of a list of points. A point is defined in lat/lon WGS84 coordinate reference system format. Each points in a list should be separated by the pipe ('|') character. The number of points that can be requested in a POST request ranges from 2 to 2,000. The resolution of the elevation data will be the highest for a single point and will decrease if multiple points are spread further apart. ", + "description": "The string representation of a list of points. A point is defined in lon/lat WGS84 coordinate reference system format. Each points in a list should be separated by the pipe ('|') character. The number of points that can be requested in a POST request ranges from 2 to 2,000. The resolution of the elevation data will be the highest for a single point and will decrease if multiple points are spread further apart. ", "required": true, "schema": { - "$ref": "#/definitions/PointsInRequestBody" + "description": "The post elevation points array request body. The length of the array ranges from 2 to 2000.", + "type": "array", + "items": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPairAbbreviated" + } } } ], @@ -148,7 +150,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/PointsResult" + "description": "The response from a successful Elevation Points request.", + "$ref": "#/definitions/ElevationResult" } }, "400": { @@ -203,7 +206,8 @@ "type": "array", "collectionFormat": "csv", "items": { - "type": "string" + "type": "string", + "pattern": "\\s*[-]?\\d+[.]\\d+\\s*[,]\\s*[-]?\\d+[.]\\d+\\s*" } } }, @@ -225,7 +229,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/LinesResult" + "description": "The response from a successful Elevation Polyline request.", + "$ref": "#/definitions/ElevationResult" } }, "400": { @@ -273,7 +278,11 @@ "description": "The string representation of a polyline path. A polyline is defined by endpoint coordinates, with each endpoint separated by a pipe ('|') character. The polyline should be defined in the following format: `[longitude_point1, latitude_point1 | longitude_point2, latitude_point2, ..., longitude_pointN, latitude_pointN]`. The longitude and latitude values refer to the World Geodetic System (WGS84) coordinate reference system. The resolution of the data used to compute the elevation will depend on the distance between the endpoints.", "required": true, "schema": { - "$ref": "#/definitions/LinesInRequestBody" + "description": "The post elevation lines request body.", + "type": "array", + "items": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPairAbbreviated" + } } }, { @@ -294,7 +303,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/LinesResult" + "description": "The response from a successful Elevation Polyline request.", + "$ref": "#/definitions/ElevationResult" } }, "400": { @@ -375,7 +385,8 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/BoundingBoxResult" + "description": "The response from a successful Get Data for Bounding Box API.", + "$ref": "#/definitions/ElevationResult" } }, "400": { @@ -398,17 +409,10 @@ } }, "definitions": { - "ElevationPointResponse": { - "description": "The response for point/points elevation API. The result will be in same sequence of points listed in request.", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/PointElevationResult" - } - }, "PointElevationResult": { - "type": "object", "description": "The elevation data.", + "type": "object", + "readOnly": true, "properties": { "coordinate": { "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPair" @@ -416,66 +420,25 @@ "elevationInMeter": { "description": "The elevation value in meters.", "type": "number", + "format": "double", "readOnly": true } } }, - "ElevationLineResponse": { - "description": "The response from the Get Data for Polyline API. The results will be listed in the direction from the first endpoint towards the last endpoint.", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/PointElevationResult" - } - }, - "ElevationLatticeResponse": { - "description": "The response from the Get Data for Bounding Box API. The results are ordered starting with the southwest corner, and then proceed west to east and south to north.", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/PointElevationResult" - } - }, - "PointsResult": { - "type": "object", + "ElevationResult": { "description": "The response from a successful Elevation Points request.", - "properties": { - "data": { - "$ref": "#/definitions/ElevationPointResponse" - } - } - }, - "LinesResult": { - "type": "object", - "description": "The response from a successful Elevation Polyline request.", - "properties": { - "data": { - "$ref": "#/definitions/ElevationLineResponse" - } - } - }, - "BoundingBoxResult": { "type": "object", - "description": "The response from a successful Get Data for Bounding Box API.", + "readOnly": true, "properties": { "data": { - "$ref": "#/definitions/ElevationLatticeResponse" + "description": "The response for point/points elevation API. The result will be in same sequence of points listed in request.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/PointElevationResult" + } } } - }, - "PointsInRequestBody": { - "type": "array", - "description": "The post elevation points array request body. The length of the array ranges from 2 to 2000.", - "items": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPairAbbreviated" - } - }, - "LinesInRequestBody": { - "type": "array", - "description": "The post elevation lines request body.", - "items": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPairAbbreviated" - } } } } From 3f9da99583265cf56a2da9d61880a097ab177120 Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Mon, 3 May 2021 01:34:56 -0700 Subject: [PATCH 086/210] Conversion, Feature State & Geolocation - remove unused definitions and empty 204 response --- .../preview/1.0/dwgconversion.json | 9 +-------- .../preview/1.0/examples/Delete.json | 4 +--- .../preview/1.0/featurestate.json | 20 ++++++------------- .../Geolocation/preview/1.0/geolocation.json | 1 + 4 files changed, 9 insertions(+), 25 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json index a3f71e2fcfca..80af5a66da71 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json @@ -230,10 +230,7 @@ ], "responses": { "204": { - "description": "Conversion delete request completed successfully. The content for `conversionId` was deleted on the server.", - "schema": { - "$ref": "#/definitions/ConversionDeleteResponse" - } + "description": "Conversion delete request completed successfully. The content for `conversionId` was deleted on the server." }, "400": { "$ref": "../../../Common/preview/1.0/common.json#/responses/400" @@ -299,10 +296,6 @@ "readOnly": true } } - }, - "ConversionDeleteResponse": { - "description": "The response model for the Conversion Delete API. The response body will be empty signifying there's no content available for the `conversionId` anymore.", - "type": "object" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/examples/Delete.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/examples/Delete.json index a2437b22c532..115f09b7c77c 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/examples/Delete.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/examples/Delete.json @@ -6,9 +6,7 @@ "conversionId": "99884fb7-87a9-0920-7f93-7952a0b91012" }, "responses": { - "204": { - "body": {} - }, + "204": {}, "400": { "headers": {}, "body": { diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json index b9610f69b69b..170de6cf8b99 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json @@ -51,7 +51,7 @@ "parameters": { "DatasetIdForCreate": { "name": "datasetId", - "description": "The datasetId must have been obtained from a successful [Dataset Create API](https://review.docs.microsoft.com/en-us/rest-staging/api/maps-master/dataset/createpreview?branch=lbs) call.", + "description": "The datasetId must have been obtained from a successful [Dataset Create API](/rest/api/maps/dataset/createpreview) call.", "type": "string", "in": "query", "required": true, @@ -73,7 +73,7 @@ "required": true, "x-ms-parameter-location": "method" }, - "FeatureIdSet": { + "FeatureIdInDataset": { "name": "featureId", "description": "The id of a feature in the given dataset. If the featureId is not present in the dataset, Bad Request response will be returned.", "type": "string", @@ -81,15 +81,7 @@ "required": true, "x-ms-parameter-location": "method" }, - "FeatureIdGet": { - "name": "featureId", - "description": "The id of a feature in the given stateset. If no state was set for the featureId in the stateset earlier, Bad Request response will be returned.", - "type": "string", - "in": "query", - "required": true, - "x-ms-parameter-location": "method" - }, - "FeatureIdDelete": { + "FeatureIdInStateset": { "name": "featureId", "description": "The id of a feature in the given stateset. If no state was set for the featureId in the stateset earlier, Bad Request response will be returned.", "type": "string", @@ -361,7 +353,7 @@ "$ref": "#/parameters/StatesetId" }, { - "$ref": "#/parameters/FeatureIdGet" + "$ref": "#/parameters/FeatureIdInStateset" } ], "responses": { @@ -408,7 +400,7 @@ "$ref": "#/parameters/StatesetId" }, { - "$ref": "#/parameters/FeatureIdSet" + "$ref": "#/parameters/FeatureIdInDataset" }, { "name": "featureStateUpdateRequestBody", @@ -461,7 +453,7 @@ "$ref": "#/parameters/StatesetId" }, { - "$ref": "#/parameters/FeatureIdDelete" + "$ref": "#/parameters/FeatureIdInStateset" }, { "$ref": "#/parameters/StateKeyNameDelete" diff --git a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json index 9f5690cc73ac..42e2b1e25d6e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json +++ b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json @@ -103,6 +103,7 @@ "IpAddressToLocationResult": { "description": "This object is returned from a successful call to IP Address to country/region API", "type": "object", + "readOnly": true, "properties": { "countryRegion": { "$ref": "#/definitions/CountryRegion" From 97bede3c43ece17674db53a18271cce9310056d7 Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Mon, 3 May 2021 03:15:51 -0700 Subject: [PATCH 087/210] Use previous package-1.0-preview until new package-preview-2.0 is fixed. --- package-lock.json | 15 --------------- specification/maps/data-plane/readme.md | 3 +-- 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/package-lock.json b/package-lock.json index 7564f54abbc0..c112b7c88c93 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3,21 +3,6 @@ "version": "0.1.0", "lockfileVersion": 1, "requires": true, - "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=", - "dev": true - "dev": true, - "dev": true, - "optionator": "^0.8.1", - "source-map": "~0.6.1" - "dev": true, - "uglify-js": "^3.1.4", - "optionator": "^0.8.1", - "source-map": "~0.2.0" - "dev": true, - "dev": true, - "integrity": "sha1-99f1/4qc2HKnvkyhQglZVqYHl8s=", - "commander": "^2.7.1", - "commander": "^2.7.1", "dependencies": { "@azure/avocado": { "version": "0.7.2", diff --git a/specification/maps/data-plane/readme.md b/specification/maps/data-plane/readme.md index b84179740363..61f0e28bba6e 100644 --- a/specification/maps/data-plane/readme.md +++ b/specification/maps/data-plane/readme.md @@ -27,7 +27,7 @@ These are the global settings for MapsClient. ``` yaml title: MapsClient openapi-type: data-plane -tag: package-preview-2.0 +tag: package-1.0-preview ``` ### Suppression @@ -53,7 +53,6 @@ input-file: - Microsoft.Maps/DEM/preview/1.0/elevation.json - Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json - Microsoft.Maps/FeatureState/preview/2.0/featurestate.json - - Microsoft.Maps/Feedback/preview/1.0/feedback.json - Microsoft.Maps/Geolocation/preview/1.0/geolocation.json - Microsoft.Maps/Mobility/preview/1.0/mobility.json - Microsoft.Maps/Render/preview/1.0/render.json From 685ac830ae85e33773fdd6ed0e89eef38b5e4308 Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Mon, 3 May 2021 03:47:40 -0700 Subject: [PATCH 088/210] Fix merge conflicts after rebase and security LintDiff --- .../Microsoft.Maps/Alias/preview/2.0/alias.json | 4 +++- .../Microsoft.Maps/Common/preview/1.0/common.json | 6 +++--- .../Microsoft.Maps/Data/preview/2.0/data.json | 4 +++- .../Microsoft.Maps/Dataset/preview/2.0/dataset.json | 4 +++- .../DwgConversion/preview/2.0/dwgconversion.json | 4 +++- .../FeatureState/preview/2.0/featurestate.json | 4 +++- .../Microsoft.Maps/Search/preview/1.0/search.json | 10 +++++----- .../Microsoft.Maps/Tileset/preview/2.0/tileset.json | 4 +++- .../data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json | 4 +++- 9 files changed, 29 insertions(+), 15 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json index c90b224da3d1..110d64a7bf3b 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json @@ -40,7 +40,9 @@ }, "security": [ { - "azure_auth": [] + "azure_auth": [ + "user_impersonation" + ] }, { "apiKeyQuery": [] diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index a5542d1dba4f..b727a44424e5 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -34,7 +34,7 @@ ], "x-ms-enum": { "name": "LroStatus", - "modelAsString": false, + "modelAsString": true, "values": [ { "value": "NotStarted", @@ -201,7 +201,7 @@ ], "x-ms-enum": { "name": "GeoJsonObjectType", - "modelAsString": false, + "modelAsString": true, "values": [ { "value": "Point", @@ -570,7 +570,7 @@ ], "x-ms-enum": { "name": "JsonFormat", - "modelAsString": false, + "modelAsString": true, "values": [ { "value": "json", diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json index 858e1943bf5b..4614a506ad5a 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json @@ -39,7 +39,9 @@ }, "security": [ { - "azure_auth": [] + "azure_auth": [ + "user_impersonation" + ] }, { "apiKeyQuery": [] diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json index 28318cb9aa31..4f5086579c19 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json @@ -40,7 +40,9 @@ }, "security": [ { - "azure_auth": [] + "azure_auth": [ + "user_impersonation" + ] }, { "apiKeyQuery": [] diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json index 013f51c645f5..435c89edb787 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json @@ -39,7 +39,9 @@ }, "security": [ { - "azure_auth": [] + "azure_auth": [ + "user_impersonation" + ] }, { "apiKeyQuery": [] diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json index 7398a11f654f..e6c480d246c3 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json @@ -39,7 +39,9 @@ }, "security": [ { - "azure_auth": [] + "azure_auth": [ + "user_impersonation" + ] }, { "apiKeyQuery": [] diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json index 85fd29b1f52b..7f9845fb6881 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json @@ -191,7 +191,7 @@ ], "x-ms-enum": { "name": "SearchIndexSet", - "modelAsString": false, + "modelAsString": true, "values": [ { "value": "Addr", @@ -323,7 +323,7 @@ ], "x-ms-enum": { "name": "ConnectorSet", - "modelAsString": false, + "modelAsString": true, "values": [ { "value": "StandardHouseholdCountrySpecific", @@ -386,7 +386,7 @@ ], "x-ms-enum": { "name": "OpeningHours", - "modelAsString": false, + "modelAsString": true, "values": [ { "value": "nextSevenDays", @@ -1132,7 +1132,7 @@ ], "x-ms-enum": { "name": "EntityType", - "modelAsString": false, + "modelAsString": true, "values": [ { "value": "Country", @@ -2661,7 +2661,7 @@ ], "x-ms-enum": { "name": "EntityType", - "modelAsString": false, + "modelAsString": true, "values": [ { "value": "Country", diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json index 5c44d0fe5382..7f76dc4c7f6e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json @@ -39,7 +39,9 @@ }, "security": [ { - "azure_auth": [] + "azure_auth": [ + "user_impersonation" + ] }, { "apiKeyQuery": [] diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json index dbd9c75202c5..0405cf412405 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json @@ -40,7 +40,9 @@ }, "security": [ { - "azure_auth": [] + "azure_auth": [ + "user_impersonation" + ] }, { "apiKeyQuery": [] From 01081238e0049f91e2109855309c318c09c784de Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Mon, 3 May 2021 07:08:08 -0700 Subject: [PATCH 089/210] Fix Alias, Data, Dataset, Conversion, Feature State, Tileset & WFS 2.0 services --- .../Alias/preview/2.0/alias.json | 165 ++----- .../Common/preview/1.0/common.json | 22 +- .../Microsoft.Maps/Data/preview/1.0/data.json | 10 +- .../Microsoft.Maps/Data/preview/2.0/data.json | 362 ++++----------- .../Data/preview/2.0/examples/Download.json | 66 +-- .../Data/preview/2.0/examples/Update.json | 9 + .../Data/preview/2.0/examples/Upload.json | 9 + .../Dataset/preview/2.0/dataset.json | 238 ++-------- .../preview/2.0/dwgconversion.json | 253 ++--------- .../preview/2.0/examples/CreateStateset.json | 6 +- .../preview/2.0/examples/GetStateset.json | 20 +- .../preview/2.0/examples/Stateset_List.json | 20 +- .../preview/2.0/examples/UpdateStateset.json | 4 +- .../preview/2.0/featurestate.json | 302 +++++-------- .../Tileset/preview/2.0/tileset.json | 276 ++---------- .../WFS/preview/2.0/examples/DeleteItem.json | 2 +- .../preview/2.0/examples/GetCollection.json | 2 +- .../2.0/examples/GetCollectionDefinition.json | 2 +- .../preview/2.0/examples/GetCollections.json | 2 +- .../preview/2.0/examples/GetConformance.json | 2 +- .../WFS/preview/2.0/examples/GetItem.json | 4 +- .../WFS/preview/2.0/examples/GetItems.json | 4 +- .../preview/2.0/examples/GetLandingPage.json | 2 +- .../Microsoft.Maps/WFS/preview/2.0/wfs.json | 425 +++++++----------- specification/maps/data-plane/readme.md | 2 +- 25 files changed, 608 insertions(+), 1601 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json index 110d64a7bf3b..0298a38c3d3e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json @@ -48,47 +48,7 @@ "apiKeyQuery": [] } ], - "responses": { - "201": { - "description": "Resource Created: The alias resource has been created." - }, - "400": { - "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - }, - "401": { - "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - }, - "headers": { - "WWW-Authenticate": { - "type": "string", - "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" - } - } - }, - "403": { - "description": "Permission, capacity, or authentication issues.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - }, - "404": { - "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - }, - "500": { - "description": "An error occurred while processing the request. Please try again later.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - } - }, + "responses": {}, "parameters": { "GeographicResourceLocation": { "name": "geography", @@ -117,23 +77,6 @@ }, "x-ms-parameter-location": "client" }, - "SubscriptionKey": { - "name": "subscription-key", - "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", - "type": "string", - "in": "query", - "required": false, - "x-ms-parameter-location": "client" - }, - "ApiVersion": { - "name": "api-version", - "description": "Version number of Azure Maps API. Current version is 2.0", - "type": "string", - "in": "query", - "required": true, - "default": "2.0", - "x-ms-parameter-location": "client" - }, "CreateCreatorDataItemId": { "name": "creatorDataItemId", "description": "The unique id that references a creator data item to be aliased.", @@ -172,10 +115,10 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/CreateCreatorDataItemId" @@ -195,19 +138,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -222,10 +165,10 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" } ], "responses": { @@ -236,19 +179,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -268,10 +211,10 @@ "$ref": "#/parameters/AliasId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/AssignCreatorDataItemId" @@ -285,19 +228,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -315,10 +258,10 @@ "$ref": "#/parameters/AliasId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" } ], "responses": { @@ -326,19 +269,19 @@ "description": "Alias delete request completed successfully. The content for `aliasId` was deleted on the server." }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -356,10 +299,10 @@ "$ref": "#/parameters/AliasId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" } ], "responses": { @@ -370,61 +313,25 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } } }, "definitions": { - "ODataErrorResponse": { - "type": "object", - "description": "This response object is returned when an error occurs in the Maps API.", - "properties": { - "error": { - "$ref": "#/definitions/ODataError" - } - } - }, - "ODataError": { - "type": "object", - "description": "This object is returned when an error occurs in the Maps API.", - "properties": { - "code": { - "type": "string", - "readOnly": true, - "description": "The ODataError code." - }, - "message": { - "type": "string", - "readOnly": true, - "description": "If available, a human readable description of the error." - }, - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/ODataError" - } - }, - "target": { - "type": "string", - "readOnly": true, - "description": "If available, the target causing the error." - } - } - }, "AliasCreateResponse": { "description": "The response model for the Alias Create API for the case when the alias was successfully created.", "type": "object", diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index b727a44424e5..675e55f34058 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -584,10 +584,21 @@ "responses": { "200Async": { "description": "The operation's status response.", + "schema": { + "$ref": "#/definitions/LongRunningOperationResult" + } + }, + "200AsyncV2": { + "description": "The operation is running or complete. If the operation was successful, use the Resource-Location header to obtain the path to the result.", "schema": { "$ref": "#/definitions/LongRunningOperationResult" }, - "x-ms-error-response": true + "headers": { + "Resource-Location": { + "type": "string", + "description": "If successful, a URI where details on the newly created resource can be found." + } + } }, "201Async": { "description": "The resource has been created successfully.", @@ -610,6 +621,15 @@ } } }, + "202AsyncV2": { + "description": "Request Accepted: The request has been accepted for processing. Please use the URL in the Operation-Location Header to obtain status.", + "headers": { + "Operation-Location": { + "type": "string", + "description": "New URL to check for the results of the long running process." + } + } + }, "400": { "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json index 3cf5a12f6662..91ba5cb61f2b 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json @@ -77,9 +77,9 @@ }, "x-ms-parameter-location": "method" }, - "UploadDataId": { + "UniqueDataId": { "name": "udid", - "x-ms-client-name": "UploadDataId", + "x-ms-client-name": "UniqueDataId", "description": "The unique data id for the content. The `udid` must have been obtained from a successful [Data Upload API](https://docs.microsoft.com/en-us/rest/api/maps/data/uploadpreview) call.", "type": "string", "in": "path", @@ -185,7 +185,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/UploadDataId" + "$ref": "#/parameters/UniqueDataId" }, { "name": "UpdateContent", @@ -250,7 +250,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/UploadDataId" + "$ref": "#/parameters/UniqueDataId" } ], "responses": { @@ -295,7 +295,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/UploadDataId" + "$ref": "#/parameters/UniqueDataId" } ], "responses": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json index 4614a506ad5a..f0f6a5929949 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json @@ -47,65 +47,7 @@ "apiKeyQuery": [] } ], - "responses": { - "400": { - "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - }, - "401": { - "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - }, - "headers": { - "WWW-Authenticate": { - "type": "string", - "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" - } - } - }, - "403": { - "description": "Permission, capacity, or authentication issues.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - }, - "404": { - "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - }, - "500": { - "description": "An error occurred while processing the request. Please try again later.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - }, - "200Async": { - "description": "The operation is running or complete. If the operation was successful, use the Resource-Location header to obtain the path to the result.", - "schema": { - "$ref": "#/definitions/LongRunningOperationResult" - }, - "headers": { - "Resource-Location": { - "type": "string", - "description": "If successful, a URI where details on the newly created resource can be found." - } - } - }, - "202Accepted": { - "description": "Request Accepted: The request has been accepted for processing. Please use the URL in the Operation-Location Header to obtain status.", - "headers": { - "Operation-Location": { - "type": "string", - "description": "New URL to check for the results of the long running process." - } - } - } - }, + "responses": {}, "parameters": { "GeographicResourceLocation": { "name": "geography", @@ -134,54 +76,9 @@ }, "x-ms-parameter-location": "client" }, - "ClientId": { - "name": "x-ms-client-id", - "description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.", - "type": "string", - "in": "header", - "required": false, - "x-ms-parameter-location": "client" - }, - "SubscriptionKey": { - "name": "subscription-key", - "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", - "type": "string", - "in": "query", - "required": false, - "x-ms-parameter-location": "client" - }, - "ApiVersion": { - "name": "api-version", - "description": "Version number of Azure Maps API. Current version is 2.0", - "type": "string", - "in": "query", - "required": true, - "default": "2.0", - "x-ms-parameter-location": "client" - }, - "JsonFormat": { - "name": "format", - "description": "Desired format of the response. Only `json` format is supported.", - "type": "string", - "in": "path", - "required": true, - "enum": [ - "json" - ], - "x-ms-enum": { - "name": "JsonFormat", - "modelAsString": true, - "values": [ - { - "value": "json", - "description": "[The JavaScript Object Notation Data Interchange Format](https://tools.ietf.org/html/rfc8259)" - } - ] - }, - "x-ms-parameter-location": "method" - }, "UploadDataFormat": { "name": "dataFormat", + "x-ms-client-name": "UploadDataFormat", "description": "Data format of the content being uploaded.", "type": "string", "in": "query", @@ -205,22 +102,24 @@ }, { "value": "dwgzippackage", - "description": "" + "description": "ZIP package containing DWG file." } ] }, "x-ms-parameter-location": "method" }, - "Udid": { + "UniqueDataId": { "name": "udid", + "x-ms-client-name": "UniqueDataId", "description": "The unique data id for the content. The `udid` must have been obtained from a successful [Data Upload API](https://docs.microsoft.com/en-us/rest/api/maps/data%20v2/uploadpreview) call.", "type": "string", "in": "path", "required": true, "x-ms-parameter-location": "method" }, - "Description": { + "UploadDataDescription": { "name": "description", + "x-ms-client-name": "UploadDataDescription", "description": "The description to be given to the upload.", "type": "string", "in": "query", @@ -251,56 +150,61 @@ "$ref": "./examples/Upload.json" } }, + "consumes": [ + "multipart/form-data" + ], "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { - "$ref": "#/parameters/Description" + "$ref": "#/parameters/UploadDataDescription" }, { "$ref": "#/parameters/UploadDataFormat" }, { "name": "UploadContent", - "in": "body", "description": "The content to upload.", - "required": true, - "schema": { - "type": "object" - } + "type": "file", + "in": "formData", + "required": true } ], "responses": { "200": { "description": "Data upload failed. The uploaded content did not satisfy all the validation checks. The response body contains all the errors that were encountered.", "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true }, "202": { - "$ref": "#/responses/202Accepted" + "$ref": "../../../Common/preview/1.0/common.json#/responses/202AsyncV2" }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + }, + "409": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/409StorageLimit" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -315,13 +219,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" } ], "responses": { @@ -338,19 +242,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -369,56 +273,61 @@ "$ref": "./examples/Update.json" } }, + "consumes": [ + "multipart/form-data" + ], "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { - "$ref": "#/parameters/Udid" + "$ref": "#/parameters/UniqueDataId" }, { - "$ref": "#/parameters/Description" + "$ref": "#/parameters/UploadDataDescription" }, { "name": "UpdateContent", - "in": "body", "description": "The new content that will update/replace the previously uploaded content.", - "required": true, - "schema": { - "type": "object" - } + "type": "file", + "in": "formData", + "required": true } ], "responses": { "200": { "description": "Data update failed. The uploaded content did not satisfy all the validation checks. The response body contains all the errors that were encountered.", "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true }, "202": { - "$ref": "#/responses/202Accepted" + "$ref": "../../../Common/preview/1.0/common.json#/responses/202AsyncV2" }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + }, + "409": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/409StorageLimit" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -431,25 +340,30 @@ "$ref": "./examples/Download.json" } }, + "produces": [ + "application/json", + "application/vnd.geo+json", + "application/octet-stream" + ], "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { - "$ref": "#/parameters/Udid" + "$ref": "#/parameters/UniqueDataId" } ], "responses": { "200": { "description": "Data download request completed successfully. The response body will contain the content for the passed in `udid`.", "schema": { - "$ref": "#/definitions/MapDataDownloadResponse" + "type": "file" }, "headers": { "Content-Type": { @@ -458,20 +372,12 @@ } } }, - "400": { - "$ref": "#/responses/400" - }, - "401": { - "$ref": "#/responses/401" - }, - "403": { - "$ref": "#/responses/403" - }, - "404": { - "$ref": "#/responses/404" - }, - "500": { - "$ref": "#/responses/500" + "default": { + "description": "An error occurred while processing the request. Please try again later.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true } } }, @@ -486,16 +392,16 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { - "$ref": "#/parameters/Udid" + "$ref": "#/parameters/UniqueDataId" } ], "responses": { @@ -503,19 +409,19 @@ "description": "Data delete request completed successfully. The content for `udid` was deleted on the server." }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -534,10 +440,10 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/DataUploadOperationId" @@ -545,106 +451,16 @@ ], "responses": { "200": { - "$ref": "#/responses/200Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/200AsyncV2" }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" } } } } }, "definitions": { - "ODataErrorResponse": { - "type": "object", - "description": "This response object is returned when an error occurs in the Maps API.", - "properties": { - "error": { - "$ref": "#/definitions/ODataError" - } - } - }, - "ODataError": { - "type": "object", - "description": "This object is returned when an error occurs in the Maps API.", - "properties": { - "code": { - "type": "string", - "readOnly": true, - "description": "The ODataError code." - }, - "message": { - "type": "string", - "readOnly": true, - "description": "If available, a human readable description of the error." - }, - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/ODataError" - } - }, - "target": { - "type": "string", - "readOnly": true, - "description": "If available, the target causing the error." - } - } - }, - "LongRunningOperationResult": { - "description": "The response model for a Long-Running Operations API.", - "type": "object", - "properties": { - "operationId": { - "description": "The Id for this long-running operation.", - "type": "string" - }, - "status": { - "description": "The status state of the request.", - "type": "string", - "enum": [ - "NotStarted", - "Running", - "Failed", - "Succeeded" - ], - "x-ms-enum": { - "name": "type", - "modelAsString": true, - "values": [ - { - "value": "NotStarted", - "description": "The request has not started processing yet." - }, - { - "value": "Running", - "description": "The request has started processing." - }, - { - "value": "Failed", - "description": "The request has one or more failures." - }, - { - "value": "Succeeded", - "description": "The request has successfully completed." - } - ] - }, - "readOnly": true - }, - "created": { - "description": "The created timestamp.", - "type": "string", - "readOnly": true - }, - "error": { - "$ref": "#/definitions/ODataError" - }, - "warning": { - "$ref": "#/definitions/ODataError" - } - } - }, "MapDataDownloadResponse": { "description": "The response model for the Data Download API. The response body will contain the content for the passed in `udid`.", "type": "object" diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/Download.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/Download.json index 4221397b08d7..faeeb5153274 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/Download.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/Download.json @@ -7,71 +7,7 @@ }, "responses": { "200": { - "headers": {}, - "body": { - "type": "FeatureCollection", - "features": [ - { - "type": "Feature", - "geometry": { - "type": "Point", - "coordinates": [ - -122.126986, - 47.639754 - ] - }, - "properties": { - "geometryId": "001", - "radius": 500 - } - } - ] - } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } + "body": "{file}" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/Update.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/Update.json index daa93e7fb031..e6ce6bd5b627 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/Update.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/Update.json @@ -76,6 +76,15 @@ } } }, + "409": { + "headers": {}, + "body": { + "error": { + "code": "409 Conflict", + "message": "The data storage limit is reached on the Azure Maps account. You can always use the Data Delete API to delete old/unused content and create space for new uploads." + } + } + }, "500": { "headers": {}, "body": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/Upload.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/Upload.json index b6918a7d2d40..f2b09921cdbd 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/Upload.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/Upload.json @@ -76,6 +76,15 @@ } } }, + "409": { + "headers": {}, + "body": { + "error": { + "code": "409 Conflict", + "message": "The data storage limit is reached on the Azure Maps account. You can always use the Data Delete API to delete old/unused content and create space for new uploads." + } + } + }, "500": { "headers": {}, "body": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json index 4f5086579c19..6649d8e70ef4 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json @@ -48,65 +48,7 @@ "apiKeyQuery": [] } ], - "responses": { - "400": { - "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - }, - "401": { - "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - }, - "headers": { - "WWW-Authenticate": { - "type": "string", - "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" - } - } - }, - "403": { - "description": "Permission, capacity, or authentication issues.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - }, - "404": { - "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - }, - "500": { - "description": "An error occurred while processing the request. Please try again later.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - }, - "200Async": { - "description": "The operation is running or complete. If the operation was successful, use the Resource-Location header to obtain the path to the result.", - "schema": { - "$ref": "#/definitions/LongRunningOperationResult" - }, - "headers": { - "Resource-Location": { - "type": "string", - "description": "If successful, a URI where details on the newly created resource can be found." - } - } - }, - "202Accepted": { - "description": "Request Accepted: The request has been accepted for processing. Please use the URL in the Operation-Location Header to obtain status.", - "headers": { - "Operation-Location": { - "type": "string", - "description": "New URL to check for the results of the long running process." - } - } - } - }, + "responses": {}, "parameters": { "GeographicResourceLocation": { "name": "geography", @@ -135,23 +77,6 @@ }, "x-ms-parameter-location": "client" }, - "SubscriptionKey": { - "name": "subscription-key", - "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", - "type": "string", - "in": "query", - "required": false, - "x-ms-parameter-location": "client" - }, - "ApiVersion": { - "name": "api-version", - "description": "Version number of Azure Maps API. Current version is 2.0", - "type": "string", - "in": "query", - "required": true, - "default": "2.0", - "x-ms-parameter-location": "client" - }, "ConversionIdQuery": { "name": "conversionId", "description": "The unique ID used to create the dataset. The `conversionId` must have been obtained from a successful call to the Conversion Service Convert API and may be provided with multiple query parameters with same name (if more than one is provided).", @@ -162,6 +87,7 @@ }, "DescriptionDataset": { "name": "description", + "x-ms-client-name": "DescriptionDataset", "description": "The description to be given to the dataset.", "type": "string", "in": "query", @@ -199,6 +125,10 @@ "x-publish": true, "description": "**Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. [This](https://docs.microsoft.com/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.\n\n This API allows the caller to create a dataset from data that was uploaded to the Azure Maps Data Service and converted using the Azure Maps Conversion Service.\n\nYou can use this API in a scenario like uploading a DWG zip package for a building, converting the zip package using the Azure Maps Conversion Service, and creating a dataset from the converted zip package. The created dataset can be used to create tilesets using the Azure Maps Tileset Service and can be queried via the Azure Maps WFS Service.\n\n### Submit Create Request\n\nTo create your dataset, you will use a `POST` request where the `conversionId` query parameter is an ID that represents the converted DWG zip package, the `datasetId` parameter will be the ID of a previously created dataset to append with the current dataset and, optionally, the `description` query parameter will contain a description (if description is not provided a default description will be given).\n\nThe Create API is a [long-running request](https://aka.ms/am-creator-lrt-v2).", "operationId": "Dataset_Create", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, "x-ms-examples": { "Create dataset from a converted CAD file provided by conversionId": { "$ref": "./examples/Dataset_Create.json" @@ -206,10 +136,10 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/ConversionIdQuery" @@ -223,22 +153,22 @@ ], "responses": { "202": { - "$ref": "#/responses/202Accepted" + "$ref": "../../../Common/preview/1.0/common.json#/responses/202AsyncV2" }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -253,10 +183,10 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" } ], "responses": { @@ -267,19 +197,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -299,10 +229,10 @@ "$ref": "#/parameters/DatasetId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" } ], "responses": { @@ -313,19 +243,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -340,10 +270,10 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/DatasetId" @@ -354,19 +284,19 @@ "description": "The dataset delete request completed successfully. The resource referenced by the `datasetId` was deleted from the server." }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -385,10 +315,10 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/DatasetOperationId" @@ -396,106 +326,16 @@ ], "responses": { "200": { - "$ref": "#/responses/200Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/200AsyncV2" }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" } } } } }, "definitions": { - "ODataErrorResponse": { - "type": "object", - "description": "This response object is returned when an error occurs in the Maps API.", - "properties": { - "error": { - "$ref": "#/definitions/ODataError" - } - } - }, - "ODataError": { - "type": "object", - "description": "This object is returned when an error occurs in the Maps API.", - "properties": { - "code": { - "type": "string", - "readOnly": true, - "description": "The ODataError code." - }, - "message": { - "type": "string", - "readOnly": true, - "description": "If available, a human readable description of the error." - }, - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/ODataError" - } - }, - "target": { - "type": "string", - "readOnly": true, - "description": "If available, the target causing the error." - } - } - }, - "LongRunningOperationResult": { - "description": "The response model for a Long-Running Operations API.", - "type": "object", - "properties": { - "operationId": { - "description": "The Id for this long-running operation.", - "type": "string" - }, - "status": { - "description": "The status state of the request.", - "type": "string", - "enum": [ - "NotStarted", - "Running", - "Failed", - "Succeeded" - ], - "x-ms-enum": { - "name": "type", - "modelAsString": true, - "values": [ - { - "value": "NotStarted", - "description": "The request has not started processing yet." - }, - { - "value": "Running", - "description": "The request has started processing." - }, - { - "value": "Failed", - "description": "The request has one or more failures." - }, - { - "value": "Succeeded", - "description": "The request has successfully completed." - } - ] - }, - "readOnly": true - }, - "created": { - "description": "The created timestamp.", - "type": "string", - "readOnly": true - }, - "error": { - "$ref": "#/definitions/ODataError" - }, - "warning": { - "$ref": "#/definitions/ODataError" - } - } - }, "DatasetListResponse": { "description": "The response model for the Dataset List API. The response body will contain a list of all the previously created datasets.", "type": "object", diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json index 435c89edb787..0d433263060b 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json @@ -47,65 +47,7 @@ "apiKeyQuery": [] } ], - "responses": { - "400": { - "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - }, - "401": { - "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - }, - "headers": { - "WWW-Authenticate": { - "type": "string", - "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" - } - } - }, - "403": { - "description": "Permission, capacity, or authentication issues.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - }, - "404": { - "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - }, - "500": { - "description": "An error occurred while processing the request. Please try again later.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - }, - "200Async": { - "description": "The operation is running or complete. If the operation was successful, use the Resource-Location header to obtain the path to the result.", - "schema": { - "$ref": "#/definitions/LongRunningOperationResult" - }, - "headers": { - "Resource-Location": { - "type": "string", - "description": "If successful, a URI where details on the newly created resource can be found." - } - } - }, - "202Accepted": { - "description": "Request Accepted: The request has been accepted for processing. Please use the URL in the Operation-Location Header to obtain status.", - "headers": { - "Operation-Location": { - "type": "string", - "description": "New URL to check for the results of the long running process." - } - } - } - }, + "responses": {}, "parameters": { "GeographicResourceLocation": { "name": "geography", @@ -134,31 +76,6 @@ }, "x-ms-parameter-location": "client" }, - "ClientId": { - "name": "x-ms-client-id", - "description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.", - "type": "string", - "in": "header", - "required": false, - "x-ms-parameter-location": "client" - }, - "SubscriptionKey": { - "name": "subscription-key", - "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", - "type": "string", - "in": "query", - "required": false, - "x-ms-parameter-location": "client" - }, - "ApiVersion": { - "name": "api-version", - "description": "Version number of Azure Maps API. Current version is 2.0", - "type": "string", - "in": "query", - "required": true, - "default": "2.0", - "x-ms-parameter-location": "client" - }, "UdidQuery": { "name": "udid", "description": "The unique data id for the content. The `udid` must have been obtained from a successful [Data Upload API](https://docs.microsoft.com/en-us/rest/api/maps/data%20v2/uploadpreview) call.", @@ -206,6 +123,10 @@ "x-publish": true, "description": "**Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. [This](https://docs.microsoft.com/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.\n\nThe Conversion API lets the caller import a set of DWG design files as a zipped [Drawing Package](https://aka.ms/am-drawing-package) into Azure Maps. The [Drawing Package](https://aka.ms/am-drawing-package) should first be uploaded using the [Azure Maps Data Service](https://docs.microsoft.com/rest/api/maps/data). Once uploaded, use the `udid` returned by the [Data Upload API](https://docs.microsoft.com/rest/api/maps/data/uploadpreview) to call this Conversion API.\n\n## Convert DWG package\n\nThe Conversion API performs a [long-running request](https://aka.ms/am-creator-lrt-v2).\n\n## Debug DWG package issues\n\n\nDuring the Conversion process, if there are any issues with the DWG package [errors and warnings](https://aka.ms/am-conversion-errors) are provided in the response along with a *diagnostic package* to visualize and diagnose these issues. In case any issues are encountered with your DWG package, the Conversion operation status process as detailed [here](https://aka.ms/am-creator-lrt-v2) returns the location of the *diagnostic package* that can be downloaded by the caller to help them visualize and diagnose these issues. The *diagnostic package* location can be found in the properties section of the conversion operation status response and looks like the following:\n\n```json\n{\n \"properties\": {\n \"diagnosticPackageLocation\": \"https://us.atlas.microsoft.com/mapdata/{DiagnosticPackageId}?api-version=1.0\" \n } \n}\n```\n\nThe *diagnostic package* can be downloaded by executing a `HTTP GET` request on the `diagnosticPackageLocation`.\nFor more details on how to use the tool to visualize and diagnose all the errors and warnings see [Drawing Error Visualizer](https://aka.ms/am-drawing-errors-visualizer).
\n\nA conversion operation will be marked as *success* if there are zero or more warnings but will be marked as *failed* if any errors are encountered. ", "operationId": "Conversion_Convert", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, "x-ms-examples": { "Convert previously uploaded DWG Package": { "$ref": "./examples/Conversion.json" @@ -213,13 +134,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/UdidQuery" @@ -233,22 +154,22 @@ ], "responses": { "202": { - "$ref": "#/responses/202Accepted" + "$ref": "../../../Common/preview/1.0/common.json#/responses/202AsyncV2" }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -263,13 +184,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" } ], "responses": { @@ -280,19 +201,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -309,13 +230,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/ConversionId" @@ -329,19 +250,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -356,13 +277,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/ConversionId" @@ -373,19 +294,19 @@ "description": "Conversion delete request completed successfully. The content for `conversionId` was deleted on the server." }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -404,10 +325,10 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/ConversionOperationId" @@ -415,106 +336,16 @@ ], "responses": { "200": { - "$ref": "#/responses/200Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/200AsyncV2" }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" } } } } }, "definitions": { - "ODataErrorResponse": { - "type": "object", - "description": "This response object is returned when an error occurs in the Maps API.", - "properties": { - "error": { - "$ref": "#/definitions/ODataError" - } - } - }, - "ODataError": { - "type": "object", - "description": "This object is returned when an error occurs in the Maps API.", - "properties": { - "code": { - "type": "string", - "readOnly": true, - "description": "The ODataError code." - }, - "message": { - "type": "string", - "readOnly": true, - "description": "If available, a human readable description of the error." - }, - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/ODataError" - } - }, - "target": { - "type": "string", - "readOnly": true, - "description": "If available, the target causing the error." - } - } - }, - "LongRunningOperationResult": { - "description": "The response model for a Long-Running Operations API.", - "type": "object", - "properties": { - "operationId": { - "description": "The Id for this long-running operation.", - "type": "string" - }, - "status": { - "description": "The status state of the request.", - "type": "string", - "enum": [ - "NotStarted", - "Running", - "Failed", - "Succeeded" - ], - "x-ms-enum": { - "name": "type", - "modelAsString": true, - "values": [ - { - "value": "NotStarted", - "description": "The request has not started processing yet." - }, - { - "value": "Running", - "description": "The request has started processing." - }, - { - "value": "Failed", - "description": "The request has one or more failures." - }, - { - "value": "Succeeded", - "description": "The request has successfully completed." - } - ] - }, - "readOnly": true - }, - "created": { - "description": "The created timestamp.", - "type": "string", - "readOnly": true - }, - "error": { - "$ref": "#/definitions/ODataError" - }, - "warning": { - "$ref": "#/definitions/ODataError" - } - } - }, "ConversionListResponse": { "description": "The response model for the Conversion List API.", "type": "object", diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/CreateStateset.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/CreateStateset.json index 5b802bba7f5d..79d04155861d 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/CreateStateset.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/CreateStateset.json @@ -8,7 +8,7 @@ "statesetCreateRequestBody": { "styles": [ { - "keyname": "s1", + "keyName": "s1", "type": "boolean", "rules": [ { @@ -18,7 +18,7 @@ ] }, { - "keyname": "s2", + "keyName": "s2", "type": "number", "rules": [ { @@ -50,7 +50,7 @@ ] }, { - "keyname": "s3", + "keyName": "s3", "type": "string", "rules": [ { diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/GetStateset.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/GetStateset.json index 3a745cac530e..76a2c03e5c6f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/GetStateset.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/GetStateset.json @@ -32,34 +32,34 @@ "range": { "minimum": null, "maximum": null, - "exclusiveMinumum": null, - "exclusiveMaximum": "50" + "exclusiveMinimum": null, + "exclusiveMaximum": 50 }, "color": "#343deb" }, { "range": { - "minimum": "50", + "minimum": 50, "maximum": null, - "exclusiveMinumum": null, - "exclusiveMaximum": "69" + "exclusiveMinimum": null, + "exclusiveMaximum": 69 }, "color": "#34ebb1" }, { "range": { - "minimum": "69", + "minimum": 69, "maximum": null, - "exclusiveMinumum": null, - "exclusiveMaximum": "90" + "exclusiveMinimum": null, + "exclusiveMaximum": 90 }, "color": "#eba834" }, { "range": { - "minimum": "90", + "minimum": 90, "maximum": null, - "exclusiveMinumum": null, + "exclusiveMinimum": null, "exclusiveMaximum": null }, "color": "#eb3434" diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/Stateset_List.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/Stateset_List.json index bd356007f6f9..49235910bc91 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/Stateset_List.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/Stateset_List.json @@ -34,34 +34,34 @@ "range": { "minimum": null, "maximum": null, - "exclusiveMinumum": null, - "exclusiveMaximum": "50" + "exclusiveMinimum": null, + "exclusiveMaximum": 50 }, "color": "#343deb" }, { "range": { - "minimum": "50", + "minimum": 50, "maximum": null, - "exclusiveMinumum": null, - "exclusiveMaximum": "69" + "exclusiveMinimum": null, + "exclusiveMaximum": 69 }, "color": "#34ebb1" }, { "range": { - "minimum": "69", + "minimum": 69, "maximum": null, - "exclusiveMinumum": null, - "exclusiveMaximum": "90" + "exclusiveMinimum": null, + "exclusiveMaximum": 90 }, "color": "#eba834" }, { "range": { - "minimum": "90", + "minimum": 90, "maximum": null, - "exclusiveMinumum": null, + "exclusiveMinimum": null, "exclusiveMaximum": null }, "color": "#eb3434" diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/UpdateStateset.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/UpdateStateset.json index 2fd16cb893d5..6e9a7b6b1780 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/UpdateStateset.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/UpdateStateset.json @@ -7,7 +7,7 @@ "statesetStyleUpdateRequestBody": { "styles": [ { - "keyname": "s1", + "keyName": "s1", "type": "boolean", "rules": [ { @@ -17,7 +17,7 @@ ] }, { - "keyname": "s2", + "keyName": "s2", "type": "number", "rules": [ { diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json index e6c480d246c3..e7554587ceeb 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json @@ -47,50 +47,7 @@ "apiKeyQuery": [] } ], - "responses": { - "400": { - "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - }, - "401": { - "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - }, - "headers": { - "WWW-Authenticate": { - "type": "string", - "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" - } - } - }, - "403": { - "description": "Permission, capacity, or authentication issues.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - }, - "404": { - "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - }, - "409": { - "description": "The request could not be completed due to a conflict with the current state of the resource. Likely caused by a parallel update to the same resource.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - }, - "500": { - "description": "An error occurred while processing the request. Please try again later.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - } - }, + "responses": {}, "parameters": { "GeographicResourceLocation": { "name": "geography", @@ -119,23 +76,6 @@ }, "x-ms-parameter-location": "client" }, - "SubscriptionKey": { - "name": "subscription-key", - "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", - "type": "string", - "in": "query", - "required": false, - "x-ms-parameter-location": "client" - }, - "ApiVersion": { - "name": "api-version", - "description": "Version number of Azure Maps API. Current version is 2.0", - "type": "string", - "in": "query", - "required": true, - "default": "2.0", - "x-ms-parameter-location": "client" - }, "FeatureStateSetDescription": { "name": "description", "description": "Description for the stateset. Max length allowed is 1000.", @@ -206,10 +146,10 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/DatasetIdForCreate" @@ -235,19 +175,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -262,10 +202,10 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" } ], "responses": { @@ -276,19 +216,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -305,10 +245,10 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -328,19 +268,19 @@ "description": "Stateset styles are updated successfully." }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -355,10 +295,10 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -369,19 +309,19 @@ "description": "Stateset Deleted." }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -396,10 +336,10 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -413,19 +353,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -442,10 +382,10 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -468,19 +408,19 @@ "description": "Feature states are updated successfully." }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -495,10 +435,10 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -515,22 +455,22 @@ "description": "Feature states deleted successfully." }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "409": { - "$ref": "#/responses/409" + "$ref": "../../../Common/preview/1.0/common.json#/responses/409" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -545,10 +485,10 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -565,61 +505,25 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } } }, "definitions": { - "ODataErrorResponse": { - "type": "object", - "description": "This response object is returned when an error occurs in the Maps API.", - "properties": { - "error": { - "$ref": "#/definitions/ODataError" - } - } - }, - "ODataError": { - "type": "object", - "description": "This object is returned when an error occurs in the Maps API.", - "properties": { - "code": { - "type": "string", - "readOnly": true, - "description": "The ODataError code." - }, - "message": { - "type": "string", - "readOnly": true, - "description": "If available, a human readable description of the error." - }, - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/ODataError" - } - }, - "target": { - "type": "string", - "readOnly": true, - "description": "If available, the target causing the error." - } - } - }, "StatesetGetResponse": { "description": "The response model for the successful Stateset Get API.", "type": "object", @@ -739,25 +643,21 @@ } } }, - "StyleObject": { - "description": "The stateset style model. The style rule could be a numeric type style rule or a boolean type style rule. Refer to NumberRuleObject, StringRuleObject and BooleanRuleObject definitions [here](https://aka.ms/AzureMapsStatesetStylesObject). ", - "type": "object" - }, "NumberRuleObject": { - "description": "The numeric rule", + "description": "The numeric rule. The color is selected from the first range it falls into.", "type": "object", "properties": { "range": { "$ref": "#/definitions/RangeObject" }, "color": { - "description": "Color is a JSON string in a variety of permitted formats, HTML-style hex values, RGB (\"#ff0\", \"#ffff00\", \"rgb(255, 255, 0)\"), RGBA (\"rgba(255, 255, 0, 1)\"), HSL(\"hsl(100, 50%, 50%)\"), and HSLA(\"hsla(100, 50%, 50%, 1)\"). Predefined HTML colors names, like yellow and blue, are also permitted.", + "description": "The color when value is within the range. Color is a JSON string in a variety of permitted formats, HTML-style hex values, RGB (\"#ff0\", \"#ffff00\", \"rgb(255, 255, 0)\"), RGBA (\"rgba(255, 255, 0, 1)\"), HSL(\"hsl(100, 50%, 50%)\"), and HSLA(\"hsla(100, 50%, 50%, 1)\"). Predefined HTML colors names, like yellow and blue, are also permitted.", "type": "string" } } }, "RangeObject": { - "description": "The numeric value range for this style rule, If the value is in the range, all the conditions must hold true.", + "description": "The numeric value range for this style rule. If the value is in the range, all the conditions must hold true.", "type": "object", "properties": { "minimum": { @@ -783,15 +683,15 @@ } }, "BooleanRuleObject": { - "description": "the boolean rule", + "description": "The boolean rule. The color is selected based on the logic value of the key.", "type": "object", "properties": { "true": { - "description": "The color when value is true.", + "description": "The color when value is true. Color is a JSON string in a variety of permitted formats, HTML-style hex values, RGB (\"#ff0\", \"#ffff00\", \"rgb(255, 255, 0)\"), RGBA (\"rgba(255, 255, 0, 1)\"), HSL(\"hsl(100, 50%, 50%)\"), and HSLA(\"hsla(100, 50%, 50%, 1)\"). Predefined HTML colors names, like yellow and blue, are also permitted.", "type": "string" }, "false": { - "description": "The color when value is false.", + "description": "The color when value is false. Color is a JSON string in a variety of permitted formats, HTML-style hex values, RGB (\"#ff0\", \"#ffff00\", \"rgb(255, 255, 0)\"), RGBA (\"rgba(255, 255, 0, 1)\"), HSL(\"hsl(100, 50%, 50%)\"), and HSLA(\"hsla(100, 50%, 50%, 1)\"). Predefined HTML colors names, like yellow and blue, are also permitted.", "type": "string" } } @@ -799,50 +699,63 @@ "StringRuleObject": { "description": "The string rule. The string value matching is case sensitive. If a feature's state doesn't match any of the values defined here, that feature will not have any dynamic style. If duplicate string values are given, the first one takes precedence.", "type": "object", - "properties": { - "stateValue1": { - "description": "The color when value string is stateValue1.", - "type": "string" - }, - "stateValue2": { - "description": "The color when value string is stateValue2.", - "type": "string" - }, - "stateValueN": { - "description": "The color when value string is stateValueN.", - "type": "string" - } + "additionalProperties": { + "description": "The color when the keyName value string is equal to this property name. Color is a JSON string in a variety of permitted formats, HTML-style hex values, RGB (\"#ff0\", \"#ffff00\", \"rgb(255, 255, 0)\"), RGBA (\"rgba(255, 255, 0, 1)\"), HSL(\"hsl(100, 50%, 50%)\"), and HSLA(\"hsla(100, 50%, 50%, 1)\"). Predefined HTML colors names, like yellow and blue, are also permitted.", + "type": "string" } }, - "StyleRuleBase": { - "description": "contains common properties for numeric, string and boolean style rules.", + "StyleObject": { + "description": "The stateset style model. The style rule could be a numeric type style rule or a boolean type style rule. Refer to NumberRuleObject, StringRuleObject and BooleanRuleObject definitions [here](https://aka.ms/AzureMapsStatesetStylesObject). ", "discriminator": "type", + "type": "object", "required": [ "keyName", "type" ], "properties": { "keyName": { - "description": "Stateset style key name. Key names are random strings but they should be unique inside style array. Maximum length allowed is 1000.", + "description": "Stateset style key name. Key names are random strings but they should be unique inside style array.", "type": "string" }, "type": { "description": "The type of stateset style.", "type": "string", "enum": [ - "number", "boolean", + "number", "string" - ] + ], + "x-ms-enum": { + "name": "StyleObjectType", + "modelAsString": true, + "values": [ + { + "value": "boolean", + "description": "Boolean type of stateset style.", + "name": "BooleanTypeStyleRule" + }, + { + "value": "number", + "description": "Number type of stateset style.", + "name": "NumberTypeStyleRule" + }, + { + "value": "string", + "description": "String type of stateset style.", + "name": "StringTypeStyleRule" + } + ] + } } } }, "BooleanTypeStyleRule": { - "description": "the boolean type style rule object.", + "description": "The boolean type style rule object.", + "x-ms-discriminator-value": "boolean", "type": "object", "allOf": [ { - "$ref": "#/definitions/StyleRuleBase" + "$ref": "#/definitions/StyleObject" } ], "properties": { @@ -853,14 +766,18 @@ "$ref": "#/definitions/BooleanRuleObject" } } - } + }, + "required": [ + "rules" + ] }, "NumberTypeStyleRule": { "description": "The numeric type style rule object.", + "x-ms-discriminator-value": "number", "type": "object", "allOf": [ { - "$ref": "#/definitions/StyleRuleBase" + "$ref": "#/definitions/StyleObject" } ], "properties": { @@ -871,14 +788,18 @@ "$ref": "#/definitions/NumberRuleObject" } } - } + }, + "required": [ + "rules" + ] }, "StringTypeStyleRule": { "description": "The string type style rule object.", + "x-ms-discriminator-value": "string", "type": "object", "allOf": [ { - "$ref": "#/definitions/StyleRuleBase" + "$ref": "#/definitions/StyleObject" } ], "properties": { @@ -889,7 +810,10 @@ "$ref": "#/definitions/StringRuleObject" } } - } + }, + "required": [ + "rules" + ] } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json index 7f76dc4c7f6e..fdfb2977e5f1 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json @@ -47,65 +47,7 @@ "apiKeyQuery": [] } ], - "responses": { - "400": { - "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - }, - "401": { - "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - }, - "headers": { - "WWW-Authenticate": { - "type": "string", - "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" - } - } - }, - "403": { - "description": "Permission, capacity, or authentication issues.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - }, - "404": { - "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - }, - "500": { - "description": "An error occurred while processing the request. Please try again later.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - }, - "200Async": { - "description": "The operation is running or complete. If the operation was successful, use the Resource-Location header to obtain the path to the result.", - "schema": { - "$ref": "#/definitions/LongRunningOperationResult" - }, - "headers": { - "Resource-Location": { - "type": "string", - "description": "If successful, a URI where details on the newly created resource can be found." - } - } - }, - "202Accepted": { - "description": "Request Accepted: The request has been accepted for processing. Please use the URL in the Operation-Location Header to obtain status.", - "headers": { - "Operation-Location": { - "type": "string", - "description": "New URL to check for the results of the long running process." - } - } - } - }, + "responses": {}, "parameters": { "GeographicResourceLocation": { "name": "geography", @@ -134,59 +76,13 @@ }, "x-ms-parameter-location": "client" }, - "ClientId": { - "name": "x-ms-client-id", - "description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.", - "type": "string", - "in": "header", - "required": false, - "x-ms-parameter-location": "client" - }, - "SubscriptionKey": { - "name": "subscription-key", - "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", - "type": "string", - "in": "query", - "required": false, - "x-ms-parameter-location": "client" - }, - "ApiVersion": { - "name": "api-version", - "description": "Version number of Azure Maps API. Current version is 2.0", - "type": "string", - "in": "query", - "required": true, - "default": "2.0", - "x-ms-parameter-location": "client" - }, - "JsonFormat": { - "name": "format", - "description": "Desired format of the response. Only `json` format is supported.", - "type": "string", - "in": "path", - "required": true, - "enum": [ - "json" - ], - "x-ms-enum": { - "name": "JsonFormat", - "modelAsString": true, - "values": [ - { - "value": "json", - "description": "[The JavaScript Object Notation Data Interchange Format](https://tools.ietf.org/html/rfc8259)" - } - ] - }, - "x-ms-parameter-location": "method" - }, "DatasetIdQuery": { "name": "datasetId", "description": "The unique `datasetId` that the tileset create API uses to retrieve features to generate tiles. The `datasetId` must have been obtained from a successful [Dataset Create API](/en-us/rest/api/maps/dataset/createpreview) call.", "type": "string", "in": "query", "required": true, - "x-ms-parameter-location": "client" + "x-ms-parameter-location": "method" }, "TilesetId": { "name": "tilesetId", @@ -219,6 +115,10 @@ "x-publish": true, "description": "**Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. [This](https://docs.microsoft.com/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.\n\n [This](https://docs.microsoft.com/en-us/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.\n\nThe Tileset Create API allows the caller to create a tileset from a dataset. A tileset contains a set of tiles that can be consumed \nfrom the [Get Map Tile](/rest/api/maps/render/getmaptile) to retrieve custom tiles. To make a dataset, use the \n[DataSet Create API](/rest/api/maps/dataset/createpreview).\n\n## Submit Create Request\n\nTo create your tileset you will make a `POST` request with an empty body. The `datasetId` query parameter will be \nused as the source of the tileset data.\n\nThe Create Tileset API is a \n[long-running request](https://aka.ms/am-creator-lrt-v2).", "operationId": "Tileset_Create", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, "x-ms-examples": { "Create Tileset by providing a Dataset Id": { "$ref": "./examples/Create.json" @@ -226,13 +126,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/DatasetIdQuery" @@ -243,22 +143,22 @@ ], "responses": { "202": { - "$ref": "#/responses/202Accepted" + "$ref": "../../../Common/preview/1.0/common.json#/responses/202AsyncV2" }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -273,13 +173,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" } ], "responses": { @@ -290,19 +190,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -319,13 +219,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/TilesetId" @@ -339,19 +239,19 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -366,13 +266,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/TilesetId" @@ -383,19 +283,19 @@ "description": "Tileset delete request completed successfully." }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -414,10 +314,10 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/TilesetOperationId" @@ -425,106 +325,16 @@ ], "responses": { "200": { - "$ref": "#/responses/200Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/200AsyncV2" }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" } } } } }, "definitions": { - "ODataErrorResponse": { - "type": "object", - "description": "This response object is returned when an error occurs in the Maps API.", - "properties": { - "error": { - "$ref": "#/definitions/ODataError" - } - } - }, - "ODataError": { - "type": "object", - "description": "This object is returned when an error occurs in the Maps API.", - "properties": { - "code": { - "type": "string", - "readOnly": true, - "description": "The ODataError code." - }, - "message": { - "type": "string", - "readOnly": true, - "description": "If available, a human readable description of the error." - }, - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/ODataError" - } - }, - "target": { - "type": "string", - "readOnly": true, - "description": "If available, the target causing the error." - } - } - }, - "LongRunningOperationResult": { - "description": "The response model for a Long-Running Operations API.", - "type": "object", - "properties": { - "operationId": { - "description": "The Id for this long-running operation.", - "type": "string" - }, - "status": { - "description": "The status state of the request.", - "type": "string", - "enum": [ - "NotStarted", - "Running", - "Failed", - "Succeeded" - ], - "x-ms-enum": { - "name": "type", - "modelAsString": true, - "values": [ - { - "value": "NotStarted", - "description": "The request has not started processing yet." - }, - { - "value": "Running", - "description": "The request has started processing." - }, - { - "value": "Failed", - "description": "The request has one or more failures." - }, - { - "value": "Succeeded", - "description": "The request has successfully completed." - } - ] - }, - "readOnly": true - }, - "created": { - "description": "The created timestamp.", - "type": "string", - "readOnly": true - }, - "error": { - "$ref": "#/definitions/ODataError" - }, - "warning": { - "$ref": "#/definitions/ODataError" - } - } - }, "TilesetListResponse": { "description": "The response model for the Tileset List API. Returns a list of all tilesets.", "type": "object", diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/DeleteItem.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/DeleteItem.json index 5f7f389b443e..cfa32ddaba74 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/DeleteItem.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/DeleteItem.json @@ -2,7 +2,7 @@ "parameters": { "geography": "us", "api-version": "2.0", - "datasetid": "218fda98-e638-0edf-5ef7-28491ff3bed4", + "datasetId": "218fda98-e638-0edf-5ef7-28491ff3bed4", "subscription-key": "[subscription-key]", "collectionId": "facility", "featureId": "FCL39" diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollection.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollection.json index 6cb01b9fb6e5..ac23caa02a0b 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollection.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollection.json @@ -2,7 +2,7 @@ "parameters": { "geography": "us", "api-version": "2.0", - "datasetid": "218fda98-e638-0edf-5ef7-28491ff3bed4", + "datasetId": "218fda98-e638-0edf-5ef7-28491ff3bed4", "subscription-key": "[subscription-key]", "collectionId": "unit" }, diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollectionDefinition.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollectionDefinition.json index 765d1761b535..168c9d9e063e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollectionDefinition.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollectionDefinition.json @@ -2,7 +2,7 @@ "parameters": { "geography": "us", "api-version": "2.0", - "datasetid": "218fda98-e638-0edf-5ef7-28491ff3bed4", + "datasetId": "218fda98-e638-0edf-5ef7-28491ff3bed4", "subscription-key": "[subscription-key]", "collectionId": "unit" }, diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollections.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollections.json index 678e45acb725..6351d0956005 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollections.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollections.json @@ -2,7 +2,7 @@ "parameters": { "geography": "us", "api-version": "2.0", - "datasetid": "218fda98-e638-0edf-5ef7-28491ff3bed4", + "datasetId": "218fda98-e638-0edf-5ef7-28491ff3bed4", "subscription-key": "[subscription-key]" }, "responses": { diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetConformance.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetConformance.json index 2384e3bf7945..47407a822eb0 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetConformance.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetConformance.json @@ -2,7 +2,7 @@ "parameters": { "geography": "us", "api-version": "2.0", - "datasetid": "218fda98-e638-0edf-5ef7-28491ff3bed4", + "datasetId": "218fda98-e638-0edf-5ef7-28491ff3bed4", "subscription-key": "[subscription-key]" }, "responses": { diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetItem.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetItem.json index e62f4c285a2d..92cf9043a1bf 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetItem.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetItem.json @@ -2,7 +2,7 @@ "parameters": { "geography": "us", "api-version": "2.0", - "datasetid": "218fda98-e638-0edf-5ef7-28491ff3bed4", + "datasetId": "218fda98-e638-0edf-5ef7-28491ff3bed4", "subscription-key": "[subscription-key]", "collectionId": "unit", "featureId": "UNIT39" @@ -12,7 +12,7 @@ "body": { "ontology": "Facility-2.0", "feature": { - "type": "feature", + "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [ diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetItems.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetItems.json index 6610cc697011..ff4e1d0029b7 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetItems.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetItems.json @@ -2,7 +2,7 @@ "parameters": { "geography": "us", "api-version": "2.0", - "datasetid": "018fda98-e638-0edf-5ef7-28491ff3bed4", + "datasetId": "018fda98-e638-0edf-5ef7-28491ff3bed4", "subscription-key": "[subscription-key]", "collectionId": "unit", "limit": 1, @@ -15,7 +15,7 @@ "ontology": "Facility-2.0", "features": [ { - "type": "feature", + "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [ diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetLandingPage.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetLandingPage.json index 06c981081250..b85b94b2dc1c 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetLandingPage.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetLandingPage.json @@ -2,7 +2,7 @@ "parameters": { "geography": "us", "api-version": "2.0", - "datasetid": "218fda98-e638-0edf-5ef7-28491ff3bed4", + "datasetId": "218fda98-e638-0edf-5ef7-28491ff3bed4", "subscription-key": "[subscription-key]" }, "responses": { diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json index 0405cf412405..e49af297d950 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json @@ -48,44 +48,7 @@ "apiKeyQuery": [] } ], - "responses": { - "400": { - "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - }, - "401": { - "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - }, - "headers": { - "WWW-Authenticate": { - "type": "string", - "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" - } - } - }, - "403": { - "description": "Permission, capacity, or authentication issues.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - }, - "404": { - "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - }, - "500": { - "description": "An error occurred while processing the request. Please try again later.", - "schema": { - "$ref": "#/definitions/ODataErrorResponse" - } - } - }, + "responses": {}, "parameters": { "GeographicResourceLocation": { "name": "geography", @@ -114,39 +77,6 @@ }, "x-ms-parameter-location": "client" }, - "ClientId": { - "name": "x-ms-client-id", - "description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.", - "type": "string", - "in": "header", - "required": false, - "x-ms-parameter-location": "client" - }, - "SubscriptionKey": { - "name": "subscription-key", - "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", - "type": "string", - "in": "query", - "required": false, - "x-ms-parameter-location": "client" - }, - "ApiVersion": { - "name": "api-version", - "description": "Version number of Azure Maps API. Current version is 2.0", - "type": "string", - "in": "query", - "required": true, - "default": "2.0", - "x-ms-parameter-location": "client" - }, - "Datasetid": { - "name": "datasetid", - "type": "string", - "in": "path", - "description": "The identifier for the dataset to query from.", - "required": true, - "x-ms-parameter-location": "method" - }, "LimitWfs": { "name": "limit", "in": "query", @@ -190,7 +120,7 @@ } }, "paths": { - "/wfs/datasets/{datasetid}/": { + "/wfs/datasets/{datasetId}/": { "get": { "x-publish": true, "description": "**Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. [This](https://docs.microsoft.com/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.\n\n The Web Feature Service (WFS) API is part of Creator. WFS API follows the [Open Geospatial Consortium API standard for Features](http://docs.opengeospatial.org/is/17-069r3/17-069r3.html) to query [Datasets](https://docs.microsoft.com/en-us/rest/api/maps/dataset/createpreview). \nA dataset consists of multiple feature collections. A feature collection is a collection of features of a similar type, based on a common schema.\nThe Get Landing Page API provides links to the API definition, the Conformance statements and the metadata about the feature data in this dataset.", @@ -202,44 +132,44 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { - "$ref": "#/parameters/Datasetid" + "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" } ], "responses": { "200": { "description": "Ok", "schema": { - "$ref": "#/definitions/Root" + "$ref": "#/definitions/LandingPage" } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } }, - "/wfs/datasets/{datasetid}/conformance": { + "/wfs/datasets/{datasetId}/conformance": { "get": { "description": "**Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. [This](https://docs.microsoft.com/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.\n\nThe Web Feature Service (WFS) API is part of Creator. WFS API follows the [Open Geospatial Consortium API standard for Features](http://docs.opengeospatial.org/is/17-069r3/17-069r3.html) to query [Datasets](https://docs.microsoft.com/en-us/rest/api/maps/dataset/createpreview). \nA dataset consists of multiple feature collections. A feature collection is a collection of features of a similar type, based on a common schema.\nThe Get Requirements Classes lists all requirements classes specified in the standard that the server conforms to.", "x-publish": true, @@ -251,16 +181,16 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { - "$ref": "#/parameters/Datasetid" + "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" } ], "responses": { @@ -271,24 +201,24 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } }, - "/wfs/datasets/{datasetid}/collections": { + "/wfs/datasets/{datasetId}/collections": { "get": { "description": "**Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. [This](https://docs.microsoft.com/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.\n\n The Web Feature Service (WFS) API is part of Creator. WFS API follows the [Open Geospatial Consortium API standard for Features](http://docs.opengeospatial.org/is/17-069r3/17-069r3.html) to query [Datasets](https://docs.microsoft.com/en-us/rest/api/maps/dataset/createpreview). \nA dataset consists of multiple feature collections. A feature collection is a collection of features of a similar type, based on a common schema.\nThe Collections Description API provides descriptions of all the collections in a given dataset.", "operationId": "WFS_CollectionsDescription", @@ -300,44 +230,44 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { - "$ref": "#/parameters/Datasetid" + "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" } ], "responses": { "200": { "description": "Ok", "schema": { - "$ref": "#/definitions/Content" + "$ref": "#/definitions/CollectionsResponse" } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } }, - "/wfs/datasets/{datasetid}/collections/{collectionId}": { + "/wfs/datasets/{datasetId}/collections/{collectionId}": { "get": { "description": "**Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. [This](https://docs.microsoft.com/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.\n\n The Web Feature Service (WFS) API is part of Creator. WFS API follows the [Open Geospatial Consortium API standard for Features](http://docs.opengeospatial.org/is/17-069r3/17-069r3.html) to query [Datasets](https://docs.microsoft.com/en-us/rest/api/maps/dataset/createpreview). \nA dataset consists of multiple feature collections. A feature collection is a collection of features of a similar type, based on a common schema.\n \nThe Collection Description API provides the description of a given collection. It includes the links to the operations that can be performed on the collection.", "operationId": "WFS_CollectionDescription", @@ -349,16 +279,16 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { - "$ref": "#/parameters/Datasetid" + "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" }, { "$ref": "#/parameters/CollectionId" @@ -372,24 +302,24 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } }, - "/wfs/datasets/{datasetid}/collections/{collectionId}/definition": { + "/wfs/datasets/{datasetId}/collections/{collectionId}/definition": { "get": { "description": "**Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. [This](https://docs.microsoft.com/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.\n\n [This](https://docs.microsoft.com/en-us/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator. WFS API follows the [Open Geospatial Consortium API standard for Features](http://docs.opengeospatial.org/is/17-069r3/17-069r3.html) to query [Datasets](https://docs.microsoft.com/en-us/rest/api/maps/dataset/createpreview). \nA dataset consists of multiple feature collections. A feature collection is a collection of features of a similar type, based on a common schema.\n \nThe Collection Definition API provides the detailed data model of a given collection.", "operationId": "WFS_CollectionDefinition", @@ -401,16 +331,16 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { - "$ref": "#/parameters/Datasetid" + "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" }, { "$ref": "#/parameters/CollectionId" @@ -424,24 +354,24 @@ } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } }, - "/wfs/datasets/{datasetid}/collections/{collectionId}/items": { + "/wfs/datasets/{datasetId}/collections/{collectionId}/items": { "get": { "description": "**Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. [This](https://docs.microsoft.com/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.\n\n The Web Feature Service (WFS) API is part of Creator. WFS API follows the [Open Geospatial Consortium API standard for Features](http://docs.opengeospatial.org/is/17-069r3/17-069r3.html) to query [Datasets](https://docs.microsoft.com/en-us/rest/api/maps/dataset/createpreview). \nA dataset consists of multiple feature collections. A feature collection is a collection of features of a similar type, based on a common schema.\nThe Get Features API returns the list of features in the given collection.", "operationId": "WFS_GetFeatures", @@ -453,16 +383,16 @@ }, "parameters": [ { - "$ref": "#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { - "$ref": "#/parameters/Datasetid" + "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" }, { "$ref": "#/parameters/CollectionId" @@ -481,28 +411,28 @@ "200": { "description": "Ok", "schema": { - "$ref": "#/definitions/FeatureCollectionGeoJSON" + "$ref": "#/definitions/ExtendedGeoJsonFeatureCollection" } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } }, - "/wfs/datasets/{datasetid}/collections/{collectionId}/items/{featureId}": { + "/wfs/datasets/{datasetId}/collections/{collectionId}/items/{featureId}": { "get": { "description": "**Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. [This](https://docs.microsoft.com/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.\n\n The Web Feature Service (WFS) API is part of Creator. WFS API follows the [Open Geospatial Consortium API standard for Features](http://docs.opengeospatial.org/is/17-069r3/17-069r3.html) to query [Datasets](https://docs.microsoft.com/en-us/rest/api/maps/dataset/createpreview). \nA dataset consists of multiple feature collections. A feature collection is a collection of features of a similar type, based on a common schema.\nThe Get Feature API returns the feature identified by the provided id in the given collection.", "x-publish": true, @@ -514,13 +444,13 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { - "$ref": "#/parameters/Datasetid" + "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" }, { "$ref": "#/parameters/CollectionId" @@ -533,23 +463,23 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/Feature" + "$ref": "#/definitions/FeatureResponse" } }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -564,13 +494,13 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { - "$ref": "#/parameters/Datasetid" + "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" }, { "$ref": "#/parameters/CollectionId" @@ -584,76 +514,26 @@ "description": "Feature Deleted." }, "400": { - "$ref": "#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } } }, "definitions": { - "ODataErrorResponse": { - "type": "object", - "description": "This response object is returned when an error occurs in the Maps API.", - "properties": { - "error": { - "$ref": "#/definitions/ODataError" - } - } - }, - "ODataError": { - "type": "object", - "description": "This object is returned when an error occurs in the Maps API.", - "properties": { - "code": { - "type": "string", - "readOnly": true, - "description": "The ODataError code." - }, - "message": { - "type": "string", - "readOnly": true, - "description": "If available, a human readable description of the error." - }, - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/ODataError" - } - }, - "target": { - "type": "string", - "readOnly": true, - "description": "If available, the target causing the error." - } - } - }, - "Exception": { - "type": "object", - "required": [ - "code" - ], - "properties": { - "code": { - "type": "string" - }, - "description": { - "type": "string" - } - } - }, - "Root": { + "LandingPage": { "type": "object", "required": [ "links" @@ -663,9 +543,10 @@ "$ref": "#/definitions/Ontology" }, "links": { + "description": "Links to other WFS endpoints.", "type": "array", "items": { - "$ref": "#/definitions/Link" + "$ref": "#/definitions/WfsEndpointLink" } } } @@ -677,6 +558,7 @@ ], "properties": { "conformsTo": { + "description": "List of requirements classes that the server conforms to.", "type": "array", "items": { "type": "string" @@ -690,7 +572,7 @@ } } }, - "Link": { + "WfsEndpointLink": { "description": "Links to other WFS endpoints", "type": "object", "required": [ @@ -698,26 +580,31 @@ ], "properties": { "href": { + "description": "The link target.", "type": "string" }, "rel": { + "description": "The relation type.", "type": "string", "example": "prev" }, "type": { + "description": "A hint indicating what the media type of the result of dereferencing the link should be.", "type": "string", "example": "application/geo+json" }, "hreflang": { + "description": "A hint indicating what the language of the result of dereferencing the link should be.", "type": "string", "example": "en" }, "title": { + "description": "Used to label the destination of a link such that it can be used as a human-readable identifier (e.g., a menu entry) in the language indicated by the Content-Language header field (if present).", "type": "string" } } }, - "Content": { + "CollectionsResponse": { "type": "object", "required": [ "links", @@ -728,9 +615,10 @@ "$ref": "#/definitions/Ontology" }, "links": { + "description": "Links to other WFS endpoints.", "type": "array", "items": { - "$ref": "#/definitions/Link" + "$ref": "#/definitions/WfsEndpointLink" }, "example": [ { @@ -754,6 +642,7 @@ ] }, "collections": { + "description": "All the collections in a given dataset.", "type": "array", "items": { "$ref": "#/definitions/CollectionInfo" @@ -780,9 +669,10 @@ "example": "2020-01-02T03:04:05" }, "links": { + "description": "Links to other WFS endpoints.", "type": "array", "items": { - "$ref": "#/definitions/Link" + "$ref": "#/definitions/WfsEndpointLink" }, "example": [ { @@ -833,9 +723,10 @@ "example": "Buildings in the city of Bonn." }, "links": { + "description": "Links to other WFS endpoints.", "type": "array", "items": { - "$ref": "#/definitions/Link" + "$ref": "#/definitions/WfsEndpointLink" }, "example": [ { @@ -897,7 +788,48 @@ "Polygon", "MultiPolygon", "GeometryCollection" - ] + ], + "x-ms-enum": { + "name": "GeoJsonGeometryType", + "modelAsString": true, + "values": [ + { + "value": "Point", + "description": "`GeoJSON Point` geometry.", + "name": "GeoJsonPoint" + }, + { + "value": "MultiPoint", + "description": "`GeoJSON MultiPoint` geometry.", + "name": "GeoJsonMultiPoint" + }, + { + "value": "LineString", + "description": "`GeoJSON LineString` geometry.", + "name": "GeoJsonLineString" + }, + { + "value": "MultiLineString", + "description": "`GeoJSON MultiLineString` geometry.", + "name": "GeoJsonMultiLineString" + }, + { + "value": "Polygon", + "description": "`GeoJSON Polygon` geometry.", + "name": "GeoJsonPolygon" + }, + { + "value": "MultiPolygon", + "description": "`GeoJSON MultiPolygon` geometry.", + "name": "GeoJsonMultiPolygon" + }, + { + "value": "GeometryCollection", + "description": "`GeoJSON GeometryCollection` geometry.", + "name": "GeoJsonGeometryCollection" + } + ] + } }, "featureTypes": { "description": "type of features returned", @@ -914,9 +846,10 @@ } }, "links": { + "description": "Links to other WFS endpoints.", "type": "array", "items": { - "$ref": "#/definitions/Link" + "$ref": "#/definitions/WfsEndpointLink" } } } @@ -944,37 +877,39 @@ } } }, - "FeatureCollectionGeoJSON": { + "ExtendedGeoJsonFeatureCollection": { + "description": "A valid `GeoJSON FeatureCollection` object type extended with numberReturned and links array. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.3) for details.", + "x-ms-discriminator-value": "FeatureCollection", "type": "object", - "required": [ - "type", - "features" - ], - "properties": { - "type": { - "type": "string" + "allOf": [ + { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonFeatureCollection" }, + { + "$ref": "#/definitions/ExtendedGeoJsonFeatureCollectionData" + } + ] + }, + "ExtendedGeoJsonFeatureCollectionData": { + "type": "object", + "properties": { "ontology": { "$ref": "#/definitions/Ontology" }, "numberReturned": { + "description": "Number of returned features.", "type": "integer" }, - "features": { - "type": "array", - "items": { - "$ref": "#/definitions/FeatureGeoJSON" - } - }, "links": { + "description": "Links to other WFS endpoints.", "type": "array", "items": { - "$ref": "#/definitions/Link" + "$ref": "#/definitions/WfsEndpointLink" } } } }, - "Feature": { + "FeatureResponse": { "type": "object", "required": [ "feature" @@ -984,47 +919,17 @@ "$ref": "#/definitions/Ontology" }, "feature": { - "$ref": "#/definitions/FeatureGeoJSON" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonFeature" }, "links": { + "description": "Links to other WFS endpoints.", "type": "array", "items": { - "$ref": "#/definitions/Link" + "$ref": "#/definitions/WfsEndpointLink" } } } }, - "FeatureGeoJSON": { - "description": "GeoJSON Feature", - "type": "object", - "required": [ - "type", - "geometry", - "properties" - ], - "properties": { - "type": { - "description": "feature", - "type": "string" - }, - "geometry": { - "description": "This represents the geometry for one or more geographical features (parks, state boundary etc.) and should be a `GeoJSON` compliant type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946) for details.", - "type": "object" - }, - "properties": { - "description": "Additional properties of the feature.", - "type": "object" - }, - "id": { - "description": "Identifier for the feature.", - "type": "string" - }, - "featureType": { - "description": "The type of the feature. The value depends on the data model the current feature is part of. Some data models may have an empty value.", - "type": "string" - } - } - }, "Ontology": { "type": "string", "description": "The ontology version of this dataset. Please refer to this [article](https://docs.microsoft.com/en-us/azure/azure-maps/creator-facility-ontology) for more information about Azure Maps Creator ontologies.", diff --git a/specification/maps/data-plane/readme.md b/specification/maps/data-plane/readme.md index 61f0e28bba6e..e0e90bd9ab53 100644 --- a/specification/maps/data-plane/readme.md +++ b/specification/maps/data-plane/readme.md @@ -27,7 +27,7 @@ These are the global settings for MapsClient. ``` yaml title: MapsClient openapi-type: data-plane -tag: package-1.0-preview +tag: package-preview-2.0 ``` ### Suppression From 1959a03a5178ba0f4cec68adda67eb3e1a6537b2 Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Mon, 3 May 2021 07:41:59 -0700 Subject: [PATCH 090/210] Fix linter warnings - Use common definition for ontology --- .../Microsoft.Maps/Dataset/preview/2.0/dataset.json | 4 +--- .../DwgConversion/preview/2.0/dwgconversion.json | 4 +--- .../Microsoft.Maps/Tileset/preview/2.0/tileset.json | 4 +--- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json index 6649d8e70ef4..755bc8a4a00e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json @@ -370,9 +370,7 @@ "readOnly": true }, "ontology": { - "description": "", - "type": "string", - "readOnly": true + "$ref": "../../../WFS/preview/2.0/wfs.json#/definitions/Ontology" }, "description": { "description": "The description for the dataset.", diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json index 0d433263060b..acd7028ec45b 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json @@ -375,9 +375,7 @@ "readOnly": true }, "ontology": { - "description": "", - "type": "string", - "readOnly": true + "$ref": "../../../WFS/preview/2.0/wfs.json#/definitions/Ontology" }, "udid": { "description": "The unique id of the content provided to create this conversion.", diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json index fdfb2977e5f1..2089f3b16e0e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json @@ -364,9 +364,7 @@ "readOnly": true }, "ontology": { - "description": "The ontology of the source dataset. Please refer to this [article](https://docs.microsoft.com/en-us/azure/azure-maps/creator-facility-ontology) for more information about Azure Maps Creator ontologies.", - "type": "string", - "readOnly": true + "$ref": "../../../WFS/preview/2.0/wfs.json#/definitions/Ontology" }, "datasetId": { "description": "The unique dataset Id used to create the tileset.", From e2b6afc3bd42d97b5470c572220782e798017541 Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Mon, 3 May 2021 10:00:47 -0700 Subject: [PATCH 091/210] Fix linter errors - LongRunningResponseStatusCode --- .../data-plane/Microsoft.Maps/Data/preview/2.0/data.json | 6 ------ .../Microsoft.Maps/Dataset/preview/2.0/dataset.json | 7 +++++++ .../DwgConversion/preview/2.0/dwgconversion.json | 7 +++++++ .../Microsoft.Maps/Tileset/preview/2.0/tileset.json | 7 +++++++ 4 files changed, 21 insertions(+), 6 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json index f0f6a5929949..9b82ec9e7465 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json @@ -233,12 +233,6 @@ "description": "List data request completed successfully. The response body contains a list of all the previously uploaded data.", "schema": { "$ref": "#/definitions/MapDataListResponse" - }, - "headers": { - "Content-Type": { - "type": "string", - "description": "The content-type for the Download API response." - } } }, "400": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json index 755bc8a4a00e..278dc64389ac 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json @@ -152,6 +152,13 @@ } ], "responses": { + "200": { + "description": "Dataset create failed. The uploaded content did not satisfy all the validation checks. The response body contains all the errors that were encountered.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + }, "202": { "$ref": "../../../Common/preview/1.0/common.json#/responses/202AsyncV2" }, diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json index acd7028ec45b..4b734de04cbd 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json @@ -153,6 +153,13 @@ } ], "responses": { + "200": { + "description": "Conversion failed. The uploaded content did not satisfy all the validation checks. The response body contains all the errors that were encountered.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + }, "202": { "$ref": "../../../Common/preview/1.0/common.json#/responses/202AsyncV2" }, diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json index 2089f3b16e0e..67e138ac2640 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json @@ -142,6 +142,13 @@ } ], "responses": { + "200": { + "description": "Tileset create failed. The uploaded content did not satisfy all the validation checks. The response body contains all the errors that were encountered.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + }, "202": { "$ref": "../../../Common/preview/1.0/common.json#/responses/202AsyncV2" }, From 6f317c51a34e63e60bc929519c80aff6b120deb4 Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Mon, 3 May 2021 10:46:02 -0700 Subject: [PATCH 092/210] Fix ApiDocPreview --- .../Alias/preview/1.0/alias.json | 56 +- .../Alias/preview/2.0/alias.json | 70 +- .../DEM/preview/1.0/elevation.json | 96 +-- .../Microsoft.Maps/Data/preview/1.0/data.json | 86 +-- .../Microsoft.Maps/Data/preview/2.0/data.json | 86 +-- .../Dataset/preview/1.0/dataset.json | 68 +- .../Dataset/preview/2.0/dataset.json | 66 +- .../preview/2.0/examples/Dataset_Create.json | 15 + .../preview/1.0/dwgconversion.json | 54 +- .../preview/2.0/dwgconversion.json | 74 +- .../preview/2.0/examples/Conversion.json | 15 + .../preview/1.0/featurestate.json | 114 +-- .../preview/2.0/featurestate.json | 114 +-- .../Geolocation/preview/1.0/geolocation.json | 18 +- .../Mobility/preview/1.0/mobility.json | 160 ++-- .../Render/preview/1.0/render.json | 128 ++-- .../Render/preview/2.0/render.json | 16 +- .../Route/preview/1.0/route.json | 110 +-- .../Search/preview/1.0/search.json | 294 +++---- .../Spatial/preview/1.0/spatial.json | 172 ++--- .../Tileset/preview/1.0/tileset.json | 54 +- .../Tileset/preview/2.0/examples/Create.json | 15 + .../Tileset/preview/2.0/tileset.json | 74 +- .../Timezone/preview/1.0/timezone.json | 108 +-- .../Traffic/preview/1.0/traffic.json | 82 +- .../Microsoft.Maps/WFS/preview/1.0/wfs.json | 128 ++-- .../Microsoft.Maps/WFS/preview/2.0/wfs.json | 128 ++-- .../Weather/preview/1.0/weather.json | 144 ++-- .../data-plane/Microsoft.Maps/common.json | 716 ++++++++++++++++++ 29 files changed, 2011 insertions(+), 1250 deletions(-) create mode 100644 specification/maps/data-plane/Microsoft.Maps/common.json diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json index 362db71c70f6..4d6e2b20a3bf 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json @@ -80,10 +80,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" } ], "responses": { @@ -94,19 +94,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } }, @@ -121,10 +121,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" } ], "responses": { @@ -135,19 +135,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -164,10 +164,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/AliasId" @@ -181,19 +181,19 @@ "description": "Alias was assigned successfully." }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -210,10 +210,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/AliasId" @@ -224,19 +224,19 @@ "description": "Alias delete request completed successfully. The content for `aliasId` was deleted on the server." }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json index 0298a38c3d3e..0a78758c0045 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json @@ -115,10 +115,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/CreateCreatorDataItemId" @@ -138,19 +138,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } }, @@ -165,10 +165,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../common.json#/parameters/ApiVersionV2" } ], "responses": { @@ -179,19 +179,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -211,10 +211,10 @@ "$ref": "#/parameters/AliasId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/AssignCreatorDataItemId" @@ -228,19 +228,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } }, @@ -258,10 +258,10 @@ "$ref": "#/parameters/AliasId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../common.json#/parameters/ApiVersionV2" } ], "responses": { @@ -269,19 +269,19 @@ "description": "Alias delete request completed successfully. The content for `aliasId` was deleted on the server." }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } }, @@ -299,10 +299,10 @@ "$ref": "#/parameters/AliasId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../common.json#/parameters/ApiVersionV2" } ], "responses": { @@ -313,19 +313,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json index 5a55ef4161a5..93d0bdc6d78e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json +++ b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json @@ -55,16 +55,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../common.json#/parameters/JsonFormat" }, { "name": "points", @@ -91,19 +91,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } }, @@ -118,16 +118,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../common.json#/parameters/JsonFormat" }, { "name": "pointsRequestBody", @@ -138,7 +138,7 @@ "description": "The post elevation points array request body. The length of the array ranges from 2 to 2000.", "type": "array", "items": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPairAbbreviated" + "$ref": "../../../common.json#/definitions/CoordinatesPairAbbreviated" } } } @@ -155,19 +155,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -184,16 +184,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../common.json#/parameters/JsonFormat" }, { "name": "lines", @@ -234,19 +234,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } }, @@ -261,16 +261,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../common.json#/parameters/JsonFormat" }, { "name": "linesRequestBody", @@ -281,7 +281,7 @@ "description": "The post elevation lines request body.", "type": "array", "items": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPairAbbreviated" + "$ref": "../../../common.json#/definitions/CoordinatesPairAbbreviated" } } }, @@ -308,19 +308,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -337,16 +337,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../common.json#/parameters/JsonFormat" }, { "name": "bounds", @@ -390,19 +390,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -415,7 +415,7 @@ "readOnly": true, "properties": { "coordinate": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPair" + "$ref": "../../../common.json#/definitions/CoordinatesPair" }, "elevationInMeter": { "description": "The elevation value in meters.", diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json index 91ba5cb61f2b..2c951b1e6f67 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json @@ -107,13 +107,13 @@ ], "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/UploadDataFormat" @@ -128,31 +128,31 @@ ], "responses": { "200": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/200Async" + "$ref": "../../../common.json#/responses/200Async" }, "201": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/201Async" + "$ref": "../../../common.json#/responses/201Async" }, "202": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" + "$ref": "../../../common.json#/responses/202Async" }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "409": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/409StorageLimit" + "$ref": "../../../common.json#/responses/409StorageLimit" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -176,13 +176,13 @@ ], "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/UniqueDataId" @@ -197,31 +197,31 @@ ], "responses": { "200": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/200Async" + "$ref": "../../../common.json#/responses/200Async" }, "201": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/201Async" + "$ref": "../../../common.json#/responses/201Async" }, "202": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" + "$ref": "../../../common.json#/responses/202Async" }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "409": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/409StorageLimit" + "$ref": "../../../common.json#/responses/409StorageLimit" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } }, @@ -241,13 +241,13 @@ ], "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/UniqueDataId" @@ -286,13 +286,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/UniqueDataId" @@ -303,19 +303,19 @@ "description": "Data delete request completed successfully. The content for `udid` was deleted on the server." }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -332,13 +332,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" } ], "responses": { @@ -349,19 +349,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json index 9b82ec9e7465..601fd0ac11e4 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json @@ -155,13 +155,13 @@ ], "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/UploadDataDescription" @@ -186,25 +186,25 @@ "x-ms-error-response": true }, "202": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/202AsyncV2" + "$ref": "../../../common.json#/responses/202AsyncV2" }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "409": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/409StorageLimit" + "$ref": "../../../common.json#/responses/409StorageLimit" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } }, @@ -219,13 +219,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../common.json#/parameters/ApiVersionV2" } ], "responses": { @@ -236,19 +236,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -272,13 +272,13 @@ ], "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/UniqueDataId" @@ -303,25 +303,25 @@ "x-ms-error-response": true }, "202": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/202AsyncV2" + "$ref": "../../../common.json#/responses/202AsyncV2" }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "409": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/409StorageLimit" + "$ref": "../../../common.json#/responses/409StorageLimit" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } }, @@ -341,13 +341,13 @@ ], "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/UniqueDataId" @@ -386,13 +386,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/UniqueDataId" @@ -403,19 +403,19 @@ "description": "Data delete request completed successfully. The content for `udid` was deleted on the server." }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -434,10 +434,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/DataUploadOperationId" @@ -445,10 +445,10 @@ ], "responses": { "200": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/200AsyncV2" + "$ref": "../../../common.json#/responses/200AsyncV2" }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json index a509136be103..bc8374fcabf6 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json @@ -166,10 +166,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/ConversionIdQuery" @@ -189,28 +189,28 @@ ], "responses": { "200": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/200Async" + "$ref": "../../../common.json#/responses/200Async" }, "201": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/201Async" + "$ref": "../../../common.json#/responses/201Async" }, "202": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" + "$ref": "../../../common.json#/responses/202Async" }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -231,10 +231,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/DatasetId" @@ -248,28 +248,28 @@ ], "responses": { "200": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/200Async" + "$ref": "../../../common.json#/responses/200Async" }, "201": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/201Async" + "$ref": "../../../common.json#/responses/201Async" }, "202": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" + "$ref": "../../../common.json#/responses/202Async" }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -286,10 +286,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/DatasetId" @@ -300,19 +300,19 @@ "description": "The dataset delete request completed successfully. The resource referenced by the `datasetId` was deleted from the server." }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -329,10 +329,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" } ], "responses": { @@ -343,19 +343,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json index 278dc64389ac..33315f194964 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json @@ -136,10 +136,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/ConversionIdQuery" @@ -160,22 +160,22 @@ "x-ms-error-response": true }, "202": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/202AsyncV2" + "$ref": "../../../common.json#/responses/202AsyncV2" }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } }, @@ -190,10 +190,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../common.json#/parameters/ApiVersionV2" } ], "responses": { @@ -204,19 +204,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -236,10 +236,10 @@ "$ref": "#/parameters/DatasetId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../common.json#/parameters/ApiVersionV2" } ], "responses": { @@ -250,19 +250,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } }, @@ -277,10 +277,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/DatasetId" @@ -291,19 +291,19 @@ "description": "The dataset delete request completed successfully. The resource referenced by the `datasetId` was deleted from the server." }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -322,10 +322,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/DatasetOperationId" @@ -333,10 +333,10 @@ ], "responses": { "200": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/200AsyncV2" + "$ref": "../../../common.json#/responses/200AsyncV2" }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/Dataset_Create.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/Dataset_Create.json index 78ef1912aeed..1d9c59df6d80 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/Dataset_Create.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/Dataset_Create.json @@ -6,6 +6,21 @@ "conversionId": "[conversionId]" }, "responses": { + "200": { + "headers": {}, + "body": { + "error": { + "code": "InvalidFeature", + "message": "The provided feature is invalid.", + "details": [ + { + "code": "NoGeometry", + "message": "No geometry was provided with the feature." + } + ] + } + } + }, "202": { "headers": { "Operation-Location": "https://us.atlas.microsoft.com/datasets/operations/{operationId}?api-version=2.0", diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json index 80af5a66da71..636fd778fab9 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json @@ -112,13 +112,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/UdidQuery" @@ -132,28 +132,28 @@ ], "responses": { "200": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/200Async" + "$ref": "../../../common.json#/responses/200Async" }, "201": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/201Async" + "$ref": "../../../common.json#/responses/201Async" }, "202": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" + "$ref": "../../../common.json#/responses/202Async" }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -170,13 +170,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" } ], "responses": { @@ -187,19 +187,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -216,13 +216,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/ConversionId" @@ -233,19 +233,19 @@ "description": "Conversion delete request completed successfully. The content for `conversionId` was deleted on the server." }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json index 4b734de04cbd..a2b4e0444c85 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json @@ -134,13 +134,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/UdidQuery" @@ -161,22 +161,22 @@ "x-ms-error-response": true }, "202": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/202AsyncV2" + "$ref": "../../../common.json#/responses/202AsyncV2" }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } }, @@ -191,13 +191,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../common.json#/parameters/ApiVersionV2" } ], "responses": { @@ -208,19 +208,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -237,13 +237,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/ConversionId" @@ -257,19 +257,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } }, @@ -284,13 +284,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/ConversionId" @@ -301,19 +301,19 @@ "description": "Conversion delete request completed successfully. The content for `conversionId` was deleted on the server." }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -332,10 +332,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/ConversionOperationId" @@ -343,10 +343,10 @@ ], "responses": { "200": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/200AsyncV2" + "$ref": "../../../common.json#/responses/200AsyncV2" }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/Conversion.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/Conversion.json index 90672fcd2a75..b822825789d8 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/Conversion.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/Conversion.json @@ -8,6 +8,21 @@ "outputOntology": "facility-2.0" }, "responses": { + "200": { + "headers": {}, + "body": { + "error": { + "code": "InvalidFeature", + "message": "The provided feature is invalid.", + "details": [ + { + "code": "NoGeometry", + "message": "No geometry was provided with the feature." + } + ] + } + } + }, "202": { "headers": { "Operation-Location": "https://us.atlas.microsoft.com/conversions/operations/{operationId}?api-version=2.0", diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json index 170de6cf8b99..26c485637d34 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json @@ -111,10 +111,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -128,19 +128,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } }, @@ -155,10 +155,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -169,19 +169,19 @@ "description": "Stateset Deleted." }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } }, @@ -196,10 +196,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -219,19 +219,19 @@ "description": "Stateset styles are updated successfully." }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -248,10 +248,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/DatasetIdForCreate" @@ -274,19 +274,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } }, @@ -301,10 +301,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" } ], "responses": { @@ -315,19 +315,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -344,10 +344,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/StatesetId" @@ -364,19 +364,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } }, @@ -391,10 +391,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/StatesetId" @@ -417,19 +417,19 @@ "description": "Feature states are updated successfully." }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } }, @@ -444,10 +444,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/StatesetId" @@ -464,22 +464,22 @@ "description": "Feature states deleted successfully." }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "409": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/409" + "$ref": "../../../common.json#/responses/409" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json index e7554587ceeb..b0a489231591 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json @@ -146,10 +146,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/DatasetIdForCreate" @@ -175,19 +175,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } }, @@ -202,10 +202,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../common.json#/parameters/ApiVersionV2" } ], "responses": { @@ -216,19 +216,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -245,10 +245,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -268,19 +268,19 @@ "description": "Stateset styles are updated successfully." }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } }, @@ -295,10 +295,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -309,19 +309,19 @@ "description": "Stateset Deleted." }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } }, @@ -336,10 +336,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -353,19 +353,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -382,10 +382,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -408,19 +408,19 @@ "description": "Feature states are updated successfully." }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } }, @@ -435,10 +435,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -455,22 +455,22 @@ "description": "Feature states deleted successfully." }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "409": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/409" + "$ref": "../../../common.json#/responses/409" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } }, @@ -485,10 +485,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -505,19 +505,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json index 42e2b1e25d6e..71d4da399d4c 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json +++ b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json @@ -54,16 +54,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../common.json#/parameters/JsonFormat" }, { "name": "ip", @@ -81,19 +81,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json index b6ed430c8e71..a019494a76bc 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json +++ b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json @@ -72,16 +72,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../common.json#/parameters/JsonFormat" }, { "name": "query", @@ -128,19 +128,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -157,16 +157,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../common.json#/parameters/JsonFormat" }, { "name": "query", @@ -226,19 +226,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -255,16 +255,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../common.json#/parameters/JsonFormat" }, { "$ref": "#/parameters/MetroId" @@ -312,19 +312,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -341,16 +341,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../common.json#/parameters/JsonFormat" }, { "$ref": "#/parameters/MetroId" @@ -422,19 +422,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -451,16 +451,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../common.json#/parameters/JsonFormat" }, { "$ref": "#/parameters/MetroId" @@ -548,19 +548,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -577,16 +577,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../common.json#/parameters/JsonFormat" }, { "$ref": "#/parameters/MetroId" @@ -888,19 +888,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -917,16 +917,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../common.json#/parameters/JsonFormat" }, { "name": "query", @@ -975,19 +975,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -1004,16 +1004,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../common.json#/parameters/JsonFormat" }, { "$ref": "#/parameters/MetroId" @@ -1222,19 +1222,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -1413,7 +1413,7 @@ "type": "string" }, "geometry": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonPolygon" + "$ref": "../../../common.json#/definitions/GeoJsonPolygon" }, "viewport": { "$ref": "#/definitions/ResultViewport" @@ -1425,10 +1425,10 @@ "type": "object", "properties": { "topLeftPoint": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPair" + "$ref": "../../../common.json#/definitions/CoordinatesPair" }, "btmRightPoint": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPair" + "$ref": "../../../common.json#/definitions/CoordinatesPair" } } }, @@ -1449,7 +1449,7 @@ }, "position": { "description": "The transit object's position.", - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPair" + "$ref": "../../../common.json#/definitions/CoordinatesPair" }, "viewport": { "$ref": "#/definitions/ResultViewport" @@ -1478,7 +1478,7 @@ }, "position": { "description": "The Stop's location, latitude and longitude.", - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPair" + "$ref": "../../../common.json#/definitions/CoordinatesPair" }, "mainTransitType": { "description": "The transit type of most lines stopping at this stop. One of Tram, Subway, Rail, Bus, Ferry, CableCar, Gondola, Funicular", @@ -1772,7 +1772,7 @@ "$ref": "#/definitions/LegPoint" }, "geometry": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonLineString" + "$ref": "../../../common.json#/definitions/GeoJsonLineString" }, "lineGroup": { "description": "In case of a public transit leg, the line group serving this leg.", @@ -1953,7 +1953,7 @@ "type": "object", "properties": { "position": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPair" + "$ref": "../../../common.json#/definitions/CoordinatesPair" } } }, @@ -2160,7 +2160,7 @@ }, "geometry": { "description": "Stop sequence and shape per a line in GeoJSON format.", - "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonLineString" + "$ref": "../../../common.json#/definitions/GeoJsonLineString" } } }, diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json index 157abc970aa7..144f1c7332c9 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json @@ -213,13 +213,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/RasterTileFormat" @@ -372,19 +372,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -401,13 +401,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TileFormat" @@ -532,19 +532,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -561,13 +561,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/VectorZoom" @@ -598,19 +598,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -627,13 +627,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TextFormat" @@ -647,19 +647,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -676,13 +676,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/RasterTileFormat" @@ -730,19 +730,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -759,13 +759,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TextFormat" @@ -796,19 +796,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -825,13 +825,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TextFormat" @@ -857,19 +857,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -886,13 +886,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TextFormat" @@ -909,19 +909,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json index a564e575f0db..45f8ad4613f1 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json @@ -168,13 +168,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/TilesetId_rv2" @@ -239,19 +239,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json index ff47a76df64a..173f9cb0ad3c 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json @@ -820,16 +820,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../common.json#/parameters/JsonFormat" }, { "name": "waitForResults", @@ -908,22 +908,22 @@ } }, "202": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" + "$ref": "../../../common.json#/responses/202Async" }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } }, "produces": [ @@ -943,13 +943,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TextFormat" @@ -1114,19 +1114,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } }, @@ -1141,13 +1141,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TextFormat" @@ -1321,19 +1321,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -1350,13 +1350,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TextFormat" @@ -1493,19 +1493,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -1526,16 +1526,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../common.json#/parameters/JsonFormat" }, { "name": "routeDirectionsBatchRequestBody", @@ -1543,7 +1543,7 @@ "description": "The list of route directions queries/requests to process. The list can contain a max of 700 queries for async and 100 queries for sync version and must contain at least 1 query.", "required": true, "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/BatchRequestBody" + "$ref": "../../../common.json#/definitions/BatchRequestBody" } } ], @@ -1555,22 +1555,22 @@ } }, "202": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" + "$ref": "../../../common.json#/responses/202Async" }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } }, "produces": [ @@ -1586,7 +1586,7 @@ "properties": { "supportingPoints": { "description": "A GeoJSON Geometry collection representing sequence of coordinates used as input for route reconstruction and for calculating zero or more alternative routes to this reference route.\n - The provided sequence of supporting points is used as input for route reconstruction.\n - The alternative routes are calculated between the origin and destination points specified in the base path parameter locations.\n - If both _minDeviationDistance_ and _minDeviationTime_ are set to zero, then these origin and destination points are\n expected to be at (or very near) the beginning and end of the reference route, respectively.\n - Intermediate locations (_waypoints_) are not supported when using <_supportingPoints_>.\n - The reference route may contain traffic incidents of type _ROAD_CLOSURE_, which are\n ignored for the calculation of the reference route's travel time and traffic delay.", - "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonGeometryCollection" + "$ref": "../../../common.json#/definitions/GeoJsonGeometryCollection" }, "avoidVignette": { "description": "This is a list of 3-character, ISO 3166-1, alpha-3 country codes of countries in which all toll roads with vignettes are to be avoided, e.g. \"AUS,CHE\". Toll roads with vignettes in countries not in the list are unaffected. Note: It is an error to specify both **avoidVignette** and **allowVignette**.", @@ -1604,7 +1604,7 @@ }, "avoidAreas": { "description": "A GeoJSON MultiPolygon representing list of areas to avoid. Only rectangle polygons are supported. The maximum size of a rectangle is about 160x160 km. Maximum number of avoided areas is **10**. It cannot cross the 180th meridian. It must be between -80 and +80 degrees of latitude.", - "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonMultiPolygon" + "$ref": "../../../common.json#/definitions/GeoJsonMultiPolygon" } } }, @@ -1724,7 +1724,7 @@ "type": "array", "readOnly": true, "items": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPair" + "$ref": "../../../common.json#/definitions/CoordinatesPair" } } } @@ -1918,7 +1918,7 @@ "readOnly": true }, "point": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPair" + "$ref": "../../../common.json#/definitions/CoordinatesPair" }, "pointIndex": { "description": "The index of the point in the list of polyline \"points\" corresponding to the point of the instruction.", @@ -2329,14 +2329,14 @@ "properties": { "center": { "description": "Center point of the reachable range", - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPair" + "$ref": "../../../common.json#/definitions/CoordinatesPair" }, "boundary": { "description": "Polygon boundary of the reachable range represented as a list of points.", "type": "array", "readOnly": true, "items": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPair" + "$ref": "../../../common.json#/definitions/CoordinatesPair" } } } @@ -2444,10 +2444,10 @@ "type": "object", "properties": { "origins": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonMultiPoint" + "$ref": "../../../common.json#/definitions/GeoJsonMultiPoint" }, "destinations": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonMultiPoint" + "$ref": "../../../common.json#/definitions/GeoJsonMultiPoint" } } }, @@ -2456,7 +2456,7 @@ "type": "object", "allOf": [ { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/BatchResponse" + "$ref": "../../../common.json#/definitions/BatchResponse" } ], "properties": { @@ -2475,7 +2475,7 @@ "type": "object", "allOf": [ { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/BatchItem" + "$ref": "../../../common.json#/definitions/BatchItem" } ], "properties": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json index 7f9845fb6881..53ab692b508a 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json @@ -410,16 +410,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../common.json#/parameters/JsonFormat" }, { "name": "geometries", @@ -437,19 +437,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } }, "produces": [ @@ -469,13 +469,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TextFormat" @@ -567,19 +567,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -596,13 +596,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TextFormat" @@ -671,19 +671,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -700,13 +700,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TextFormat" @@ -760,19 +760,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -789,13 +789,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TextFormat" @@ -864,19 +864,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -893,16 +893,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../common.json#/parameters/JsonFormat" }, { "name": "language", @@ -920,19 +920,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -949,13 +949,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TextFormat" @@ -1012,19 +1012,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -1041,13 +1041,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TextFormat" @@ -1181,19 +1181,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -1210,13 +1210,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TextFormat" @@ -1254,19 +1254,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -1283,13 +1283,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TextFormat" @@ -1389,19 +1389,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -1424,13 +1424,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/PoiQuery" @@ -1477,19 +1477,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -1506,13 +1506,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/CategorySet" @@ -1570,19 +1570,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -1603,16 +1603,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../common.json#/parameters/JsonFormat" }, { "name": "searchFuzzyBatchRequestBody", @@ -1620,7 +1620,7 @@ "description": "The list of search fuzzy queries/requests to process. The list can contain a max of 10,000 queries and must contain at least 1 query.", "required": true, "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/BatchRequestBody" + "$ref": "../../../common.json#/definitions/BatchRequestBody" } } ], @@ -1632,22 +1632,22 @@ } }, "202": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" + "$ref": "../../../common.json#/responses/202Async" }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } }, "produces": [ @@ -1671,16 +1671,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../common.json#/parameters/JsonFormat" }, { "name": "searchAddressBatchRequestBody", @@ -1688,7 +1688,7 @@ "description": "The list of address geocoding queries/requests to process. The list can contain a max of 10,000 queries and must contain at least 1 query.", "required": true, "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/BatchRequestBody" + "$ref": "../../../common.json#/definitions/BatchRequestBody" } } ], @@ -1700,22 +1700,22 @@ } }, "202": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" + "$ref": "../../../common.json#/responses/202Async" }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } }, "produces": [ @@ -1739,16 +1739,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../common.json#/parameters/JsonFormat" }, { "name": "searchAddressReverseBatchRequestBody", @@ -1756,7 +1756,7 @@ "description": "The list of reverse geocoding queries/requests to process. The list can contain a max of 10,000 queries and must contain at least 1 query.", "required": true, "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/BatchRequestBody" + "$ref": "../../../common.json#/definitions/BatchRequestBody" } } ], @@ -1768,22 +1768,22 @@ } }, "202": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" + "$ref": "../../../common.json#/responses/202Async" }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } }, "produces": [ @@ -1870,7 +1870,7 @@ }, "geometryData": { "description": "Geometry data in GeoJSON format. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946) for details. Present only if \"error\" is not present.", - "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonObject" + "$ref": "../../../common.json#/definitions/GeoJsonObject" } } }, @@ -1925,7 +1925,7 @@ "readOnly": true, "allOf": [ { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPairAbbreviated" + "$ref": "../../../common.json#/definitions/CoordinatesPairAbbreviated" } ] } @@ -1967,7 +1967,7 @@ "$ref": "#/definitions/SearchResultAddress" }, "position": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPairAbbreviated" + "$ref": "../../../common.json#/definitions/CoordinatesPairAbbreviated" }, "viewport": { "$ref": "#/definitions/SearchResultViewport" @@ -2242,7 +2242,7 @@ "type": "object", "properties": { "geometry": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonObject" + "$ref": "../../../common.json#/definitions/GeoJsonObject" } } }, @@ -2251,7 +2251,7 @@ "type": "object", "properties": { "route": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonLineString" + "$ref": "../../../common.json#/definitions/GeoJsonLineString" } } }, @@ -2546,10 +2546,10 @@ "readOnly": true, "properties": { "topLeftPoint": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPairAbbreviated" + "$ref": "../../../common.json#/definitions/CoordinatesPairAbbreviated" }, "btmRightPoint": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPairAbbreviated" + "$ref": "../../../common.json#/definitions/CoordinatesPairAbbreviated" } } }, @@ -2572,7 +2572,7 @@ } }, "position": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPairAbbreviated" + "$ref": "../../../common.json#/definitions/CoordinatesPairAbbreviated" } } }, @@ -2590,10 +2590,10 @@ "type": "string" }, "from": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPairAbbreviated" + "$ref": "../../../common.json#/definitions/CoordinatesPairAbbreviated" }, "to": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPairAbbreviated" + "$ref": "../../../common.json#/definitions/CoordinatesPairAbbreviated" } } }, @@ -2703,7 +2703,7 @@ "type": "object", "allOf": [ { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/BatchResponse" + "$ref": "../../../common.json#/definitions/BatchResponse" } ], "properties": { @@ -2722,7 +2722,7 @@ "type": "object", "allOf": [ { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/BatchItem" + "$ref": "../../../common.json#/definitions/BatchItem" } ], "properties": { @@ -2746,7 +2746,7 @@ "type": "object", "allOf": [ { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/BatchResponse" + "$ref": "../../../common.json#/definitions/BatchResponse" } ], "properties": { @@ -2765,7 +2765,7 @@ "type": "object", "allOf": [ { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/BatchItem" + "$ref": "../../../common.json#/definitions/BatchItem" } ], "properties": { @@ -2789,7 +2789,7 @@ "type": "object", "allOf": [ { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/BatchResponse" + "$ref": "../../../common.json#/definitions/BatchResponse" } ], "properties": { @@ -2808,7 +2808,7 @@ "type": "object", "allOf": [ { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/BatchItem" + "$ref": "../../../common.json#/definitions/BatchItem" } ], "properties": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json index ff9c32c9ee5e..432b1e6f49c2 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json @@ -138,16 +138,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../common.json#/parameters/JsonFormat" }, { "name": "deviceId", @@ -230,19 +230,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } }, @@ -257,16 +257,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../common.json#/parameters/JsonFormat" }, { "name": "deviceId", @@ -330,7 +330,7 @@ "description": "The geofencing GeoJSON data.", "required": true, "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonFeatureCollection" + "$ref": "../../../common.json#/definitions/GeoJsonFeatureCollection" } } ], @@ -351,19 +351,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -380,16 +380,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../common.json#/parameters/JsonFormat" }, { "name": "bufferRequestBody", @@ -412,19 +412,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } }, @@ -439,16 +439,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../common.json#/parameters/JsonFormat" }, { "$ref": "#/parameters/UdidSpatial" @@ -472,19 +472,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -501,16 +501,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../common.json#/parameters/JsonFormat" }, { "name": "lat", @@ -539,7 +539,7 @@ "description": "The FeatureCollection of Point geometries from which closest point to source point should be determined. All the feature's properties should contain `geometryId`, which is used for identifying the geometry and is case-sensitive.", "required": true, "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonFeatureCollection" + "$ref": "../../../common.json#/definitions/GeoJsonFeatureCollection" } } ], @@ -554,19 +554,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } }, @@ -581,16 +581,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../common.json#/parameters/JsonFormat" }, { "$ref": "#/parameters/UdidSpatial" @@ -628,19 +628,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -657,16 +657,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../common.json#/parameters/JsonFormat" }, { "name": "lat", @@ -688,7 +688,7 @@ "description": "A FeatureCollection with a set of Polygon/MultiPolygon geometries. The maximum number of vertices accepted to form a Polygon is 10,000. All the feature's properties should contain `geometryId`, which is used for identifying the geometry and is case-sensitive.", "required": true, "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonFeatureCollection" + "$ref": "../../../common.json#/definitions/GeoJsonFeatureCollection" } } ], @@ -703,19 +703,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } }, @@ -730,16 +730,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../common.json#/parameters/JsonFormat" }, { "$ref": "#/parameters/UdidSpatial" @@ -770,19 +770,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -799,16 +799,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../common.json#/parameters/JsonFormat" }, { "name": "query", @@ -829,19 +829,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -948,7 +948,7 @@ "type": "object", "properties": { "geometries": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonFeatureCollection" + "$ref": "../../../common.json#/definitions/GeoJsonFeatureCollection" }, "distances": { "description": "List of the distances to compute the buffer for, one-to-one per Feature in the collection, or one for all Features in the collection.", @@ -982,7 +982,7 @@ }, "result": { "description": "The FeatureCollection of buffers for the input.", - "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonFeatureCollection" + "$ref": "../../../common.json#/definitions/GeoJsonFeatureCollection" } } }, diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json index 949e919f9d18..2987fe1812b5 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json @@ -118,13 +118,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/DatasetIdQuery" @@ -135,28 +135,28 @@ ], "responses": { "200": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/200Async" + "$ref": "../../../common.json#/responses/200Async" }, "201": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/201Async" + "$ref": "../../../common.json#/responses/201Async" }, "202": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" + "$ref": "../../../common.json#/responses/202Async" }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -173,13 +173,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" } ], "responses": { @@ -190,19 +190,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -219,13 +219,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TilesetId" @@ -239,19 +239,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/examples/Create.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/examples/Create.json index e716a4723b7b..ef7ccc020111 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/examples/Create.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/examples/Create.json @@ -6,6 +6,21 @@ "datasetId": "[dataset-Id]" }, "responses": { + "200": { + "headers": {}, + "body": { + "error": { + "code": "InvalidFeature", + "message": "The provided feature is invalid.", + "details": [ + { + "code": "NoGeometry", + "message": "No geometry was provided with the feature." + } + ] + } + } + }, "202": { "headers": { "Operation-Location": "https://us.atlas.microsoft.com/tilesets/operations/{operationId}?api-version=2.0", diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json index 67e138ac2640..0b8ceef139b7 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json @@ -126,13 +126,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/DatasetIdQuery" @@ -150,22 +150,22 @@ "x-ms-error-response": true }, "202": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/202AsyncV2" + "$ref": "../../../common.json#/responses/202AsyncV2" }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } }, @@ -180,13 +180,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../common.json#/parameters/ApiVersionV2" } ], "responses": { @@ -197,19 +197,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -226,13 +226,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/TilesetId" @@ -246,19 +246,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } }, @@ -273,13 +273,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/TilesetId" @@ -290,19 +290,19 @@ "description": "Tileset delete request completed successfully." }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -321,10 +321,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/TilesetOperationId" @@ -332,10 +332,10 @@ ], "responses": { "200": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/200AsyncV2" + "$ref": "../../../common.json#/responses/200AsyncV2" }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json index 7ae2fec2e398..5d1ffad8aedc 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json +++ b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json @@ -127,13 +127,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TimezoneAcceptLanguage" @@ -151,7 +151,7 @@ "$ref": "#/parameters/TimezoneTransitionsYears" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../common.json#/parameters/JsonFormat" }, { "name": "query", @@ -169,19 +169,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } }, "produces": [ @@ -201,13 +201,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TimezoneAcceptLanguage" @@ -225,7 +225,7 @@ "$ref": "#/parameters/TimezoneTransitionsYears" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../common.json#/parameters/JsonFormat" }, { "name": "query", @@ -243,19 +243,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } }, "produces": [ @@ -275,16 +275,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../common.json#/parameters/JsonFormat" } ], "responses": { @@ -295,19 +295,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } }, "produces": [ @@ -327,16 +327,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../common.json#/parameters/JsonFormat" } ], "responses": { @@ -347,19 +347,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } }, "produces": [ @@ -379,16 +379,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../common.json#/parameters/JsonFormat" } ], "responses": { @@ -399,19 +399,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } }, "produces": [ @@ -431,16 +431,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../common.json#/parameters/JsonFormat" }, { "name": "query", @@ -465,19 +465,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } }, "produces": [ diff --git a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json index 161364013941..6c07b6732493 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json +++ b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json @@ -148,13 +148,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TileFormat" @@ -223,19 +223,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } }, "produces": [ @@ -255,13 +255,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TextFormat" @@ -346,19 +346,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -375,13 +375,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TileFormat" @@ -448,19 +448,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } }, "produces": [ @@ -480,13 +480,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TextFormat" @@ -632,19 +632,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -661,13 +661,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TextFormat" @@ -723,19 +723,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -800,7 +800,7 @@ "type": "array", "readOnly": true, "items": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPair" + "$ref": "../../../common.json#/definitions/CoordinatesPair" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json index 9abf52df3b21..7156dc687210 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json @@ -105,13 +105,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { "$ref": "../../../Dataset/preview/1.0/dataset.json#/parameters/DatasetId" @@ -125,19 +125,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -154,13 +154,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { "$ref": "../../../Dataset/preview/1.0/dataset.json#/parameters/DatasetId" @@ -174,19 +174,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -203,13 +203,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { "$ref": "../../../Dataset/preview/1.0/dataset.json#/parameters/DatasetId" @@ -223,19 +223,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -252,13 +252,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { "$ref": "../../../Dataset/preview/1.0/dataset.json#/parameters/DatasetId" @@ -275,19 +275,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -304,13 +304,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { "$ref": "../../../Dataset/preview/1.0/dataset.json#/parameters/DatasetId" @@ -327,19 +327,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -356,13 +356,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { "$ref": "../../../Dataset/preview/1.0/dataset.json#/parameters/DatasetId" @@ -388,19 +388,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -417,10 +417,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { "$ref": "../../../Dataset/preview/1.0/dataset.json#/parameters/DatasetId" @@ -440,19 +440,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } }, @@ -467,10 +467,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { "$ref": "../../../Dataset/preview/1.0/dataset.json#/parameters/DatasetId" @@ -487,19 +487,19 @@ "description": "Feature Deleted." }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -844,7 +844,7 @@ "type": "object", "allOf": [ { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonFeatureCollection" + "$ref": "../../../common.json#/definitions/GeoJsonFeatureCollection" }, { "$ref": "#/definitions/ExtendedGeoJsonFeatureCollectionData" @@ -874,7 +874,7 @@ ], "properties": { "feature": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonFeature" + "$ref": "../../../common.json#/definitions/GeoJsonFeature" }, "links": { "description": "Links to other WFS endpoints.", diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json index e49af297d950..6bd2f2086e0d 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json @@ -132,13 +132,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../common.json#/parameters/ApiVersionV2" }, { "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" @@ -152,19 +152,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -181,13 +181,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../common.json#/parameters/ApiVersionV2" }, { "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" @@ -201,19 +201,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -230,13 +230,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../common.json#/parameters/ApiVersionV2" }, { "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" @@ -250,19 +250,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -279,13 +279,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../common.json#/parameters/ApiVersionV2" }, { "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" @@ -302,19 +302,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -331,13 +331,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../common.json#/parameters/ApiVersionV2" }, { "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" @@ -354,19 +354,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -383,13 +383,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../common.json#/parameters/ApiVersionV2" }, { "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" @@ -415,19 +415,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -444,10 +444,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../common.json#/parameters/ApiVersionV2" }, { "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" @@ -467,19 +467,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } }, @@ -494,10 +494,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../common.json#/parameters/ApiVersionV2" }, { "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" @@ -514,19 +514,19 @@ "description": "Feature Deleted." }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -883,7 +883,7 @@ "type": "object", "allOf": [ { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonFeatureCollection" + "$ref": "../../../common.json#/definitions/GeoJsonFeatureCollection" }, { "$ref": "#/definitions/ExtendedGeoJsonFeatureCollectionData" @@ -919,7 +919,7 @@ "$ref": "#/definitions/Ontology" }, "feature": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonFeature" + "$ref": "../../../common.json#/definitions/GeoJsonFeature" }, "links": { "description": "Links to other WFS endpoints.", diff --git a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json index 18b77e0b6636..b2c9adb9edf0 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json +++ b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json @@ -89,16 +89,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../common.json#/parameters/JsonFormat" }, { "name": "query", @@ -129,19 +129,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -157,16 +157,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../common.json#/parameters/JsonFormat" }, { "name": "query", @@ -194,19 +194,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -222,16 +222,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../common.json#/parameters/JsonFormat" }, { "name": "query", @@ -262,19 +262,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -290,16 +290,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../common.json#/parameters/JsonFormat" }, { "name": "query", @@ -337,19 +337,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -365,16 +365,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../common.json#/parameters/JsonFormat" }, { "name": "query", @@ -405,19 +405,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -433,16 +433,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../common.json#/parameters/JsonFormat" }, { "name": "query", @@ -463,19 +463,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -491,16 +491,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../common.json#/parameters/JsonFormat" }, { "name": "query", @@ -528,19 +528,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } @@ -556,16 +556,16 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + "$ref": "../../../common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "../../../common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../common.json#/parameters/JsonFormat" }, { "name": "query", @@ -605,19 +605,19 @@ } }, "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "$ref": "../../../common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + "$ref": "../../../common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + "$ref": "../../../common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + "$ref": "../../../common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "$ref": "../../../common.json#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/common.json b/specification/maps/data-plane/Microsoft.Maps/common.json new file mode 100644 index 000000000000..ddd4ee059b91 --- /dev/null +++ b/specification/maps/data-plane/Microsoft.Maps/common.json @@ -0,0 +1,716 @@ +{ + "swagger": "2.0", + "info": { + "title": "Azure Maps Common Types", + "version": "2.0" + }, + "host": "atlas.microsoft.com", + "schemes": [ + "https" + ], + "consumes": [], + "produces": [ + "application/json", + "application/xml" + ], + "paths": {}, + "definitions": { + "LongRunningOperationResult": { + "description": "The response model for a Long-Running Operations API.", + "type": "object", + "properties": { + "operationId": { + "description": "The Id for this long-running operation.", + "type": "string" + }, + "status": { + "description": "The status state of the request.", + "type": "string", + "enum": [ + "NotStarted", + "Running", + "Failed", + "Succeeded" + ], + "x-ms-enum": { + "name": "LroStatus", + "modelAsString": true, + "values": [ + { + "value": "NotStarted", + "description": "The request has not started processing yet." + }, + { + "value": "Running", + "description": "The request has started processing." + }, + { + "value": "Failed", + "description": "The request has one or more failures." + }, + { + "value": "Succeeded", + "description": "The request has successfully completed." + } + ] + }, + "readOnly": true + }, + "created": { + "description": "The created timestamp.", + "type": "string", + "readOnly": true + }, + "resourceLocation": { + "description": "The location URI for details about the created resource. This is only provided when the request was successfully completed.", + "type": "string", + "readOnly": true + }, + "error": { + "$ref": "../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" + }, + "warning": { + "$ref": "../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" + } + } + }, + "BatchRequestBody": { + "description": "This type represents the request body for the Batch service.", + "type": "object", + "properties": { + "batchItems": { + "description": "The list of queries to process.", + "type": "array", + "items": { + "description": "Batch Query object", + "type": "object", + "properties": { + "query": { + "description": "Partial query string.", + "type": "string", + "example": "?query=One, Microsoft Way, Redmond, WA 98052&limit=3" + } + } + } + } + } + }, + "BatchResponse": { + "description": "This object is returned from a successful Batch service call. Extend with 'batchItems' property.", + "type": "object", + "properties": { + "summary": { + "description": "Summary for the batch request", + "type": "object", + "readOnly": true, + "properties": { + "successfulRequests": { + "description": "Number of successful requests in the batch", + "type": "integer", + "readOnly": true + }, + "totalRequests": { + "description": "Total number of requests in the batch", + "type": "integer", + "readOnly": true + } + } + } + } + }, + "BatchItem": { + "description": "An item returned from Batch API. Extend with 'response' property.", + "type": "object", + "properties": { + "statusCode": { + "description": "HTTP request status code.", + "type": "number", + "readOnly": true, + "example": 200 + } + } + }, + "CoordinatesPair": { + "description": "A location represented as a latitude and longitude.", + "type": "object", + "properties": { + "latitude": { + "description": "Latitude property", + "type": "number", + "format": "double" + }, + "longitude": { + "description": "Longitude property", + "type": "number", + "format": "double" + } + } + }, + "CoordinatesPairAbbreviated": { + "description": "A location represented as a latitude and longitude using short names 'lat' & 'lon'.", + "type": "object", + "properties": { + "lat": { + "description": "Latitude property", + "type": "number", + "format": "double" + }, + "lon": { + "description": "Longitude property", + "type": "number", + "format": "double" + } + } + }, + "GeoJsonPosition": { + "description": "A `Position` is an array of numbers with two or more elements. The first two elements are _longitude_ and _latitude_, precisely in that order. _Altitude/Elevation_ is an optional third element. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.1) for details.", + "type": "array", + "items": { + "type": "number", + "format": "double" + } + }, + "GeoJsonLinearRing": { + "description": "Though a linear ring is not explicitly represented as a GeoJSON geometry type, it helps in defining the polygon as an array of linear rings. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.6) for details.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonPosition" + } + }, + "GeoJsonObject": { + "description": "A valid `GeoJSON` object. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3) for details.", + "type": "object", + "discriminator": "type", + "required": [ + "type" + ], + "properties": { + "type": { + "description": "Specifies the `GeoJSON` type. Must be one of the nine valid GeoJSON object types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon, GeometryCollection, Feature and FeatureCollection.", + "type": "string", + "enum": [ + "Point", + "MultiPoint", + "LineString", + "MultiLineString", + "Polygon", + "MultiPolygon", + "GeometryCollection", + "Feature", + "FeatureCollection" + ], + "x-ms-enum": { + "name": "GeoJsonObjectType", + "modelAsString": true, + "values": [ + { + "value": "Point", + "description": "`GeoJSON Point` geometry.", + "name": "GeoJsonPoint" + }, + { + "value": "MultiPoint", + "description": "`GeoJSON MultiPoint` geometry.", + "name": "GeoJsonMultiPoint" + }, + { + "value": "LineString", + "description": "`GeoJSON LineString` geometry.", + "name": "GeoJsonLineString" + }, + { + "value": "MultiLineString", + "description": "`GeoJSON MultiLineString` geometry.", + "name": "GeoJsonMultiLineString" + }, + { + "value": "Polygon", + "description": "`GeoJSON Polygon` geometry.", + "name": "GeoJsonPolygon" + }, + { + "value": "MultiPolygon", + "description": "`GeoJSON MultiPolygon` geometry.", + "name": "GeoJsonMultiPolygon" + }, + { + "value": "GeometryCollection", + "description": "`GeoJSON GeometryCollection` geometry.", + "name": "GeoJsonGeometryCollection" + }, + { + "value": "Feature", + "description": "`GeoJSON Feature` object.", + "name": "GeoJsonFeature" + }, + { + "value": "FeatureCollection", + "description": "`GeoJSON FeatureCollection` object.", + "name": "GeoJsonFeatureCollection" + } + ] + } + } + } + }, + "GeoJsonGeometry": { + "description": "A valid `GeoJSON` geometry object. The type must be one of the seven valid GeoJSON geometry types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon and GeometryCollection. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1) for details.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonObject" + } + ] + }, + "GeoJsonPoint": { + "description": "A valid `GeoJSON Point` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.2) for details.", + "x-ms-discriminator-value": "Point", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonPointData" + } + ] + }, + "GeoJsonPointData": { + "description": "Data contained by a `GeoJson Point`.", + "type": "object", + "properties": { + "coordinates": { + "$ref": "#/definitions/GeoJsonPosition" + } + }, + "required": [ + "coordinates" + ] + }, + "GeoJsonMultiPoint": { + "description": "A valid `GeoJSON MultiPoint` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.3) for details.", + "x-ms-discriminator-value": "MultiPoint", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonMultiPointData" + } + ] + }, + "GeoJsonMultiPointData": { + "type": "object", + "description": "Data contained by a `GeoJson MultiPoint`.", + "properties": { + "coordinates": { + "description": "Coordinates for the `GeoJson MultiPoint` geometry.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonPosition" + } + } + }, + "required": [ + "coordinates" + ] + }, + "GeoJsonLineString": { + "description": "A valid `GeoJSON LineString` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.4) for details.", + "x-ms-discriminator-value": "LineString", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonLineStringData" + } + ] + }, + "GeoJsonLineStringData": { + "type": "object", + "properties": { + "coordinates": { + "description": "Coordinates for the `GeoJson LineString` geometry.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonPosition" + } + } + }, + "required": [ + "coordinates" + ] + }, + "GeoJsonMultiLineString": { + "description": "A valid `GeoJSON MultiLineString` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.5) for details.", + "x-ms-discriminator-value": "MultiLineString", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonMultiLineStringData" + } + ] + }, + "GeoJsonMultiLineStringData": { + "type": "object", + "properties": { + "coordinates": { + "description": "Coordinates for the `GeoJson MultiLineString` geometry.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonLinearRing" + } + } + }, + "required": [ + "coordinates" + ] + }, + "GeoJsonPolygon": { + "description": "A valid `GeoJSON Polygon` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.6) for details.", + "x-ms-discriminator-value": "Polygon", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonPolygonData" + } + ] + }, + "GeoJsonPolygonData": { + "type": "object", + "properties": { + "coordinates": { + "description": "Coordinates for the `GeoJson Polygon` geometry type.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonLinearRing" + } + } + }, + "required": [ + "coordinates" + ] + }, + "GeoJsonMultiPolygon": { + "description": "A valid `GeoJSON MultiPolygon` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.7) for details.", + "x-ms-discriminator-value": "MultiPolygon", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonMultiPolygonData" + } + ] + }, + "GeoJsonMultiPolygonData": { + "type": "object", + "properties": { + "coordinates": { + "description": "Contains a list of valid `GeoJSON Polygon` objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude).", + "type": "array", + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonLinearRing" + } + } + } + }, + "required": [ + "coordinates" + ] + }, + "GeoJsonGeometryCollection": { + "description": "A valid `GeoJSON GeometryCollection` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.8) for details.", + "x-ms-discriminator-value": "GeometryCollection", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonGeometryCollectionData" + } + ] + }, + "GeoJsonGeometryCollectionData": { + "type": "object", + "properties": { + "geometries": { + "description": "Contains a list of valid `GeoJSON` geometry objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude).", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonGeometry" + } + } + }, + "required": [ + "geometries" + ] + }, + "GeoJsonFeature": { + "description": "A valid `GeoJSON Feature` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.2) for details.", + "x-ms-discriminator-value": "Feature", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonObject" + }, + { + "$ref": "#/definitions/GeoJsonFeatureData" + } + ] + }, + "GeoJsonFeatureData": { + "type": "object", + "properties": { + "geometry": { + "$ref": "#/definitions/GeoJsonGeometry" + }, + "properties": { + "description": "Properties can contain any additional metadata about the `Feature`. Value can be any JSON object or a JSON null value", + "type": "object" + }, + "id": { + "description": "Identifier for the feature.", + "type": "string" + }, + "featureType": { + "description": "The type of the feature. The value depends on the data model the current feature is part of. Some data models may have an empty value.", + "type": "string" + } + }, + "required": [ + "geometry" + ] + }, + "GeoJsonFeatureCollection": { + "description": "A valid `GeoJSON FeatureCollection` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.3) for details.", + "x-ms-discriminator-value": "FeatureCollection", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonObject" + }, + { + "$ref": "#/definitions/GeoJsonFeatureCollectionData" + } + ] + }, + "GeoJsonFeatureCollectionData": { + "type": "object", + "properties": { + "features": { + "description": "Contains a list of valid `GeoJSON Feature` objects.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonFeature" + } + } + }, + "required": [ + "features" + ] + } + }, + "parameters": { + "SubscriptionKey": { + "name": "subscription-key", + "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", + "type": "string", + "in": "query", + "required": false, + "x-ms-parameter-location": "client" + }, + "ApiVersion": { + "name": "api-version", + "description": "Version number of Azure Maps API.", + "type": "string", + "in": "query", + "required": true, + "default": "1.0", + "x-ms-parameter-location": "client" + }, + "ApiVersionV2": { + "name": "api-version", + "description": "Version number of Azure Maps API.", + "type": "string", + "in": "query", + "required": true, + "default": "2.0", + "x-ms-parameter-location": "client" + }, + "ClientId": { + "name": "x-ms-client-id", + "description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.", + "type": "string", + "in": "header", + "required": false, + "x-ms-parameter-location": "client" + }, + "JsonFormat": { + "name": "format", + "description": "Desired format of the response. Only `json` format is supported.", + "type": "string", + "in": "path", + "required": true, + "enum": [ + "json" + ], + "x-ms-enum": { + "name": "JsonFormat", + "modelAsString": true, + "values": [ + { + "value": "json", + "description": "[The JavaScript Object Notation Data Interchange Format](https://tools.ietf.org/html/rfc8259)" + } + ] + }, + "x-ms-parameter-location": "method" + } + }, + "responses": { + "200Async": { + "description": "The operation's status response.", + "schema": { + "$ref": "#/definitions/LongRunningOperationResult" + } + }, + "200AsyncV2": { + "description": "The operation is running or complete. If the operation was successful, use the Resource-Location header to obtain the path to the result.", + "schema": { + "$ref": "#/definitions/LongRunningOperationResult" + }, + "headers": { + "Resource-Location": { + "type": "string", + "description": "If successful, a URI where details on the newly created resource can be found." + } + } + }, + "201Async": { + "description": "The resource has been created successfully.", + "schema": { + "$ref": "#/definitions/LongRunningOperationResult" + }, + "headers": { + "Location": { + "type": "string", + "description": "A URI where details on the newly created resource can be found." + } + } + }, + "202Async": { + "description": "**Supported only for async request.**\nRequest Accepted: The request has been accepted for processing. Please use the URL in the Location Header to retry or access the results.", + "headers": { + "Location": { + "type": "string", + "description": "New URL to check for the results of the long running process." + } + } + }, + "202AsyncV2": { + "description": "Request Accepted: The request has been accepted for processing. Please use the URL in the Operation-Location Header to obtain status.", + "headers": { + "Operation-Location": { + "type": "string", + "description": "New URL to check for the results of the long running process." + } + } + }, + "400": { + "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", + "schema": { + "$ref": "../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + }, + "401": { + "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", + "schema": { + "$ref": "../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "headers": { + "WWW-Authenticate": { + "type": "string", + "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" + } + }, + "x-ms-error-response": true + }, + "403": { + "description": "Permission, capacity, or authentication issues.", + "schema": { + "$ref": "../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + }, + "404": { + "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", + "schema": { + "$ref": "../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + }, + "409": { + "description": "The request could not be completed due to a conflict with the current state of the resource. Likely caused by a parallel update to the same resource.", + "schema": { + "$ref": "../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + }, + "409StorageLimit": { + "description": "The [data storage limit](https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/azure-subscription-service-limits#azure-maps-limits) is reached on the Azure Maps account. You can always use the [Data Delete API](https://docs.microsoft.com/en-us/rest/api/maps/data/deletepreview) to delete old/unused content and create space for new uploads.", + "schema": { + "$ref": "../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + }, + "500": { + "description": "An error occurred while processing the request. Please try again later.", + "schema": { + "$ref": "../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + } + }, + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "scopes": { + "user_impersonation": "Impersonates a user's Azure Active Directory account." + } + }, + "apiKeyQuery": { + "type": "apiKey", + "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", + "name": "subscription-key", + "in": "query" + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + }, + { + "apiKeyQuery": [] + } + ] +} From 56351d4442fef9f28974b5ebb18392ed69a0a9d0 Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Mon, 3 May 2021 11:08:48 -0700 Subject: [PATCH 093/210] Use different tag format to not relate with API version used --- .../Common/preview/1.0/common.json | 716 ------------------ specification/maps/data-plane/readme.go.md | 8 +- specification/maps/data-plane/readme.md | 8 +- .../maps/data-plane/readme.python.md | 4 +- 4 files changed, 10 insertions(+), 726 deletions(-) delete mode 100644 specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json deleted file mode 100644 index 675e55f34058..000000000000 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ /dev/null @@ -1,716 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Azure Maps Common Types", - "version": "1.0" - }, - "host": "atlas.microsoft.com", - "schemes": [ - "https" - ], - "consumes": [], - "produces": [ - "application/json", - "application/xml" - ], - "paths": {}, - "definitions": { - "LongRunningOperationResult": { - "description": "The response model for a Long-Running Operations API.", - "type": "object", - "properties": { - "operationId": { - "description": "The Id for this long-running operation.", - "type": "string" - }, - "status": { - "description": "The status state of the request.", - "type": "string", - "enum": [ - "NotStarted", - "Running", - "Failed", - "Succeeded" - ], - "x-ms-enum": { - "name": "LroStatus", - "modelAsString": true, - "values": [ - { - "value": "NotStarted", - "description": "The request has not started processing yet." - }, - { - "value": "Running", - "description": "The request has started processing." - }, - { - "value": "Failed", - "description": "The request has one or more failures." - }, - { - "value": "Succeeded", - "description": "The request has successfully completed." - } - ] - }, - "readOnly": true - }, - "created": { - "description": "The created timestamp.", - "type": "string", - "readOnly": true - }, - "resourceLocation": { - "description": "The location URI for details about the created resource. This is only provided when the request was successfully completed.", - "type": "string", - "readOnly": true - }, - "error": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" - }, - "warning": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" - } - } - }, - "BatchRequestBody": { - "description": "This type represents the request body for the Batch service.", - "type": "object", - "properties": { - "batchItems": { - "description": "The list of queries to process.", - "type": "array", - "items": { - "description": "Batch Query object", - "type": "object", - "properties": { - "query": { - "description": "Partial query string.", - "type": "string", - "example": "?query=One, Microsoft Way, Redmond, WA 98052&limit=3" - } - } - } - } - } - }, - "BatchResponse": { - "description": "This object is returned from a successful Batch service call. Extend with 'batchItems' property.", - "type": "object", - "properties": { - "summary": { - "description": "Summary for the batch request", - "type": "object", - "readOnly": true, - "properties": { - "successfulRequests": { - "description": "Number of successful requests in the batch", - "type": "integer", - "readOnly": true - }, - "totalRequests": { - "description": "Total number of requests in the batch", - "type": "integer", - "readOnly": true - } - } - } - } - }, - "BatchItem": { - "description": "An item returned from Batch API. Extend with 'response' property.", - "type": "object", - "properties": { - "statusCode": { - "description": "HTTP request status code.", - "type": "number", - "readOnly": true, - "example": 200 - } - } - }, - "CoordinatesPair": { - "description": "A location represented as a latitude and longitude.", - "type": "object", - "properties": { - "latitude": { - "description": "Latitude property", - "type": "number", - "format": "double" - }, - "longitude": { - "description": "Longitude property", - "type": "number", - "format": "double" - } - } - }, - "CoordinatesPairAbbreviated": { - "description": "A location represented as a latitude and longitude using short names 'lat' & 'lon'.", - "type": "object", - "properties": { - "lat": { - "description": "Latitude property", - "type": "number", - "format": "double" - }, - "lon": { - "description": "Longitude property", - "type": "number", - "format": "double" - } - } - }, - "GeoJsonPosition": { - "description": "A `Position` is an array of numbers with two or more elements. The first two elements are _longitude_ and _latitude_, precisely in that order. _Altitude/Elevation_ is an optional third element. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.1) for details.", - "type": "array", - "items": { - "type": "number", - "format": "double" - } - }, - "GeoJsonLinearRing": { - "description": "Though a linear ring is not explicitly represented as a GeoJSON geometry type, it helps in defining the polygon as an array of linear rings. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.6) for details.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonPosition" - } - }, - "GeoJsonObject": { - "description": "A valid `GeoJSON` object. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3) for details.", - "type": "object", - "discriminator": "type", - "required": [ - "type" - ], - "properties": { - "type": { - "description": "Specifies the `GeoJSON` type. Must be one of the nine valid GeoJSON object types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon, GeometryCollection, Feature and FeatureCollection.", - "type": "string", - "enum": [ - "Point", - "MultiPoint", - "LineString", - "MultiLineString", - "Polygon", - "MultiPolygon", - "GeometryCollection", - "Feature", - "FeatureCollection" - ], - "x-ms-enum": { - "name": "GeoJsonObjectType", - "modelAsString": true, - "values": [ - { - "value": "Point", - "description": "`GeoJSON Point` geometry.", - "name": "GeoJsonPoint" - }, - { - "value": "MultiPoint", - "description": "`GeoJSON MultiPoint` geometry.", - "name": "GeoJsonMultiPoint" - }, - { - "value": "LineString", - "description": "`GeoJSON LineString` geometry.", - "name": "GeoJsonLineString" - }, - { - "value": "MultiLineString", - "description": "`GeoJSON MultiLineString` geometry.", - "name": "GeoJsonMultiLineString" - }, - { - "value": "Polygon", - "description": "`GeoJSON Polygon` geometry.", - "name": "GeoJsonPolygon" - }, - { - "value": "MultiPolygon", - "description": "`GeoJSON MultiPolygon` geometry.", - "name": "GeoJsonMultiPolygon" - }, - { - "value": "GeometryCollection", - "description": "`GeoJSON GeometryCollection` geometry.", - "name": "GeoJsonGeometryCollection" - }, - { - "value": "Feature", - "description": "`GeoJSON Feature` object.", - "name": "GeoJsonFeature" - }, - { - "value": "FeatureCollection", - "description": "`GeoJSON FeatureCollection` object.", - "name": "GeoJsonFeatureCollection" - } - ] - } - } - } - }, - "GeoJsonGeometry": { - "description": "A valid `GeoJSON` geometry object. The type must be one of the seven valid GeoJSON geometry types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon and GeometryCollection. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1) for details.", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonObject" - } - ] - }, - "GeoJsonPoint": { - "description": "A valid `GeoJSON Point` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.2) for details.", - "x-ms-discriminator-value": "Point", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonPointData" - } - ] - }, - "GeoJsonPointData": { - "description": "Data contained by a `GeoJson Point`.", - "type": "object", - "properties": { - "coordinates": { - "$ref": "#/definitions/GeoJsonPosition" - } - }, - "required": [ - "coordinates" - ] - }, - "GeoJsonMultiPoint": { - "description": "A valid `GeoJSON MultiPoint` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.3) for details.", - "x-ms-discriminator-value": "MultiPoint", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonMultiPointData" - } - ] - }, - "GeoJsonMultiPointData": { - "type": "object", - "description": "Data contained by a `GeoJson MultiPoint`.", - "properties": { - "coordinates": { - "description": "Coordinates for the `GeoJson MultiPoint` geometry.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonPosition" - } - } - }, - "required": [ - "coordinates" - ] - }, - "GeoJsonLineString": { - "description": "A valid `GeoJSON LineString` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.4) for details.", - "x-ms-discriminator-value": "LineString", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonLineStringData" - } - ] - }, - "GeoJsonLineStringData": { - "type": "object", - "properties": { - "coordinates": { - "description": "Coordinates for the `GeoJson LineString` geometry.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonPosition" - } - } - }, - "required": [ - "coordinates" - ] - }, - "GeoJsonMultiLineString": { - "description": "A valid `GeoJSON MultiLineString` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.5) for details.", - "x-ms-discriminator-value": "MultiLineString", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonMultiLineStringData" - } - ] - }, - "GeoJsonMultiLineStringData": { - "type": "object", - "properties": { - "coordinates": { - "description": "Coordinates for the `GeoJson MultiLineString` geometry.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonLinearRing" - } - } - }, - "required": [ - "coordinates" - ] - }, - "GeoJsonPolygon": { - "description": "A valid `GeoJSON Polygon` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.6) for details.", - "x-ms-discriminator-value": "Polygon", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonPolygonData" - } - ] - }, - "GeoJsonPolygonData": { - "type": "object", - "properties": { - "coordinates": { - "description": "Coordinates for the `GeoJson Polygon` geometry type.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonLinearRing" - } - } - }, - "required": [ - "coordinates" - ] - }, - "GeoJsonMultiPolygon": { - "description": "A valid `GeoJSON MultiPolygon` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.7) for details.", - "x-ms-discriminator-value": "MultiPolygon", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonMultiPolygonData" - } - ] - }, - "GeoJsonMultiPolygonData": { - "type": "object", - "properties": { - "coordinates": { - "description": "Contains a list of valid `GeoJSON Polygon` objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude).", - "type": "array", - "items": { - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonLinearRing" - } - } - } - }, - "required": [ - "coordinates" - ] - }, - "GeoJsonGeometryCollection": { - "description": "A valid `GeoJSON GeometryCollection` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.8) for details.", - "x-ms-discriminator-value": "GeometryCollection", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonGeometryCollectionData" - } - ] - }, - "GeoJsonGeometryCollectionData": { - "type": "object", - "properties": { - "geometries": { - "description": "Contains a list of valid `GeoJSON` geometry objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude).", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonGeometry" - } - } - }, - "required": [ - "geometries" - ] - }, - "GeoJsonFeature": { - "description": "A valid `GeoJSON Feature` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.2) for details.", - "x-ms-discriminator-value": "Feature", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonObject" - }, - { - "$ref": "#/definitions/GeoJsonFeatureData" - } - ] - }, - "GeoJsonFeatureData": { - "type": "object", - "properties": { - "geometry": { - "$ref": "#/definitions/GeoJsonGeometry" - }, - "properties": { - "description": "Properties can contain any additional metadata about the `Feature`. Value can be any JSON object or a JSON null value", - "type": "object" - }, - "id": { - "description": "Identifier for the feature.", - "type": "string" - }, - "featureType": { - "description": "The type of the feature. The value depends on the data model the current feature is part of. Some data models may have an empty value.", - "type": "string" - } - }, - "required": [ - "geometry" - ] - }, - "GeoJsonFeatureCollection": { - "description": "A valid `GeoJSON FeatureCollection` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.3) for details.", - "x-ms-discriminator-value": "FeatureCollection", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonObject" - }, - { - "$ref": "#/definitions/GeoJsonFeatureCollectionData" - } - ] - }, - "GeoJsonFeatureCollectionData": { - "type": "object", - "properties": { - "features": { - "description": "Contains a list of valid `GeoJSON Feature` objects.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonFeature" - } - } - }, - "required": [ - "features" - ] - } - }, - "parameters": { - "SubscriptionKey": { - "name": "subscription-key", - "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", - "type": "string", - "in": "query", - "required": false, - "x-ms-parameter-location": "client" - }, - "ApiVersion": { - "name": "api-version", - "description": "Version number of Azure Maps API.", - "type": "string", - "in": "query", - "required": true, - "default": "1.0", - "x-ms-parameter-location": "client" - }, - "ApiVersionV2": { - "name": "api-version", - "description": "Version number of Azure Maps API.", - "type": "string", - "in": "query", - "required": true, - "default": "2.0", - "x-ms-parameter-location": "client" - }, - "ClientId": { - "name": "x-ms-client-id", - "description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.", - "type": "string", - "in": "header", - "required": false, - "x-ms-parameter-location": "client" - }, - "JsonFormat": { - "name": "format", - "description": "Desired format of the response. Only `json` format is supported.", - "type": "string", - "in": "path", - "required": true, - "enum": [ - "json" - ], - "x-ms-enum": { - "name": "JsonFormat", - "modelAsString": true, - "values": [ - { - "value": "json", - "description": "[The JavaScript Object Notation Data Interchange Format](https://tools.ietf.org/html/rfc8259)" - } - ] - }, - "x-ms-parameter-location": "method" - } - }, - "responses": { - "200Async": { - "description": "The operation's status response.", - "schema": { - "$ref": "#/definitions/LongRunningOperationResult" - } - }, - "200AsyncV2": { - "description": "The operation is running or complete. If the operation was successful, use the Resource-Location header to obtain the path to the result.", - "schema": { - "$ref": "#/definitions/LongRunningOperationResult" - }, - "headers": { - "Resource-Location": { - "type": "string", - "description": "If successful, a URI where details on the newly created resource can be found." - } - } - }, - "201Async": { - "description": "The resource has been created successfully.", - "schema": { - "$ref": "#/definitions/LongRunningOperationResult" - }, - "headers": { - "Location": { - "type": "string", - "description": "A URI where details on the newly created resource can be found." - } - } - }, - "202Async": { - "description": "**Supported only for async request.**\nRequest Accepted: The request has been accepted for processing. Please use the URL in the Location Header to retry or access the results.", - "headers": { - "Location": { - "type": "string", - "description": "New URL to check for the results of the long running process." - } - } - }, - "202AsyncV2": { - "description": "Request Accepted: The request has been accepted for processing. Please use the URL in the Operation-Location Header to obtain status.", - "headers": { - "Operation-Location": { - "type": "string", - "description": "New URL to check for the results of the long running process." - } - } - }, - "400": { - "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "401": { - "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "headers": { - "WWW-Authenticate": { - "type": "string", - "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" - } - }, - "x-ms-error-response": true - }, - "403": { - "description": "Permission, capacity, or authentication issues.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "404": { - "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "409": { - "description": "The request could not be completed due to a conflict with the current state of the resource. Likely caused by a parallel update to the same resource.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "409StorageLimit": { - "description": "The [data storage limit](https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/azure-subscription-service-limits#azure-maps-limits) is reached on the Azure Maps account. You can always use the [Data Delete API](https://docs.microsoft.com/en-us/rest/api/maps/data/deletepreview) to delete old/unused content and create space for new uploads.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "500": { - "description": "An error occurred while processing the request. Please try again later.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - } - }, - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", - "scopes": { - "user_impersonation": "Impersonates a user's Azure Active Directory account." - } - }, - "apiKeyQuery": { - "type": "apiKey", - "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", - "name": "subscription-key", - "in": "query" - } - }, - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - }, - { - "apiKeyQuery": [] - } - ] -} diff --git a/specification/maps/data-plane/readme.go.md b/specification/maps/data-plane/readme.go.md index c2b94b7df94c..89b16a565912 100644 --- a/specification/maps/data-plane/readme.go.md +++ b/specification/maps/data-plane/readme.go.md @@ -13,14 +13,14 @@ go: ``` yaml $(go) && $(multiapi) batch: - - tag: package-1.0-preview + - tag: package-2021-05-03-preview ``` -### Tag: package-1.0-preview and go +### Tag: package-2021-05-03-preview and go -These settings apply only when `--tag=package-1.0-preview --go` is specified on the command line. +These settings apply only when `--tag=package-2021-05-03-preview --go` is specified on the command line. Please also specify `--go-sdk-folder=`. -``` yaml $(tag) == 'package-1.0-preview' && $(go) +``` yaml $(tag) == 'package-2021-05-03-preview' && $(go) output-folder: $(go-sdk-folder)/services/preview/maps/1.0/$(namespace) ``` \ No newline at end of file diff --git a/specification/maps/data-plane/readme.md b/specification/maps/data-plane/readme.md index e0e90bd9ab53..5549655694ee 100644 --- a/specification/maps/data-plane/readme.md +++ b/specification/maps/data-plane/readme.md @@ -27,7 +27,7 @@ These are the global settings for MapsClient. ``` yaml title: MapsClient openapi-type: data-plane -tag: package-preview-2.0 +tag: package-2021-05-03-preview ``` ### Suppression @@ -41,11 +41,11 @@ directive: ``` -### Tag: package-preview-2.0 +### Tag: package-2021-05-03-preview -These settings apply only when `--tag=package-preview-2.0` is specified on the command line. +These settings apply only when `--tag=package-2021-05-03-preview` is specified on the command line. -```yaml $(tag) == 'package-preview-2.0' +```yaml $(tag) == 'package-2021-05-03-preview' input-file: - Microsoft.Maps/Alias/preview/2.0/alias.json - Microsoft.Maps/Data/preview/2.0/data.json diff --git a/specification/maps/data-plane/readme.python.md b/specification/maps/data-plane/readme.python.md index 09a0794fc81f..90c307b2873b 100644 --- a/specification/maps/data-plane/readme.python.md +++ b/specification/maps/data-plane/readme.python.md @@ -10,7 +10,7 @@ python: license-header: MICROSOFT_MIT_NO_VERSION namespace: azure.maps.service package-name: azure-maps-service - package-version: 1.0-preview + package-version: 2021-05-03-preview clear-output-folder: true ``` ``` yaml $(python) && $(track2) @@ -18,7 +18,7 @@ python-mode: create license-header: MICROSOFT_MIT_NO_VERSION namespace: azure.maps.service package-name: azure-maps-service -package-version: 1.0-preview +package-version: 2021-05-03-preview clear-output-folder: true ``` ``` yaml $(python) && $(python-mode) == 'asdf' && !$(track2) From c5ca85e3edc3065a4cb037174933c01384fa5777 Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Mon, 3 May 2021 12:14:47 -0700 Subject: [PATCH 094/210] Use dummy trick to make ApiDocPreview and Avocado work --- .../Alias/preview/1.0/alias.json | 56 +- .../Alias/preview/2.0/alias.json | 70 +- .../{ => Common/preview/1.0}/common.json | 20 +- .../Common/preview/2.0/common.json | 721 ++++++++++++++++++ .../DEM/preview/1.0/elevation.json | 96 +-- .../Microsoft.Maps/Data/preview/1.0/data.json | 86 +-- .../Microsoft.Maps/Data/preview/2.0/data.json | 86 +-- .../Dataset/preview/1.0/dataset.json | 68 +- .../Dataset/preview/2.0/dataset.json | 68 +- .../preview/1.0/dwgconversion.json | 54 +- .../preview/2.0/dwgconversion.json | 76 +- .../preview/1.0/featurestate.json | 114 +-- .../preview/2.0/featurestate.json | 114 +-- .../Geolocation/preview/1.0/geolocation.json | 18 +- .../Mobility/preview/1.0/mobility.json | 160 ++-- .../Render/preview/1.0/render.json | 128 ++-- .../Render/preview/2.0/render.json | 16 +- .../Route/preview/1.0/route.json | 110 +-- .../Search/preview/1.0/search.json | 294 +++---- .../Spatial/preview/1.0/spatial.json | 172 ++--- .../Tileset/preview/1.0/tileset.json | 54 +- .../Tileset/preview/2.0/tileset.json | 76 +- .../Timezone/preview/1.0/timezone.json | 108 +-- .../Traffic/preview/1.0/traffic.json | 82 +- .../Microsoft.Maps/WFS/preview/1.0/wfs.json | 128 ++-- .../Microsoft.Maps/WFS/preview/2.0/wfs.json | 145 ++-- .../Weather/preview/1.0/weather.json | 144 ++-- 27 files changed, 1990 insertions(+), 1274 deletions(-) rename specification/maps/data-plane/Microsoft.Maps/{ => Common/preview/1.0}/common.json (96%) create mode 100644 specification/maps/data-plane/Microsoft.Maps/Common/preview/2.0/common.json diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json index 4d6e2b20a3bf..362db71c70f6 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json @@ -80,10 +80,10 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" } ], "responses": { @@ -94,19 +94,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -121,10 +121,10 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" } ], "responses": { @@ -135,19 +135,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -164,10 +164,10 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/AliasId" @@ -181,19 +181,19 @@ "description": "Alias was assigned successfully." }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -210,10 +210,10 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/AliasId" @@ -224,19 +224,19 @@ "description": "Alias delete request completed successfully. The content for `aliasId` was deleted on the server." }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json index 0a78758c0045..a22127cf37a7 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json @@ -115,10 +115,10 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/CreateCreatorDataItemId" @@ -138,19 +138,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } }, @@ -165,10 +165,10 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" } ], "responses": { @@ -179,19 +179,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } } @@ -211,10 +211,10 @@ "$ref": "#/parameters/AliasId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/AssignCreatorDataItemId" @@ -228,19 +228,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } }, @@ -258,10 +258,10 @@ "$ref": "#/parameters/AliasId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" } ], "responses": { @@ -269,19 +269,19 @@ "description": "Alias delete request completed successfully. The content for `aliasId` was deleted on the server." }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } }, @@ -299,10 +299,10 @@ "$ref": "#/parameters/AliasId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" } ], "responses": { @@ -313,19 +313,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json similarity index 96% rename from specification/maps/data-plane/Microsoft.Maps/common.json rename to specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index ddd4ee059b91..675e55f34058 100644 --- a/specification/maps/data-plane/Microsoft.Maps/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -2,7 +2,7 @@ "swagger": "2.0", "info": { "title": "Azure Maps Common Types", - "version": "2.0" + "version": "1.0" }, "host": "atlas.microsoft.com", "schemes": [ @@ -67,10 +67,10 @@ "readOnly": true }, "error": { - "$ref": "../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" }, "warning": { - "$ref": "../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" } } }, @@ -633,14 +633,14 @@ "400": { "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", "schema": { - "$ref": "../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" }, "x-ms-error-response": true }, "401": { "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", "schema": { - "$ref": "../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" }, "headers": { "WWW-Authenticate": { @@ -653,35 +653,35 @@ "403": { "description": "Permission, capacity, or authentication issues.", "schema": { - "$ref": "../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" }, "x-ms-error-response": true }, "404": { "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", "schema": { - "$ref": "../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" }, "x-ms-error-response": true }, "409": { "description": "The request could not be completed due to a conflict with the current state of the resource. Likely caused by a parallel update to the same resource.", "schema": { - "$ref": "../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" }, "x-ms-error-response": true }, "409StorageLimit": { "description": "The [data storage limit](https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/azure-subscription-service-limits#azure-maps-limits) is reached on the Azure Maps account. You can always use the [Data Delete API](https://docs.microsoft.com/en-us/rest/api/maps/data/deletepreview) to delete old/unused content and create space for new uploads.", "schema": { - "$ref": "../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" }, "x-ms-error-response": true }, "500": { "description": "An error occurred while processing the request. Please try again later.", "schema": { - "$ref": "../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" }, "x-ms-error-response": true } diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/2.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/2.0/common.json new file mode 100644 index 000000000000..f2af932e1a6f --- /dev/null +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/2.0/common.json @@ -0,0 +1,721 @@ +{ + "swagger": "2.0", + "info": { + "title": "Azure Maps Common Types", + "version": "2.0" + }, + "host": "atlas.microsoft.com", + "schemes": [ + "https" + ], + "consumes": [], + "produces": [ + "application/json", + "application/xml" + ], + "paths": {}, + "definitions": { + "LongRunningOperationResult": { + "description": "The response model for a Long-Running Operations API.", + "type": "object", + "properties": { + "operationId": { + "description": "The Id for this long-running operation.", + "type": "string" + }, + "status": { + "description": "The status state of the request.", + "type": "string", + "enum": [ + "NotStarted", + "Running", + "Failed", + "Succeeded" + ], + "x-ms-enum": { + "name": "LroStatus", + "modelAsString": true, + "values": [ + { + "value": "NotStarted", + "description": "The request has not started processing yet." + }, + { + "value": "Running", + "description": "The request has started processing." + }, + { + "value": "Failed", + "description": "The request has one or more failures." + }, + { + "value": "Succeeded", + "description": "The request has successfully completed." + } + ] + }, + "readOnly": true + }, + "created": { + "description": "The created timestamp.", + "type": "string", + "readOnly": true + }, + "resourceLocation": { + "description": "The location URI for details about the created resource. This is only provided when the request was successfully completed.", + "type": "string", + "readOnly": true + }, + "error": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" + }, + "warning": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" + } + } + }, + "BatchRequestBody": { + "description": "This type represents the request body for the Batch service.", + "type": "object", + "properties": { + "batchItems": { + "description": "The list of queries to process.", + "type": "array", + "items": { + "description": "Batch Query object", + "type": "object", + "properties": { + "query": { + "description": "Partial query string.", + "type": "string", + "example": "?query=One, Microsoft Way, Redmond, WA 98052&limit=3" + } + } + } + } + } + }, + "BatchResponse": { + "description": "This object is returned from a successful Batch service call. Extend with 'batchItems' property.", + "type": "object", + "properties": { + "summary": { + "description": "Summary for the batch request", + "type": "object", + "readOnly": true, + "properties": { + "successfulRequests": { + "description": "Number of successful requests in the batch", + "type": "integer", + "readOnly": true + }, + "totalRequests": { + "description": "Total number of requests in the batch", + "type": "integer", + "readOnly": true + } + } + } + } + }, + "BatchItem": { + "description": "An item returned from Batch API. Extend with 'response' property.", + "type": "object", + "properties": { + "statusCode": { + "description": "HTTP request status code.", + "type": "number", + "readOnly": true, + "example": 200 + } + } + }, + "CoordinatesPair": { + "description": "A location represented as a latitude and longitude.", + "type": "object", + "properties": { + "latitude": { + "description": "Latitude property", + "type": "number", + "format": "double" + }, + "longitude": { + "description": "Longitude property", + "type": "number", + "format": "double" + } + } + }, + "CoordinatesPairAbbreviated": { + "description": "A location represented as a latitude and longitude using short names 'lat' & 'lon'.", + "type": "object", + "properties": { + "lat": { + "description": "Latitude property", + "type": "number", + "format": "double" + }, + "lon": { + "description": "Longitude property", + "type": "number", + "format": "double" + } + } + }, + "GeoJsonPosition": { + "description": "A `Position` is an array of numbers with two or more elements. The first two elements are _longitude_ and _latitude_, precisely in that order. _Altitude/Elevation_ is an optional third element. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.1) for details.", + "type": "array", + "items": { + "type": "number", + "format": "double" + } + }, + "GeoJsonLinearRing": { + "description": "Though a linear ring is not explicitly represented as a GeoJSON geometry type, it helps in defining the polygon as an array of linear rings. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.6) for details.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonPosition" + } + }, + "GeoJsonObject": { + "description": "A valid `GeoJSON` object. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3) for details.", + "type": "object", + "discriminator": "type", + "required": [ + "type" + ], + "properties": { + "type": { + "description": "Specifies the `GeoJSON` type. Must be one of the nine valid GeoJSON object types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon, GeometryCollection, Feature and FeatureCollection.", + "type": "string", + "enum": [ + "Point", + "MultiPoint", + "LineString", + "MultiLineString", + "Polygon", + "MultiPolygon", + "GeometryCollection", + "Feature", + "FeatureCollection" + ], + "x-ms-enum": { + "name": "GeoJsonObjectType", + "modelAsString": true, + "values": [ + { + "value": "Point", + "description": "`GeoJSON Point` geometry.", + "name": "GeoJsonPoint" + }, + { + "value": "MultiPoint", + "description": "`GeoJSON MultiPoint` geometry.", + "name": "GeoJsonMultiPoint" + }, + { + "value": "LineString", + "description": "`GeoJSON LineString` geometry.", + "name": "GeoJsonLineString" + }, + { + "value": "MultiLineString", + "description": "`GeoJSON MultiLineString` geometry.", + "name": "GeoJsonMultiLineString" + }, + { + "value": "Polygon", + "description": "`GeoJSON Polygon` geometry.", + "name": "GeoJsonPolygon" + }, + { + "value": "MultiPolygon", + "description": "`GeoJSON MultiPolygon` geometry.", + "name": "GeoJsonMultiPolygon" + }, + { + "value": "GeometryCollection", + "description": "`GeoJSON GeometryCollection` geometry.", + "name": "GeoJsonGeometryCollection" + }, + { + "value": "Feature", + "description": "`GeoJSON Feature` object.", + "name": "GeoJsonFeature" + }, + { + "value": "FeatureCollection", + "description": "`GeoJSON FeatureCollection` object.", + "name": "GeoJsonFeatureCollection" + } + ] + } + } + } + }, + "GeoJsonGeometry": { + "description": "A valid `GeoJSON` geometry object. The type must be one of the seven valid GeoJSON geometry types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon and GeometryCollection. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1) for details.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonObject" + } + ] + }, + "GeoJsonPoint": { + "description": "A valid `GeoJSON Point` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.2) for details.", + "x-ms-discriminator-value": "Point", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonPointData" + } + ] + }, + "GeoJsonPointData": { + "description": "Data contained by a `GeoJson Point`.", + "type": "object", + "properties": { + "coordinates": { + "$ref": "#/definitions/GeoJsonPosition" + } + }, + "required": [ + "coordinates" + ] + }, + "GeoJsonMultiPoint": { + "description": "A valid `GeoJSON MultiPoint` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.3) for details.", + "x-ms-discriminator-value": "MultiPoint", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonMultiPointData" + } + ] + }, + "GeoJsonMultiPointData": { + "type": "object", + "description": "Data contained by a `GeoJson MultiPoint`.", + "properties": { + "coordinates": { + "description": "Coordinates for the `GeoJson MultiPoint` geometry.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonPosition" + } + } + }, + "required": [ + "coordinates" + ] + }, + "GeoJsonLineString": { + "description": "A valid `GeoJSON LineString` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.4) for details.", + "x-ms-discriminator-value": "LineString", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonLineStringData" + } + ] + }, + "GeoJsonLineStringData": { + "type": "object", + "properties": { + "coordinates": { + "description": "Coordinates for the `GeoJson LineString` geometry.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonPosition" + } + } + }, + "required": [ + "coordinates" + ] + }, + "GeoJsonMultiLineString": { + "description": "A valid `GeoJSON MultiLineString` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.5) for details.", + "x-ms-discriminator-value": "MultiLineString", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonMultiLineStringData" + } + ] + }, + "GeoJsonMultiLineStringData": { + "type": "object", + "properties": { + "coordinates": { + "description": "Coordinates for the `GeoJson MultiLineString` geometry.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonLinearRing" + } + } + }, + "required": [ + "coordinates" + ] + }, + "GeoJsonPolygon": { + "description": "A valid `GeoJSON Polygon` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.6) for details.", + "x-ms-discriminator-value": "Polygon", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonPolygonData" + } + ] + }, + "GeoJsonPolygonData": { + "type": "object", + "properties": { + "coordinates": { + "description": "Coordinates for the `GeoJson Polygon` geometry type.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonLinearRing" + } + } + }, + "required": [ + "coordinates" + ] + }, + "GeoJsonMultiPolygon": { + "description": "A valid `GeoJSON MultiPolygon` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.7) for details.", + "x-ms-discriminator-value": "MultiPolygon", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonMultiPolygonData" + } + ] + }, + "GeoJsonMultiPolygonData": { + "type": "object", + "properties": { + "coordinates": { + "description": "Contains a list of valid `GeoJSON Polygon` objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude).", + "type": "array", + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonLinearRing" + } + } + } + }, + "required": [ + "coordinates" + ] + }, + "GeoJsonGeometryCollection": { + "description": "A valid `GeoJSON GeometryCollection` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.8) for details.", + "x-ms-discriminator-value": "GeometryCollection", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonGeometryCollectionData" + } + ] + }, + "GeoJsonGeometryCollectionData": { + "type": "object", + "properties": { + "geometries": { + "description": "Contains a list of valid `GeoJSON` geometry objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude).", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonGeometry" + } + } + }, + "required": [ + "geometries" + ] + }, + "GeoJsonFeature": { + "description": "A valid `GeoJSON Feature` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.2) for details.", + "x-ms-discriminator-value": "Feature", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonObject" + }, + { + "$ref": "#/definitions/GeoJsonFeatureData" + } + ] + }, + "GeoJsonFeatureData": { + "type": "object", + "properties": { + "geometry": { + "$ref": "#/definitions/GeoJsonGeometry" + }, + "properties": { + "description": "Properties can contain any additional metadata about the `Feature`. Value can be any JSON object or a JSON null value", + "type": "object" + }, + "id": { + "description": "Identifier for the feature.", + "type": "string" + }, + "featureType": { + "description": "The type of the feature. The value depends on the data model the current feature is part of. Some data models may have an empty value.", + "type": "string" + } + }, + "required": [ + "geometry" + ] + }, + "GeoJsonFeatureCollection": { + "description": "A valid `GeoJSON FeatureCollection` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.3) for details.", + "x-ms-discriminator-value": "FeatureCollection", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonObject" + }, + { + "$ref": "#/definitions/GeoJsonFeatureCollectionData" + } + ] + }, + "GeoJsonFeatureCollectionData": { + "type": "object", + "properties": { + "features": { + "description": "Contains a list of valid `GeoJSON Feature` objects.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonFeature" + } + } + }, + "required": [ + "features" + ] + }, + "Ontology": { + "type": "string", + "description": "The ontology version of this dataset.", + "readOnly": true + } + }, + "parameters": { + "SubscriptionKey": { + "name": "subscription-key", + "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", + "type": "string", + "in": "query", + "required": false, + "x-ms-parameter-location": "client" + }, + "ApiVersion": { + "name": "api-version", + "description": "Version number of Azure Maps API.", + "type": "string", + "in": "query", + "required": true, + "default": "1.0", + "x-ms-parameter-location": "client" + }, + "ApiVersionV2": { + "name": "api-version", + "description": "Version number of Azure Maps API.", + "type": "string", + "in": "query", + "required": true, + "default": "2.0", + "x-ms-parameter-location": "client" + }, + "ClientId": { + "name": "x-ms-client-id", + "description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.", + "type": "string", + "in": "header", + "required": false, + "x-ms-parameter-location": "client" + }, + "JsonFormat": { + "name": "format", + "description": "Desired format of the response. Only `json` format is supported.", + "type": "string", + "in": "path", + "required": true, + "enum": [ + "json" + ], + "x-ms-enum": { + "name": "JsonFormat", + "modelAsString": true, + "values": [ + { + "value": "json", + "description": "[The JavaScript Object Notation Data Interchange Format](https://tools.ietf.org/html/rfc8259)" + } + ] + }, + "x-ms-parameter-location": "method" + } + }, + "responses": { + "200Async": { + "description": "The operation's status response.", + "schema": { + "$ref": "#/definitions/LongRunningOperationResult" + } + }, + "200AsyncV2": { + "description": "The operation is running or complete. If the operation was successful, use the Resource-Location header to obtain the path to the result.", + "schema": { + "$ref": "#/definitions/LongRunningOperationResult" + }, + "headers": { + "Resource-Location": { + "type": "string", + "description": "If successful, a URI where details on the newly created resource can be found." + } + } + }, + "201Async": { + "description": "The resource has been created successfully.", + "schema": { + "$ref": "#/definitions/LongRunningOperationResult" + }, + "headers": { + "Location": { + "type": "string", + "description": "A URI where details on the newly created resource can be found." + } + } + }, + "202Async": { + "description": "**Supported only for async request.**\nRequest Accepted: The request has been accepted for processing. Please use the URL in the Location Header to retry or access the results.", + "headers": { + "Location": { + "type": "string", + "description": "New URL to check for the results of the long running process." + } + } + }, + "202AsyncV2": { + "description": "Request Accepted: The request has been accepted for processing. Please use the URL in the Operation-Location Header to obtain status.", + "headers": { + "Operation-Location": { + "type": "string", + "description": "New URL to check for the results of the long running process." + } + } + }, + "400": { + "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + }, + "401": { + "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "headers": { + "WWW-Authenticate": { + "type": "string", + "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" + } + }, + "x-ms-error-response": true + }, + "403": { + "description": "Permission, capacity, or authentication issues.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + }, + "404": { + "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + }, + "409": { + "description": "The request could not be completed due to a conflict with the current state of the resource. Likely caused by a parallel update to the same resource.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + }, + "409StorageLimit": { + "description": "The [data storage limit](https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/azure-subscription-service-limits#azure-maps-limits) is reached on the Azure Maps account. You can always use the [Data Delete API](https://docs.microsoft.com/en-us/rest/api/maps/data/deletepreview) to delete old/unused content and create space for new uploads.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + }, + "500": { + "description": "An error occurred while processing the request. Please try again later.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + } + }, + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "scopes": { + "user_impersonation": "Impersonates a user's Azure Active Directory account." + } + }, + "apiKeyQuery": { + "type": "apiKey", + "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", + "name": "subscription-key", + "in": "query" + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + }, + { + "apiKeyQuery": [] + } + ] +} diff --git a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json index 93d0bdc6d78e..5a55ef4161a5 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json +++ b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json @@ -55,16 +55,16 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "points", @@ -91,19 +91,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -118,16 +118,16 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "pointsRequestBody", @@ -138,7 +138,7 @@ "description": "The post elevation points array request body. The length of the array ranges from 2 to 2000.", "type": "array", "items": { - "$ref": "../../../common.json#/definitions/CoordinatesPairAbbreviated" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPairAbbreviated" } } } @@ -155,19 +155,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -184,16 +184,16 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "lines", @@ -234,19 +234,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -261,16 +261,16 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "linesRequestBody", @@ -281,7 +281,7 @@ "description": "The post elevation lines request body.", "type": "array", "items": { - "$ref": "../../../common.json#/definitions/CoordinatesPairAbbreviated" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPairAbbreviated" } } }, @@ -308,19 +308,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -337,16 +337,16 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "bounds", @@ -390,19 +390,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -415,7 +415,7 @@ "readOnly": true, "properties": { "coordinate": { - "$ref": "../../../common.json#/definitions/CoordinatesPair" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPair" }, "elevationInMeter": { "description": "The elevation value in meters.", diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json index 2c951b1e6f67..91ba5cb61f2b 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json @@ -107,13 +107,13 @@ ], "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/UploadDataFormat" @@ -128,31 +128,31 @@ ], "responses": { "200": { - "$ref": "../../../common.json#/responses/200Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/200Async" }, "201": { - "$ref": "../../../common.json#/responses/201Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/201Async" }, "202": { - "$ref": "../../../common.json#/responses/202Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "409": { - "$ref": "../../../common.json#/responses/409StorageLimit" + "$ref": "../../../Common/preview/1.0/common.json#/responses/409StorageLimit" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -176,13 +176,13 @@ ], "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/UniqueDataId" @@ -197,31 +197,31 @@ ], "responses": { "200": { - "$ref": "../../../common.json#/responses/200Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/200Async" }, "201": { - "$ref": "../../../common.json#/responses/201Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/201Async" }, "202": { - "$ref": "../../../common.json#/responses/202Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "409": { - "$ref": "../../../common.json#/responses/409StorageLimit" + "$ref": "../../../Common/preview/1.0/common.json#/responses/409StorageLimit" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -241,13 +241,13 @@ ], "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/UniqueDataId" @@ -286,13 +286,13 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/UniqueDataId" @@ -303,19 +303,19 @@ "description": "Data delete request completed successfully. The content for `udid` was deleted on the server." }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -332,13 +332,13 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" } ], "responses": { @@ -349,19 +349,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json index 601fd0ac11e4..ad3da6c8f588 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json @@ -155,13 +155,13 @@ ], "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/UploadDataDescription" @@ -186,25 +186,25 @@ "x-ms-error-response": true }, "202": { - "$ref": "../../../common.json#/responses/202AsyncV2" + "$ref": "../../../Common/preview/2.0/common.json#/responses/202AsyncV2" }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "409": { - "$ref": "../../../common.json#/responses/409StorageLimit" + "$ref": "../../../Common/preview/2.0/common.json#/responses/409StorageLimit" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } }, @@ -219,13 +219,13 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" } ], "responses": { @@ -236,19 +236,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } } @@ -272,13 +272,13 @@ ], "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/UniqueDataId" @@ -303,25 +303,25 @@ "x-ms-error-response": true }, "202": { - "$ref": "../../../common.json#/responses/202AsyncV2" + "$ref": "../../../Common/preview/2.0/common.json#/responses/202AsyncV2" }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "409": { - "$ref": "../../../common.json#/responses/409StorageLimit" + "$ref": "../../../Common/preview/2.0/common.json#/responses/409StorageLimit" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } }, @@ -341,13 +341,13 @@ ], "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/UniqueDataId" @@ -386,13 +386,13 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/UniqueDataId" @@ -403,19 +403,19 @@ "description": "Data delete request completed successfully. The content for `udid` was deleted on the server." }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } } @@ -434,10 +434,10 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/DataUploadOperationId" @@ -445,10 +445,10 @@ ], "responses": { "200": { - "$ref": "../../../common.json#/responses/200AsyncV2" + "$ref": "../../../Common/preview/2.0/common.json#/responses/200AsyncV2" }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json index bc8374fcabf6..a509136be103 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json @@ -166,10 +166,10 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/ConversionIdQuery" @@ -189,28 +189,28 @@ ], "responses": { "200": { - "$ref": "../../../common.json#/responses/200Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/200Async" }, "201": { - "$ref": "../../../common.json#/responses/201Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/201Async" }, "202": { - "$ref": "../../../common.json#/responses/202Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -231,10 +231,10 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/DatasetId" @@ -248,28 +248,28 @@ ], "responses": { "200": { - "$ref": "../../../common.json#/responses/200Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/200Async" }, "201": { - "$ref": "../../../common.json#/responses/201Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/201Async" }, "202": { - "$ref": "../../../common.json#/responses/202Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -286,10 +286,10 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/DatasetId" @@ -300,19 +300,19 @@ "description": "The dataset delete request completed successfully. The resource referenced by the `datasetId` was deleted from the server." }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -329,10 +329,10 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" } ], "responses": { @@ -343,19 +343,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json index 33315f194964..c9fbcf2397fa 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json @@ -136,10 +136,10 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/ConversionIdQuery" @@ -160,22 +160,22 @@ "x-ms-error-response": true }, "202": { - "$ref": "../../../common.json#/responses/202AsyncV2" + "$ref": "../../../Common/preview/2.0/common.json#/responses/202AsyncV2" }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } }, @@ -190,10 +190,10 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" } ], "responses": { @@ -204,19 +204,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } } @@ -236,10 +236,10 @@ "$ref": "#/parameters/DatasetId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" } ], "responses": { @@ -250,19 +250,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } }, @@ -277,10 +277,10 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/DatasetId" @@ -291,19 +291,19 @@ "description": "The dataset delete request completed successfully. The resource referenced by the `datasetId` was deleted from the server." }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } } @@ -322,10 +322,10 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/DatasetOperationId" @@ -333,10 +333,10 @@ ], "responses": { "200": { - "$ref": "../../../common.json#/responses/200AsyncV2" + "$ref": "../../../Common/preview/2.0/common.json#/responses/200AsyncV2" }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" } } } @@ -377,7 +377,7 @@ "readOnly": true }, "ontology": { - "$ref": "../../../WFS/preview/2.0/wfs.json#/definitions/Ontology" + "$ref": "../../../Common/preview/2.0/common.json#/definitions/Ontology" }, "description": { "description": "The description for the dataset.", diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json index 636fd778fab9..80af5a66da71 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json @@ -112,13 +112,13 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/UdidQuery" @@ -132,28 +132,28 @@ ], "responses": { "200": { - "$ref": "../../../common.json#/responses/200Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/200Async" }, "201": { - "$ref": "../../../common.json#/responses/201Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/201Async" }, "202": { - "$ref": "../../../common.json#/responses/202Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -170,13 +170,13 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" } ], "responses": { @@ -187,19 +187,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -216,13 +216,13 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/ConversionId" @@ -233,19 +233,19 @@ "description": "Conversion delete request completed successfully. The content for `conversionId` was deleted on the server." }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json index a2b4e0444c85..4a57f4c9f744 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json @@ -134,13 +134,13 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/UdidQuery" @@ -161,22 +161,22 @@ "x-ms-error-response": true }, "202": { - "$ref": "../../../common.json#/responses/202AsyncV2" + "$ref": "../../../Common/preview/2.0/common.json#/responses/202AsyncV2" }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } }, @@ -191,13 +191,13 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" } ], "responses": { @@ -208,19 +208,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } } @@ -237,13 +237,13 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/ConversionId" @@ -257,19 +257,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } }, @@ -284,13 +284,13 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/ConversionId" @@ -301,19 +301,19 @@ "description": "Conversion delete request completed successfully. The content for `conversionId` was deleted on the server." }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } } @@ -332,10 +332,10 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/ConversionOperationId" @@ -343,10 +343,10 @@ ], "responses": { "200": { - "$ref": "../../../common.json#/responses/200AsyncV2" + "$ref": "../../../Common/preview/2.0/common.json#/responses/200AsyncV2" }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" } } } @@ -382,7 +382,7 @@ "readOnly": true }, "ontology": { - "$ref": "../../../WFS/preview/2.0/wfs.json#/definitions/Ontology" + "$ref": "../../../Common/preview/2.0/common.json#/definitions/Ontology" }, "udid": { "description": "The unique id of the content provided to create this conversion.", diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json index 26c485637d34..170de6cf8b99 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json @@ -111,10 +111,10 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -128,19 +128,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -155,10 +155,10 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -169,19 +169,19 @@ "description": "Stateset Deleted." }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -196,10 +196,10 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -219,19 +219,19 @@ "description": "Stateset styles are updated successfully." }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -248,10 +248,10 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/DatasetIdForCreate" @@ -274,19 +274,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -301,10 +301,10 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" } ], "responses": { @@ -315,19 +315,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -344,10 +344,10 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/StatesetId" @@ -364,19 +364,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -391,10 +391,10 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/StatesetId" @@ -417,19 +417,19 @@ "description": "Feature states are updated successfully." }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -444,10 +444,10 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/StatesetId" @@ -464,22 +464,22 @@ "description": "Feature states deleted successfully." }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "409": { - "$ref": "../../../common.json#/responses/409" + "$ref": "../../../Common/preview/1.0/common.json#/responses/409" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json index b0a489231591..0deeb0568c8a 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json @@ -146,10 +146,10 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/DatasetIdForCreate" @@ -175,19 +175,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } }, @@ -202,10 +202,10 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" } ], "responses": { @@ -216,19 +216,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } } @@ -245,10 +245,10 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -268,19 +268,19 @@ "description": "Stateset styles are updated successfully." }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } }, @@ -295,10 +295,10 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -309,19 +309,19 @@ "description": "Stateset Deleted." }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } }, @@ -336,10 +336,10 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -353,19 +353,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } } @@ -382,10 +382,10 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -408,19 +408,19 @@ "description": "Feature states are updated successfully." }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } }, @@ -435,10 +435,10 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -455,22 +455,22 @@ "description": "Feature states deleted successfully." }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "409": { - "$ref": "../../../common.json#/responses/409" + "$ref": "../../../Common/preview/2.0/common.json#/responses/409" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } }, @@ -485,10 +485,10 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -505,19 +505,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json index 71d4da399d4c..42e2b1e25d6e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json +++ b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json @@ -54,16 +54,16 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "ip", @@ -81,19 +81,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json index a019494a76bc..b6ed430c8e71 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json +++ b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json @@ -72,16 +72,16 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "query", @@ -128,19 +128,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -157,16 +157,16 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "query", @@ -226,19 +226,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -255,16 +255,16 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "$ref": "#/parameters/MetroId" @@ -312,19 +312,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -341,16 +341,16 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "$ref": "#/parameters/MetroId" @@ -422,19 +422,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -451,16 +451,16 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "$ref": "#/parameters/MetroId" @@ -548,19 +548,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -577,16 +577,16 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "$ref": "#/parameters/MetroId" @@ -888,19 +888,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -917,16 +917,16 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "query", @@ -975,19 +975,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -1004,16 +1004,16 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "$ref": "#/parameters/MetroId" @@ -1222,19 +1222,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -1413,7 +1413,7 @@ "type": "string" }, "geometry": { - "$ref": "../../../common.json#/definitions/GeoJsonPolygon" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonPolygon" }, "viewport": { "$ref": "#/definitions/ResultViewport" @@ -1425,10 +1425,10 @@ "type": "object", "properties": { "topLeftPoint": { - "$ref": "../../../common.json#/definitions/CoordinatesPair" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPair" }, "btmRightPoint": { - "$ref": "../../../common.json#/definitions/CoordinatesPair" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPair" } } }, @@ -1449,7 +1449,7 @@ }, "position": { "description": "The transit object's position.", - "$ref": "../../../common.json#/definitions/CoordinatesPair" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPair" }, "viewport": { "$ref": "#/definitions/ResultViewport" @@ -1478,7 +1478,7 @@ }, "position": { "description": "The Stop's location, latitude and longitude.", - "$ref": "../../../common.json#/definitions/CoordinatesPair" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPair" }, "mainTransitType": { "description": "The transit type of most lines stopping at this stop. One of Tram, Subway, Rail, Bus, Ferry, CableCar, Gondola, Funicular", @@ -1772,7 +1772,7 @@ "$ref": "#/definitions/LegPoint" }, "geometry": { - "$ref": "../../../common.json#/definitions/GeoJsonLineString" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonLineString" }, "lineGroup": { "description": "In case of a public transit leg, the line group serving this leg.", @@ -1953,7 +1953,7 @@ "type": "object", "properties": { "position": { - "$ref": "../../../common.json#/definitions/CoordinatesPair" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPair" } } }, @@ -2160,7 +2160,7 @@ }, "geometry": { "description": "Stop sequence and shape per a line in GeoJSON format.", - "$ref": "../../../common.json#/definitions/GeoJsonLineString" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonLineString" } } }, diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json index 144f1c7332c9..157abc970aa7 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json @@ -213,13 +213,13 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/RasterTileFormat" @@ -372,19 +372,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -401,13 +401,13 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TileFormat" @@ -532,19 +532,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -561,13 +561,13 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/VectorZoom" @@ -598,19 +598,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -627,13 +627,13 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TextFormat" @@ -647,19 +647,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -676,13 +676,13 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/RasterTileFormat" @@ -730,19 +730,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -759,13 +759,13 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TextFormat" @@ -796,19 +796,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -825,13 +825,13 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TextFormat" @@ -857,19 +857,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -886,13 +886,13 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TextFormat" @@ -909,19 +909,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json index 45f8ad4613f1..91bc70a7c339 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json @@ -168,13 +168,13 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/TilesetId_rv2" @@ -239,19 +239,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json index 173f9cb0ad3c..ff47a76df64a 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json @@ -820,16 +820,16 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "waitForResults", @@ -908,22 +908,22 @@ } }, "202": { - "$ref": "../../../common.json#/responses/202Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } }, "produces": [ @@ -943,13 +943,13 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TextFormat" @@ -1114,19 +1114,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -1141,13 +1141,13 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TextFormat" @@ -1321,19 +1321,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -1350,13 +1350,13 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TextFormat" @@ -1493,19 +1493,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -1526,16 +1526,16 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "routeDirectionsBatchRequestBody", @@ -1543,7 +1543,7 @@ "description": "The list of route directions queries/requests to process. The list can contain a max of 700 queries for async and 100 queries for sync version and must contain at least 1 query.", "required": true, "schema": { - "$ref": "../../../common.json#/definitions/BatchRequestBody" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/BatchRequestBody" } } ], @@ -1555,22 +1555,22 @@ } }, "202": { - "$ref": "../../../common.json#/responses/202Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } }, "produces": [ @@ -1586,7 +1586,7 @@ "properties": { "supportingPoints": { "description": "A GeoJSON Geometry collection representing sequence of coordinates used as input for route reconstruction and for calculating zero or more alternative routes to this reference route.\n - The provided sequence of supporting points is used as input for route reconstruction.\n - The alternative routes are calculated between the origin and destination points specified in the base path parameter locations.\n - If both _minDeviationDistance_ and _minDeviationTime_ are set to zero, then these origin and destination points are\n expected to be at (or very near) the beginning and end of the reference route, respectively.\n - Intermediate locations (_waypoints_) are not supported when using <_supportingPoints_>.\n - The reference route may contain traffic incidents of type _ROAD_CLOSURE_, which are\n ignored for the calculation of the reference route's travel time and traffic delay.", - "$ref": "../../../common.json#/definitions/GeoJsonGeometryCollection" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonGeometryCollection" }, "avoidVignette": { "description": "This is a list of 3-character, ISO 3166-1, alpha-3 country codes of countries in which all toll roads with vignettes are to be avoided, e.g. \"AUS,CHE\". Toll roads with vignettes in countries not in the list are unaffected. Note: It is an error to specify both **avoidVignette** and **allowVignette**.", @@ -1604,7 +1604,7 @@ }, "avoidAreas": { "description": "A GeoJSON MultiPolygon representing list of areas to avoid. Only rectangle polygons are supported. The maximum size of a rectangle is about 160x160 km. Maximum number of avoided areas is **10**. It cannot cross the 180th meridian. It must be between -80 and +80 degrees of latitude.", - "$ref": "../../../common.json#/definitions/GeoJsonMultiPolygon" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonMultiPolygon" } } }, @@ -1724,7 +1724,7 @@ "type": "array", "readOnly": true, "items": { - "$ref": "../../../common.json#/definitions/CoordinatesPair" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPair" } } } @@ -1918,7 +1918,7 @@ "readOnly": true }, "point": { - "$ref": "../../../common.json#/definitions/CoordinatesPair" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPair" }, "pointIndex": { "description": "The index of the point in the list of polyline \"points\" corresponding to the point of the instruction.", @@ -2329,14 +2329,14 @@ "properties": { "center": { "description": "Center point of the reachable range", - "$ref": "../../../common.json#/definitions/CoordinatesPair" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPair" }, "boundary": { "description": "Polygon boundary of the reachable range represented as a list of points.", "type": "array", "readOnly": true, "items": { - "$ref": "../../../common.json#/definitions/CoordinatesPair" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPair" } } } @@ -2444,10 +2444,10 @@ "type": "object", "properties": { "origins": { - "$ref": "../../../common.json#/definitions/GeoJsonMultiPoint" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonMultiPoint" }, "destinations": { - "$ref": "../../../common.json#/definitions/GeoJsonMultiPoint" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonMultiPoint" } } }, @@ -2456,7 +2456,7 @@ "type": "object", "allOf": [ { - "$ref": "../../../common.json#/definitions/BatchResponse" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/BatchResponse" } ], "properties": { @@ -2475,7 +2475,7 @@ "type": "object", "allOf": [ { - "$ref": "../../../common.json#/definitions/BatchItem" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/BatchItem" } ], "properties": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json index 53ab692b508a..7f9845fb6881 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json @@ -410,16 +410,16 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "geometries", @@ -437,19 +437,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } }, "produces": [ @@ -469,13 +469,13 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TextFormat" @@ -567,19 +567,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -596,13 +596,13 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TextFormat" @@ -671,19 +671,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -700,13 +700,13 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TextFormat" @@ -760,19 +760,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -789,13 +789,13 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TextFormat" @@ -864,19 +864,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -893,16 +893,16 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "language", @@ -920,19 +920,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -949,13 +949,13 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TextFormat" @@ -1012,19 +1012,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -1041,13 +1041,13 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TextFormat" @@ -1181,19 +1181,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -1210,13 +1210,13 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TextFormat" @@ -1254,19 +1254,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -1283,13 +1283,13 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TextFormat" @@ -1389,19 +1389,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -1424,13 +1424,13 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/PoiQuery" @@ -1477,19 +1477,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -1506,13 +1506,13 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/CategorySet" @@ -1570,19 +1570,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -1603,16 +1603,16 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "searchFuzzyBatchRequestBody", @@ -1620,7 +1620,7 @@ "description": "The list of search fuzzy queries/requests to process. The list can contain a max of 10,000 queries and must contain at least 1 query.", "required": true, "schema": { - "$ref": "../../../common.json#/definitions/BatchRequestBody" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/BatchRequestBody" } } ], @@ -1632,22 +1632,22 @@ } }, "202": { - "$ref": "../../../common.json#/responses/202Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } }, "produces": [ @@ -1671,16 +1671,16 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "searchAddressBatchRequestBody", @@ -1688,7 +1688,7 @@ "description": "The list of address geocoding queries/requests to process. The list can contain a max of 10,000 queries and must contain at least 1 query.", "required": true, "schema": { - "$ref": "../../../common.json#/definitions/BatchRequestBody" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/BatchRequestBody" } } ], @@ -1700,22 +1700,22 @@ } }, "202": { - "$ref": "../../../common.json#/responses/202Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } }, "produces": [ @@ -1739,16 +1739,16 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "searchAddressReverseBatchRequestBody", @@ -1756,7 +1756,7 @@ "description": "The list of reverse geocoding queries/requests to process. The list can contain a max of 10,000 queries and must contain at least 1 query.", "required": true, "schema": { - "$ref": "../../../common.json#/definitions/BatchRequestBody" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/BatchRequestBody" } } ], @@ -1768,22 +1768,22 @@ } }, "202": { - "$ref": "../../../common.json#/responses/202Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } }, "produces": [ @@ -1870,7 +1870,7 @@ }, "geometryData": { "description": "Geometry data in GeoJSON format. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946) for details. Present only if \"error\" is not present.", - "$ref": "../../../common.json#/definitions/GeoJsonObject" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonObject" } } }, @@ -1925,7 +1925,7 @@ "readOnly": true, "allOf": [ { - "$ref": "../../../common.json#/definitions/CoordinatesPairAbbreviated" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPairAbbreviated" } ] } @@ -1967,7 +1967,7 @@ "$ref": "#/definitions/SearchResultAddress" }, "position": { - "$ref": "../../../common.json#/definitions/CoordinatesPairAbbreviated" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPairAbbreviated" }, "viewport": { "$ref": "#/definitions/SearchResultViewport" @@ -2242,7 +2242,7 @@ "type": "object", "properties": { "geometry": { - "$ref": "../../../common.json#/definitions/GeoJsonObject" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonObject" } } }, @@ -2251,7 +2251,7 @@ "type": "object", "properties": { "route": { - "$ref": "../../../common.json#/definitions/GeoJsonLineString" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonLineString" } } }, @@ -2546,10 +2546,10 @@ "readOnly": true, "properties": { "topLeftPoint": { - "$ref": "../../../common.json#/definitions/CoordinatesPairAbbreviated" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPairAbbreviated" }, "btmRightPoint": { - "$ref": "../../../common.json#/definitions/CoordinatesPairAbbreviated" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPairAbbreviated" } } }, @@ -2572,7 +2572,7 @@ } }, "position": { - "$ref": "../../../common.json#/definitions/CoordinatesPairAbbreviated" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPairAbbreviated" } } }, @@ -2590,10 +2590,10 @@ "type": "string" }, "from": { - "$ref": "../../../common.json#/definitions/CoordinatesPairAbbreviated" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPairAbbreviated" }, "to": { - "$ref": "../../../common.json#/definitions/CoordinatesPairAbbreviated" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPairAbbreviated" } } }, @@ -2703,7 +2703,7 @@ "type": "object", "allOf": [ { - "$ref": "../../../common.json#/definitions/BatchResponse" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/BatchResponse" } ], "properties": { @@ -2722,7 +2722,7 @@ "type": "object", "allOf": [ { - "$ref": "../../../common.json#/definitions/BatchItem" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/BatchItem" } ], "properties": { @@ -2746,7 +2746,7 @@ "type": "object", "allOf": [ { - "$ref": "../../../common.json#/definitions/BatchResponse" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/BatchResponse" } ], "properties": { @@ -2765,7 +2765,7 @@ "type": "object", "allOf": [ { - "$ref": "../../../common.json#/definitions/BatchItem" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/BatchItem" } ], "properties": { @@ -2789,7 +2789,7 @@ "type": "object", "allOf": [ { - "$ref": "../../../common.json#/definitions/BatchResponse" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/BatchResponse" } ], "properties": { @@ -2808,7 +2808,7 @@ "type": "object", "allOf": [ { - "$ref": "../../../common.json#/definitions/BatchItem" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/BatchItem" } ], "properties": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json index 432b1e6f49c2..ff9c32c9ee5e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json @@ -138,16 +138,16 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "deviceId", @@ -230,19 +230,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -257,16 +257,16 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "deviceId", @@ -330,7 +330,7 @@ "description": "The geofencing GeoJSON data.", "required": true, "schema": { - "$ref": "../../../common.json#/definitions/GeoJsonFeatureCollection" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonFeatureCollection" } } ], @@ -351,19 +351,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -380,16 +380,16 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "bufferRequestBody", @@ -412,19 +412,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -439,16 +439,16 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "$ref": "#/parameters/UdidSpatial" @@ -472,19 +472,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -501,16 +501,16 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "lat", @@ -539,7 +539,7 @@ "description": "The FeatureCollection of Point geometries from which closest point to source point should be determined. All the feature's properties should contain `geometryId`, which is used for identifying the geometry and is case-sensitive.", "required": true, "schema": { - "$ref": "../../../common.json#/definitions/GeoJsonFeatureCollection" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonFeatureCollection" } } ], @@ -554,19 +554,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -581,16 +581,16 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "$ref": "#/parameters/UdidSpatial" @@ -628,19 +628,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -657,16 +657,16 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "lat", @@ -688,7 +688,7 @@ "description": "A FeatureCollection with a set of Polygon/MultiPolygon geometries. The maximum number of vertices accepted to form a Polygon is 10,000. All the feature's properties should contain `geometryId`, which is used for identifying the geometry and is case-sensitive.", "required": true, "schema": { - "$ref": "../../../common.json#/definitions/GeoJsonFeatureCollection" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonFeatureCollection" } } ], @@ -703,19 +703,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -730,16 +730,16 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "$ref": "#/parameters/UdidSpatial" @@ -770,19 +770,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -799,16 +799,16 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "query", @@ -829,19 +829,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -948,7 +948,7 @@ "type": "object", "properties": { "geometries": { - "$ref": "../../../common.json#/definitions/GeoJsonFeatureCollection" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonFeatureCollection" }, "distances": { "description": "List of the distances to compute the buffer for, one-to-one per Feature in the collection, or one for all Features in the collection.", @@ -982,7 +982,7 @@ }, "result": { "description": "The FeatureCollection of buffers for the input.", - "$ref": "../../../common.json#/definitions/GeoJsonFeatureCollection" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonFeatureCollection" } } }, diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json index 2987fe1812b5..949e919f9d18 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json @@ -118,13 +118,13 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/DatasetIdQuery" @@ -135,28 +135,28 @@ ], "responses": { "200": { - "$ref": "../../../common.json#/responses/200Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/200Async" }, "201": { - "$ref": "../../../common.json#/responses/201Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/201Async" }, "202": { - "$ref": "../../../common.json#/responses/202Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -173,13 +173,13 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" } ], "responses": { @@ -190,19 +190,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -219,13 +219,13 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TilesetId" @@ -239,19 +239,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json index 0b8ceef139b7..dce99424be3e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json @@ -126,13 +126,13 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/DatasetIdQuery" @@ -150,22 +150,22 @@ "x-ms-error-response": true }, "202": { - "$ref": "../../../common.json#/responses/202AsyncV2" + "$ref": "../../../Common/preview/2.0/common.json#/responses/202AsyncV2" }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } }, @@ -180,13 +180,13 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" } ], "responses": { @@ -197,19 +197,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } } @@ -226,13 +226,13 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/TilesetId" @@ -246,19 +246,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } }, @@ -273,13 +273,13 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/TilesetId" @@ -290,19 +290,19 @@ "description": "Tileset delete request completed successfully." }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } } @@ -321,10 +321,10 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/TilesetOperationId" @@ -332,10 +332,10 @@ ], "responses": { "200": { - "$ref": "../../../common.json#/responses/200AsyncV2" + "$ref": "../../../Common/preview/2.0/common.json#/responses/200AsyncV2" }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" } } } @@ -371,7 +371,7 @@ "readOnly": true }, "ontology": { - "$ref": "../../../WFS/preview/2.0/wfs.json#/definitions/Ontology" + "$ref": "../../../Common/preview/2.0/common.json#/definitions/Ontology" }, "datasetId": { "description": "The unique dataset Id used to create the tileset.", diff --git a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json index 5d1ffad8aedc..7ae2fec2e398 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json +++ b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json @@ -127,13 +127,13 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TimezoneAcceptLanguage" @@ -151,7 +151,7 @@ "$ref": "#/parameters/TimezoneTransitionsYears" }, { - "$ref": "../../../common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "query", @@ -169,19 +169,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } }, "produces": [ @@ -201,13 +201,13 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TimezoneAcceptLanguage" @@ -225,7 +225,7 @@ "$ref": "#/parameters/TimezoneTransitionsYears" }, { - "$ref": "../../../common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "query", @@ -243,19 +243,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } }, "produces": [ @@ -275,16 +275,16 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" } ], "responses": { @@ -295,19 +295,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } }, "produces": [ @@ -327,16 +327,16 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" } ], "responses": { @@ -347,19 +347,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } }, "produces": [ @@ -379,16 +379,16 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" } ], "responses": { @@ -399,19 +399,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } }, "produces": [ @@ -431,16 +431,16 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "query", @@ -465,19 +465,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } }, "produces": [ diff --git a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json index 6c07b6732493..161364013941 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json +++ b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json @@ -148,13 +148,13 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TileFormat" @@ -223,19 +223,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } }, "produces": [ @@ -255,13 +255,13 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TextFormat" @@ -346,19 +346,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -375,13 +375,13 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TileFormat" @@ -448,19 +448,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } }, "produces": [ @@ -480,13 +480,13 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TextFormat" @@ -632,19 +632,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -661,13 +661,13 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "#/parameters/TextFormat" @@ -723,19 +723,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -800,7 +800,7 @@ "type": "array", "readOnly": true, "items": { - "$ref": "../../../common.json#/definitions/CoordinatesPair" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPair" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json index 7156dc687210..9abf52df3b21 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json @@ -105,13 +105,13 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "../../../Dataset/preview/1.0/dataset.json#/parameters/DatasetId" @@ -125,19 +125,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -154,13 +154,13 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "../../../Dataset/preview/1.0/dataset.json#/parameters/DatasetId" @@ -174,19 +174,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -203,13 +203,13 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "../../../Dataset/preview/1.0/dataset.json#/parameters/DatasetId" @@ -223,19 +223,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -252,13 +252,13 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "../../../Dataset/preview/1.0/dataset.json#/parameters/DatasetId" @@ -275,19 +275,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -304,13 +304,13 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "../../../Dataset/preview/1.0/dataset.json#/parameters/DatasetId" @@ -327,19 +327,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -356,13 +356,13 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "../../../Dataset/preview/1.0/dataset.json#/parameters/DatasetId" @@ -388,19 +388,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -417,10 +417,10 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "../../../Dataset/preview/1.0/dataset.json#/parameters/DatasetId" @@ -440,19 +440,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -467,10 +467,10 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { "$ref": "../../../Dataset/preview/1.0/dataset.json#/parameters/DatasetId" @@ -487,19 +487,19 @@ "description": "Feature Deleted." }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -844,7 +844,7 @@ "type": "object", "allOf": [ { - "$ref": "../../../common.json#/definitions/GeoJsonFeatureCollection" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonFeatureCollection" }, { "$ref": "#/definitions/ExtendedGeoJsonFeatureCollectionData" @@ -874,7 +874,7 @@ ], "properties": { "feature": { - "$ref": "../../../common.json#/definitions/GeoJsonFeature" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonFeature" }, "links": { "description": "Links to other WFS endpoints.", diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json index 6bd2f2086e0d..f59c61f78f7d 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json @@ -132,13 +132,13 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" @@ -152,19 +152,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } } @@ -181,13 +181,13 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" @@ -201,19 +201,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } } @@ -230,13 +230,13 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" @@ -250,19 +250,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } } @@ -279,13 +279,13 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" @@ -302,19 +302,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } } @@ -331,13 +331,13 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" @@ -354,19 +354,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } } @@ -383,13 +383,13 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" @@ -415,19 +415,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } } @@ -444,10 +444,10 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" @@ -467,19 +467,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } }, @@ -494,10 +494,10 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" @@ -514,19 +514,19 @@ "description": "Feature Deleted." }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } } @@ -540,7 +540,7 @@ ], "properties": { "ontology": { - "$ref": "#/definitions/Ontology" + "$ref": "../../../Common/preview/2.0/common.json#/definitions/Ontology" }, "links": { "description": "Links to other WFS endpoints.", @@ -612,7 +612,7 @@ ], "properties": { "ontology": { - "$ref": "#/definitions/Ontology" + "$ref": "../../../Common/preview/2.0/common.json#/definitions/Ontology" }, "links": { "description": "Links to other WFS endpoints.", @@ -715,7 +715,7 @@ "example": "Buildings" }, "ontology": { - "$ref": "#/definitions/Ontology" + "$ref": "../../../Common/preview/2.0/common.json#/definitions/Ontology" }, "description": { "description": "a description of the features in the collection", @@ -775,7 +775,7 @@ "example": "Feature Class buildings" }, "ontology": { - "$ref": "#/definitions/Ontology" + "$ref": "../../../Common/preview/2.0/common.json#/definitions/Ontology" }, "geometryType": { "description": "type of geometry returned", @@ -883,7 +883,7 @@ "type": "object", "allOf": [ { - "$ref": "../../../common.json#/definitions/GeoJsonFeatureCollection" + "$ref": "../../../Common/preview/2.0/common.json#/definitions/GeoJsonFeatureCollection" }, { "$ref": "#/definitions/ExtendedGeoJsonFeatureCollectionData" @@ -894,7 +894,7 @@ "type": "object", "properties": { "ontology": { - "$ref": "#/definitions/Ontology" + "$ref": "../../../Common/preview/2.0/common.json#/definitions/Ontology" }, "numberReturned": { "description": "Number of returned features.", @@ -916,10 +916,10 @@ ], "properties": { "ontology": { - "$ref": "#/definitions/Ontology" + "$ref": "../../../Common/preview/2.0/common.json#/definitions/Ontology" }, "feature": { - "$ref": "../../../common.json#/definitions/GeoJsonFeature" + "$ref": "../../../Common/preview/2.0/common.json#/definitions/GeoJsonFeature" }, "links": { "description": "Links to other WFS endpoints.", @@ -929,11 +929,6 @@ } } } - }, - "Ontology": { - "type": "string", - "description": "The ontology version of this dataset. Please refer to this [article](https://docs.microsoft.com/en-us/azure/azure-maps/creator-facility-ontology) for more information about Azure Maps Creator ontologies.", - "readOnly": true } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json index b2c9adb9edf0..18b77e0b6636 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json +++ b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json @@ -89,16 +89,16 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "query", @@ -129,19 +129,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -157,16 +157,16 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "query", @@ -194,19 +194,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -222,16 +222,16 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "query", @@ -262,19 +262,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -290,16 +290,16 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "query", @@ -337,19 +337,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -365,16 +365,16 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "query", @@ -405,19 +405,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -433,16 +433,16 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "query", @@ -463,19 +463,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -491,16 +491,16 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "query", @@ -528,19 +528,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -556,16 +556,16 @@ }, "parameters": [ { - "$ref": "../../../common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../common.json#/parameters/ApiVersion" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { "name": "query", @@ -605,19 +605,19 @@ } }, "400": { - "$ref": "../../../common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } From 8459b606c7f2402376c51e3e7eb53dc6e701db2a Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Mon, 3 May 2021 14:11:34 -0700 Subject: [PATCH 095/210] Another approach for ApiDocPreview --- .../Alias/preview/2.0/alias.json | 70 +- .../Alias/preview/2.0/common.json | 721 ++++++++++++++++++ .../Common/preview/1.0/common.json | 5 + .../Data/preview/2.0/common.json | 721 ++++++++++++++++++ .../Microsoft.Maps/Data/preview/2.0/data.json | 86 +-- .../Dataset/preview/2.0/common.json | 721 ++++++++++++++++++ .../Dataset/preview/2.0/dataset.json | 68 +- .../DwgConversion/preview/2.0/common.json | 721 ++++++++++++++++++ .../preview/2.0/dwgconversion.json | 76 +- .../FeatureState/preview/2.0/common.json | 721 ++++++++++++++++++ .../preview/2.0/featurestate.json | 114 +-- .../Render/preview/2.0/common.json | 721 ++++++++++++++++++ .../Render/preview/2.0/render.json | 16 +- .../Tileset/preview/2.0/common.json | 721 ++++++++++++++++++ .../Tileset/preview/2.0/tileset.json | 76 +- .../WFS/preview/2.0/common.json | 721 ++++++++++++++++++ .../Microsoft.Maps/WFS/preview/2.0/wfs.json | 140 ++-- specification/maps/data-plane/readme.go.md | 8 +- specification/maps/data-plane/readme.md | 8 +- .../maps/data-plane/readme.python.md | 4 +- 20 files changed, 6106 insertions(+), 333 deletions(-) create mode 100644 specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/common.json create mode 100644 specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/common.json create mode 100644 specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/common.json create mode 100644 specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/common.json create mode 100644 specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/common.json create mode 100644 specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/common.json create mode 100644 specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/common.json create mode 100644 specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/common.json diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json index a22127cf37a7..a3c82d8eb303 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json @@ -115,10 +115,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "./common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "./common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/CreateCreatorDataItemId" @@ -138,19 +138,19 @@ } }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "./common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "./common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "./common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "./common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "./common.json#/responses/500" } } }, @@ -165,10 +165,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "./common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "./common.json#/parameters/ApiVersionV2" } ], "responses": { @@ -179,19 +179,19 @@ } }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "./common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "./common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "./common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "./common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "./common.json#/responses/500" } } } @@ -211,10 +211,10 @@ "$ref": "#/parameters/AliasId" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "./common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "./common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/AssignCreatorDataItemId" @@ -228,19 +228,19 @@ } }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "./common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "./common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "./common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "./common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "./common.json#/responses/500" } } }, @@ -258,10 +258,10 @@ "$ref": "#/parameters/AliasId" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "./common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "./common.json#/parameters/ApiVersionV2" } ], "responses": { @@ -269,19 +269,19 @@ "description": "Alias delete request completed successfully. The content for `aliasId` was deleted on the server." }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "./common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "./common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "./common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "./common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "./common.json#/responses/500" } } }, @@ -299,10 +299,10 @@ "$ref": "#/parameters/AliasId" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "./common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "./common.json#/parameters/ApiVersionV2" } ], "responses": { @@ -313,19 +313,19 @@ } }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "./common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "./common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "./common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "./common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "./common.json#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/common.json new file mode 100644 index 000000000000..f2af932e1a6f --- /dev/null +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/common.json @@ -0,0 +1,721 @@ +{ + "swagger": "2.0", + "info": { + "title": "Azure Maps Common Types", + "version": "2.0" + }, + "host": "atlas.microsoft.com", + "schemes": [ + "https" + ], + "consumes": [], + "produces": [ + "application/json", + "application/xml" + ], + "paths": {}, + "definitions": { + "LongRunningOperationResult": { + "description": "The response model for a Long-Running Operations API.", + "type": "object", + "properties": { + "operationId": { + "description": "The Id for this long-running operation.", + "type": "string" + }, + "status": { + "description": "The status state of the request.", + "type": "string", + "enum": [ + "NotStarted", + "Running", + "Failed", + "Succeeded" + ], + "x-ms-enum": { + "name": "LroStatus", + "modelAsString": true, + "values": [ + { + "value": "NotStarted", + "description": "The request has not started processing yet." + }, + { + "value": "Running", + "description": "The request has started processing." + }, + { + "value": "Failed", + "description": "The request has one or more failures." + }, + { + "value": "Succeeded", + "description": "The request has successfully completed." + } + ] + }, + "readOnly": true + }, + "created": { + "description": "The created timestamp.", + "type": "string", + "readOnly": true + }, + "resourceLocation": { + "description": "The location URI for details about the created resource. This is only provided when the request was successfully completed.", + "type": "string", + "readOnly": true + }, + "error": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" + }, + "warning": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" + } + } + }, + "BatchRequestBody": { + "description": "This type represents the request body for the Batch service.", + "type": "object", + "properties": { + "batchItems": { + "description": "The list of queries to process.", + "type": "array", + "items": { + "description": "Batch Query object", + "type": "object", + "properties": { + "query": { + "description": "Partial query string.", + "type": "string", + "example": "?query=One, Microsoft Way, Redmond, WA 98052&limit=3" + } + } + } + } + } + }, + "BatchResponse": { + "description": "This object is returned from a successful Batch service call. Extend with 'batchItems' property.", + "type": "object", + "properties": { + "summary": { + "description": "Summary for the batch request", + "type": "object", + "readOnly": true, + "properties": { + "successfulRequests": { + "description": "Number of successful requests in the batch", + "type": "integer", + "readOnly": true + }, + "totalRequests": { + "description": "Total number of requests in the batch", + "type": "integer", + "readOnly": true + } + } + } + } + }, + "BatchItem": { + "description": "An item returned from Batch API. Extend with 'response' property.", + "type": "object", + "properties": { + "statusCode": { + "description": "HTTP request status code.", + "type": "number", + "readOnly": true, + "example": 200 + } + } + }, + "CoordinatesPair": { + "description": "A location represented as a latitude and longitude.", + "type": "object", + "properties": { + "latitude": { + "description": "Latitude property", + "type": "number", + "format": "double" + }, + "longitude": { + "description": "Longitude property", + "type": "number", + "format": "double" + } + } + }, + "CoordinatesPairAbbreviated": { + "description": "A location represented as a latitude and longitude using short names 'lat' & 'lon'.", + "type": "object", + "properties": { + "lat": { + "description": "Latitude property", + "type": "number", + "format": "double" + }, + "lon": { + "description": "Longitude property", + "type": "number", + "format": "double" + } + } + }, + "GeoJsonPosition": { + "description": "A `Position` is an array of numbers with two or more elements. The first two elements are _longitude_ and _latitude_, precisely in that order. _Altitude/Elevation_ is an optional third element. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.1) for details.", + "type": "array", + "items": { + "type": "number", + "format": "double" + } + }, + "GeoJsonLinearRing": { + "description": "Though a linear ring is not explicitly represented as a GeoJSON geometry type, it helps in defining the polygon as an array of linear rings. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.6) for details.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonPosition" + } + }, + "GeoJsonObject": { + "description": "A valid `GeoJSON` object. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3) for details.", + "type": "object", + "discriminator": "type", + "required": [ + "type" + ], + "properties": { + "type": { + "description": "Specifies the `GeoJSON` type. Must be one of the nine valid GeoJSON object types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon, GeometryCollection, Feature and FeatureCollection.", + "type": "string", + "enum": [ + "Point", + "MultiPoint", + "LineString", + "MultiLineString", + "Polygon", + "MultiPolygon", + "GeometryCollection", + "Feature", + "FeatureCollection" + ], + "x-ms-enum": { + "name": "GeoJsonObjectType", + "modelAsString": true, + "values": [ + { + "value": "Point", + "description": "`GeoJSON Point` geometry.", + "name": "GeoJsonPoint" + }, + { + "value": "MultiPoint", + "description": "`GeoJSON MultiPoint` geometry.", + "name": "GeoJsonMultiPoint" + }, + { + "value": "LineString", + "description": "`GeoJSON LineString` geometry.", + "name": "GeoJsonLineString" + }, + { + "value": "MultiLineString", + "description": "`GeoJSON MultiLineString` geometry.", + "name": "GeoJsonMultiLineString" + }, + { + "value": "Polygon", + "description": "`GeoJSON Polygon` geometry.", + "name": "GeoJsonPolygon" + }, + { + "value": "MultiPolygon", + "description": "`GeoJSON MultiPolygon` geometry.", + "name": "GeoJsonMultiPolygon" + }, + { + "value": "GeometryCollection", + "description": "`GeoJSON GeometryCollection` geometry.", + "name": "GeoJsonGeometryCollection" + }, + { + "value": "Feature", + "description": "`GeoJSON Feature` object.", + "name": "GeoJsonFeature" + }, + { + "value": "FeatureCollection", + "description": "`GeoJSON FeatureCollection` object.", + "name": "GeoJsonFeatureCollection" + } + ] + } + } + } + }, + "GeoJsonGeometry": { + "description": "A valid `GeoJSON` geometry object. The type must be one of the seven valid GeoJSON geometry types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon and GeometryCollection. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1) for details.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonObject" + } + ] + }, + "GeoJsonPoint": { + "description": "A valid `GeoJSON Point` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.2) for details.", + "x-ms-discriminator-value": "Point", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonPointData" + } + ] + }, + "GeoJsonPointData": { + "description": "Data contained by a `GeoJson Point`.", + "type": "object", + "properties": { + "coordinates": { + "$ref": "#/definitions/GeoJsonPosition" + } + }, + "required": [ + "coordinates" + ] + }, + "GeoJsonMultiPoint": { + "description": "A valid `GeoJSON MultiPoint` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.3) for details.", + "x-ms-discriminator-value": "MultiPoint", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonMultiPointData" + } + ] + }, + "GeoJsonMultiPointData": { + "type": "object", + "description": "Data contained by a `GeoJson MultiPoint`.", + "properties": { + "coordinates": { + "description": "Coordinates for the `GeoJson MultiPoint` geometry.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonPosition" + } + } + }, + "required": [ + "coordinates" + ] + }, + "GeoJsonLineString": { + "description": "A valid `GeoJSON LineString` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.4) for details.", + "x-ms-discriminator-value": "LineString", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonLineStringData" + } + ] + }, + "GeoJsonLineStringData": { + "type": "object", + "properties": { + "coordinates": { + "description": "Coordinates for the `GeoJson LineString` geometry.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonPosition" + } + } + }, + "required": [ + "coordinates" + ] + }, + "GeoJsonMultiLineString": { + "description": "A valid `GeoJSON MultiLineString` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.5) for details.", + "x-ms-discriminator-value": "MultiLineString", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonMultiLineStringData" + } + ] + }, + "GeoJsonMultiLineStringData": { + "type": "object", + "properties": { + "coordinates": { + "description": "Coordinates for the `GeoJson MultiLineString` geometry.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonLinearRing" + } + } + }, + "required": [ + "coordinates" + ] + }, + "GeoJsonPolygon": { + "description": "A valid `GeoJSON Polygon` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.6) for details.", + "x-ms-discriminator-value": "Polygon", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonPolygonData" + } + ] + }, + "GeoJsonPolygonData": { + "type": "object", + "properties": { + "coordinates": { + "description": "Coordinates for the `GeoJson Polygon` geometry type.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonLinearRing" + } + } + }, + "required": [ + "coordinates" + ] + }, + "GeoJsonMultiPolygon": { + "description": "A valid `GeoJSON MultiPolygon` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.7) for details.", + "x-ms-discriminator-value": "MultiPolygon", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonMultiPolygonData" + } + ] + }, + "GeoJsonMultiPolygonData": { + "type": "object", + "properties": { + "coordinates": { + "description": "Contains a list of valid `GeoJSON Polygon` objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude).", + "type": "array", + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonLinearRing" + } + } + } + }, + "required": [ + "coordinates" + ] + }, + "GeoJsonGeometryCollection": { + "description": "A valid `GeoJSON GeometryCollection` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.8) for details.", + "x-ms-discriminator-value": "GeometryCollection", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonGeometryCollectionData" + } + ] + }, + "GeoJsonGeometryCollectionData": { + "type": "object", + "properties": { + "geometries": { + "description": "Contains a list of valid `GeoJSON` geometry objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude).", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonGeometry" + } + } + }, + "required": [ + "geometries" + ] + }, + "GeoJsonFeature": { + "description": "A valid `GeoJSON Feature` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.2) for details.", + "x-ms-discriminator-value": "Feature", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonObject" + }, + { + "$ref": "#/definitions/GeoJsonFeatureData" + } + ] + }, + "GeoJsonFeatureData": { + "type": "object", + "properties": { + "geometry": { + "$ref": "#/definitions/GeoJsonGeometry" + }, + "properties": { + "description": "Properties can contain any additional metadata about the `Feature`. Value can be any JSON object or a JSON null value", + "type": "object" + }, + "id": { + "description": "Identifier for the feature.", + "type": "string" + }, + "featureType": { + "description": "The type of the feature. The value depends on the data model the current feature is part of. Some data models may have an empty value.", + "type": "string" + } + }, + "required": [ + "geometry" + ] + }, + "GeoJsonFeatureCollection": { + "description": "A valid `GeoJSON FeatureCollection` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.3) for details.", + "x-ms-discriminator-value": "FeatureCollection", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonObject" + }, + { + "$ref": "#/definitions/GeoJsonFeatureCollectionData" + } + ] + }, + "GeoJsonFeatureCollectionData": { + "type": "object", + "properties": { + "features": { + "description": "Contains a list of valid `GeoJSON Feature` objects.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonFeature" + } + } + }, + "required": [ + "features" + ] + }, + "Ontology": { + "type": "string", + "description": "The ontology version of this dataset.", + "readOnly": true + } + }, + "parameters": { + "SubscriptionKey": { + "name": "subscription-key", + "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", + "type": "string", + "in": "query", + "required": false, + "x-ms-parameter-location": "client" + }, + "ApiVersion": { + "name": "api-version", + "description": "Version number of Azure Maps API.", + "type": "string", + "in": "query", + "required": true, + "default": "1.0", + "x-ms-parameter-location": "client" + }, + "ApiVersionV2": { + "name": "api-version", + "description": "Version number of Azure Maps API.", + "type": "string", + "in": "query", + "required": true, + "default": "2.0", + "x-ms-parameter-location": "client" + }, + "ClientId": { + "name": "x-ms-client-id", + "description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.", + "type": "string", + "in": "header", + "required": false, + "x-ms-parameter-location": "client" + }, + "JsonFormat": { + "name": "format", + "description": "Desired format of the response. Only `json` format is supported.", + "type": "string", + "in": "path", + "required": true, + "enum": [ + "json" + ], + "x-ms-enum": { + "name": "JsonFormat", + "modelAsString": true, + "values": [ + { + "value": "json", + "description": "[The JavaScript Object Notation Data Interchange Format](https://tools.ietf.org/html/rfc8259)" + } + ] + }, + "x-ms-parameter-location": "method" + } + }, + "responses": { + "200Async": { + "description": "The operation's status response.", + "schema": { + "$ref": "#/definitions/LongRunningOperationResult" + } + }, + "200AsyncV2": { + "description": "The operation is running or complete. If the operation was successful, use the Resource-Location header to obtain the path to the result.", + "schema": { + "$ref": "#/definitions/LongRunningOperationResult" + }, + "headers": { + "Resource-Location": { + "type": "string", + "description": "If successful, a URI where details on the newly created resource can be found." + } + } + }, + "201Async": { + "description": "The resource has been created successfully.", + "schema": { + "$ref": "#/definitions/LongRunningOperationResult" + }, + "headers": { + "Location": { + "type": "string", + "description": "A URI where details on the newly created resource can be found." + } + } + }, + "202Async": { + "description": "**Supported only for async request.**\nRequest Accepted: The request has been accepted for processing. Please use the URL in the Location Header to retry or access the results.", + "headers": { + "Location": { + "type": "string", + "description": "New URL to check for the results of the long running process." + } + } + }, + "202AsyncV2": { + "description": "Request Accepted: The request has been accepted for processing. Please use the URL in the Operation-Location Header to obtain status.", + "headers": { + "Operation-Location": { + "type": "string", + "description": "New URL to check for the results of the long running process." + } + } + }, + "400": { + "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + }, + "401": { + "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "headers": { + "WWW-Authenticate": { + "type": "string", + "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" + } + }, + "x-ms-error-response": true + }, + "403": { + "description": "Permission, capacity, or authentication issues.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + }, + "404": { + "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + }, + "409": { + "description": "The request could not be completed due to a conflict with the current state of the resource. Likely caused by a parallel update to the same resource.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + }, + "409StorageLimit": { + "description": "The [data storage limit](https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/azure-subscription-service-limits#azure-maps-limits) is reached on the Azure Maps account. You can always use the [Data Delete API](https://docs.microsoft.com/en-us/rest/api/maps/data/deletepreview) to delete old/unused content and create space for new uploads.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + }, + "500": { + "description": "An error occurred while processing the request. Please try again later.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + } + }, + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "scopes": { + "user_impersonation": "Impersonates a user's Azure Active Directory account." + } + }, + "apiKeyQuery": { + "type": "apiKey", + "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", + "name": "subscription-key", + "in": "query" + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + }, + { + "apiKeyQuery": [] + } + ] +} diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index 675e55f34058..d3f390f05761 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -522,6 +522,11 @@ "required": [ "features" ] + }, + "Ontology": { + "type": "string", + "description": "The ontology version of this dataset.", + "readOnly": true } }, "parameters": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/common.json new file mode 100644 index 000000000000..f2af932e1a6f --- /dev/null +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/common.json @@ -0,0 +1,721 @@ +{ + "swagger": "2.0", + "info": { + "title": "Azure Maps Common Types", + "version": "2.0" + }, + "host": "atlas.microsoft.com", + "schemes": [ + "https" + ], + "consumes": [], + "produces": [ + "application/json", + "application/xml" + ], + "paths": {}, + "definitions": { + "LongRunningOperationResult": { + "description": "The response model for a Long-Running Operations API.", + "type": "object", + "properties": { + "operationId": { + "description": "The Id for this long-running operation.", + "type": "string" + }, + "status": { + "description": "The status state of the request.", + "type": "string", + "enum": [ + "NotStarted", + "Running", + "Failed", + "Succeeded" + ], + "x-ms-enum": { + "name": "LroStatus", + "modelAsString": true, + "values": [ + { + "value": "NotStarted", + "description": "The request has not started processing yet." + }, + { + "value": "Running", + "description": "The request has started processing." + }, + { + "value": "Failed", + "description": "The request has one or more failures." + }, + { + "value": "Succeeded", + "description": "The request has successfully completed." + } + ] + }, + "readOnly": true + }, + "created": { + "description": "The created timestamp.", + "type": "string", + "readOnly": true + }, + "resourceLocation": { + "description": "The location URI for details about the created resource. This is only provided when the request was successfully completed.", + "type": "string", + "readOnly": true + }, + "error": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" + }, + "warning": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" + } + } + }, + "BatchRequestBody": { + "description": "This type represents the request body for the Batch service.", + "type": "object", + "properties": { + "batchItems": { + "description": "The list of queries to process.", + "type": "array", + "items": { + "description": "Batch Query object", + "type": "object", + "properties": { + "query": { + "description": "Partial query string.", + "type": "string", + "example": "?query=One, Microsoft Way, Redmond, WA 98052&limit=3" + } + } + } + } + } + }, + "BatchResponse": { + "description": "This object is returned from a successful Batch service call. Extend with 'batchItems' property.", + "type": "object", + "properties": { + "summary": { + "description": "Summary for the batch request", + "type": "object", + "readOnly": true, + "properties": { + "successfulRequests": { + "description": "Number of successful requests in the batch", + "type": "integer", + "readOnly": true + }, + "totalRequests": { + "description": "Total number of requests in the batch", + "type": "integer", + "readOnly": true + } + } + } + } + }, + "BatchItem": { + "description": "An item returned from Batch API. Extend with 'response' property.", + "type": "object", + "properties": { + "statusCode": { + "description": "HTTP request status code.", + "type": "number", + "readOnly": true, + "example": 200 + } + } + }, + "CoordinatesPair": { + "description": "A location represented as a latitude and longitude.", + "type": "object", + "properties": { + "latitude": { + "description": "Latitude property", + "type": "number", + "format": "double" + }, + "longitude": { + "description": "Longitude property", + "type": "number", + "format": "double" + } + } + }, + "CoordinatesPairAbbreviated": { + "description": "A location represented as a latitude and longitude using short names 'lat' & 'lon'.", + "type": "object", + "properties": { + "lat": { + "description": "Latitude property", + "type": "number", + "format": "double" + }, + "lon": { + "description": "Longitude property", + "type": "number", + "format": "double" + } + } + }, + "GeoJsonPosition": { + "description": "A `Position` is an array of numbers with two or more elements. The first two elements are _longitude_ and _latitude_, precisely in that order. _Altitude/Elevation_ is an optional third element. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.1) for details.", + "type": "array", + "items": { + "type": "number", + "format": "double" + } + }, + "GeoJsonLinearRing": { + "description": "Though a linear ring is not explicitly represented as a GeoJSON geometry type, it helps in defining the polygon as an array of linear rings. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.6) for details.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonPosition" + } + }, + "GeoJsonObject": { + "description": "A valid `GeoJSON` object. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3) for details.", + "type": "object", + "discriminator": "type", + "required": [ + "type" + ], + "properties": { + "type": { + "description": "Specifies the `GeoJSON` type. Must be one of the nine valid GeoJSON object types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon, GeometryCollection, Feature and FeatureCollection.", + "type": "string", + "enum": [ + "Point", + "MultiPoint", + "LineString", + "MultiLineString", + "Polygon", + "MultiPolygon", + "GeometryCollection", + "Feature", + "FeatureCollection" + ], + "x-ms-enum": { + "name": "GeoJsonObjectType", + "modelAsString": true, + "values": [ + { + "value": "Point", + "description": "`GeoJSON Point` geometry.", + "name": "GeoJsonPoint" + }, + { + "value": "MultiPoint", + "description": "`GeoJSON MultiPoint` geometry.", + "name": "GeoJsonMultiPoint" + }, + { + "value": "LineString", + "description": "`GeoJSON LineString` geometry.", + "name": "GeoJsonLineString" + }, + { + "value": "MultiLineString", + "description": "`GeoJSON MultiLineString` geometry.", + "name": "GeoJsonMultiLineString" + }, + { + "value": "Polygon", + "description": "`GeoJSON Polygon` geometry.", + "name": "GeoJsonPolygon" + }, + { + "value": "MultiPolygon", + "description": "`GeoJSON MultiPolygon` geometry.", + "name": "GeoJsonMultiPolygon" + }, + { + "value": "GeometryCollection", + "description": "`GeoJSON GeometryCollection` geometry.", + "name": "GeoJsonGeometryCollection" + }, + { + "value": "Feature", + "description": "`GeoJSON Feature` object.", + "name": "GeoJsonFeature" + }, + { + "value": "FeatureCollection", + "description": "`GeoJSON FeatureCollection` object.", + "name": "GeoJsonFeatureCollection" + } + ] + } + } + } + }, + "GeoJsonGeometry": { + "description": "A valid `GeoJSON` geometry object. The type must be one of the seven valid GeoJSON geometry types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon and GeometryCollection. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1) for details.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonObject" + } + ] + }, + "GeoJsonPoint": { + "description": "A valid `GeoJSON Point` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.2) for details.", + "x-ms-discriminator-value": "Point", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonPointData" + } + ] + }, + "GeoJsonPointData": { + "description": "Data contained by a `GeoJson Point`.", + "type": "object", + "properties": { + "coordinates": { + "$ref": "#/definitions/GeoJsonPosition" + } + }, + "required": [ + "coordinates" + ] + }, + "GeoJsonMultiPoint": { + "description": "A valid `GeoJSON MultiPoint` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.3) for details.", + "x-ms-discriminator-value": "MultiPoint", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonMultiPointData" + } + ] + }, + "GeoJsonMultiPointData": { + "type": "object", + "description": "Data contained by a `GeoJson MultiPoint`.", + "properties": { + "coordinates": { + "description": "Coordinates for the `GeoJson MultiPoint` geometry.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonPosition" + } + } + }, + "required": [ + "coordinates" + ] + }, + "GeoJsonLineString": { + "description": "A valid `GeoJSON LineString` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.4) for details.", + "x-ms-discriminator-value": "LineString", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonLineStringData" + } + ] + }, + "GeoJsonLineStringData": { + "type": "object", + "properties": { + "coordinates": { + "description": "Coordinates for the `GeoJson LineString` geometry.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonPosition" + } + } + }, + "required": [ + "coordinates" + ] + }, + "GeoJsonMultiLineString": { + "description": "A valid `GeoJSON MultiLineString` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.5) for details.", + "x-ms-discriminator-value": "MultiLineString", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonMultiLineStringData" + } + ] + }, + "GeoJsonMultiLineStringData": { + "type": "object", + "properties": { + "coordinates": { + "description": "Coordinates for the `GeoJson MultiLineString` geometry.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonLinearRing" + } + } + }, + "required": [ + "coordinates" + ] + }, + "GeoJsonPolygon": { + "description": "A valid `GeoJSON Polygon` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.6) for details.", + "x-ms-discriminator-value": "Polygon", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonPolygonData" + } + ] + }, + "GeoJsonPolygonData": { + "type": "object", + "properties": { + "coordinates": { + "description": "Coordinates for the `GeoJson Polygon` geometry type.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonLinearRing" + } + } + }, + "required": [ + "coordinates" + ] + }, + "GeoJsonMultiPolygon": { + "description": "A valid `GeoJSON MultiPolygon` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.7) for details.", + "x-ms-discriminator-value": "MultiPolygon", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonMultiPolygonData" + } + ] + }, + "GeoJsonMultiPolygonData": { + "type": "object", + "properties": { + "coordinates": { + "description": "Contains a list of valid `GeoJSON Polygon` objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude).", + "type": "array", + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonLinearRing" + } + } + } + }, + "required": [ + "coordinates" + ] + }, + "GeoJsonGeometryCollection": { + "description": "A valid `GeoJSON GeometryCollection` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.8) for details.", + "x-ms-discriminator-value": "GeometryCollection", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonGeometryCollectionData" + } + ] + }, + "GeoJsonGeometryCollectionData": { + "type": "object", + "properties": { + "geometries": { + "description": "Contains a list of valid `GeoJSON` geometry objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude).", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonGeometry" + } + } + }, + "required": [ + "geometries" + ] + }, + "GeoJsonFeature": { + "description": "A valid `GeoJSON Feature` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.2) for details.", + "x-ms-discriminator-value": "Feature", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonObject" + }, + { + "$ref": "#/definitions/GeoJsonFeatureData" + } + ] + }, + "GeoJsonFeatureData": { + "type": "object", + "properties": { + "geometry": { + "$ref": "#/definitions/GeoJsonGeometry" + }, + "properties": { + "description": "Properties can contain any additional metadata about the `Feature`. Value can be any JSON object or a JSON null value", + "type": "object" + }, + "id": { + "description": "Identifier for the feature.", + "type": "string" + }, + "featureType": { + "description": "The type of the feature. The value depends on the data model the current feature is part of. Some data models may have an empty value.", + "type": "string" + } + }, + "required": [ + "geometry" + ] + }, + "GeoJsonFeatureCollection": { + "description": "A valid `GeoJSON FeatureCollection` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.3) for details.", + "x-ms-discriminator-value": "FeatureCollection", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonObject" + }, + { + "$ref": "#/definitions/GeoJsonFeatureCollectionData" + } + ] + }, + "GeoJsonFeatureCollectionData": { + "type": "object", + "properties": { + "features": { + "description": "Contains a list of valid `GeoJSON Feature` objects.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonFeature" + } + } + }, + "required": [ + "features" + ] + }, + "Ontology": { + "type": "string", + "description": "The ontology version of this dataset.", + "readOnly": true + } + }, + "parameters": { + "SubscriptionKey": { + "name": "subscription-key", + "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", + "type": "string", + "in": "query", + "required": false, + "x-ms-parameter-location": "client" + }, + "ApiVersion": { + "name": "api-version", + "description": "Version number of Azure Maps API.", + "type": "string", + "in": "query", + "required": true, + "default": "1.0", + "x-ms-parameter-location": "client" + }, + "ApiVersionV2": { + "name": "api-version", + "description": "Version number of Azure Maps API.", + "type": "string", + "in": "query", + "required": true, + "default": "2.0", + "x-ms-parameter-location": "client" + }, + "ClientId": { + "name": "x-ms-client-id", + "description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.", + "type": "string", + "in": "header", + "required": false, + "x-ms-parameter-location": "client" + }, + "JsonFormat": { + "name": "format", + "description": "Desired format of the response. Only `json` format is supported.", + "type": "string", + "in": "path", + "required": true, + "enum": [ + "json" + ], + "x-ms-enum": { + "name": "JsonFormat", + "modelAsString": true, + "values": [ + { + "value": "json", + "description": "[The JavaScript Object Notation Data Interchange Format](https://tools.ietf.org/html/rfc8259)" + } + ] + }, + "x-ms-parameter-location": "method" + } + }, + "responses": { + "200Async": { + "description": "The operation's status response.", + "schema": { + "$ref": "#/definitions/LongRunningOperationResult" + } + }, + "200AsyncV2": { + "description": "The operation is running or complete. If the operation was successful, use the Resource-Location header to obtain the path to the result.", + "schema": { + "$ref": "#/definitions/LongRunningOperationResult" + }, + "headers": { + "Resource-Location": { + "type": "string", + "description": "If successful, a URI where details on the newly created resource can be found." + } + } + }, + "201Async": { + "description": "The resource has been created successfully.", + "schema": { + "$ref": "#/definitions/LongRunningOperationResult" + }, + "headers": { + "Location": { + "type": "string", + "description": "A URI where details on the newly created resource can be found." + } + } + }, + "202Async": { + "description": "**Supported only for async request.**\nRequest Accepted: The request has been accepted for processing. Please use the URL in the Location Header to retry or access the results.", + "headers": { + "Location": { + "type": "string", + "description": "New URL to check for the results of the long running process." + } + } + }, + "202AsyncV2": { + "description": "Request Accepted: The request has been accepted for processing. Please use the URL in the Operation-Location Header to obtain status.", + "headers": { + "Operation-Location": { + "type": "string", + "description": "New URL to check for the results of the long running process." + } + } + }, + "400": { + "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + }, + "401": { + "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "headers": { + "WWW-Authenticate": { + "type": "string", + "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" + } + }, + "x-ms-error-response": true + }, + "403": { + "description": "Permission, capacity, or authentication issues.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + }, + "404": { + "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + }, + "409": { + "description": "The request could not be completed due to a conflict with the current state of the resource. Likely caused by a parallel update to the same resource.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + }, + "409StorageLimit": { + "description": "The [data storage limit](https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/azure-subscription-service-limits#azure-maps-limits) is reached on the Azure Maps account. You can always use the [Data Delete API](https://docs.microsoft.com/en-us/rest/api/maps/data/deletepreview) to delete old/unused content and create space for new uploads.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + }, + "500": { + "description": "An error occurred while processing the request. Please try again later.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + } + }, + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "scopes": { + "user_impersonation": "Impersonates a user's Azure Active Directory account." + } + }, + "apiKeyQuery": { + "type": "apiKey", + "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", + "name": "subscription-key", + "in": "query" + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + }, + { + "apiKeyQuery": [] + } + ] +} diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json index ad3da6c8f588..c6c6681dc231 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json @@ -155,13 +155,13 @@ ], "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" + "$ref": "./common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "./common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "./common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/UploadDataDescription" @@ -186,25 +186,25 @@ "x-ms-error-response": true }, "202": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/202AsyncV2" + "$ref": "./common.json#/responses/202AsyncV2" }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "./common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "./common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "./common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "./common.json#/responses/404" }, "409": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/409StorageLimit" + "$ref": "./common.json#/responses/409StorageLimit" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "./common.json#/responses/500" } } }, @@ -219,13 +219,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" + "$ref": "./common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "./common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "./common.json#/parameters/ApiVersionV2" } ], "responses": { @@ -236,19 +236,19 @@ } }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "./common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "./common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "./common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "./common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "./common.json#/responses/500" } } } @@ -272,13 +272,13 @@ ], "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" + "$ref": "./common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "./common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "./common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/UniqueDataId" @@ -303,25 +303,25 @@ "x-ms-error-response": true }, "202": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/202AsyncV2" + "$ref": "./common.json#/responses/202AsyncV2" }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "./common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "./common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "./common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "./common.json#/responses/404" }, "409": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/409StorageLimit" + "$ref": "./common.json#/responses/409StorageLimit" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "./common.json#/responses/500" } } }, @@ -341,13 +341,13 @@ ], "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" + "$ref": "./common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "./common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "./common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/UniqueDataId" @@ -386,13 +386,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" + "$ref": "./common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "./common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "./common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/UniqueDataId" @@ -403,19 +403,19 @@ "description": "Data delete request completed successfully. The content for `udid` was deleted on the server." }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "./common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "./common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "./common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "./common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "./common.json#/responses/500" } } } @@ -434,10 +434,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "./common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "./common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/DataUploadOperationId" @@ -445,10 +445,10 @@ ], "responses": { "200": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/200AsyncV2" + "$ref": "./common.json#/responses/200AsyncV2" }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "./common.json#/responses/400" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/common.json new file mode 100644 index 000000000000..f2af932e1a6f --- /dev/null +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/common.json @@ -0,0 +1,721 @@ +{ + "swagger": "2.0", + "info": { + "title": "Azure Maps Common Types", + "version": "2.0" + }, + "host": "atlas.microsoft.com", + "schemes": [ + "https" + ], + "consumes": [], + "produces": [ + "application/json", + "application/xml" + ], + "paths": {}, + "definitions": { + "LongRunningOperationResult": { + "description": "The response model for a Long-Running Operations API.", + "type": "object", + "properties": { + "operationId": { + "description": "The Id for this long-running operation.", + "type": "string" + }, + "status": { + "description": "The status state of the request.", + "type": "string", + "enum": [ + "NotStarted", + "Running", + "Failed", + "Succeeded" + ], + "x-ms-enum": { + "name": "LroStatus", + "modelAsString": true, + "values": [ + { + "value": "NotStarted", + "description": "The request has not started processing yet." + }, + { + "value": "Running", + "description": "The request has started processing." + }, + { + "value": "Failed", + "description": "The request has one or more failures." + }, + { + "value": "Succeeded", + "description": "The request has successfully completed." + } + ] + }, + "readOnly": true + }, + "created": { + "description": "The created timestamp.", + "type": "string", + "readOnly": true + }, + "resourceLocation": { + "description": "The location URI for details about the created resource. This is only provided when the request was successfully completed.", + "type": "string", + "readOnly": true + }, + "error": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" + }, + "warning": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" + } + } + }, + "BatchRequestBody": { + "description": "This type represents the request body for the Batch service.", + "type": "object", + "properties": { + "batchItems": { + "description": "The list of queries to process.", + "type": "array", + "items": { + "description": "Batch Query object", + "type": "object", + "properties": { + "query": { + "description": "Partial query string.", + "type": "string", + "example": "?query=One, Microsoft Way, Redmond, WA 98052&limit=3" + } + } + } + } + } + }, + "BatchResponse": { + "description": "This object is returned from a successful Batch service call. Extend with 'batchItems' property.", + "type": "object", + "properties": { + "summary": { + "description": "Summary for the batch request", + "type": "object", + "readOnly": true, + "properties": { + "successfulRequests": { + "description": "Number of successful requests in the batch", + "type": "integer", + "readOnly": true + }, + "totalRequests": { + "description": "Total number of requests in the batch", + "type": "integer", + "readOnly": true + } + } + } + } + }, + "BatchItem": { + "description": "An item returned from Batch API. Extend with 'response' property.", + "type": "object", + "properties": { + "statusCode": { + "description": "HTTP request status code.", + "type": "number", + "readOnly": true, + "example": 200 + } + } + }, + "CoordinatesPair": { + "description": "A location represented as a latitude and longitude.", + "type": "object", + "properties": { + "latitude": { + "description": "Latitude property", + "type": "number", + "format": "double" + }, + "longitude": { + "description": "Longitude property", + "type": "number", + "format": "double" + } + } + }, + "CoordinatesPairAbbreviated": { + "description": "A location represented as a latitude and longitude using short names 'lat' & 'lon'.", + "type": "object", + "properties": { + "lat": { + "description": "Latitude property", + "type": "number", + "format": "double" + }, + "lon": { + "description": "Longitude property", + "type": "number", + "format": "double" + } + } + }, + "GeoJsonPosition": { + "description": "A `Position` is an array of numbers with two or more elements. The first two elements are _longitude_ and _latitude_, precisely in that order. _Altitude/Elevation_ is an optional third element. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.1) for details.", + "type": "array", + "items": { + "type": "number", + "format": "double" + } + }, + "GeoJsonLinearRing": { + "description": "Though a linear ring is not explicitly represented as a GeoJSON geometry type, it helps in defining the polygon as an array of linear rings. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.6) for details.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonPosition" + } + }, + "GeoJsonObject": { + "description": "A valid `GeoJSON` object. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3) for details.", + "type": "object", + "discriminator": "type", + "required": [ + "type" + ], + "properties": { + "type": { + "description": "Specifies the `GeoJSON` type. Must be one of the nine valid GeoJSON object types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon, GeometryCollection, Feature and FeatureCollection.", + "type": "string", + "enum": [ + "Point", + "MultiPoint", + "LineString", + "MultiLineString", + "Polygon", + "MultiPolygon", + "GeometryCollection", + "Feature", + "FeatureCollection" + ], + "x-ms-enum": { + "name": "GeoJsonObjectType", + "modelAsString": true, + "values": [ + { + "value": "Point", + "description": "`GeoJSON Point` geometry.", + "name": "GeoJsonPoint" + }, + { + "value": "MultiPoint", + "description": "`GeoJSON MultiPoint` geometry.", + "name": "GeoJsonMultiPoint" + }, + { + "value": "LineString", + "description": "`GeoJSON LineString` geometry.", + "name": "GeoJsonLineString" + }, + { + "value": "MultiLineString", + "description": "`GeoJSON MultiLineString` geometry.", + "name": "GeoJsonMultiLineString" + }, + { + "value": "Polygon", + "description": "`GeoJSON Polygon` geometry.", + "name": "GeoJsonPolygon" + }, + { + "value": "MultiPolygon", + "description": "`GeoJSON MultiPolygon` geometry.", + "name": "GeoJsonMultiPolygon" + }, + { + "value": "GeometryCollection", + "description": "`GeoJSON GeometryCollection` geometry.", + "name": "GeoJsonGeometryCollection" + }, + { + "value": "Feature", + "description": "`GeoJSON Feature` object.", + "name": "GeoJsonFeature" + }, + { + "value": "FeatureCollection", + "description": "`GeoJSON FeatureCollection` object.", + "name": "GeoJsonFeatureCollection" + } + ] + } + } + } + }, + "GeoJsonGeometry": { + "description": "A valid `GeoJSON` geometry object. The type must be one of the seven valid GeoJSON geometry types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon and GeometryCollection. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1) for details.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonObject" + } + ] + }, + "GeoJsonPoint": { + "description": "A valid `GeoJSON Point` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.2) for details.", + "x-ms-discriminator-value": "Point", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonPointData" + } + ] + }, + "GeoJsonPointData": { + "description": "Data contained by a `GeoJson Point`.", + "type": "object", + "properties": { + "coordinates": { + "$ref": "#/definitions/GeoJsonPosition" + } + }, + "required": [ + "coordinates" + ] + }, + "GeoJsonMultiPoint": { + "description": "A valid `GeoJSON MultiPoint` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.3) for details.", + "x-ms-discriminator-value": "MultiPoint", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonMultiPointData" + } + ] + }, + "GeoJsonMultiPointData": { + "type": "object", + "description": "Data contained by a `GeoJson MultiPoint`.", + "properties": { + "coordinates": { + "description": "Coordinates for the `GeoJson MultiPoint` geometry.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonPosition" + } + } + }, + "required": [ + "coordinates" + ] + }, + "GeoJsonLineString": { + "description": "A valid `GeoJSON LineString` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.4) for details.", + "x-ms-discriminator-value": "LineString", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonLineStringData" + } + ] + }, + "GeoJsonLineStringData": { + "type": "object", + "properties": { + "coordinates": { + "description": "Coordinates for the `GeoJson LineString` geometry.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonPosition" + } + } + }, + "required": [ + "coordinates" + ] + }, + "GeoJsonMultiLineString": { + "description": "A valid `GeoJSON MultiLineString` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.5) for details.", + "x-ms-discriminator-value": "MultiLineString", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonMultiLineStringData" + } + ] + }, + "GeoJsonMultiLineStringData": { + "type": "object", + "properties": { + "coordinates": { + "description": "Coordinates for the `GeoJson MultiLineString` geometry.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonLinearRing" + } + } + }, + "required": [ + "coordinates" + ] + }, + "GeoJsonPolygon": { + "description": "A valid `GeoJSON Polygon` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.6) for details.", + "x-ms-discriminator-value": "Polygon", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonPolygonData" + } + ] + }, + "GeoJsonPolygonData": { + "type": "object", + "properties": { + "coordinates": { + "description": "Coordinates for the `GeoJson Polygon` geometry type.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonLinearRing" + } + } + }, + "required": [ + "coordinates" + ] + }, + "GeoJsonMultiPolygon": { + "description": "A valid `GeoJSON MultiPolygon` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.7) for details.", + "x-ms-discriminator-value": "MultiPolygon", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonMultiPolygonData" + } + ] + }, + "GeoJsonMultiPolygonData": { + "type": "object", + "properties": { + "coordinates": { + "description": "Contains a list of valid `GeoJSON Polygon` objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude).", + "type": "array", + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonLinearRing" + } + } + } + }, + "required": [ + "coordinates" + ] + }, + "GeoJsonGeometryCollection": { + "description": "A valid `GeoJSON GeometryCollection` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.8) for details.", + "x-ms-discriminator-value": "GeometryCollection", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonGeometryCollectionData" + } + ] + }, + "GeoJsonGeometryCollectionData": { + "type": "object", + "properties": { + "geometries": { + "description": "Contains a list of valid `GeoJSON` geometry objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude).", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonGeometry" + } + } + }, + "required": [ + "geometries" + ] + }, + "GeoJsonFeature": { + "description": "A valid `GeoJSON Feature` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.2) for details.", + "x-ms-discriminator-value": "Feature", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonObject" + }, + { + "$ref": "#/definitions/GeoJsonFeatureData" + } + ] + }, + "GeoJsonFeatureData": { + "type": "object", + "properties": { + "geometry": { + "$ref": "#/definitions/GeoJsonGeometry" + }, + "properties": { + "description": "Properties can contain any additional metadata about the `Feature`. Value can be any JSON object or a JSON null value", + "type": "object" + }, + "id": { + "description": "Identifier for the feature.", + "type": "string" + }, + "featureType": { + "description": "The type of the feature. The value depends on the data model the current feature is part of. Some data models may have an empty value.", + "type": "string" + } + }, + "required": [ + "geometry" + ] + }, + "GeoJsonFeatureCollection": { + "description": "A valid `GeoJSON FeatureCollection` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.3) for details.", + "x-ms-discriminator-value": "FeatureCollection", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonObject" + }, + { + "$ref": "#/definitions/GeoJsonFeatureCollectionData" + } + ] + }, + "GeoJsonFeatureCollectionData": { + "type": "object", + "properties": { + "features": { + "description": "Contains a list of valid `GeoJSON Feature` objects.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonFeature" + } + } + }, + "required": [ + "features" + ] + }, + "Ontology": { + "type": "string", + "description": "The ontology version of this dataset.", + "readOnly": true + } + }, + "parameters": { + "SubscriptionKey": { + "name": "subscription-key", + "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", + "type": "string", + "in": "query", + "required": false, + "x-ms-parameter-location": "client" + }, + "ApiVersion": { + "name": "api-version", + "description": "Version number of Azure Maps API.", + "type": "string", + "in": "query", + "required": true, + "default": "1.0", + "x-ms-parameter-location": "client" + }, + "ApiVersionV2": { + "name": "api-version", + "description": "Version number of Azure Maps API.", + "type": "string", + "in": "query", + "required": true, + "default": "2.0", + "x-ms-parameter-location": "client" + }, + "ClientId": { + "name": "x-ms-client-id", + "description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.", + "type": "string", + "in": "header", + "required": false, + "x-ms-parameter-location": "client" + }, + "JsonFormat": { + "name": "format", + "description": "Desired format of the response. Only `json` format is supported.", + "type": "string", + "in": "path", + "required": true, + "enum": [ + "json" + ], + "x-ms-enum": { + "name": "JsonFormat", + "modelAsString": true, + "values": [ + { + "value": "json", + "description": "[The JavaScript Object Notation Data Interchange Format](https://tools.ietf.org/html/rfc8259)" + } + ] + }, + "x-ms-parameter-location": "method" + } + }, + "responses": { + "200Async": { + "description": "The operation's status response.", + "schema": { + "$ref": "#/definitions/LongRunningOperationResult" + } + }, + "200AsyncV2": { + "description": "The operation is running or complete. If the operation was successful, use the Resource-Location header to obtain the path to the result.", + "schema": { + "$ref": "#/definitions/LongRunningOperationResult" + }, + "headers": { + "Resource-Location": { + "type": "string", + "description": "If successful, a URI where details on the newly created resource can be found." + } + } + }, + "201Async": { + "description": "The resource has been created successfully.", + "schema": { + "$ref": "#/definitions/LongRunningOperationResult" + }, + "headers": { + "Location": { + "type": "string", + "description": "A URI where details on the newly created resource can be found." + } + } + }, + "202Async": { + "description": "**Supported only for async request.**\nRequest Accepted: The request has been accepted for processing. Please use the URL in the Location Header to retry or access the results.", + "headers": { + "Location": { + "type": "string", + "description": "New URL to check for the results of the long running process." + } + } + }, + "202AsyncV2": { + "description": "Request Accepted: The request has been accepted for processing. Please use the URL in the Operation-Location Header to obtain status.", + "headers": { + "Operation-Location": { + "type": "string", + "description": "New URL to check for the results of the long running process." + } + } + }, + "400": { + "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + }, + "401": { + "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "headers": { + "WWW-Authenticate": { + "type": "string", + "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" + } + }, + "x-ms-error-response": true + }, + "403": { + "description": "Permission, capacity, or authentication issues.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + }, + "404": { + "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + }, + "409": { + "description": "The request could not be completed due to a conflict with the current state of the resource. Likely caused by a parallel update to the same resource.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + }, + "409StorageLimit": { + "description": "The [data storage limit](https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/azure-subscription-service-limits#azure-maps-limits) is reached on the Azure Maps account. You can always use the [Data Delete API](https://docs.microsoft.com/en-us/rest/api/maps/data/deletepreview) to delete old/unused content and create space for new uploads.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + }, + "500": { + "description": "An error occurred while processing the request. Please try again later.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + } + }, + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "scopes": { + "user_impersonation": "Impersonates a user's Azure Active Directory account." + } + }, + "apiKeyQuery": { + "type": "apiKey", + "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", + "name": "subscription-key", + "in": "query" + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + }, + { + "apiKeyQuery": [] + } + ] +} diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json index c9fbcf2397fa..9b00f8f6e85b 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json @@ -136,10 +136,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "./common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "./common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/ConversionIdQuery" @@ -160,22 +160,22 @@ "x-ms-error-response": true }, "202": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/202AsyncV2" + "$ref": "./common.json#/responses/202AsyncV2" }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "./common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "./common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "./common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "./common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "./common.json#/responses/500" } } }, @@ -190,10 +190,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "./common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "./common.json#/parameters/ApiVersionV2" } ], "responses": { @@ -204,19 +204,19 @@ } }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "./common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "./common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "./common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "./common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "./common.json#/responses/500" } } } @@ -236,10 +236,10 @@ "$ref": "#/parameters/DatasetId" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "./common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "./common.json#/parameters/ApiVersionV2" } ], "responses": { @@ -250,19 +250,19 @@ } }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "./common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "./common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "./common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "./common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "./common.json#/responses/500" } } }, @@ -277,10 +277,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "./common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "./common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/DatasetId" @@ -291,19 +291,19 @@ "description": "The dataset delete request completed successfully. The resource referenced by the `datasetId` was deleted from the server." }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "./common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "./common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "./common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "./common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "./common.json#/responses/500" } } } @@ -322,10 +322,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "./common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "./common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/DatasetOperationId" @@ -333,10 +333,10 @@ ], "responses": { "200": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/200AsyncV2" + "$ref": "./common.json#/responses/200AsyncV2" }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "./common.json#/responses/400" } } } @@ -377,7 +377,7 @@ "readOnly": true }, "ontology": { - "$ref": "../../../Common/preview/2.0/common.json#/definitions/Ontology" + "$ref": "./common.json#/definitions/Ontology" }, "description": { "description": "The description for the dataset.", diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/common.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/common.json new file mode 100644 index 000000000000..f2af932e1a6f --- /dev/null +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/common.json @@ -0,0 +1,721 @@ +{ + "swagger": "2.0", + "info": { + "title": "Azure Maps Common Types", + "version": "2.0" + }, + "host": "atlas.microsoft.com", + "schemes": [ + "https" + ], + "consumes": [], + "produces": [ + "application/json", + "application/xml" + ], + "paths": {}, + "definitions": { + "LongRunningOperationResult": { + "description": "The response model for a Long-Running Operations API.", + "type": "object", + "properties": { + "operationId": { + "description": "The Id for this long-running operation.", + "type": "string" + }, + "status": { + "description": "The status state of the request.", + "type": "string", + "enum": [ + "NotStarted", + "Running", + "Failed", + "Succeeded" + ], + "x-ms-enum": { + "name": "LroStatus", + "modelAsString": true, + "values": [ + { + "value": "NotStarted", + "description": "The request has not started processing yet." + }, + { + "value": "Running", + "description": "The request has started processing." + }, + { + "value": "Failed", + "description": "The request has one or more failures." + }, + { + "value": "Succeeded", + "description": "The request has successfully completed." + } + ] + }, + "readOnly": true + }, + "created": { + "description": "The created timestamp.", + "type": "string", + "readOnly": true + }, + "resourceLocation": { + "description": "The location URI for details about the created resource. This is only provided when the request was successfully completed.", + "type": "string", + "readOnly": true + }, + "error": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" + }, + "warning": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" + } + } + }, + "BatchRequestBody": { + "description": "This type represents the request body for the Batch service.", + "type": "object", + "properties": { + "batchItems": { + "description": "The list of queries to process.", + "type": "array", + "items": { + "description": "Batch Query object", + "type": "object", + "properties": { + "query": { + "description": "Partial query string.", + "type": "string", + "example": "?query=One, Microsoft Way, Redmond, WA 98052&limit=3" + } + } + } + } + } + }, + "BatchResponse": { + "description": "This object is returned from a successful Batch service call. Extend with 'batchItems' property.", + "type": "object", + "properties": { + "summary": { + "description": "Summary for the batch request", + "type": "object", + "readOnly": true, + "properties": { + "successfulRequests": { + "description": "Number of successful requests in the batch", + "type": "integer", + "readOnly": true + }, + "totalRequests": { + "description": "Total number of requests in the batch", + "type": "integer", + "readOnly": true + } + } + } + } + }, + "BatchItem": { + "description": "An item returned from Batch API. Extend with 'response' property.", + "type": "object", + "properties": { + "statusCode": { + "description": "HTTP request status code.", + "type": "number", + "readOnly": true, + "example": 200 + } + } + }, + "CoordinatesPair": { + "description": "A location represented as a latitude and longitude.", + "type": "object", + "properties": { + "latitude": { + "description": "Latitude property", + "type": "number", + "format": "double" + }, + "longitude": { + "description": "Longitude property", + "type": "number", + "format": "double" + } + } + }, + "CoordinatesPairAbbreviated": { + "description": "A location represented as a latitude and longitude using short names 'lat' & 'lon'.", + "type": "object", + "properties": { + "lat": { + "description": "Latitude property", + "type": "number", + "format": "double" + }, + "lon": { + "description": "Longitude property", + "type": "number", + "format": "double" + } + } + }, + "GeoJsonPosition": { + "description": "A `Position` is an array of numbers with two or more elements. The first two elements are _longitude_ and _latitude_, precisely in that order. _Altitude/Elevation_ is an optional third element. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.1) for details.", + "type": "array", + "items": { + "type": "number", + "format": "double" + } + }, + "GeoJsonLinearRing": { + "description": "Though a linear ring is not explicitly represented as a GeoJSON geometry type, it helps in defining the polygon as an array of linear rings. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.6) for details.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonPosition" + } + }, + "GeoJsonObject": { + "description": "A valid `GeoJSON` object. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3) for details.", + "type": "object", + "discriminator": "type", + "required": [ + "type" + ], + "properties": { + "type": { + "description": "Specifies the `GeoJSON` type. Must be one of the nine valid GeoJSON object types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon, GeometryCollection, Feature and FeatureCollection.", + "type": "string", + "enum": [ + "Point", + "MultiPoint", + "LineString", + "MultiLineString", + "Polygon", + "MultiPolygon", + "GeometryCollection", + "Feature", + "FeatureCollection" + ], + "x-ms-enum": { + "name": "GeoJsonObjectType", + "modelAsString": true, + "values": [ + { + "value": "Point", + "description": "`GeoJSON Point` geometry.", + "name": "GeoJsonPoint" + }, + { + "value": "MultiPoint", + "description": "`GeoJSON MultiPoint` geometry.", + "name": "GeoJsonMultiPoint" + }, + { + "value": "LineString", + "description": "`GeoJSON LineString` geometry.", + "name": "GeoJsonLineString" + }, + { + "value": "MultiLineString", + "description": "`GeoJSON MultiLineString` geometry.", + "name": "GeoJsonMultiLineString" + }, + { + "value": "Polygon", + "description": "`GeoJSON Polygon` geometry.", + "name": "GeoJsonPolygon" + }, + { + "value": "MultiPolygon", + "description": "`GeoJSON MultiPolygon` geometry.", + "name": "GeoJsonMultiPolygon" + }, + { + "value": "GeometryCollection", + "description": "`GeoJSON GeometryCollection` geometry.", + "name": "GeoJsonGeometryCollection" + }, + { + "value": "Feature", + "description": "`GeoJSON Feature` object.", + "name": "GeoJsonFeature" + }, + { + "value": "FeatureCollection", + "description": "`GeoJSON FeatureCollection` object.", + "name": "GeoJsonFeatureCollection" + } + ] + } + } + } + }, + "GeoJsonGeometry": { + "description": "A valid `GeoJSON` geometry object. The type must be one of the seven valid GeoJSON geometry types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon and GeometryCollection. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1) for details.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonObject" + } + ] + }, + "GeoJsonPoint": { + "description": "A valid `GeoJSON Point` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.2) for details.", + "x-ms-discriminator-value": "Point", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonPointData" + } + ] + }, + "GeoJsonPointData": { + "description": "Data contained by a `GeoJson Point`.", + "type": "object", + "properties": { + "coordinates": { + "$ref": "#/definitions/GeoJsonPosition" + } + }, + "required": [ + "coordinates" + ] + }, + "GeoJsonMultiPoint": { + "description": "A valid `GeoJSON MultiPoint` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.3) for details.", + "x-ms-discriminator-value": "MultiPoint", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonMultiPointData" + } + ] + }, + "GeoJsonMultiPointData": { + "type": "object", + "description": "Data contained by a `GeoJson MultiPoint`.", + "properties": { + "coordinates": { + "description": "Coordinates for the `GeoJson MultiPoint` geometry.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonPosition" + } + } + }, + "required": [ + "coordinates" + ] + }, + "GeoJsonLineString": { + "description": "A valid `GeoJSON LineString` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.4) for details.", + "x-ms-discriminator-value": "LineString", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonLineStringData" + } + ] + }, + "GeoJsonLineStringData": { + "type": "object", + "properties": { + "coordinates": { + "description": "Coordinates for the `GeoJson LineString` geometry.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonPosition" + } + } + }, + "required": [ + "coordinates" + ] + }, + "GeoJsonMultiLineString": { + "description": "A valid `GeoJSON MultiLineString` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.5) for details.", + "x-ms-discriminator-value": "MultiLineString", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonMultiLineStringData" + } + ] + }, + "GeoJsonMultiLineStringData": { + "type": "object", + "properties": { + "coordinates": { + "description": "Coordinates for the `GeoJson MultiLineString` geometry.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonLinearRing" + } + } + }, + "required": [ + "coordinates" + ] + }, + "GeoJsonPolygon": { + "description": "A valid `GeoJSON Polygon` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.6) for details.", + "x-ms-discriminator-value": "Polygon", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonPolygonData" + } + ] + }, + "GeoJsonPolygonData": { + "type": "object", + "properties": { + "coordinates": { + "description": "Coordinates for the `GeoJson Polygon` geometry type.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonLinearRing" + } + } + }, + "required": [ + "coordinates" + ] + }, + "GeoJsonMultiPolygon": { + "description": "A valid `GeoJSON MultiPolygon` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.7) for details.", + "x-ms-discriminator-value": "MultiPolygon", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonMultiPolygonData" + } + ] + }, + "GeoJsonMultiPolygonData": { + "type": "object", + "properties": { + "coordinates": { + "description": "Contains a list of valid `GeoJSON Polygon` objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude).", + "type": "array", + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonLinearRing" + } + } + } + }, + "required": [ + "coordinates" + ] + }, + "GeoJsonGeometryCollection": { + "description": "A valid `GeoJSON GeometryCollection` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.8) for details.", + "x-ms-discriminator-value": "GeometryCollection", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonGeometryCollectionData" + } + ] + }, + "GeoJsonGeometryCollectionData": { + "type": "object", + "properties": { + "geometries": { + "description": "Contains a list of valid `GeoJSON` geometry objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude).", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonGeometry" + } + } + }, + "required": [ + "geometries" + ] + }, + "GeoJsonFeature": { + "description": "A valid `GeoJSON Feature` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.2) for details.", + "x-ms-discriminator-value": "Feature", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonObject" + }, + { + "$ref": "#/definitions/GeoJsonFeatureData" + } + ] + }, + "GeoJsonFeatureData": { + "type": "object", + "properties": { + "geometry": { + "$ref": "#/definitions/GeoJsonGeometry" + }, + "properties": { + "description": "Properties can contain any additional metadata about the `Feature`. Value can be any JSON object or a JSON null value", + "type": "object" + }, + "id": { + "description": "Identifier for the feature.", + "type": "string" + }, + "featureType": { + "description": "The type of the feature. The value depends on the data model the current feature is part of. Some data models may have an empty value.", + "type": "string" + } + }, + "required": [ + "geometry" + ] + }, + "GeoJsonFeatureCollection": { + "description": "A valid `GeoJSON FeatureCollection` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.3) for details.", + "x-ms-discriminator-value": "FeatureCollection", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonObject" + }, + { + "$ref": "#/definitions/GeoJsonFeatureCollectionData" + } + ] + }, + "GeoJsonFeatureCollectionData": { + "type": "object", + "properties": { + "features": { + "description": "Contains a list of valid `GeoJSON Feature` objects.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonFeature" + } + } + }, + "required": [ + "features" + ] + }, + "Ontology": { + "type": "string", + "description": "The ontology version of this dataset.", + "readOnly": true + } + }, + "parameters": { + "SubscriptionKey": { + "name": "subscription-key", + "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", + "type": "string", + "in": "query", + "required": false, + "x-ms-parameter-location": "client" + }, + "ApiVersion": { + "name": "api-version", + "description": "Version number of Azure Maps API.", + "type": "string", + "in": "query", + "required": true, + "default": "1.0", + "x-ms-parameter-location": "client" + }, + "ApiVersionV2": { + "name": "api-version", + "description": "Version number of Azure Maps API.", + "type": "string", + "in": "query", + "required": true, + "default": "2.0", + "x-ms-parameter-location": "client" + }, + "ClientId": { + "name": "x-ms-client-id", + "description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.", + "type": "string", + "in": "header", + "required": false, + "x-ms-parameter-location": "client" + }, + "JsonFormat": { + "name": "format", + "description": "Desired format of the response. Only `json` format is supported.", + "type": "string", + "in": "path", + "required": true, + "enum": [ + "json" + ], + "x-ms-enum": { + "name": "JsonFormat", + "modelAsString": true, + "values": [ + { + "value": "json", + "description": "[The JavaScript Object Notation Data Interchange Format](https://tools.ietf.org/html/rfc8259)" + } + ] + }, + "x-ms-parameter-location": "method" + } + }, + "responses": { + "200Async": { + "description": "The operation's status response.", + "schema": { + "$ref": "#/definitions/LongRunningOperationResult" + } + }, + "200AsyncV2": { + "description": "The operation is running or complete. If the operation was successful, use the Resource-Location header to obtain the path to the result.", + "schema": { + "$ref": "#/definitions/LongRunningOperationResult" + }, + "headers": { + "Resource-Location": { + "type": "string", + "description": "If successful, a URI where details on the newly created resource can be found." + } + } + }, + "201Async": { + "description": "The resource has been created successfully.", + "schema": { + "$ref": "#/definitions/LongRunningOperationResult" + }, + "headers": { + "Location": { + "type": "string", + "description": "A URI where details on the newly created resource can be found." + } + } + }, + "202Async": { + "description": "**Supported only for async request.**\nRequest Accepted: The request has been accepted for processing. Please use the URL in the Location Header to retry or access the results.", + "headers": { + "Location": { + "type": "string", + "description": "New URL to check for the results of the long running process." + } + } + }, + "202AsyncV2": { + "description": "Request Accepted: The request has been accepted for processing. Please use the URL in the Operation-Location Header to obtain status.", + "headers": { + "Operation-Location": { + "type": "string", + "description": "New URL to check for the results of the long running process." + } + } + }, + "400": { + "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + }, + "401": { + "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "headers": { + "WWW-Authenticate": { + "type": "string", + "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" + } + }, + "x-ms-error-response": true + }, + "403": { + "description": "Permission, capacity, or authentication issues.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + }, + "404": { + "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + }, + "409": { + "description": "The request could not be completed due to a conflict with the current state of the resource. Likely caused by a parallel update to the same resource.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + }, + "409StorageLimit": { + "description": "The [data storage limit](https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/azure-subscription-service-limits#azure-maps-limits) is reached on the Azure Maps account. You can always use the [Data Delete API](https://docs.microsoft.com/en-us/rest/api/maps/data/deletepreview) to delete old/unused content and create space for new uploads.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + }, + "500": { + "description": "An error occurred while processing the request. Please try again later.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + } + }, + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "scopes": { + "user_impersonation": "Impersonates a user's Azure Active Directory account." + } + }, + "apiKeyQuery": { + "type": "apiKey", + "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", + "name": "subscription-key", + "in": "query" + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + }, + { + "apiKeyQuery": [] + } + ] +} diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json index 4a57f4c9f744..04f0330ab2a8 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json @@ -134,13 +134,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" + "$ref": "./common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "./common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "./common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/UdidQuery" @@ -161,22 +161,22 @@ "x-ms-error-response": true }, "202": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/202AsyncV2" + "$ref": "./common.json#/responses/202AsyncV2" }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "./common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "./common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "./common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "./common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "./common.json#/responses/500" } } }, @@ -191,13 +191,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" + "$ref": "./common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "./common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "./common.json#/parameters/ApiVersionV2" } ], "responses": { @@ -208,19 +208,19 @@ } }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "./common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "./common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "./common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "./common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "./common.json#/responses/500" } } } @@ -237,13 +237,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" + "$ref": "./common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "./common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "./common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/ConversionId" @@ -257,19 +257,19 @@ } }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "./common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "./common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "./common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "./common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "./common.json#/responses/500" } } }, @@ -284,13 +284,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" + "$ref": "./common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "./common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "./common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/ConversionId" @@ -301,19 +301,19 @@ "description": "Conversion delete request completed successfully. The content for `conversionId` was deleted on the server." }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "./common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "./common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "./common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "./common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "./common.json#/responses/500" } } } @@ -332,10 +332,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "./common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "./common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/ConversionOperationId" @@ -343,10 +343,10 @@ ], "responses": { "200": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/200AsyncV2" + "$ref": "./common.json#/responses/200AsyncV2" }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "./common.json#/responses/400" } } } @@ -382,7 +382,7 @@ "readOnly": true }, "ontology": { - "$ref": "../../../Common/preview/2.0/common.json#/definitions/Ontology" + "$ref": "./common.json#/definitions/Ontology" }, "udid": { "description": "The unique id of the content provided to create this conversion.", diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/common.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/common.json new file mode 100644 index 000000000000..f2af932e1a6f --- /dev/null +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/common.json @@ -0,0 +1,721 @@ +{ + "swagger": "2.0", + "info": { + "title": "Azure Maps Common Types", + "version": "2.0" + }, + "host": "atlas.microsoft.com", + "schemes": [ + "https" + ], + "consumes": [], + "produces": [ + "application/json", + "application/xml" + ], + "paths": {}, + "definitions": { + "LongRunningOperationResult": { + "description": "The response model for a Long-Running Operations API.", + "type": "object", + "properties": { + "operationId": { + "description": "The Id for this long-running operation.", + "type": "string" + }, + "status": { + "description": "The status state of the request.", + "type": "string", + "enum": [ + "NotStarted", + "Running", + "Failed", + "Succeeded" + ], + "x-ms-enum": { + "name": "LroStatus", + "modelAsString": true, + "values": [ + { + "value": "NotStarted", + "description": "The request has not started processing yet." + }, + { + "value": "Running", + "description": "The request has started processing." + }, + { + "value": "Failed", + "description": "The request has one or more failures." + }, + { + "value": "Succeeded", + "description": "The request has successfully completed." + } + ] + }, + "readOnly": true + }, + "created": { + "description": "The created timestamp.", + "type": "string", + "readOnly": true + }, + "resourceLocation": { + "description": "The location URI for details about the created resource. This is only provided when the request was successfully completed.", + "type": "string", + "readOnly": true + }, + "error": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" + }, + "warning": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" + } + } + }, + "BatchRequestBody": { + "description": "This type represents the request body for the Batch service.", + "type": "object", + "properties": { + "batchItems": { + "description": "The list of queries to process.", + "type": "array", + "items": { + "description": "Batch Query object", + "type": "object", + "properties": { + "query": { + "description": "Partial query string.", + "type": "string", + "example": "?query=One, Microsoft Way, Redmond, WA 98052&limit=3" + } + } + } + } + } + }, + "BatchResponse": { + "description": "This object is returned from a successful Batch service call. Extend with 'batchItems' property.", + "type": "object", + "properties": { + "summary": { + "description": "Summary for the batch request", + "type": "object", + "readOnly": true, + "properties": { + "successfulRequests": { + "description": "Number of successful requests in the batch", + "type": "integer", + "readOnly": true + }, + "totalRequests": { + "description": "Total number of requests in the batch", + "type": "integer", + "readOnly": true + } + } + } + } + }, + "BatchItem": { + "description": "An item returned from Batch API. Extend with 'response' property.", + "type": "object", + "properties": { + "statusCode": { + "description": "HTTP request status code.", + "type": "number", + "readOnly": true, + "example": 200 + } + } + }, + "CoordinatesPair": { + "description": "A location represented as a latitude and longitude.", + "type": "object", + "properties": { + "latitude": { + "description": "Latitude property", + "type": "number", + "format": "double" + }, + "longitude": { + "description": "Longitude property", + "type": "number", + "format": "double" + } + } + }, + "CoordinatesPairAbbreviated": { + "description": "A location represented as a latitude and longitude using short names 'lat' & 'lon'.", + "type": "object", + "properties": { + "lat": { + "description": "Latitude property", + "type": "number", + "format": "double" + }, + "lon": { + "description": "Longitude property", + "type": "number", + "format": "double" + } + } + }, + "GeoJsonPosition": { + "description": "A `Position` is an array of numbers with two or more elements. The first two elements are _longitude_ and _latitude_, precisely in that order. _Altitude/Elevation_ is an optional third element. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.1) for details.", + "type": "array", + "items": { + "type": "number", + "format": "double" + } + }, + "GeoJsonLinearRing": { + "description": "Though a linear ring is not explicitly represented as a GeoJSON geometry type, it helps in defining the polygon as an array of linear rings. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.6) for details.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonPosition" + } + }, + "GeoJsonObject": { + "description": "A valid `GeoJSON` object. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3) for details.", + "type": "object", + "discriminator": "type", + "required": [ + "type" + ], + "properties": { + "type": { + "description": "Specifies the `GeoJSON` type. Must be one of the nine valid GeoJSON object types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon, GeometryCollection, Feature and FeatureCollection.", + "type": "string", + "enum": [ + "Point", + "MultiPoint", + "LineString", + "MultiLineString", + "Polygon", + "MultiPolygon", + "GeometryCollection", + "Feature", + "FeatureCollection" + ], + "x-ms-enum": { + "name": "GeoJsonObjectType", + "modelAsString": true, + "values": [ + { + "value": "Point", + "description": "`GeoJSON Point` geometry.", + "name": "GeoJsonPoint" + }, + { + "value": "MultiPoint", + "description": "`GeoJSON MultiPoint` geometry.", + "name": "GeoJsonMultiPoint" + }, + { + "value": "LineString", + "description": "`GeoJSON LineString` geometry.", + "name": "GeoJsonLineString" + }, + { + "value": "MultiLineString", + "description": "`GeoJSON MultiLineString` geometry.", + "name": "GeoJsonMultiLineString" + }, + { + "value": "Polygon", + "description": "`GeoJSON Polygon` geometry.", + "name": "GeoJsonPolygon" + }, + { + "value": "MultiPolygon", + "description": "`GeoJSON MultiPolygon` geometry.", + "name": "GeoJsonMultiPolygon" + }, + { + "value": "GeometryCollection", + "description": "`GeoJSON GeometryCollection` geometry.", + "name": "GeoJsonGeometryCollection" + }, + { + "value": "Feature", + "description": "`GeoJSON Feature` object.", + "name": "GeoJsonFeature" + }, + { + "value": "FeatureCollection", + "description": "`GeoJSON FeatureCollection` object.", + "name": "GeoJsonFeatureCollection" + } + ] + } + } + } + }, + "GeoJsonGeometry": { + "description": "A valid `GeoJSON` geometry object. The type must be one of the seven valid GeoJSON geometry types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon and GeometryCollection. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1) for details.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonObject" + } + ] + }, + "GeoJsonPoint": { + "description": "A valid `GeoJSON Point` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.2) for details.", + "x-ms-discriminator-value": "Point", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonPointData" + } + ] + }, + "GeoJsonPointData": { + "description": "Data contained by a `GeoJson Point`.", + "type": "object", + "properties": { + "coordinates": { + "$ref": "#/definitions/GeoJsonPosition" + } + }, + "required": [ + "coordinates" + ] + }, + "GeoJsonMultiPoint": { + "description": "A valid `GeoJSON MultiPoint` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.3) for details.", + "x-ms-discriminator-value": "MultiPoint", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonMultiPointData" + } + ] + }, + "GeoJsonMultiPointData": { + "type": "object", + "description": "Data contained by a `GeoJson MultiPoint`.", + "properties": { + "coordinates": { + "description": "Coordinates for the `GeoJson MultiPoint` geometry.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonPosition" + } + } + }, + "required": [ + "coordinates" + ] + }, + "GeoJsonLineString": { + "description": "A valid `GeoJSON LineString` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.4) for details.", + "x-ms-discriminator-value": "LineString", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonLineStringData" + } + ] + }, + "GeoJsonLineStringData": { + "type": "object", + "properties": { + "coordinates": { + "description": "Coordinates for the `GeoJson LineString` geometry.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonPosition" + } + } + }, + "required": [ + "coordinates" + ] + }, + "GeoJsonMultiLineString": { + "description": "A valid `GeoJSON MultiLineString` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.5) for details.", + "x-ms-discriminator-value": "MultiLineString", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonMultiLineStringData" + } + ] + }, + "GeoJsonMultiLineStringData": { + "type": "object", + "properties": { + "coordinates": { + "description": "Coordinates for the `GeoJson MultiLineString` geometry.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonLinearRing" + } + } + }, + "required": [ + "coordinates" + ] + }, + "GeoJsonPolygon": { + "description": "A valid `GeoJSON Polygon` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.6) for details.", + "x-ms-discriminator-value": "Polygon", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonPolygonData" + } + ] + }, + "GeoJsonPolygonData": { + "type": "object", + "properties": { + "coordinates": { + "description": "Coordinates for the `GeoJson Polygon` geometry type.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonLinearRing" + } + } + }, + "required": [ + "coordinates" + ] + }, + "GeoJsonMultiPolygon": { + "description": "A valid `GeoJSON MultiPolygon` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.7) for details.", + "x-ms-discriminator-value": "MultiPolygon", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonMultiPolygonData" + } + ] + }, + "GeoJsonMultiPolygonData": { + "type": "object", + "properties": { + "coordinates": { + "description": "Contains a list of valid `GeoJSON Polygon` objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude).", + "type": "array", + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonLinearRing" + } + } + } + }, + "required": [ + "coordinates" + ] + }, + "GeoJsonGeometryCollection": { + "description": "A valid `GeoJSON GeometryCollection` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.8) for details.", + "x-ms-discriminator-value": "GeometryCollection", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonGeometryCollectionData" + } + ] + }, + "GeoJsonGeometryCollectionData": { + "type": "object", + "properties": { + "geometries": { + "description": "Contains a list of valid `GeoJSON` geometry objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude).", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonGeometry" + } + } + }, + "required": [ + "geometries" + ] + }, + "GeoJsonFeature": { + "description": "A valid `GeoJSON Feature` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.2) for details.", + "x-ms-discriminator-value": "Feature", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonObject" + }, + { + "$ref": "#/definitions/GeoJsonFeatureData" + } + ] + }, + "GeoJsonFeatureData": { + "type": "object", + "properties": { + "geometry": { + "$ref": "#/definitions/GeoJsonGeometry" + }, + "properties": { + "description": "Properties can contain any additional metadata about the `Feature`. Value can be any JSON object or a JSON null value", + "type": "object" + }, + "id": { + "description": "Identifier for the feature.", + "type": "string" + }, + "featureType": { + "description": "The type of the feature. The value depends on the data model the current feature is part of. Some data models may have an empty value.", + "type": "string" + } + }, + "required": [ + "geometry" + ] + }, + "GeoJsonFeatureCollection": { + "description": "A valid `GeoJSON FeatureCollection` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.3) for details.", + "x-ms-discriminator-value": "FeatureCollection", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonObject" + }, + { + "$ref": "#/definitions/GeoJsonFeatureCollectionData" + } + ] + }, + "GeoJsonFeatureCollectionData": { + "type": "object", + "properties": { + "features": { + "description": "Contains a list of valid `GeoJSON Feature` objects.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonFeature" + } + } + }, + "required": [ + "features" + ] + }, + "Ontology": { + "type": "string", + "description": "The ontology version of this dataset.", + "readOnly": true + } + }, + "parameters": { + "SubscriptionKey": { + "name": "subscription-key", + "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", + "type": "string", + "in": "query", + "required": false, + "x-ms-parameter-location": "client" + }, + "ApiVersion": { + "name": "api-version", + "description": "Version number of Azure Maps API.", + "type": "string", + "in": "query", + "required": true, + "default": "1.0", + "x-ms-parameter-location": "client" + }, + "ApiVersionV2": { + "name": "api-version", + "description": "Version number of Azure Maps API.", + "type": "string", + "in": "query", + "required": true, + "default": "2.0", + "x-ms-parameter-location": "client" + }, + "ClientId": { + "name": "x-ms-client-id", + "description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.", + "type": "string", + "in": "header", + "required": false, + "x-ms-parameter-location": "client" + }, + "JsonFormat": { + "name": "format", + "description": "Desired format of the response. Only `json` format is supported.", + "type": "string", + "in": "path", + "required": true, + "enum": [ + "json" + ], + "x-ms-enum": { + "name": "JsonFormat", + "modelAsString": true, + "values": [ + { + "value": "json", + "description": "[The JavaScript Object Notation Data Interchange Format](https://tools.ietf.org/html/rfc8259)" + } + ] + }, + "x-ms-parameter-location": "method" + } + }, + "responses": { + "200Async": { + "description": "The operation's status response.", + "schema": { + "$ref": "#/definitions/LongRunningOperationResult" + } + }, + "200AsyncV2": { + "description": "The operation is running or complete. If the operation was successful, use the Resource-Location header to obtain the path to the result.", + "schema": { + "$ref": "#/definitions/LongRunningOperationResult" + }, + "headers": { + "Resource-Location": { + "type": "string", + "description": "If successful, a URI where details on the newly created resource can be found." + } + } + }, + "201Async": { + "description": "The resource has been created successfully.", + "schema": { + "$ref": "#/definitions/LongRunningOperationResult" + }, + "headers": { + "Location": { + "type": "string", + "description": "A URI where details on the newly created resource can be found." + } + } + }, + "202Async": { + "description": "**Supported only for async request.**\nRequest Accepted: The request has been accepted for processing. Please use the URL in the Location Header to retry or access the results.", + "headers": { + "Location": { + "type": "string", + "description": "New URL to check for the results of the long running process." + } + } + }, + "202AsyncV2": { + "description": "Request Accepted: The request has been accepted for processing. Please use the URL in the Operation-Location Header to obtain status.", + "headers": { + "Operation-Location": { + "type": "string", + "description": "New URL to check for the results of the long running process." + } + } + }, + "400": { + "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + }, + "401": { + "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "headers": { + "WWW-Authenticate": { + "type": "string", + "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" + } + }, + "x-ms-error-response": true + }, + "403": { + "description": "Permission, capacity, or authentication issues.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + }, + "404": { + "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + }, + "409": { + "description": "The request could not be completed due to a conflict with the current state of the resource. Likely caused by a parallel update to the same resource.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + }, + "409StorageLimit": { + "description": "The [data storage limit](https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/azure-subscription-service-limits#azure-maps-limits) is reached on the Azure Maps account. You can always use the [Data Delete API](https://docs.microsoft.com/en-us/rest/api/maps/data/deletepreview) to delete old/unused content and create space for new uploads.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + }, + "500": { + "description": "An error occurred while processing the request. Please try again later.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + } + }, + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "scopes": { + "user_impersonation": "Impersonates a user's Azure Active Directory account." + } + }, + "apiKeyQuery": { + "type": "apiKey", + "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", + "name": "subscription-key", + "in": "query" + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + }, + { + "apiKeyQuery": [] + } + ] +} diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json index 0deeb0568c8a..fecc1eb03847 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json @@ -146,10 +146,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "./common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "./common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/DatasetIdForCreate" @@ -175,19 +175,19 @@ } }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "./common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "./common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "./common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "./common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "./common.json#/responses/500" } } }, @@ -202,10 +202,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "./common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "./common.json#/parameters/ApiVersionV2" } ], "responses": { @@ -216,19 +216,19 @@ } }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "./common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "./common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "./common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "./common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "./common.json#/responses/500" } } } @@ -245,10 +245,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "./common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "./common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -268,19 +268,19 @@ "description": "Stateset styles are updated successfully." }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "./common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "./common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "./common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "./common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "./common.json#/responses/500" } } }, @@ -295,10 +295,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "./common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "./common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -309,19 +309,19 @@ "description": "Stateset Deleted." }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "./common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "./common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "./common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "./common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "./common.json#/responses/500" } } }, @@ -336,10 +336,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "./common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "./common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -353,19 +353,19 @@ } }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "./common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "./common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "./common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "./common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "./common.json#/responses/500" } } } @@ -382,10 +382,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "./common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "./common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -408,19 +408,19 @@ "description": "Feature states are updated successfully." }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "./common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "./common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "./common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "./common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "./common.json#/responses/500" } } }, @@ -435,10 +435,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "./common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "./common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -455,22 +455,22 @@ "description": "Feature states deleted successfully." }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "./common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "./common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "./common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "./common.json#/responses/404" }, "409": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/409" + "$ref": "./common.json#/responses/409" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "./common.json#/responses/500" } } }, @@ -485,10 +485,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "./common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "./common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -505,19 +505,19 @@ } }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "./common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "./common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "./common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "./common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "./common.json#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/common.json new file mode 100644 index 000000000000..f2af932e1a6f --- /dev/null +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/common.json @@ -0,0 +1,721 @@ +{ + "swagger": "2.0", + "info": { + "title": "Azure Maps Common Types", + "version": "2.0" + }, + "host": "atlas.microsoft.com", + "schemes": [ + "https" + ], + "consumes": [], + "produces": [ + "application/json", + "application/xml" + ], + "paths": {}, + "definitions": { + "LongRunningOperationResult": { + "description": "The response model for a Long-Running Operations API.", + "type": "object", + "properties": { + "operationId": { + "description": "The Id for this long-running operation.", + "type": "string" + }, + "status": { + "description": "The status state of the request.", + "type": "string", + "enum": [ + "NotStarted", + "Running", + "Failed", + "Succeeded" + ], + "x-ms-enum": { + "name": "LroStatus", + "modelAsString": true, + "values": [ + { + "value": "NotStarted", + "description": "The request has not started processing yet." + }, + { + "value": "Running", + "description": "The request has started processing." + }, + { + "value": "Failed", + "description": "The request has one or more failures." + }, + { + "value": "Succeeded", + "description": "The request has successfully completed." + } + ] + }, + "readOnly": true + }, + "created": { + "description": "The created timestamp.", + "type": "string", + "readOnly": true + }, + "resourceLocation": { + "description": "The location URI for details about the created resource. This is only provided when the request was successfully completed.", + "type": "string", + "readOnly": true + }, + "error": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" + }, + "warning": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" + } + } + }, + "BatchRequestBody": { + "description": "This type represents the request body for the Batch service.", + "type": "object", + "properties": { + "batchItems": { + "description": "The list of queries to process.", + "type": "array", + "items": { + "description": "Batch Query object", + "type": "object", + "properties": { + "query": { + "description": "Partial query string.", + "type": "string", + "example": "?query=One, Microsoft Way, Redmond, WA 98052&limit=3" + } + } + } + } + } + }, + "BatchResponse": { + "description": "This object is returned from a successful Batch service call. Extend with 'batchItems' property.", + "type": "object", + "properties": { + "summary": { + "description": "Summary for the batch request", + "type": "object", + "readOnly": true, + "properties": { + "successfulRequests": { + "description": "Number of successful requests in the batch", + "type": "integer", + "readOnly": true + }, + "totalRequests": { + "description": "Total number of requests in the batch", + "type": "integer", + "readOnly": true + } + } + } + } + }, + "BatchItem": { + "description": "An item returned from Batch API. Extend with 'response' property.", + "type": "object", + "properties": { + "statusCode": { + "description": "HTTP request status code.", + "type": "number", + "readOnly": true, + "example": 200 + } + } + }, + "CoordinatesPair": { + "description": "A location represented as a latitude and longitude.", + "type": "object", + "properties": { + "latitude": { + "description": "Latitude property", + "type": "number", + "format": "double" + }, + "longitude": { + "description": "Longitude property", + "type": "number", + "format": "double" + } + } + }, + "CoordinatesPairAbbreviated": { + "description": "A location represented as a latitude and longitude using short names 'lat' & 'lon'.", + "type": "object", + "properties": { + "lat": { + "description": "Latitude property", + "type": "number", + "format": "double" + }, + "lon": { + "description": "Longitude property", + "type": "number", + "format": "double" + } + } + }, + "GeoJsonPosition": { + "description": "A `Position` is an array of numbers with two or more elements. The first two elements are _longitude_ and _latitude_, precisely in that order. _Altitude/Elevation_ is an optional third element. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.1) for details.", + "type": "array", + "items": { + "type": "number", + "format": "double" + } + }, + "GeoJsonLinearRing": { + "description": "Though a linear ring is not explicitly represented as a GeoJSON geometry type, it helps in defining the polygon as an array of linear rings. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.6) for details.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonPosition" + } + }, + "GeoJsonObject": { + "description": "A valid `GeoJSON` object. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3) for details.", + "type": "object", + "discriminator": "type", + "required": [ + "type" + ], + "properties": { + "type": { + "description": "Specifies the `GeoJSON` type. Must be one of the nine valid GeoJSON object types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon, GeometryCollection, Feature and FeatureCollection.", + "type": "string", + "enum": [ + "Point", + "MultiPoint", + "LineString", + "MultiLineString", + "Polygon", + "MultiPolygon", + "GeometryCollection", + "Feature", + "FeatureCollection" + ], + "x-ms-enum": { + "name": "GeoJsonObjectType", + "modelAsString": true, + "values": [ + { + "value": "Point", + "description": "`GeoJSON Point` geometry.", + "name": "GeoJsonPoint" + }, + { + "value": "MultiPoint", + "description": "`GeoJSON MultiPoint` geometry.", + "name": "GeoJsonMultiPoint" + }, + { + "value": "LineString", + "description": "`GeoJSON LineString` geometry.", + "name": "GeoJsonLineString" + }, + { + "value": "MultiLineString", + "description": "`GeoJSON MultiLineString` geometry.", + "name": "GeoJsonMultiLineString" + }, + { + "value": "Polygon", + "description": "`GeoJSON Polygon` geometry.", + "name": "GeoJsonPolygon" + }, + { + "value": "MultiPolygon", + "description": "`GeoJSON MultiPolygon` geometry.", + "name": "GeoJsonMultiPolygon" + }, + { + "value": "GeometryCollection", + "description": "`GeoJSON GeometryCollection` geometry.", + "name": "GeoJsonGeometryCollection" + }, + { + "value": "Feature", + "description": "`GeoJSON Feature` object.", + "name": "GeoJsonFeature" + }, + { + "value": "FeatureCollection", + "description": "`GeoJSON FeatureCollection` object.", + "name": "GeoJsonFeatureCollection" + } + ] + } + } + } + }, + "GeoJsonGeometry": { + "description": "A valid `GeoJSON` geometry object. The type must be one of the seven valid GeoJSON geometry types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon and GeometryCollection. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1) for details.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonObject" + } + ] + }, + "GeoJsonPoint": { + "description": "A valid `GeoJSON Point` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.2) for details.", + "x-ms-discriminator-value": "Point", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonPointData" + } + ] + }, + "GeoJsonPointData": { + "description": "Data contained by a `GeoJson Point`.", + "type": "object", + "properties": { + "coordinates": { + "$ref": "#/definitions/GeoJsonPosition" + } + }, + "required": [ + "coordinates" + ] + }, + "GeoJsonMultiPoint": { + "description": "A valid `GeoJSON MultiPoint` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.3) for details.", + "x-ms-discriminator-value": "MultiPoint", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonMultiPointData" + } + ] + }, + "GeoJsonMultiPointData": { + "type": "object", + "description": "Data contained by a `GeoJson MultiPoint`.", + "properties": { + "coordinates": { + "description": "Coordinates for the `GeoJson MultiPoint` geometry.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonPosition" + } + } + }, + "required": [ + "coordinates" + ] + }, + "GeoJsonLineString": { + "description": "A valid `GeoJSON LineString` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.4) for details.", + "x-ms-discriminator-value": "LineString", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonLineStringData" + } + ] + }, + "GeoJsonLineStringData": { + "type": "object", + "properties": { + "coordinates": { + "description": "Coordinates for the `GeoJson LineString` geometry.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonPosition" + } + } + }, + "required": [ + "coordinates" + ] + }, + "GeoJsonMultiLineString": { + "description": "A valid `GeoJSON MultiLineString` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.5) for details.", + "x-ms-discriminator-value": "MultiLineString", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonMultiLineStringData" + } + ] + }, + "GeoJsonMultiLineStringData": { + "type": "object", + "properties": { + "coordinates": { + "description": "Coordinates for the `GeoJson MultiLineString` geometry.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonLinearRing" + } + } + }, + "required": [ + "coordinates" + ] + }, + "GeoJsonPolygon": { + "description": "A valid `GeoJSON Polygon` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.6) for details.", + "x-ms-discriminator-value": "Polygon", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonPolygonData" + } + ] + }, + "GeoJsonPolygonData": { + "type": "object", + "properties": { + "coordinates": { + "description": "Coordinates for the `GeoJson Polygon` geometry type.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonLinearRing" + } + } + }, + "required": [ + "coordinates" + ] + }, + "GeoJsonMultiPolygon": { + "description": "A valid `GeoJSON MultiPolygon` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.7) for details.", + "x-ms-discriminator-value": "MultiPolygon", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonMultiPolygonData" + } + ] + }, + "GeoJsonMultiPolygonData": { + "type": "object", + "properties": { + "coordinates": { + "description": "Contains a list of valid `GeoJSON Polygon` objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude).", + "type": "array", + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonLinearRing" + } + } + } + }, + "required": [ + "coordinates" + ] + }, + "GeoJsonGeometryCollection": { + "description": "A valid `GeoJSON GeometryCollection` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.8) for details.", + "x-ms-discriminator-value": "GeometryCollection", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonGeometryCollectionData" + } + ] + }, + "GeoJsonGeometryCollectionData": { + "type": "object", + "properties": { + "geometries": { + "description": "Contains a list of valid `GeoJSON` geometry objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude).", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonGeometry" + } + } + }, + "required": [ + "geometries" + ] + }, + "GeoJsonFeature": { + "description": "A valid `GeoJSON Feature` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.2) for details.", + "x-ms-discriminator-value": "Feature", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonObject" + }, + { + "$ref": "#/definitions/GeoJsonFeatureData" + } + ] + }, + "GeoJsonFeatureData": { + "type": "object", + "properties": { + "geometry": { + "$ref": "#/definitions/GeoJsonGeometry" + }, + "properties": { + "description": "Properties can contain any additional metadata about the `Feature`. Value can be any JSON object or a JSON null value", + "type": "object" + }, + "id": { + "description": "Identifier for the feature.", + "type": "string" + }, + "featureType": { + "description": "The type of the feature. The value depends on the data model the current feature is part of. Some data models may have an empty value.", + "type": "string" + } + }, + "required": [ + "geometry" + ] + }, + "GeoJsonFeatureCollection": { + "description": "A valid `GeoJSON FeatureCollection` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.3) for details.", + "x-ms-discriminator-value": "FeatureCollection", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonObject" + }, + { + "$ref": "#/definitions/GeoJsonFeatureCollectionData" + } + ] + }, + "GeoJsonFeatureCollectionData": { + "type": "object", + "properties": { + "features": { + "description": "Contains a list of valid `GeoJSON Feature` objects.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonFeature" + } + } + }, + "required": [ + "features" + ] + }, + "Ontology": { + "type": "string", + "description": "The ontology version of this dataset.", + "readOnly": true + } + }, + "parameters": { + "SubscriptionKey": { + "name": "subscription-key", + "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", + "type": "string", + "in": "query", + "required": false, + "x-ms-parameter-location": "client" + }, + "ApiVersion": { + "name": "api-version", + "description": "Version number of Azure Maps API.", + "type": "string", + "in": "query", + "required": true, + "default": "1.0", + "x-ms-parameter-location": "client" + }, + "ApiVersionV2": { + "name": "api-version", + "description": "Version number of Azure Maps API.", + "type": "string", + "in": "query", + "required": true, + "default": "2.0", + "x-ms-parameter-location": "client" + }, + "ClientId": { + "name": "x-ms-client-id", + "description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.", + "type": "string", + "in": "header", + "required": false, + "x-ms-parameter-location": "client" + }, + "JsonFormat": { + "name": "format", + "description": "Desired format of the response. Only `json` format is supported.", + "type": "string", + "in": "path", + "required": true, + "enum": [ + "json" + ], + "x-ms-enum": { + "name": "JsonFormat", + "modelAsString": true, + "values": [ + { + "value": "json", + "description": "[The JavaScript Object Notation Data Interchange Format](https://tools.ietf.org/html/rfc8259)" + } + ] + }, + "x-ms-parameter-location": "method" + } + }, + "responses": { + "200Async": { + "description": "The operation's status response.", + "schema": { + "$ref": "#/definitions/LongRunningOperationResult" + } + }, + "200AsyncV2": { + "description": "The operation is running or complete. If the operation was successful, use the Resource-Location header to obtain the path to the result.", + "schema": { + "$ref": "#/definitions/LongRunningOperationResult" + }, + "headers": { + "Resource-Location": { + "type": "string", + "description": "If successful, a URI where details on the newly created resource can be found." + } + } + }, + "201Async": { + "description": "The resource has been created successfully.", + "schema": { + "$ref": "#/definitions/LongRunningOperationResult" + }, + "headers": { + "Location": { + "type": "string", + "description": "A URI where details on the newly created resource can be found." + } + } + }, + "202Async": { + "description": "**Supported only for async request.**\nRequest Accepted: The request has been accepted for processing. Please use the URL in the Location Header to retry or access the results.", + "headers": { + "Location": { + "type": "string", + "description": "New URL to check for the results of the long running process." + } + } + }, + "202AsyncV2": { + "description": "Request Accepted: The request has been accepted for processing. Please use the URL in the Operation-Location Header to obtain status.", + "headers": { + "Operation-Location": { + "type": "string", + "description": "New URL to check for the results of the long running process." + } + } + }, + "400": { + "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + }, + "401": { + "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "headers": { + "WWW-Authenticate": { + "type": "string", + "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" + } + }, + "x-ms-error-response": true + }, + "403": { + "description": "Permission, capacity, or authentication issues.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + }, + "404": { + "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + }, + "409": { + "description": "The request could not be completed due to a conflict with the current state of the resource. Likely caused by a parallel update to the same resource.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + }, + "409StorageLimit": { + "description": "The [data storage limit](https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/azure-subscription-service-limits#azure-maps-limits) is reached on the Azure Maps account. You can always use the [Data Delete API](https://docs.microsoft.com/en-us/rest/api/maps/data/deletepreview) to delete old/unused content and create space for new uploads.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + }, + "500": { + "description": "An error occurred while processing the request. Please try again later.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + } + }, + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "scopes": { + "user_impersonation": "Impersonates a user's Azure Active Directory account." + } + }, + "apiKeyQuery": { + "type": "apiKey", + "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", + "name": "subscription-key", + "in": "query" + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + }, + { + "apiKeyQuery": [] + } + ] +} diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json index 91bc70a7c339..793a24a16178 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json @@ -168,13 +168,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" + "$ref": "./common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "./common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "./common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/TilesetId_rv2" @@ -239,19 +239,19 @@ } }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "./common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "./common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "./common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "./common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "./common.json#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/common.json new file mode 100644 index 000000000000..f2af932e1a6f --- /dev/null +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/common.json @@ -0,0 +1,721 @@ +{ + "swagger": "2.0", + "info": { + "title": "Azure Maps Common Types", + "version": "2.0" + }, + "host": "atlas.microsoft.com", + "schemes": [ + "https" + ], + "consumes": [], + "produces": [ + "application/json", + "application/xml" + ], + "paths": {}, + "definitions": { + "LongRunningOperationResult": { + "description": "The response model for a Long-Running Operations API.", + "type": "object", + "properties": { + "operationId": { + "description": "The Id for this long-running operation.", + "type": "string" + }, + "status": { + "description": "The status state of the request.", + "type": "string", + "enum": [ + "NotStarted", + "Running", + "Failed", + "Succeeded" + ], + "x-ms-enum": { + "name": "LroStatus", + "modelAsString": true, + "values": [ + { + "value": "NotStarted", + "description": "The request has not started processing yet." + }, + { + "value": "Running", + "description": "The request has started processing." + }, + { + "value": "Failed", + "description": "The request has one or more failures." + }, + { + "value": "Succeeded", + "description": "The request has successfully completed." + } + ] + }, + "readOnly": true + }, + "created": { + "description": "The created timestamp.", + "type": "string", + "readOnly": true + }, + "resourceLocation": { + "description": "The location URI for details about the created resource. This is only provided when the request was successfully completed.", + "type": "string", + "readOnly": true + }, + "error": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" + }, + "warning": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" + } + } + }, + "BatchRequestBody": { + "description": "This type represents the request body for the Batch service.", + "type": "object", + "properties": { + "batchItems": { + "description": "The list of queries to process.", + "type": "array", + "items": { + "description": "Batch Query object", + "type": "object", + "properties": { + "query": { + "description": "Partial query string.", + "type": "string", + "example": "?query=One, Microsoft Way, Redmond, WA 98052&limit=3" + } + } + } + } + } + }, + "BatchResponse": { + "description": "This object is returned from a successful Batch service call. Extend with 'batchItems' property.", + "type": "object", + "properties": { + "summary": { + "description": "Summary for the batch request", + "type": "object", + "readOnly": true, + "properties": { + "successfulRequests": { + "description": "Number of successful requests in the batch", + "type": "integer", + "readOnly": true + }, + "totalRequests": { + "description": "Total number of requests in the batch", + "type": "integer", + "readOnly": true + } + } + } + } + }, + "BatchItem": { + "description": "An item returned from Batch API. Extend with 'response' property.", + "type": "object", + "properties": { + "statusCode": { + "description": "HTTP request status code.", + "type": "number", + "readOnly": true, + "example": 200 + } + } + }, + "CoordinatesPair": { + "description": "A location represented as a latitude and longitude.", + "type": "object", + "properties": { + "latitude": { + "description": "Latitude property", + "type": "number", + "format": "double" + }, + "longitude": { + "description": "Longitude property", + "type": "number", + "format": "double" + } + } + }, + "CoordinatesPairAbbreviated": { + "description": "A location represented as a latitude and longitude using short names 'lat' & 'lon'.", + "type": "object", + "properties": { + "lat": { + "description": "Latitude property", + "type": "number", + "format": "double" + }, + "lon": { + "description": "Longitude property", + "type": "number", + "format": "double" + } + } + }, + "GeoJsonPosition": { + "description": "A `Position` is an array of numbers with two or more elements. The first two elements are _longitude_ and _latitude_, precisely in that order. _Altitude/Elevation_ is an optional third element. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.1) for details.", + "type": "array", + "items": { + "type": "number", + "format": "double" + } + }, + "GeoJsonLinearRing": { + "description": "Though a linear ring is not explicitly represented as a GeoJSON geometry type, it helps in defining the polygon as an array of linear rings. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.6) for details.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonPosition" + } + }, + "GeoJsonObject": { + "description": "A valid `GeoJSON` object. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3) for details.", + "type": "object", + "discriminator": "type", + "required": [ + "type" + ], + "properties": { + "type": { + "description": "Specifies the `GeoJSON` type. Must be one of the nine valid GeoJSON object types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon, GeometryCollection, Feature and FeatureCollection.", + "type": "string", + "enum": [ + "Point", + "MultiPoint", + "LineString", + "MultiLineString", + "Polygon", + "MultiPolygon", + "GeometryCollection", + "Feature", + "FeatureCollection" + ], + "x-ms-enum": { + "name": "GeoJsonObjectType", + "modelAsString": true, + "values": [ + { + "value": "Point", + "description": "`GeoJSON Point` geometry.", + "name": "GeoJsonPoint" + }, + { + "value": "MultiPoint", + "description": "`GeoJSON MultiPoint` geometry.", + "name": "GeoJsonMultiPoint" + }, + { + "value": "LineString", + "description": "`GeoJSON LineString` geometry.", + "name": "GeoJsonLineString" + }, + { + "value": "MultiLineString", + "description": "`GeoJSON MultiLineString` geometry.", + "name": "GeoJsonMultiLineString" + }, + { + "value": "Polygon", + "description": "`GeoJSON Polygon` geometry.", + "name": "GeoJsonPolygon" + }, + { + "value": "MultiPolygon", + "description": "`GeoJSON MultiPolygon` geometry.", + "name": "GeoJsonMultiPolygon" + }, + { + "value": "GeometryCollection", + "description": "`GeoJSON GeometryCollection` geometry.", + "name": "GeoJsonGeometryCollection" + }, + { + "value": "Feature", + "description": "`GeoJSON Feature` object.", + "name": "GeoJsonFeature" + }, + { + "value": "FeatureCollection", + "description": "`GeoJSON FeatureCollection` object.", + "name": "GeoJsonFeatureCollection" + } + ] + } + } + } + }, + "GeoJsonGeometry": { + "description": "A valid `GeoJSON` geometry object. The type must be one of the seven valid GeoJSON geometry types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon and GeometryCollection. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1) for details.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonObject" + } + ] + }, + "GeoJsonPoint": { + "description": "A valid `GeoJSON Point` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.2) for details.", + "x-ms-discriminator-value": "Point", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonPointData" + } + ] + }, + "GeoJsonPointData": { + "description": "Data contained by a `GeoJson Point`.", + "type": "object", + "properties": { + "coordinates": { + "$ref": "#/definitions/GeoJsonPosition" + } + }, + "required": [ + "coordinates" + ] + }, + "GeoJsonMultiPoint": { + "description": "A valid `GeoJSON MultiPoint` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.3) for details.", + "x-ms-discriminator-value": "MultiPoint", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonMultiPointData" + } + ] + }, + "GeoJsonMultiPointData": { + "type": "object", + "description": "Data contained by a `GeoJson MultiPoint`.", + "properties": { + "coordinates": { + "description": "Coordinates for the `GeoJson MultiPoint` geometry.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonPosition" + } + } + }, + "required": [ + "coordinates" + ] + }, + "GeoJsonLineString": { + "description": "A valid `GeoJSON LineString` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.4) for details.", + "x-ms-discriminator-value": "LineString", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonLineStringData" + } + ] + }, + "GeoJsonLineStringData": { + "type": "object", + "properties": { + "coordinates": { + "description": "Coordinates for the `GeoJson LineString` geometry.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonPosition" + } + } + }, + "required": [ + "coordinates" + ] + }, + "GeoJsonMultiLineString": { + "description": "A valid `GeoJSON MultiLineString` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.5) for details.", + "x-ms-discriminator-value": "MultiLineString", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonMultiLineStringData" + } + ] + }, + "GeoJsonMultiLineStringData": { + "type": "object", + "properties": { + "coordinates": { + "description": "Coordinates for the `GeoJson MultiLineString` geometry.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonLinearRing" + } + } + }, + "required": [ + "coordinates" + ] + }, + "GeoJsonPolygon": { + "description": "A valid `GeoJSON Polygon` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.6) for details.", + "x-ms-discriminator-value": "Polygon", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonPolygonData" + } + ] + }, + "GeoJsonPolygonData": { + "type": "object", + "properties": { + "coordinates": { + "description": "Coordinates for the `GeoJson Polygon` geometry type.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonLinearRing" + } + } + }, + "required": [ + "coordinates" + ] + }, + "GeoJsonMultiPolygon": { + "description": "A valid `GeoJSON MultiPolygon` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.7) for details.", + "x-ms-discriminator-value": "MultiPolygon", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonMultiPolygonData" + } + ] + }, + "GeoJsonMultiPolygonData": { + "type": "object", + "properties": { + "coordinates": { + "description": "Contains a list of valid `GeoJSON Polygon` objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude).", + "type": "array", + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonLinearRing" + } + } + } + }, + "required": [ + "coordinates" + ] + }, + "GeoJsonGeometryCollection": { + "description": "A valid `GeoJSON GeometryCollection` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.8) for details.", + "x-ms-discriminator-value": "GeometryCollection", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonGeometryCollectionData" + } + ] + }, + "GeoJsonGeometryCollectionData": { + "type": "object", + "properties": { + "geometries": { + "description": "Contains a list of valid `GeoJSON` geometry objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude).", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonGeometry" + } + } + }, + "required": [ + "geometries" + ] + }, + "GeoJsonFeature": { + "description": "A valid `GeoJSON Feature` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.2) for details.", + "x-ms-discriminator-value": "Feature", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonObject" + }, + { + "$ref": "#/definitions/GeoJsonFeatureData" + } + ] + }, + "GeoJsonFeatureData": { + "type": "object", + "properties": { + "geometry": { + "$ref": "#/definitions/GeoJsonGeometry" + }, + "properties": { + "description": "Properties can contain any additional metadata about the `Feature`. Value can be any JSON object or a JSON null value", + "type": "object" + }, + "id": { + "description": "Identifier for the feature.", + "type": "string" + }, + "featureType": { + "description": "The type of the feature. The value depends on the data model the current feature is part of. Some data models may have an empty value.", + "type": "string" + } + }, + "required": [ + "geometry" + ] + }, + "GeoJsonFeatureCollection": { + "description": "A valid `GeoJSON FeatureCollection` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.3) for details.", + "x-ms-discriminator-value": "FeatureCollection", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonObject" + }, + { + "$ref": "#/definitions/GeoJsonFeatureCollectionData" + } + ] + }, + "GeoJsonFeatureCollectionData": { + "type": "object", + "properties": { + "features": { + "description": "Contains a list of valid `GeoJSON Feature` objects.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonFeature" + } + } + }, + "required": [ + "features" + ] + }, + "Ontology": { + "type": "string", + "description": "The ontology version of this dataset.", + "readOnly": true + } + }, + "parameters": { + "SubscriptionKey": { + "name": "subscription-key", + "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", + "type": "string", + "in": "query", + "required": false, + "x-ms-parameter-location": "client" + }, + "ApiVersion": { + "name": "api-version", + "description": "Version number of Azure Maps API.", + "type": "string", + "in": "query", + "required": true, + "default": "1.0", + "x-ms-parameter-location": "client" + }, + "ApiVersionV2": { + "name": "api-version", + "description": "Version number of Azure Maps API.", + "type": "string", + "in": "query", + "required": true, + "default": "2.0", + "x-ms-parameter-location": "client" + }, + "ClientId": { + "name": "x-ms-client-id", + "description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.", + "type": "string", + "in": "header", + "required": false, + "x-ms-parameter-location": "client" + }, + "JsonFormat": { + "name": "format", + "description": "Desired format of the response. Only `json` format is supported.", + "type": "string", + "in": "path", + "required": true, + "enum": [ + "json" + ], + "x-ms-enum": { + "name": "JsonFormat", + "modelAsString": true, + "values": [ + { + "value": "json", + "description": "[The JavaScript Object Notation Data Interchange Format](https://tools.ietf.org/html/rfc8259)" + } + ] + }, + "x-ms-parameter-location": "method" + } + }, + "responses": { + "200Async": { + "description": "The operation's status response.", + "schema": { + "$ref": "#/definitions/LongRunningOperationResult" + } + }, + "200AsyncV2": { + "description": "The operation is running or complete. If the operation was successful, use the Resource-Location header to obtain the path to the result.", + "schema": { + "$ref": "#/definitions/LongRunningOperationResult" + }, + "headers": { + "Resource-Location": { + "type": "string", + "description": "If successful, a URI where details on the newly created resource can be found." + } + } + }, + "201Async": { + "description": "The resource has been created successfully.", + "schema": { + "$ref": "#/definitions/LongRunningOperationResult" + }, + "headers": { + "Location": { + "type": "string", + "description": "A URI where details on the newly created resource can be found." + } + } + }, + "202Async": { + "description": "**Supported only for async request.**\nRequest Accepted: The request has been accepted for processing. Please use the URL in the Location Header to retry or access the results.", + "headers": { + "Location": { + "type": "string", + "description": "New URL to check for the results of the long running process." + } + } + }, + "202AsyncV2": { + "description": "Request Accepted: The request has been accepted for processing. Please use the URL in the Operation-Location Header to obtain status.", + "headers": { + "Operation-Location": { + "type": "string", + "description": "New URL to check for the results of the long running process." + } + } + }, + "400": { + "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + }, + "401": { + "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "headers": { + "WWW-Authenticate": { + "type": "string", + "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" + } + }, + "x-ms-error-response": true + }, + "403": { + "description": "Permission, capacity, or authentication issues.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + }, + "404": { + "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + }, + "409": { + "description": "The request could not be completed due to a conflict with the current state of the resource. Likely caused by a parallel update to the same resource.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + }, + "409StorageLimit": { + "description": "The [data storage limit](https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/azure-subscription-service-limits#azure-maps-limits) is reached on the Azure Maps account. You can always use the [Data Delete API](https://docs.microsoft.com/en-us/rest/api/maps/data/deletepreview) to delete old/unused content and create space for new uploads.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + }, + "500": { + "description": "An error occurred while processing the request. Please try again later.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + } + }, + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "scopes": { + "user_impersonation": "Impersonates a user's Azure Active Directory account." + } + }, + "apiKeyQuery": { + "type": "apiKey", + "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", + "name": "subscription-key", + "in": "query" + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + }, + { + "apiKeyQuery": [] + } + ] +} diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json index dce99424be3e..db43151a549a 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json @@ -126,13 +126,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" + "$ref": "./common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "./common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "./common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/DatasetIdQuery" @@ -150,22 +150,22 @@ "x-ms-error-response": true }, "202": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/202AsyncV2" + "$ref": "./common.json#/responses/202AsyncV2" }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "./common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "./common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "./common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "./common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "./common.json#/responses/500" } } }, @@ -180,13 +180,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" + "$ref": "./common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "./common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "./common.json#/parameters/ApiVersionV2" } ], "responses": { @@ -197,19 +197,19 @@ } }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "./common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "./common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "./common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "./common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "./common.json#/responses/500" } } } @@ -226,13 +226,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" + "$ref": "./common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "./common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "./common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/TilesetId" @@ -246,19 +246,19 @@ } }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "./common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "./common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "./common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "./common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "./common.json#/responses/500" } } }, @@ -273,13 +273,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" + "$ref": "./common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "./common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "./common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/TilesetId" @@ -290,19 +290,19 @@ "description": "Tileset delete request completed successfully." }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "./common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "./common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "./common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "./common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "./common.json#/responses/500" } } } @@ -321,10 +321,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "./common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "./common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/TilesetOperationId" @@ -332,10 +332,10 @@ ], "responses": { "200": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/200AsyncV2" + "$ref": "./common.json#/responses/200AsyncV2" }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "./common.json#/responses/400" } } } @@ -371,7 +371,7 @@ "readOnly": true }, "ontology": { - "$ref": "../../../Common/preview/2.0/common.json#/definitions/Ontology" + "$ref": "./common.json#/definitions/Ontology" }, "datasetId": { "description": "The unique dataset Id used to create the tileset.", diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/common.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/common.json new file mode 100644 index 000000000000..f2af932e1a6f --- /dev/null +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/common.json @@ -0,0 +1,721 @@ +{ + "swagger": "2.0", + "info": { + "title": "Azure Maps Common Types", + "version": "2.0" + }, + "host": "atlas.microsoft.com", + "schemes": [ + "https" + ], + "consumes": [], + "produces": [ + "application/json", + "application/xml" + ], + "paths": {}, + "definitions": { + "LongRunningOperationResult": { + "description": "The response model for a Long-Running Operations API.", + "type": "object", + "properties": { + "operationId": { + "description": "The Id for this long-running operation.", + "type": "string" + }, + "status": { + "description": "The status state of the request.", + "type": "string", + "enum": [ + "NotStarted", + "Running", + "Failed", + "Succeeded" + ], + "x-ms-enum": { + "name": "LroStatus", + "modelAsString": true, + "values": [ + { + "value": "NotStarted", + "description": "The request has not started processing yet." + }, + { + "value": "Running", + "description": "The request has started processing." + }, + { + "value": "Failed", + "description": "The request has one or more failures." + }, + { + "value": "Succeeded", + "description": "The request has successfully completed." + } + ] + }, + "readOnly": true + }, + "created": { + "description": "The created timestamp.", + "type": "string", + "readOnly": true + }, + "resourceLocation": { + "description": "The location URI for details about the created resource. This is only provided when the request was successfully completed.", + "type": "string", + "readOnly": true + }, + "error": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" + }, + "warning": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" + } + } + }, + "BatchRequestBody": { + "description": "This type represents the request body for the Batch service.", + "type": "object", + "properties": { + "batchItems": { + "description": "The list of queries to process.", + "type": "array", + "items": { + "description": "Batch Query object", + "type": "object", + "properties": { + "query": { + "description": "Partial query string.", + "type": "string", + "example": "?query=One, Microsoft Way, Redmond, WA 98052&limit=3" + } + } + } + } + } + }, + "BatchResponse": { + "description": "This object is returned from a successful Batch service call. Extend with 'batchItems' property.", + "type": "object", + "properties": { + "summary": { + "description": "Summary for the batch request", + "type": "object", + "readOnly": true, + "properties": { + "successfulRequests": { + "description": "Number of successful requests in the batch", + "type": "integer", + "readOnly": true + }, + "totalRequests": { + "description": "Total number of requests in the batch", + "type": "integer", + "readOnly": true + } + } + } + } + }, + "BatchItem": { + "description": "An item returned from Batch API. Extend with 'response' property.", + "type": "object", + "properties": { + "statusCode": { + "description": "HTTP request status code.", + "type": "number", + "readOnly": true, + "example": 200 + } + } + }, + "CoordinatesPair": { + "description": "A location represented as a latitude and longitude.", + "type": "object", + "properties": { + "latitude": { + "description": "Latitude property", + "type": "number", + "format": "double" + }, + "longitude": { + "description": "Longitude property", + "type": "number", + "format": "double" + } + } + }, + "CoordinatesPairAbbreviated": { + "description": "A location represented as a latitude and longitude using short names 'lat' & 'lon'.", + "type": "object", + "properties": { + "lat": { + "description": "Latitude property", + "type": "number", + "format": "double" + }, + "lon": { + "description": "Longitude property", + "type": "number", + "format": "double" + } + } + }, + "GeoJsonPosition": { + "description": "A `Position` is an array of numbers with two or more elements. The first two elements are _longitude_ and _latitude_, precisely in that order. _Altitude/Elevation_ is an optional third element. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.1) for details.", + "type": "array", + "items": { + "type": "number", + "format": "double" + } + }, + "GeoJsonLinearRing": { + "description": "Though a linear ring is not explicitly represented as a GeoJSON geometry type, it helps in defining the polygon as an array of linear rings. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.6) for details.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonPosition" + } + }, + "GeoJsonObject": { + "description": "A valid `GeoJSON` object. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3) for details.", + "type": "object", + "discriminator": "type", + "required": [ + "type" + ], + "properties": { + "type": { + "description": "Specifies the `GeoJSON` type. Must be one of the nine valid GeoJSON object types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon, GeometryCollection, Feature and FeatureCollection.", + "type": "string", + "enum": [ + "Point", + "MultiPoint", + "LineString", + "MultiLineString", + "Polygon", + "MultiPolygon", + "GeometryCollection", + "Feature", + "FeatureCollection" + ], + "x-ms-enum": { + "name": "GeoJsonObjectType", + "modelAsString": true, + "values": [ + { + "value": "Point", + "description": "`GeoJSON Point` geometry.", + "name": "GeoJsonPoint" + }, + { + "value": "MultiPoint", + "description": "`GeoJSON MultiPoint` geometry.", + "name": "GeoJsonMultiPoint" + }, + { + "value": "LineString", + "description": "`GeoJSON LineString` geometry.", + "name": "GeoJsonLineString" + }, + { + "value": "MultiLineString", + "description": "`GeoJSON MultiLineString` geometry.", + "name": "GeoJsonMultiLineString" + }, + { + "value": "Polygon", + "description": "`GeoJSON Polygon` geometry.", + "name": "GeoJsonPolygon" + }, + { + "value": "MultiPolygon", + "description": "`GeoJSON MultiPolygon` geometry.", + "name": "GeoJsonMultiPolygon" + }, + { + "value": "GeometryCollection", + "description": "`GeoJSON GeometryCollection` geometry.", + "name": "GeoJsonGeometryCollection" + }, + { + "value": "Feature", + "description": "`GeoJSON Feature` object.", + "name": "GeoJsonFeature" + }, + { + "value": "FeatureCollection", + "description": "`GeoJSON FeatureCollection` object.", + "name": "GeoJsonFeatureCollection" + } + ] + } + } + } + }, + "GeoJsonGeometry": { + "description": "A valid `GeoJSON` geometry object. The type must be one of the seven valid GeoJSON geometry types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon and GeometryCollection. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1) for details.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonObject" + } + ] + }, + "GeoJsonPoint": { + "description": "A valid `GeoJSON Point` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.2) for details.", + "x-ms-discriminator-value": "Point", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonPointData" + } + ] + }, + "GeoJsonPointData": { + "description": "Data contained by a `GeoJson Point`.", + "type": "object", + "properties": { + "coordinates": { + "$ref": "#/definitions/GeoJsonPosition" + } + }, + "required": [ + "coordinates" + ] + }, + "GeoJsonMultiPoint": { + "description": "A valid `GeoJSON MultiPoint` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.3) for details.", + "x-ms-discriminator-value": "MultiPoint", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonMultiPointData" + } + ] + }, + "GeoJsonMultiPointData": { + "type": "object", + "description": "Data contained by a `GeoJson MultiPoint`.", + "properties": { + "coordinates": { + "description": "Coordinates for the `GeoJson MultiPoint` geometry.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonPosition" + } + } + }, + "required": [ + "coordinates" + ] + }, + "GeoJsonLineString": { + "description": "A valid `GeoJSON LineString` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.4) for details.", + "x-ms-discriminator-value": "LineString", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonLineStringData" + } + ] + }, + "GeoJsonLineStringData": { + "type": "object", + "properties": { + "coordinates": { + "description": "Coordinates for the `GeoJson LineString` geometry.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonPosition" + } + } + }, + "required": [ + "coordinates" + ] + }, + "GeoJsonMultiLineString": { + "description": "A valid `GeoJSON MultiLineString` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.5) for details.", + "x-ms-discriminator-value": "MultiLineString", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonMultiLineStringData" + } + ] + }, + "GeoJsonMultiLineStringData": { + "type": "object", + "properties": { + "coordinates": { + "description": "Coordinates for the `GeoJson MultiLineString` geometry.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonLinearRing" + } + } + }, + "required": [ + "coordinates" + ] + }, + "GeoJsonPolygon": { + "description": "A valid `GeoJSON Polygon` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.6) for details.", + "x-ms-discriminator-value": "Polygon", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonPolygonData" + } + ] + }, + "GeoJsonPolygonData": { + "type": "object", + "properties": { + "coordinates": { + "description": "Coordinates for the `GeoJson Polygon` geometry type.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonLinearRing" + } + } + }, + "required": [ + "coordinates" + ] + }, + "GeoJsonMultiPolygon": { + "description": "A valid `GeoJSON MultiPolygon` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.7) for details.", + "x-ms-discriminator-value": "MultiPolygon", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonMultiPolygonData" + } + ] + }, + "GeoJsonMultiPolygonData": { + "type": "object", + "properties": { + "coordinates": { + "description": "Contains a list of valid `GeoJSON Polygon` objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude).", + "type": "array", + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonLinearRing" + } + } + } + }, + "required": [ + "coordinates" + ] + }, + "GeoJsonGeometryCollection": { + "description": "A valid `GeoJSON GeometryCollection` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.8) for details.", + "x-ms-discriminator-value": "GeometryCollection", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonGeometry" + }, + { + "$ref": "#/definitions/GeoJsonGeometryCollectionData" + } + ] + }, + "GeoJsonGeometryCollectionData": { + "type": "object", + "properties": { + "geometries": { + "description": "Contains a list of valid `GeoJSON` geometry objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude).", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonGeometry" + } + } + }, + "required": [ + "geometries" + ] + }, + "GeoJsonFeature": { + "description": "A valid `GeoJSON Feature` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.2) for details.", + "x-ms-discriminator-value": "Feature", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonObject" + }, + { + "$ref": "#/definitions/GeoJsonFeatureData" + } + ] + }, + "GeoJsonFeatureData": { + "type": "object", + "properties": { + "geometry": { + "$ref": "#/definitions/GeoJsonGeometry" + }, + "properties": { + "description": "Properties can contain any additional metadata about the `Feature`. Value can be any JSON object or a JSON null value", + "type": "object" + }, + "id": { + "description": "Identifier for the feature.", + "type": "string" + }, + "featureType": { + "description": "The type of the feature. The value depends on the data model the current feature is part of. Some data models may have an empty value.", + "type": "string" + } + }, + "required": [ + "geometry" + ] + }, + "GeoJsonFeatureCollection": { + "description": "A valid `GeoJSON FeatureCollection` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.3) for details.", + "x-ms-discriminator-value": "FeatureCollection", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GeoJsonObject" + }, + { + "$ref": "#/definitions/GeoJsonFeatureCollectionData" + } + ] + }, + "GeoJsonFeatureCollectionData": { + "type": "object", + "properties": { + "features": { + "description": "Contains a list of valid `GeoJSON Feature` objects.", + "type": "array", + "items": { + "$ref": "#/definitions/GeoJsonFeature" + } + } + }, + "required": [ + "features" + ] + }, + "Ontology": { + "type": "string", + "description": "The ontology version of this dataset.", + "readOnly": true + } + }, + "parameters": { + "SubscriptionKey": { + "name": "subscription-key", + "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", + "type": "string", + "in": "query", + "required": false, + "x-ms-parameter-location": "client" + }, + "ApiVersion": { + "name": "api-version", + "description": "Version number of Azure Maps API.", + "type": "string", + "in": "query", + "required": true, + "default": "1.0", + "x-ms-parameter-location": "client" + }, + "ApiVersionV2": { + "name": "api-version", + "description": "Version number of Azure Maps API.", + "type": "string", + "in": "query", + "required": true, + "default": "2.0", + "x-ms-parameter-location": "client" + }, + "ClientId": { + "name": "x-ms-client-id", + "description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.", + "type": "string", + "in": "header", + "required": false, + "x-ms-parameter-location": "client" + }, + "JsonFormat": { + "name": "format", + "description": "Desired format of the response. Only `json` format is supported.", + "type": "string", + "in": "path", + "required": true, + "enum": [ + "json" + ], + "x-ms-enum": { + "name": "JsonFormat", + "modelAsString": true, + "values": [ + { + "value": "json", + "description": "[The JavaScript Object Notation Data Interchange Format](https://tools.ietf.org/html/rfc8259)" + } + ] + }, + "x-ms-parameter-location": "method" + } + }, + "responses": { + "200Async": { + "description": "The operation's status response.", + "schema": { + "$ref": "#/definitions/LongRunningOperationResult" + } + }, + "200AsyncV2": { + "description": "The operation is running or complete. If the operation was successful, use the Resource-Location header to obtain the path to the result.", + "schema": { + "$ref": "#/definitions/LongRunningOperationResult" + }, + "headers": { + "Resource-Location": { + "type": "string", + "description": "If successful, a URI where details on the newly created resource can be found." + } + } + }, + "201Async": { + "description": "The resource has been created successfully.", + "schema": { + "$ref": "#/definitions/LongRunningOperationResult" + }, + "headers": { + "Location": { + "type": "string", + "description": "A URI where details on the newly created resource can be found." + } + } + }, + "202Async": { + "description": "**Supported only for async request.**\nRequest Accepted: The request has been accepted for processing. Please use the URL in the Location Header to retry or access the results.", + "headers": { + "Location": { + "type": "string", + "description": "New URL to check for the results of the long running process." + } + } + }, + "202AsyncV2": { + "description": "Request Accepted: The request has been accepted for processing. Please use the URL in the Operation-Location Header to obtain status.", + "headers": { + "Operation-Location": { + "type": "string", + "description": "New URL to check for the results of the long running process." + } + } + }, + "400": { + "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + }, + "401": { + "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "headers": { + "WWW-Authenticate": { + "type": "string", + "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" + } + }, + "x-ms-error-response": true + }, + "403": { + "description": "Permission, capacity, or authentication issues.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + }, + "404": { + "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + }, + "409": { + "description": "The request could not be completed due to a conflict with the current state of the resource. Likely caused by a parallel update to the same resource.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + }, + "409StorageLimit": { + "description": "The [data storage limit](https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/azure-subscription-service-limits#azure-maps-limits) is reached on the Azure Maps account. You can always use the [Data Delete API](https://docs.microsoft.com/en-us/rest/api/maps/data/deletepreview) to delete old/unused content and create space for new uploads.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + }, + "500": { + "description": "An error occurred while processing the request. Please try again later.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + } + }, + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "scopes": { + "user_impersonation": "Impersonates a user's Azure Active Directory account." + } + }, + "apiKeyQuery": { + "type": "apiKey", + "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", + "name": "subscription-key", + "in": "query" + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + }, + { + "apiKeyQuery": [] + } + ] +} diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json index f59c61f78f7d..c026f2aea22f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json @@ -132,13 +132,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" + "$ref": "./common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "./common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "./common.json#/parameters/ApiVersionV2" }, { "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" @@ -152,19 +152,19 @@ } }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "./common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "./common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "./common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "./common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "./common.json#/responses/500" } } } @@ -181,13 +181,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" + "$ref": "./common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "./common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "./common.json#/parameters/ApiVersionV2" }, { "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" @@ -201,19 +201,19 @@ } }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "./common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "./common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "./common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "./common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "./common.json#/responses/500" } } } @@ -230,13 +230,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" + "$ref": "./common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "./common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "./common.json#/parameters/ApiVersionV2" }, { "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" @@ -250,19 +250,19 @@ } }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "./common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "./common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "./common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "./common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "./common.json#/responses/500" } } } @@ -279,13 +279,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" + "$ref": "./common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "./common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "./common.json#/parameters/ApiVersionV2" }, { "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" @@ -302,19 +302,19 @@ } }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "./common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "./common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "./common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "./common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "./common.json#/responses/500" } } } @@ -331,13 +331,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" + "$ref": "./common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "./common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "./common.json#/parameters/ApiVersionV2" }, { "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" @@ -354,19 +354,19 @@ } }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "./common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "./common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "./common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "./common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "./common.json#/responses/500" } } } @@ -383,13 +383,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" + "$ref": "./common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "./common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "./common.json#/parameters/ApiVersionV2" }, { "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" @@ -415,19 +415,19 @@ } }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "./common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "./common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "./common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "./common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "./common.json#/responses/500" } } } @@ -444,10 +444,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "./common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "./common.json#/parameters/ApiVersionV2" }, { "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" @@ -467,19 +467,19 @@ } }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "./common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "./common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "./common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "./common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "./common.json#/responses/500" } } }, @@ -494,10 +494,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "./common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "./common.json#/parameters/ApiVersionV2" }, { "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" @@ -514,19 +514,19 @@ "description": "Feature Deleted." }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "./common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "./common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "./common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "./common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "./common.json#/responses/500" } } } @@ -540,7 +540,7 @@ ], "properties": { "ontology": { - "$ref": "../../../Common/preview/2.0/common.json#/definitions/Ontology" + "$ref": "./common.json#/definitions/Ontology" }, "links": { "description": "Links to other WFS endpoints.", @@ -612,7 +612,7 @@ ], "properties": { "ontology": { - "$ref": "../../../Common/preview/2.0/common.json#/definitions/Ontology" + "$ref": "./common.json#/definitions/Ontology" }, "links": { "description": "Links to other WFS endpoints.", @@ -715,7 +715,7 @@ "example": "Buildings" }, "ontology": { - "$ref": "../../../Common/preview/2.0/common.json#/definitions/Ontology" + "$ref": "./common.json#/definitions/Ontology" }, "description": { "description": "a description of the features in the collection", @@ -775,7 +775,7 @@ "example": "Feature Class buildings" }, "ontology": { - "$ref": "../../../Common/preview/2.0/common.json#/definitions/Ontology" + "$ref": "./common.json#/definitions/Ontology" }, "geometryType": { "description": "type of geometry returned", @@ -883,7 +883,7 @@ "type": "object", "allOf": [ { - "$ref": "../../../Common/preview/2.0/common.json#/definitions/GeoJsonFeatureCollection" + "$ref": "./common.json#/definitions/GeoJsonFeatureCollection" }, { "$ref": "#/definitions/ExtendedGeoJsonFeatureCollectionData" @@ -894,7 +894,7 @@ "type": "object", "properties": { "ontology": { - "$ref": "../../../Common/preview/2.0/common.json#/definitions/Ontology" + "$ref": "./common.json#/definitions/Ontology" }, "numberReturned": { "description": "Number of returned features.", @@ -916,10 +916,10 @@ ], "properties": { "ontology": { - "$ref": "../../../Common/preview/2.0/common.json#/definitions/Ontology" + "$ref": "./common.json#/definitions/Ontology" }, "feature": { - "$ref": "../../../Common/preview/2.0/common.json#/definitions/GeoJsonFeature" + "$ref": "./common.json#/definitions/GeoJsonFeature" }, "links": { "description": "Links to other WFS endpoints.", diff --git a/specification/maps/data-plane/readme.go.md b/specification/maps/data-plane/readme.go.md index 89b16a565912..c11d5fbc9aa5 100644 --- a/specification/maps/data-plane/readme.go.md +++ b/specification/maps/data-plane/readme.go.md @@ -13,14 +13,14 @@ go: ``` yaml $(go) && $(multiapi) batch: - - tag: package-2021-05-03-preview + - tag: package-preview-2.0 ``` -### Tag: package-2021-05-03-preview and go +### Tag: package-preview-2.0 and go -These settings apply only when `--tag=package-2021-05-03-preview --go` is specified on the command line. +These settings apply only when `--tag=package-preview-2.0 --go` is specified on the command line. Please also specify `--go-sdk-folder=`. -``` yaml $(tag) == 'package-2021-05-03-preview' && $(go) +``` yaml $(tag) == 'package-preview-2.0' && $(go) output-folder: $(go-sdk-folder)/services/preview/maps/1.0/$(namespace) ``` \ No newline at end of file diff --git a/specification/maps/data-plane/readme.md b/specification/maps/data-plane/readme.md index 5549655694ee..e0e90bd9ab53 100644 --- a/specification/maps/data-plane/readme.md +++ b/specification/maps/data-plane/readme.md @@ -27,7 +27,7 @@ These are the global settings for MapsClient. ``` yaml title: MapsClient openapi-type: data-plane -tag: package-2021-05-03-preview +tag: package-preview-2.0 ``` ### Suppression @@ -41,11 +41,11 @@ directive: ``` -### Tag: package-2021-05-03-preview +### Tag: package-preview-2.0 -These settings apply only when `--tag=package-2021-05-03-preview` is specified on the command line. +These settings apply only when `--tag=package-preview-2.0` is specified on the command line. -```yaml $(tag) == 'package-2021-05-03-preview' +```yaml $(tag) == 'package-preview-2.0' input-file: - Microsoft.Maps/Alias/preview/2.0/alias.json - Microsoft.Maps/Data/preview/2.0/data.json diff --git a/specification/maps/data-plane/readme.python.md b/specification/maps/data-plane/readme.python.md index 90c307b2873b..5f6bee5402ff 100644 --- a/specification/maps/data-plane/readme.python.md +++ b/specification/maps/data-plane/readme.python.md @@ -10,7 +10,7 @@ python: license-header: MICROSOFT_MIT_NO_VERSION namespace: azure.maps.service package-name: azure-maps-service - package-version: 2021-05-03-preview + package-version: preview-2.0 clear-output-folder: true ``` ``` yaml $(python) && $(track2) @@ -18,7 +18,7 @@ python-mode: create license-header: MICROSOFT_MIT_NO_VERSION namespace: azure.maps.service package-name: azure-maps-service -package-version: 2021-05-03-preview +package-version: preview-2.0 clear-output-folder: true ``` ``` yaml $(python) && $(python-mode) == 'asdf' && !$(track2) From 82844f9df2164fb0dee4c7a9f82bdcb06dc80ed9 Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Mon, 3 May 2021 15:05:04 -0700 Subject: [PATCH 096/210] Seems like it is impossible to make ApiDocPreview work until someone takes a look at "REST API CI Script Reporter" in the "OpenAPIPortal-REST-Generator" pipeline and fix it to use referenced Swagger files. --- .../Alias/preview/2.0/alias.json | 70 +- .../Alias/preview/2.0/common.json | 721 ------------------ .../Data/preview/2.0/common.json | 721 ------------------ .../Microsoft.Maps/Data/preview/2.0/data.json | 86 +-- .../Dataset/preview/2.0/common.json | 721 ------------------ .../Dataset/preview/2.0/dataset.json | 68 +- .../DwgConversion/preview/2.0/common.json | 721 ------------------ .../preview/2.0/dwgconversion.json | 76 +- .../FeatureState/preview/2.0/common.json | 721 ------------------ .../preview/2.0/featurestate.json | 114 +-- .../Render/preview/2.0/common.json | 721 ------------------ .../Render/preview/2.0/render.json | 16 +- .../Tileset/preview/2.0/common.json | 721 ------------------ .../Tileset/preview/2.0/tileset.json | 76 +- .../WFS/preview/2.0/common.json | 721 ------------------ .../Microsoft.Maps/WFS/preview/2.0/wfs.json | 140 ++-- 16 files changed, 323 insertions(+), 6091 deletions(-) delete mode 100644 specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/common.json delete mode 100644 specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/common.json delete mode 100644 specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/common.json delete mode 100644 specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/common.json delete mode 100644 specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/common.json delete mode 100644 specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/common.json delete mode 100644 specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/common.json delete mode 100644 specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/common.json diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json index a3c82d8eb303..a22127cf37a7 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json @@ -115,10 +115,10 @@ }, "parameters": [ { - "$ref": "./common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "./common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/CreateCreatorDataItemId" @@ -138,19 +138,19 @@ } }, "400": { - "$ref": "./common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "./common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "./common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "./common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "./common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } }, @@ -165,10 +165,10 @@ }, "parameters": [ { - "$ref": "./common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "./common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" } ], "responses": { @@ -179,19 +179,19 @@ } }, "400": { - "$ref": "./common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "./common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "./common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "./common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "./common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } } @@ -211,10 +211,10 @@ "$ref": "#/parameters/AliasId" }, { - "$ref": "./common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "./common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/AssignCreatorDataItemId" @@ -228,19 +228,19 @@ } }, "400": { - "$ref": "./common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "./common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "./common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "./common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "./common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } }, @@ -258,10 +258,10 @@ "$ref": "#/parameters/AliasId" }, { - "$ref": "./common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "./common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" } ], "responses": { @@ -269,19 +269,19 @@ "description": "Alias delete request completed successfully. The content for `aliasId` was deleted on the server." }, "400": { - "$ref": "./common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "./common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "./common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "./common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "./common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } }, @@ -299,10 +299,10 @@ "$ref": "#/parameters/AliasId" }, { - "$ref": "./common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "./common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" } ], "responses": { @@ -313,19 +313,19 @@ } }, "400": { - "$ref": "./common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "./common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "./common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "./common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "./common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/common.json deleted file mode 100644 index f2af932e1a6f..000000000000 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/common.json +++ /dev/null @@ -1,721 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Azure Maps Common Types", - "version": "2.0" - }, - "host": "atlas.microsoft.com", - "schemes": [ - "https" - ], - "consumes": [], - "produces": [ - "application/json", - "application/xml" - ], - "paths": {}, - "definitions": { - "LongRunningOperationResult": { - "description": "The response model for a Long-Running Operations API.", - "type": "object", - "properties": { - "operationId": { - "description": "The Id for this long-running operation.", - "type": "string" - }, - "status": { - "description": "The status state of the request.", - "type": "string", - "enum": [ - "NotStarted", - "Running", - "Failed", - "Succeeded" - ], - "x-ms-enum": { - "name": "LroStatus", - "modelAsString": true, - "values": [ - { - "value": "NotStarted", - "description": "The request has not started processing yet." - }, - { - "value": "Running", - "description": "The request has started processing." - }, - { - "value": "Failed", - "description": "The request has one or more failures." - }, - { - "value": "Succeeded", - "description": "The request has successfully completed." - } - ] - }, - "readOnly": true - }, - "created": { - "description": "The created timestamp.", - "type": "string", - "readOnly": true - }, - "resourceLocation": { - "description": "The location URI for details about the created resource. This is only provided when the request was successfully completed.", - "type": "string", - "readOnly": true - }, - "error": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" - }, - "warning": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" - } - } - }, - "BatchRequestBody": { - "description": "This type represents the request body for the Batch service.", - "type": "object", - "properties": { - "batchItems": { - "description": "The list of queries to process.", - "type": "array", - "items": { - "description": "Batch Query object", - "type": "object", - "properties": { - "query": { - "description": "Partial query string.", - "type": "string", - "example": "?query=One, Microsoft Way, Redmond, WA 98052&limit=3" - } - } - } - } - } - }, - "BatchResponse": { - "description": "This object is returned from a successful Batch service call. Extend with 'batchItems' property.", - "type": "object", - "properties": { - "summary": { - "description": "Summary for the batch request", - "type": "object", - "readOnly": true, - "properties": { - "successfulRequests": { - "description": "Number of successful requests in the batch", - "type": "integer", - "readOnly": true - }, - "totalRequests": { - "description": "Total number of requests in the batch", - "type": "integer", - "readOnly": true - } - } - } - } - }, - "BatchItem": { - "description": "An item returned from Batch API. Extend with 'response' property.", - "type": "object", - "properties": { - "statusCode": { - "description": "HTTP request status code.", - "type": "number", - "readOnly": true, - "example": 200 - } - } - }, - "CoordinatesPair": { - "description": "A location represented as a latitude and longitude.", - "type": "object", - "properties": { - "latitude": { - "description": "Latitude property", - "type": "number", - "format": "double" - }, - "longitude": { - "description": "Longitude property", - "type": "number", - "format": "double" - } - } - }, - "CoordinatesPairAbbreviated": { - "description": "A location represented as a latitude and longitude using short names 'lat' & 'lon'.", - "type": "object", - "properties": { - "lat": { - "description": "Latitude property", - "type": "number", - "format": "double" - }, - "lon": { - "description": "Longitude property", - "type": "number", - "format": "double" - } - } - }, - "GeoJsonPosition": { - "description": "A `Position` is an array of numbers with two or more elements. The first two elements are _longitude_ and _latitude_, precisely in that order. _Altitude/Elevation_ is an optional third element. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.1) for details.", - "type": "array", - "items": { - "type": "number", - "format": "double" - } - }, - "GeoJsonLinearRing": { - "description": "Though a linear ring is not explicitly represented as a GeoJSON geometry type, it helps in defining the polygon as an array of linear rings. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.6) for details.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonPosition" - } - }, - "GeoJsonObject": { - "description": "A valid `GeoJSON` object. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3) for details.", - "type": "object", - "discriminator": "type", - "required": [ - "type" - ], - "properties": { - "type": { - "description": "Specifies the `GeoJSON` type. Must be one of the nine valid GeoJSON object types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon, GeometryCollection, Feature and FeatureCollection.", - "type": "string", - "enum": [ - "Point", - "MultiPoint", - "LineString", - "MultiLineString", - "Polygon", - "MultiPolygon", - "GeometryCollection", - "Feature", - "FeatureCollection" - ], - "x-ms-enum": { - "name": "GeoJsonObjectType", - "modelAsString": true, - "values": [ - { - "value": "Point", - "description": "`GeoJSON Point` geometry.", - "name": "GeoJsonPoint" - }, - { - "value": "MultiPoint", - "description": "`GeoJSON MultiPoint` geometry.", - "name": "GeoJsonMultiPoint" - }, - { - "value": "LineString", - "description": "`GeoJSON LineString` geometry.", - "name": "GeoJsonLineString" - }, - { - "value": "MultiLineString", - "description": "`GeoJSON MultiLineString` geometry.", - "name": "GeoJsonMultiLineString" - }, - { - "value": "Polygon", - "description": "`GeoJSON Polygon` geometry.", - "name": "GeoJsonPolygon" - }, - { - "value": "MultiPolygon", - "description": "`GeoJSON MultiPolygon` geometry.", - "name": "GeoJsonMultiPolygon" - }, - { - "value": "GeometryCollection", - "description": "`GeoJSON GeometryCollection` geometry.", - "name": "GeoJsonGeometryCollection" - }, - { - "value": "Feature", - "description": "`GeoJSON Feature` object.", - "name": "GeoJsonFeature" - }, - { - "value": "FeatureCollection", - "description": "`GeoJSON FeatureCollection` object.", - "name": "GeoJsonFeatureCollection" - } - ] - } - } - } - }, - "GeoJsonGeometry": { - "description": "A valid `GeoJSON` geometry object. The type must be one of the seven valid GeoJSON geometry types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon and GeometryCollection. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1) for details.", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonObject" - } - ] - }, - "GeoJsonPoint": { - "description": "A valid `GeoJSON Point` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.2) for details.", - "x-ms-discriminator-value": "Point", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonPointData" - } - ] - }, - "GeoJsonPointData": { - "description": "Data contained by a `GeoJson Point`.", - "type": "object", - "properties": { - "coordinates": { - "$ref": "#/definitions/GeoJsonPosition" - } - }, - "required": [ - "coordinates" - ] - }, - "GeoJsonMultiPoint": { - "description": "A valid `GeoJSON MultiPoint` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.3) for details.", - "x-ms-discriminator-value": "MultiPoint", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonMultiPointData" - } - ] - }, - "GeoJsonMultiPointData": { - "type": "object", - "description": "Data contained by a `GeoJson MultiPoint`.", - "properties": { - "coordinates": { - "description": "Coordinates for the `GeoJson MultiPoint` geometry.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonPosition" - } - } - }, - "required": [ - "coordinates" - ] - }, - "GeoJsonLineString": { - "description": "A valid `GeoJSON LineString` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.4) for details.", - "x-ms-discriminator-value": "LineString", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonLineStringData" - } - ] - }, - "GeoJsonLineStringData": { - "type": "object", - "properties": { - "coordinates": { - "description": "Coordinates for the `GeoJson LineString` geometry.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonPosition" - } - } - }, - "required": [ - "coordinates" - ] - }, - "GeoJsonMultiLineString": { - "description": "A valid `GeoJSON MultiLineString` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.5) for details.", - "x-ms-discriminator-value": "MultiLineString", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonMultiLineStringData" - } - ] - }, - "GeoJsonMultiLineStringData": { - "type": "object", - "properties": { - "coordinates": { - "description": "Coordinates for the `GeoJson MultiLineString` geometry.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonLinearRing" - } - } - }, - "required": [ - "coordinates" - ] - }, - "GeoJsonPolygon": { - "description": "A valid `GeoJSON Polygon` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.6) for details.", - "x-ms-discriminator-value": "Polygon", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonPolygonData" - } - ] - }, - "GeoJsonPolygonData": { - "type": "object", - "properties": { - "coordinates": { - "description": "Coordinates for the `GeoJson Polygon` geometry type.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonLinearRing" - } - } - }, - "required": [ - "coordinates" - ] - }, - "GeoJsonMultiPolygon": { - "description": "A valid `GeoJSON MultiPolygon` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.7) for details.", - "x-ms-discriminator-value": "MultiPolygon", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonMultiPolygonData" - } - ] - }, - "GeoJsonMultiPolygonData": { - "type": "object", - "properties": { - "coordinates": { - "description": "Contains a list of valid `GeoJSON Polygon` objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude).", - "type": "array", - "items": { - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonLinearRing" - } - } - } - }, - "required": [ - "coordinates" - ] - }, - "GeoJsonGeometryCollection": { - "description": "A valid `GeoJSON GeometryCollection` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.8) for details.", - "x-ms-discriminator-value": "GeometryCollection", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonGeometryCollectionData" - } - ] - }, - "GeoJsonGeometryCollectionData": { - "type": "object", - "properties": { - "geometries": { - "description": "Contains a list of valid `GeoJSON` geometry objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude).", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonGeometry" - } - } - }, - "required": [ - "geometries" - ] - }, - "GeoJsonFeature": { - "description": "A valid `GeoJSON Feature` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.2) for details.", - "x-ms-discriminator-value": "Feature", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonObject" - }, - { - "$ref": "#/definitions/GeoJsonFeatureData" - } - ] - }, - "GeoJsonFeatureData": { - "type": "object", - "properties": { - "geometry": { - "$ref": "#/definitions/GeoJsonGeometry" - }, - "properties": { - "description": "Properties can contain any additional metadata about the `Feature`. Value can be any JSON object or a JSON null value", - "type": "object" - }, - "id": { - "description": "Identifier for the feature.", - "type": "string" - }, - "featureType": { - "description": "The type of the feature. The value depends on the data model the current feature is part of. Some data models may have an empty value.", - "type": "string" - } - }, - "required": [ - "geometry" - ] - }, - "GeoJsonFeatureCollection": { - "description": "A valid `GeoJSON FeatureCollection` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.3) for details.", - "x-ms-discriminator-value": "FeatureCollection", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonObject" - }, - { - "$ref": "#/definitions/GeoJsonFeatureCollectionData" - } - ] - }, - "GeoJsonFeatureCollectionData": { - "type": "object", - "properties": { - "features": { - "description": "Contains a list of valid `GeoJSON Feature` objects.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonFeature" - } - } - }, - "required": [ - "features" - ] - }, - "Ontology": { - "type": "string", - "description": "The ontology version of this dataset.", - "readOnly": true - } - }, - "parameters": { - "SubscriptionKey": { - "name": "subscription-key", - "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", - "type": "string", - "in": "query", - "required": false, - "x-ms-parameter-location": "client" - }, - "ApiVersion": { - "name": "api-version", - "description": "Version number of Azure Maps API.", - "type": "string", - "in": "query", - "required": true, - "default": "1.0", - "x-ms-parameter-location": "client" - }, - "ApiVersionV2": { - "name": "api-version", - "description": "Version number of Azure Maps API.", - "type": "string", - "in": "query", - "required": true, - "default": "2.0", - "x-ms-parameter-location": "client" - }, - "ClientId": { - "name": "x-ms-client-id", - "description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.", - "type": "string", - "in": "header", - "required": false, - "x-ms-parameter-location": "client" - }, - "JsonFormat": { - "name": "format", - "description": "Desired format of the response. Only `json` format is supported.", - "type": "string", - "in": "path", - "required": true, - "enum": [ - "json" - ], - "x-ms-enum": { - "name": "JsonFormat", - "modelAsString": true, - "values": [ - { - "value": "json", - "description": "[The JavaScript Object Notation Data Interchange Format](https://tools.ietf.org/html/rfc8259)" - } - ] - }, - "x-ms-parameter-location": "method" - } - }, - "responses": { - "200Async": { - "description": "The operation's status response.", - "schema": { - "$ref": "#/definitions/LongRunningOperationResult" - } - }, - "200AsyncV2": { - "description": "The operation is running or complete. If the operation was successful, use the Resource-Location header to obtain the path to the result.", - "schema": { - "$ref": "#/definitions/LongRunningOperationResult" - }, - "headers": { - "Resource-Location": { - "type": "string", - "description": "If successful, a URI where details on the newly created resource can be found." - } - } - }, - "201Async": { - "description": "The resource has been created successfully.", - "schema": { - "$ref": "#/definitions/LongRunningOperationResult" - }, - "headers": { - "Location": { - "type": "string", - "description": "A URI where details on the newly created resource can be found." - } - } - }, - "202Async": { - "description": "**Supported only for async request.**\nRequest Accepted: The request has been accepted for processing. Please use the URL in the Location Header to retry or access the results.", - "headers": { - "Location": { - "type": "string", - "description": "New URL to check for the results of the long running process." - } - } - }, - "202AsyncV2": { - "description": "Request Accepted: The request has been accepted for processing. Please use the URL in the Operation-Location Header to obtain status.", - "headers": { - "Operation-Location": { - "type": "string", - "description": "New URL to check for the results of the long running process." - } - } - }, - "400": { - "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "401": { - "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "headers": { - "WWW-Authenticate": { - "type": "string", - "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" - } - }, - "x-ms-error-response": true - }, - "403": { - "description": "Permission, capacity, or authentication issues.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "404": { - "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "409": { - "description": "The request could not be completed due to a conflict with the current state of the resource. Likely caused by a parallel update to the same resource.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "409StorageLimit": { - "description": "The [data storage limit](https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/azure-subscription-service-limits#azure-maps-limits) is reached on the Azure Maps account. You can always use the [Data Delete API](https://docs.microsoft.com/en-us/rest/api/maps/data/deletepreview) to delete old/unused content and create space for new uploads.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "500": { - "description": "An error occurred while processing the request. Please try again later.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - } - }, - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", - "scopes": { - "user_impersonation": "Impersonates a user's Azure Active Directory account." - } - }, - "apiKeyQuery": { - "type": "apiKey", - "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", - "name": "subscription-key", - "in": "query" - } - }, - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - }, - { - "apiKeyQuery": [] - } - ] -} diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/common.json deleted file mode 100644 index f2af932e1a6f..000000000000 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/common.json +++ /dev/null @@ -1,721 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Azure Maps Common Types", - "version": "2.0" - }, - "host": "atlas.microsoft.com", - "schemes": [ - "https" - ], - "consumes": [], - "produces": [ - "application/json", - "application/xml" - ], - "paths": {}, - "definitions": { - "LongRunningOperationResult": { - "description": "The response model for a Long-Running Operations API.", - "type": "object", - "properties": { - "operationId": { - "description": "The Id for this long-running operation.", - "type": "string" - }, - "status": { - "description": "The status state of the request.", - "type": "string", - "enum": [ - "NotStarted", - "Running", - "Failed", - "Succeeded" - ], - "x-ms-enum": { - "name": "LroStatus", - "modelAsString": true, - "values": [ - { - "value": "NotStarted", - "description": "The request has not started processing yet." - }, - { - "value": "Running", - "description": "The request has started processing." - }, - { - "value": "Failed", - "description": "The request has one or more failures." - }, - { - "value": "Succeeded", - "description": "The request has successfully completed." - } - ] - }, - "readOnly": true - }, - "created": { - "description": "The created timestamp.", - "type": "string", - "readOnly": true - }, - "resourceLocation": { - "description": "The location URI for details about the created resource. This is only provided when the request was successfully completed.", - "type": "string", - "readOnly": true - }, - "error": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" - }, - "warning": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" - } - } - }, - "BatchRequestBody": { - "description": "This type represents the request body for the Batch service.", - "type": "object", - "properties": { - "batchItems": { - "description": "The list of queries to process.", - "type": "array", - "items": { - "description": "Batch Query object", - "type": "object", - "properties": { - "query": { - "description": "Partial query string.", - "type": "string", - "example": "?query=One, Microsoft Way, Redmond, WA 98052&limit=3" - } - } - } - } - } - }, - "BatchResponse": { - "description": "This object is returned from a successful Batch service call. Extend with 'batchItems' property.", - "type": "object", - "properties": { - "summary": { - "description": "Summary for the batch request", - "type": "object", - "readOnly": true, - "properties": { - "successfulRequests": { - "description": "Number of successful requests in the batch", - "type": "integer", - "readOnly": true - }, - "totalRequests": { - "description": "Total number of requests in the batch", - "type": "integer", - "readOnly": true - } - } - } - } - }, - "BatchItem": { - "description": "An item returned from Batch API. Extend with 'response' property.", - "type": "object", - "properties": { - "statusCode": { - "description": "HTTP request status code.", - "type": "number", - "readOnly": true, - "example": 200 - } - } - }, - "CoordinatesPair": { - "description": "A location represented as a latitude and longitude.", - "type": "object", - "properties": { - "latitude": { - "description": "Latitude property", - "type": "number", - "format": "double" - }, - "longitude": { - "description": "Longitude property", - "type": "number", - "format": "double" - } - } - }, - "CoordinatesPairAbbreviated": { - "description": "A location represented as a latitude and longitude using short names 'lat' & 'lon'.", - "type": "object", - "properties": { - "lat": { - "description": "Latitude property", - "type": "number", - "format": "double" - }, - "lon": { - "description": "Longitude property", - "type": "number", - "format": "double" - } - } - }, - "GeoJsonPosition": { - "description": "A `Position` is an array of numbers with two or more elements. The first two elements are _longitude_ and _latitude_, precisely in that order. _Altitude/Elevation_ is an optional third element. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.1) for details.", - "type": "array", - "items": { - "type": "number", - "format": "double" - } - }, - "GeoJsonLinearRing": { - "description": "Though a linear ring is not explicitly represented as a GeoJSON geometry type, it helps in defining the polygon as an array of linear rings. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.6) for details.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonPosition" - } - }, - "GeoJsonObject": { - "description": "A valid `GeoJSON` object. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3) for details.", - "type": "object", - "discriminator": "type", - "required": [ - "type" - ], - "properties": { - "type": { - "description": "Specifies the `GeoJSON` type. Must be one of the nine valid GeoJSON object types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon, GeometryCollection, Feature and FeatureCollection.", - "type": "string", - "enum": [ - "Point", - "MultiPoint", - "LineString", - "MultiLineString", - "Polygon", - "MultiPolygon", - "GeometryCollection", - "Feature", - "FeatureCollection" - ], - "x-ms-enum": { - "name": "GeoJsonObjectType", - "modelAsString": true, - "values": [ - { - "value": "Point", - "description": "`GeoJSON Point` geometry.", - "name": "GeoJsonPoint" - }, - { - "value": "MultiPoint", - "description": "`GeoJSON MultiPoint` geometry.", - "name": "GeoJsonMultiPoint" - }, - { - "value": "LineString", - "description": "`GeoJSON LineString` geometry.", - "name": "GeoJsonLineString" - }, - { - "value": "MultiLineString", - "description": "`GeoJSON MultiLineString` geometry.", - "name": "GeoJsonMultiLineString" - }, - { - "value": "Polygon", - "description": "`GeoJSON Polygon` geometry.", - "name": "GeoJsonPolygon" - }, - { - "value": "MultiPolygon", - "description": "`GeoJSON MultiPolygon` geometry.", - "name": "GeoJsonMultiPolygon" - }, - { - "value": "GeometryCollection", - "description": "`GeoJSON GeometryCollection` geometry.", - "name": "GeoJsonGeometryCollection" - }, - { - "value": "Feature", - "description": "`GeoJSON Feature` object.", - "name": "GeoJsonFeature" - }, - { - "value": "FeatureCollection", - "description": "`GeoJSON FeatureCollection` object.", - "name": "GeoJsonFeatureCollection" - } - ] - } - } - } - }, - "GeoJsonGeometry": { - "description": "A valid `GeoJSON` geometry object. The type must be one of the seven valid GeoJSON geometry types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon and GeometryCollection. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1) for details.", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonObject" - } - ] - }, - "GeoJsonPoint": { - "description": "A valid `GeoJSON Point` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.2) for details.", - "x-ms-discriminator-value": "Point", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonPointData" - } - ] - }, - "GeoJsonPointData": { - "description": "Data contained by a `GeoJson Point`.", - "type": "object", - "properties": { - "coordinates": { - "$ref": "#/definitions/GeoJsonPosition" - } - }, - "required": [ - "coordinates" - ] - }, - "GeoJsonMultiPoint": { - "description": "A valid `GeoJSON MultiPoint` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.3) for details.", - "x-ms-discriminator-value": "MultiPoint", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonMultiPointData" - } - ] - }, - "GeoJsonMultiPointData": { - "type": "object", - "description": "Data contained by a `GeoJson MultiPoint`.", - "properties": { - "coordinates": { - "description": "Coordinates for the `GeoJson MultiPoint` geometry.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonPosition" - } - } - }, - "required": [ - "coordinates" - ] - }, - "GeoJsonLineString": { - "description": "A valid `GeoJSON LineString` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.4) for details.", - "x-ms-discriminator-value": "LineString", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonLineStringData" - } - ] - }, - "GeoJsonLineStringData": { - "type": "object", - "properties": { - "coordinates": { - "description": "Coordinates for the `GeoJson LineString` geometry.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonPosition" - } - } - }, - "required": [ - "coordinates" - ] - }, - "GeoJsonMultiLineString": { - "description": "A valid `GeoJSON MultiLineString` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.5) for details.", - "x-ms-discriminator-value": "MultiLineString", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonMultiLineStringData" - } - ] - }, - "GeoJsonMultiLineStringData": { - "type": "object", - "properties": { - "coordinates": { - "description": "Coordinates for the `GeoJson MultiLineString` geometry.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonLinearRing" - } - } - }, - "required": [ - "coordinates" - ] - }, - "GeoJsonPolygon": { - "description": "A valid `GeoJSON Polygon` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.6) for details.", - "x-ms-discriminator-value": "Polygon", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonPolygonData" - } - ] - }, - "GeoJsonPolygonData": { - "type": "object", - "properties": { - "coordinates": { - "description": "Coordinates for the `GeoJson Polygon` geometry type.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonLinearRing" - } - } - }, - "required": [ - "coordinates" - ] - }, - "GeoJsonMultiPolygon": { - "description": "A valid `GeoJSON MultiPolygon` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.7) for details.", - "x-ms-discriminator-value": "MultiPolygon", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonMultiPolygonData" - } - ] - }, - "GeoJsonMultiPolygonData": { - "type": "object", - "properties": { - "coordinates": { - "description": "Contains a list of valid `GeoJSON Polygon` objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude).", - "type": "array", - "items": { - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonLinearRing" - } - } - } - }, - "required": [ - "coordinates" - ] - }, - "GeoJsonGeometryCollection": { - "description": "A valid `GeoJSON GeometryCollection` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.8) for details.", - "x-ms-discriminator-value": "GeometryCollection", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonGeometryCollectionData" - } - ] - }, - "GeoJsonGeometryCollectionData": { - "type": "object", - "properties": { - "geometries": { - "description": "Contains a list of valid `GeoJSON` geometry objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude).", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonGeometry" - } - } - }, - "required": [ - "geometries" - ] - }, - "GeoJsonFeature": { - "description": "A valid `GeoJSON Feature` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.2) for details.", - "x-ms-discriminator-value": "Feature", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonObject" - }, - { - "$ref": "#/definitions/GeoJsonFeatureData" - } - ] - }, - "GeoJsonFeatureData": { - "type": "object", - "properties": { - "geometry": { - "$ref": "#/definitions/GeoJsonGeometry" - }, - "properties": { - "description": "Properties can contain any additional metadata about the `Feature`. Value can be any JSON object or a JSON null value", - "type": "object" - }, - "id": { - "description": "Identifier for the feature.", - "type": "string" - }, - "featureType": { - "description": "The type of the feature. The value depends on the data model the current feature is part of. Some data models may have an empty value.", - "type": "string" - } - }, - "required": [ - "geometry" - ] - }, - "GeoJsonFeatureCollection": { - "description": "A valid `GeoJSON FeatureCollection` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.3) for details.", - "x-ms-discriminator-value": "FeatureCollection", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonObject" - }, - { - "$ref": "#/definitions/GeoJsonFeatureCollectionData" - } - ] - }, - "GeoJsonFeatureCollectionData": { - "type": "object", - "properties": { - "features": { - "description": "Contains a list of valid `GeoJSON Feature` objects.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonFeature" - } - } - }, - "required": [ - "features" - ] - }, - "Ontology": { - "type": "string", - "description": "The ontology version of this dataset.", - "readOnly": true - } - }, - "parameters": { - "SubscriptionKey": { - "name": "subscription-key", - "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", - "type": "string", - "in": "query", - "required": false, - "x-ms-parameter-location": "client" - }, - "ApiVersion": { - "name": "api-version", - "description": "Version number of Azure Maps API.", - "type": "string", - "in": "query", - "required": true, - "default": "1.0", - "x-ms-parameter-location": "client" - }, - "ApiVersionV2": { - "name": "api-version", - "description": "Version number of Azure Maps API.", - "type": "string", - "in": "query", - "required": true, - "default": "2.0", - "x-ms-parameter-location": "client" - }, - "ClientId": { - "name": "x-ms-client-id", - "description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.", - "type": "string", - "in": "header", - "required": false, - "x-ms-parameter-location": "client" - }, - "JsonFormat": { - "name": "format", - "description": "Desired format of the response. Only `json` format is supported.", - "type": "string", - "in": "path", - "required": true, - "enum": [ - "json" - ], - "x-ms-enum": { - "name": "JsonFormat", - "modelAsString": true, - "values": [ - { - "value": "json", - "description": "[The JavaScript Object Notation Data Interchange Format](https://tools.ietf.org/html/rfc8259)" - } - ] - }, - "x-ms-parameter-location": "method" - } - }, - "responses": { - "200Async": { - "description": "The operation's status response.", - "schema": { - "$ref": "#/definitions/LongRunningOperationResult" - } - }, - "200AsyncV2": { - "description": "The operation is running or complete. If the operation was successful, use the Resource-Location header to obtain the path to the result.", - "schema": { - "$ref": "#/definitions/LongRunningOperationResult" - }, - "headers": { - "Resource-Location": { - "type": "string", - "description": "If successful, a URI where details on the newly created resource can be found." - } - } - }, - "201Async": { - "description": "The resource has been created successfully.", - "schema": { - "$ref": "#/definitions/LongRunningOperationResult" - }, - "headers": { - "Location": { - "type": "string", - "description": "A URI where details on the newly created resource can be found." - } - } - }, - "202Async": { - "description": "**Supported only for async request.**\nRequest Accepted: The request has been accepted for processing. Please use the URL in the Location Header to retry or access the results.", - "headers": { - "Location": { - "type": "string", - "description": "New URL to check for the results of the long running process." - } - } - }, - "202AsyncV2": { - "description": "Request Accepted: The request has been accepted for processing. Please use the URL in the Operation-Location Header to obtain status.", - "headers": { - "Operation-Location": { - "type": "string", - "description": "New URL to check for the results of the long running process." - } - } - }, - "400": { - "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "401": { - "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "headers": { - "WWW-Authenticate": { - "type": "string", - "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" - } - }, - "x-ms-error-response": true - }, - "403": { - "description": "Permission, capacity, or authentication issues.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "404": { - "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "409": { - "description": "The request could not be completed due to a conflict with the current state of the resource. Likely caused by a parallel update to the same resource.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "409StorageLimit": { - "description": "The [data storage limit](https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/azure-subscription-service-limits#azure-maps-limits) is reached on the Azure Maps account. You can always use the [Data Delete API](https://docs.microsoft.com/en-us/rest/api/maps/data/deletepreview) to delete old/unused content and create space for new uploads.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "500": { - "description": "An error occurred while processing the request. Please try again later.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - } - }, - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", - "scopes": { - "user_impersonation": "Impersonates a user's Azure Active Directory account." - } - }, - "apiKeyQuery": { - "type": "apiKey", - "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", - "name": "subscription-key", - "in": "query" - } - }, - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - }, - { - "apiKeyQuery": [] - } - ] -} diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json index c6c6681dc231..ad3da6c8f588 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json @@ -155,13 +155,13 @@ ], "parameters": [ { - "$ref": "./common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" }, { - "$ref": "./common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "./common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/UploadDataDescription" @@ -186,25 +186,25 @@ "x-ms-error-response": true }, "202": { - "$ref": "./common.json#/responses/202AsyncV2" + "$ref": "../../../Common/preview/2.0/common.json#/responses/202AsyncV2" }, "400": { - "$ref": "./common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "./common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "./common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "./common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "409": { - "$ref": "./common.json#/responses/409StorageLimit" + "$ref": "../../../Common/preview/2.0/common.json#/responses/409StorageLimit" }, "500": { - "$ref": "./common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } }, @@ -219,13 +219,13 @@ }, "parameters": [ { - "$ref": "./common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" }, { - "$ref": "./common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "./common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" } ], "responses": { @@ -236,19 +236,19 @@ } }, "400": { - "$ref": "./common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "./common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "./common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "./common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "./common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } } @@ -272,13 +272,13 @@ ], "parameters": [ { - "$ref": "./common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" }, { - "$ref": "./common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "./common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/UniqueDataId" @@ -303,25 +303,25 @@ "x-ms-error-response": true }, "202": { - "$ref": "./common.json#/responses/202AsyncV2" + "$ref": "../../../Common/preview/2.0/common.json#/responses/202AsyncV2" }, "400": { - "$ref": "./common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "./common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "./common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "./common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "409": { - "$ref": "./common.json#/responses/409StorageLimit" + "$ref": "../../../Common/preview/2.0/common.json#/responses/409StorageLimit" }, "500": { - "$ref": "./common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } }, @@ -341,13 +341,13 @@ ], "parameters": [ { - "$ref": "./common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" }, { - "$ref": "./common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "./common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/UniqueDataId" @@ -386,13 +386,13 @@ }, "parameters": [ { - "$ref": "./common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" }, { - "$ref": "./common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "./common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/UniqueDataId" @@ -403,19 +403,19 @@ "description": "Data delete request completed successfully. The content for `udid` was deleted on the server." }, "400": { - "$ref": "./common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "./common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "./common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "./common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "./common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } } @@ -434,10 +434,10 @@ }, "parameters": [ { - "$ref": "./common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "./common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/DataUploadOperationId" @@ -445,10 +445,10 @@ ], "responses": { "200": { - "$ref": "./common.json#/responses/200AsyncV2" + "$ref": "../../../Common/preview/2.0/common.json#/responses/200AsyncV2" }, "400": { - "$ref": "./common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/common.json deleted file mode 100644 index f2af932e1a6f..000000000000 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/common.json +++ /dev/null @@ -1,721 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Azure Maps Common Types", - "version": "2.0" - }, - "host": "atlas.microsoft.com", - "schemes": [ - "https" - ], - "consumes": [], - "produces": [ - "application/json", - "application/xml" - ], - "paths": {}, - "definitions": { - "LongRunningOperationResult": { - "description": "The response model for a Long-Running Operations API.", - "type": "object", - "properties": { - "operationId": { - "description": "The Id for this long-running operation.", - "type": "string" - }, - "status": { - "description": "The status state of the request.", - "type": "string", - "enum": [ - "NotStarted", - "Running", - "Failed", - "Succeeded" - ], - "x-ms-enum": { - "name": "LroStatus", - "modelAsString": true, - "values": [ - { - "value": "NotStarted", - "description": "The request has not started processing yet." - }, - { - "value": "Running", - "description": "The request has started processing." - }, - { - "value": "Failed", - "description": "The request has one or more failures." - }, - { - "value": "Succeeded", - "description": "The request has successfully completed." - } - ] - }, - "readOnly": true - }, - "created": { - "description": "The created timestamp.", - "type": "string", - "readOnly": true - }, - "resourceLocation": { - "description": "The location URI for details about the created resource. This is only provided when the request was successfully completed.", - "type": "string", - "readOnly": true - }, - "error": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" - }, - "warning": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" - } - } - }, - "BatchRequestBody": { - "description": "This type represents the request body for the Batch service.", - "type": "object", - "properties": { - "batchItems": { - "description": "The list of queries to process.", - "type": "array", - "items": { - "description": "Batch Query object", - "type": "object", - "properties": { - "query": { - "description": "Partial query string.", - "type": "string", - "example": "?query=One, Microsoft Way, Redmond, WA 98052&limit=3" - } - } - } - } - } - }, - "BatchResponse": { - "description": "This object is returned from a successful Batch service call. Extend with 'batchItems' property.", - "type": "object", - "properties": { - "summary": { - "description": "Summary for the batch request", - "type": "object", - "readOnly": true, - "properties": { - "successfulRequests": { - "description": "Number of successful requests in the batch", - "type": "integer", - "readOnly": true - }, - "totalRequests": { - "description": "Total number of requests in the batch", - "type": "integer", - "readOnly": true - } - } - } - } - }, - "BatchItem": { - "description": "An item returned from Batch API. Extend with 'response' property.", - "type": "object", - "properties": { - "statusCode": { - "description": "HTTP request status code.", - "type": "number", - "readOnly": true, - "example": 200 - } - } - }, - "CoordinatesPair": { - "description": "A location represented as a latitude and longitude.", - "type": "object", - "properties": { - "latitude": { - "description": "Latitude property", - "type": "number", - "format": "double" - }, - "longitude": { - "description": "Longitude property", - "type": "number", - "format": "double" - } - } - }, - "CoordinatesPairAbbreviated": { - "description": "A location represented as a latitude and longitude using short names 'lat' & 'lon'.", - "type": "object", - "properties": { - "lat": { - "description": "Latitude property", - "type": "number", - "format": "double" - }, - "lon": { - "description": "Longitude property", - "type": "number", - "format": "double" - } - } - }, - "GeoJsonPosition": { - "description": "A `Position` is an array of numbers with two or more elements. The first two elements are _longitude_ and _latitude_, precisely in that order. _Altitude/Elevation_ is an optional third element. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.1) for details.", - "type": "array", - "items": { - "type": "number", - "format": "double" - } - }, - "GeoJsonLinearRing": { - "description": "Though a linear ring is not explicitly represented as a GeoJSON geometry type, it helps in defining the polygon as an array of linear rings. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.6) for details.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonPosition" - } - }, - "GeoJsonObject": { - "description": "A valid `GeoJSON` object. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3) for details.", - "type": "object", - "discriminator": "type", - "required": [ - "type" - ], - "properties": { - "type": { - "description": "Specifies the `GeoJSON` type. Must be one of the nine valid GeoJSON object types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon, GeometryCollection, Feature and FeatureCollection.", - "type": "string", - "enum": [ - "Point", - "MultiPoint", - "LineString", - "MultiLineString", - "Polygon", - "MultiPolygon", - "GeometryCollection", - "Feature", - "FeatureCollection" - ], - "x-ms-enum": { - "name": "GeoJsonObjectType", - "modelAsString": true, - "values": [ - { - "value": "Point", - "description": "`GeoJSON Point` geometry.", - "name": "GeoJsonPoint" - }, - { - "value": "MultiPoint", - "description": "`GeoJSON MultiPoint` geometry.", - "name": "GeoJsonMultiPoint" - }, - { - "value": "LineString", - "description": "`GeoJSON LineString` geometry.", - "name": "GeoJsonLineString" - }, - { - "value": "MultiLineString", - "description": "`GeoJSON MultiLineString` geometry.", - "name": "GeoJsonMultiLineString" - }, - { - "value": "Polygon", - "description": "`GeoJSON Polygon` geometry.", - "name": "GeoJsonPolygon" - }, - { - "value": "MultiPolygon", - "description": "`GeoJSON MultiPolygon` geometry.", - "name": "GeoJsonMultiPolygon" - }, - { - "value": "GeometryCollection", - "description": "`GeoJSON GeometryCollection` geometry.", - "name": "GeoJsonGeometryCollection" - }, - { - "value": "Feature", - "description": "`GeoJSON Feature` object.", - "name": "GeoJsonFeature" - }, - { - "value": "FeatureCollection", - "description": "`GeoJSON FeatureCollection` object.", - "name": "GeoJsonFeatureCollection" - } - ] - } - } - } - }, - "GeoJsonGeometry": { - "description": "A valid `GeoJSON` geometry object. The type must be one of the seven valid GeoJSON geometry types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon and GeometryCollection. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1) for details.", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonObject" - } - ] - }, - "GeoJsonPoint": { - "description": "A valid `GeoJSON Point` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.2) for details.", - "x-ms-discriminator-value": "Point", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonPointData" - } - ] - }, - "GeoJsonPointData": { - "description": "Data contained by a `GeoJson Point`.", - "type": "object", - "properties": { - "coordinates": { - "$ref": "#/definitions/GeoJsonPosition" - } - }, - "required": [ - "coordinates" - ] - }, - "GeoJsonMultiPoint": { - "description": "A valid `GeoJSON MultiPoint` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.3) for details.", - "x-ms-discriminator-value": "MultiPoint", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonMultiPointData" - } - ] - }, - "GeoJsonMultiPointData": { - "type": "object", - "description": "Data contained by a `GeoJson MultiPoint`.", - "properties": { - "coordinates": { - "description": "Coordinates for the `GeoJson MultiPoint` geometry.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonPosition" - } - } - }, - "required": [ - "coordinates" - ] - }, - "GeoJsonLineString": { - "description": "A valid `GeoJSON LineString` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.4) for details.", - "x-ms-discriminator-value": "LineString", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonLineStringData" - } - ] - }, - "GeoJsonLineStringData": { - "type": "object", - "properties": { - "coordinates": { - "description": "Coordinates for the `GeoJson LineString` geometry.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonPosition" - } - } - }, - "required": [ - "coordinates" - ] - }, - "GeoJsonMultiLineString": { - "description": "A valid `GeoJSON MultiLineString` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.5) for details.", - "x-ms-discriminator-value": "MultiLineString", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonMultiLineStringData" - } - ] - }, - "GeoJsonMultiLineStringData": { - "type": "object", - "properties": { - "coordinates": { - "description": "Coordinates for the `GeoJson MultiLineString` geometry.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonLinearRing" - } - } - }, - "required": [ - "coordinates" - ] - }, - "GeoJsonPolygon": { - "description": "A valid `GeoJSON Polygon` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.6) for details.", - "x-ms-discriminator-value": "Polygon", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonPolygonData" - } - ] - }, - "GeoJsonPolygonData": { - "type": "object", - "properties": { - "coordinates": { - "description": "Coordinates for the `GeoJson Polygon` geometry type.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonLinearRing" - } - } - }, - "required": [ - "coordinates" - ] - }, - "GeoJsonMultiPolygon": { - "description": "A valid `GeoJSON MultiPolygon` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.7) for details.", - "x-ms-discriminator-value": "MultiPolygon", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonMultiPolygonData" - } - ] - }, - "GeoJsonMultiPolygonData": { - "type": "object", - "properties": { - "coordinates": { - "description": "Contains a list of valid `GeoJSON Polygon` objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude).", - "type": "array", - "items": { - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonLinearRing" - } - } - } - }, - "required": [ - "coordinates" - ] - }, - "GeoJsonGeometryCollection": { - "description": "A valid `GeoJSON GeometryCollection` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.8) for details.", - "x-ms-discriminator-value": "GeometryCollection", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonGeometryCollectionData" - } - ] - }, - "GeoJsonGeometryCollectionData": { - "type": "object", - "properties": { - "geometries": { - "description": "Contains a list of valid `GeoJSON` geometry objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude).", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonGeometry" - } - } - }, - "required": [ - "geometries" - ] - }, - "GeoJsonFeature": { - "description": "A valid `GeoJSON Feature` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.2) for details.", - "x-ms-discriminator-value": "Feature", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonObject" - }, - { - "$ref": "#/definitions/GeoJsonFeatureData" - } - ] - }, - "GeoJsonFeatureData": { - "type": "object", - "properties": { - "geometry": { - "$ref": "#/definitions/GeoJsonGeometry" - }, - "properties": { - "description": "Properties can contain any additional metadata about the `Feature`. Value can be any JSON object or a JSON null value", - "type": "object" - }, - "id": { - "description": "Identifier for the feature.", - "type": "string" - }, - "featureType": { - "description": "The type of the feature. The value depends on the data model the current feature is part of. Some data models may have an empty value.", - "type": "string" - } - }, - "required": [ - "geometry" - ] - }, - "GeoJsonFeatureCollection": { - "description": "A valid `GeoJSON FeatureCollection` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.3) for details.", - "x-ms-discriminator-value": "FeatureCollection", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonObject" - }, - { - "$ref": "#/definitions/GeoJsonFeatureCollectionData" - } - ] - }, - "GeoJsonFeatureCollectionData": { - "type": "object", - "properties": { - "features": { - "description": "Contains a list of valid `GeoJSON Feature` objects.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonFeature" - } - } - }, - "required": [ - "features" - ] - }, - "Ontology": { - "type": "string", - "description": "The ontology version of this dataset.", - "readOnly": true - } - }, - "parameters": { - "SubscriptionKey": { - "name": "subscription-key", - "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", - "type": "string", - "in": "query", - "required": false, - "x-ms-parameter-location": "client" - }, - "ApiVersion": { - "name": "api-version", - "description": "Version number of Azure Maps API.", - "type": "string", - "in": "query", - "required": true, - "default": "1.0", - "x-ms-parameter-location": "client" - }, - "ApiVersionV2": { - "name": "api-version", - "description": "Version number of Azure Maps API.", - "type": "string", - "in": "query", - "required": true, - "default": "2.0", - "x-ms-parameter-location": "client" - }, - "ClientId": { - "name": "x-ms-client-id", - "description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.", - "type": "string", - "in": "header", - "required": false, - "x-ms-parameter-location": "client" - }, - "JsonFormat": { - "name": "format", - "description": "Desired format of the response. Only `json` format is supported.", - "type": "string", - "in": "path", - "required": true, - "enum": [ - "json" - ], - "x-ms-enum": { - "name": "JsonFormat", - "modelAsString": true, - "values": [ - { - "value": "json", - "description": "[The JavaScript Object Notation Data Interchange Format](https://tools.ietf.org/html/rfc8259)" - } - ] - }, - "x-ms-parameter-location": "method" - } - }, - "responses": { - "200Async": { - "description": "The operation's status response.", - "schema": { - "$ref": "#/definitions/LongRunningOperationResult" - } - }, - "200AsyncV2": { - "description": "The operation is running or complete. If the operation was successful, use the Resource-Location header to obtain the path to the result.", - "schema": { - "$ref": "#/definitions/LongRunningOperationResult" - }, - "headers": { - "Resource-Location": { - "type": "string", - "description": "If successful, a URI where details on the newly created resource can be found." - } - } - }, - "201Async": { - "description": "The resource has been created successfully.", - "schema": { - "$ref": "#/definitions/LongRunningOperationResult" - }, - "headers": { - "Location": { - "type": "string", - "description": "A URI where details on the newly created resource can be found." - } - } - }, - "202Async": { - "description": "**Supported only for async request.**\nRequest Accepted: The request has been accepted for processing. Please use the URL in the Location Header to retry or access the results.", - "headers": { - "Location": { - "type": "string", - "description": "New URL to check for the results of the long running process." - } - } - }, - "202AsyncV2": { - "description": "Request Accepted: The request has been accepted for processing. Please use the URL in the Operation-Location Header to obtain status.", - "headers": { - "Operation-Location": { - "type": "string", - "description": "New URL to check for the results of the long running process." - } - } - }, - "400": { - "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "401": { - "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "headers": { - "WWW-Authenticate": { - "type": "string", - "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" - } - }, - "x-ms-error-response": true - }, - "403": { - "description": "Permission, capacity, or authentication issues.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "404": { - "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "409": { - "description": "The request could not be completed due to a conflict with the current state of the resource. Likely caused by a parallel update to the same resource.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "409StorageLimit": { - "description": "The [data storage limit](https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/azure-subscription-service-limits#azure-maps-limits) is reached on the Azure Maps account. You can always use the [Data Delete API](https://docs.microsoft.com/en-us/rest/api/maps/data/deletepreview) to delete old/unused content and create space for new uploads.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "500": { - "description": "An error occurred while processing the request. Please try again later.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - } - }, - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", - "scopes": { - "user_impersonation": "Impersonates a user's Azure Active Directory account." - } - }, - "apiKeyQuery": { - "type": "apiKey", - "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", - "name": "subscription-key", - "in": "query" - } - }, - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - }, - { - "apiKeyQuery": [] - } - ] -} diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json index 9b00f8f6e85b..c9fbcf2397fa 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json @@ -136,10 +136,10 @@ }, "parameters": [ { - "$ref": "./common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "./common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/ConversionIdQuery" @@ -160,22 +160,22 @@ "x-ms-error-response": true }, "202": { - "$ref": "./common.json#/responses/202AsyncV2" + "$ref": "../../../Common/preview/2.0/common.json#/responses/202AsyncV2" }, "400": { - "$ref": "./common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "./common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "./common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "./common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "./common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } }, @@ -190,10 +190,10 @@ }, "parameters": [ { - "$ref": "./common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "./common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" } ], "responses": { @@ -204,19 +204,19 @@ } }, "400": { - "$ref": "./common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "./common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "./common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "./common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "./common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } } @@ -236,10 +236,10 @@ "$ref": "#/parameters/DatasetId" }, { - "$ref": "./common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "./common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" } ], "responses": { @@ -250,19 +250,19 @@ } }, "400": { - "$ref": "./common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "./common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "./common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "./common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "./common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } }, @@ -277,10 +277,10 @@ }, "parameters": [ { - "$ref": "./common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "./common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/DatasetId" @@ -291,19 +291,19 @@ "description": "The dataset delete request completed successfully. The resource referenced by the `datasetId` was deleted from the server." }, "400": { - "$ref": "./common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "./common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "./common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "./common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "./common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } } @@ -322,10 +322,10 @@ }, "parameters": [ { - "$ref": "./common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "./common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/DatasetOperationId" @@ -333,10 +333,10 @@ ], "responses": { "200": { - "$ref": "./common.json#/responses/200AsyncV2" + "$ref": "../../../Common/preview/2.0/common.json#/responses/200AsyncV2" }, "400": { - "$ref": "./common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" } } } @@ -377,7 +377,7 @@ "readOnly": true }, "ontology": { - "$ref": "./common.json#/definitions/Ontology" + "$ref": "../../../Common/preview/2.0/common.json#/definitions/Ontology" }, "description": { "description": "The description for the dataset.", diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/common.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/common.json deleted file mode 100644 index f2af932e1a6f..000000000000 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/common.json +++ /dev/null @@ -1,721 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Azure Maps Common Types", - "version": "2.0" - }, - "host": "atlas.microsoft.com", - "schemes": [ - "https" - ], - "consumes": [], - "produces": [ - "application/json", - "application/xml" - ], - "paths": {}, - "definitions": { - "LongRunningOperationResult": { - "description": "The response model for a Long-Running Operations API.", - "type": "object", - "properties": { - "operationId": { - "description": "The Id for this long-running operation.", - "type": "string" - }, - "status": { - "description": "The status state of the request.", - "type": "string", - "enum": [ - "NotStarted", - "Running", - "Failed", - "Succeeded" - ], - "x-ms-enum": { - "name": "LroStatus", - "modelAsString": true, - "values": [ - { - "value": "NotStarted", - "description": "The request has not started processing yet." - }, - { - "value": "Running", - "description": "The request has started processing." - }, - { - "value": "Failed", - "description": "The request has one or more failures." - }, - { - "value": "Succeeded", - "description": "The request has successfully completed." - } - ] - }, - "readOnly": true - }, - "created": { - "description": "The created timestamp.", - "type": "string", - "readOnly": true - }, - "resourceLocation": { - "description": "The location URI for details about the created resource. This is only provided when the request was successfully completed.", - "type": "string", - "readOnly": true - }, - "error": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" - }, - "warning": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" - } - } - }, - "BatchRequestBody": { - "description": "This type represents the request body for the Batch service.", - "type": "object", - "properties": { - "batchItems": { - "description": "The list of queries to process.", - "type": "array", - "items": { - "description": "Batch Query object", - "type": "object", - "properties": { - "query": { - "description": "Partial query string.", - "type": "string", - "example": "?query=One, Microsoft Way, Redmond, WA 98052&limit=3" - } - } - } - } - } - }, - "BatchResponse": { - "description": "This object is returned from a successful Batch service call. Extend with 'batchItems' property.", - "type": "object", - "properties": { - "summary": { - "description": "Summary for the batch request", - "type": "object", - "readOnly": true, - "properties": { - "successfulRequests": { - "description": "Number of successful requests in the batch", - "type": "integer", - "readOnly": true - }, - "totalRequests": { - "description": "Total number of requests in the batch", - "type": "integer", - "readOnly": true - } - } - } - } - }, - "BatchItem": { - "description": "An item returned from Batch API. Extend with 'response' property.", - "type": "object", - "properties": { - "statusCode": { - "description": "HTTP request status code.", - "type": "number", - "readOnly": true, - "example": 200 - } - } - }, - "CoordinatesPair": { - "description": "A location represented as a latitude and longitude.", - "type": "object", - "properties": { - "latitude": { - "description": "Latitude property", - "type": "number", - "format": "double" - }, - "longitude": { - "description": "Longitude property", - "type": "number", - "format": "double" - } - } - }, - "CoordinatesPairAbbreviated": { - "description": "A location represented as a latitude and longitude using short names 'lat' & 'lon'.", - "type": "object", - "properties": { - "lat": { - "description": "Latitude property", - "type": "number", - "format": "double" - }, - "lon": { - "description": "Longitude property", - "type": "number", - "format": "double" - } - } - }, - "GeoJsonPosition": { - "description": "A `Position` is an array of numbers with two or more elements. The first two elements are _longitude_ and _latitude_, precisely in that order. _Altitude/Elevation_ is an optional third element. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.1) for details.", - "type": "array", - "items": { - "type": "number", - "format": "double" - } - }, - "GeoJsonLinearRing": { - "description": "Though a linear ring is not explicitly represented as a GeoJSON geometry type, it helps in defining the polygon as an array of linear rings. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.6) for details.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonPosition" - } - }, - "GeoJsonObject": { - "description": "A valid `GeoJSON` object. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3) for details.", - "type": "object", - "discriminator": "type", - "required": [ - "type" - ], - "properties": { - "type": { - "description": "Specifies the `GeoJSON` type. Must be one of the nine valid GeoJSON object types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon, GeometryCollection, Feature and FeatureCollection.", - "type": "string", - "enum": [ - "Point", - "MultiPoint", - "LineString", - "MultiLineString", - "Polygon", - "MultiPolygon", - "GeometryCollection", - "Feature", - "FeatureCollection" - ], - "x-ms-enum": { - "name": "GeoJsonObjectType", - "modelAsString": true, - "values": [ - { - "value": "Point", - "description": "`GeoJSON Point` geometry.", - "name": "GeoJsonPoint" - }, - { - "value": "MultiPoint", - "description": "`GeoJSON MultiPoint` geometry.", - "name": "GeoJsonMultiPoint" - }, - { - "value": "LineString", - "description": "`GeoJSON LineString` geometry.", - "name": "GeoJsonLineString" - }, - { - "value": "MultiLineString", - "description": "`GeoJSON MultiLineString` geometry.", - "name": "GeoJsonMultiLineString" - }, - { - "value": "Polygon", - "description": "`GeoJSON Polygon` geometry.", - "name": "GeoJsonPolygon" - }, - { - "value": "MultiPolygon", - "description": "`GeoJSON MultiPolygon` geometry.", - "name": "GeoJsonMultiPolygon" - }, - { - "value": "GeometryCollection", - "description": "`GeoJSON GeometryCollection` geometry.", - "name": "GeoJsonGeometryCollection" - }, - { - "value": "Feature", - "description": "`GeoJSON Feature` object.", - "name": "GeoJsonFeature" - }, - { - "value": "FeatureCollection", - "description": "`GeoJSON FeatureCollection` object.", - "name": "GeoJsonFeatureCollection" - } - ] - } - } - } - }, - "GeoJsonGeometry": { - "description": "A valid `GeoJSON` geometry object. The type must be one of the seven valid GeoJSON geometry types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon and GeometryCollection. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1) for details.", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonObject" - } - ] - }, - "GeoJsonPoint": { - "description": "A valid `GeoJSON Point` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.2) for details.", - "x-ms-discriminator-value": "Point", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonPointData" - } - ] - }, - "GeoJsonPointData": { - "description": "Data contained by a `GeoJson Point`.", - "type": "object", - "properties": { - "coordinates": { - "$ref": "#/definitions/GeoJsonPosition" - } - }, - "required": [ - "coordinates" - ] - }, - "GeoJsonMultiPoint": { - "description": "A valid `GeoJSON MultiPoint` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.3) for details.", - "x-ms-discriminator-value": "MultiPoint", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonMultiPointData" - } - ] - }, - "GeoJsonMultiPointData": { - "type": "object", - "description": "Data contained by a `GeoJson MultiPoint`.", - "properties": { - "coordinates": { - "description": "Coordinates for the `GeoJson MultiPoint` geometry.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonPosition" - } - } - }, - "required": [ - "coordinates" - ] - }, - "GeoJsonLineString": { - "description": "A valid `GeoJSON LineString` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.4) for details.", - "x-ms-discriminator-value": "LineString", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonLineStringData" - } - ] - }, - "GeoJsonLineStringData": { - "type": "object", - "properties": { - "coordinates": { - "description": "Coordinates for the `GeoJson LineString` geometry.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonPosition" - } - } - }, - "required": [ - "coordinates" - ] - }, - "GeoJsonMultiLineString": { - "description": "A valid `GeoJSON MultiLineString` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.5) for details.", - "x-ms-discriminator-value": "MultiLineString", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonMultiLineStringData" - } - ] - }, - "GeoJsonMultiLineStringData": { - "type": "object", - "properties": { - "coordinates": { - "description": "Coordinates for the `GeoJson MultiLineString` geometry.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonLinearRing" - } - } - }, - "required": [ - "coordinates" - ] - }, - "GeoJsonPolygon": { - "description": "A valid `GeoJSON Polygon` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.6) for details.", - "x-ms-discriminator-value": "Polygon", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonPolygonData" - } - ] - }, - "GeoJsonPolygonData": { - "type": "object", - "properties": { - "coordinates": { - "description": "Coordinates for the `GeoJson Polygon` geometry type.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonLinearRing" - } - } - }, - "required": [ - "coordinates" - ] - }, - "GeoJsonMultiPolygon": { - "description": "A valid `GeoJSON MultiPolygon` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.7) for details.", - "x-ms-discriminator-value": "MultiPolygon", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonMultiPolygonData" - } - ] - }, - "GeoJsonMultiPolygonData": { - "type": "object", - "properties": { - "coordinates": { - "description": "Contains a list of valid `GeoJSON Polygon` objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude).", - "type": "array", - "items": { - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonLinearRing" - } - } - } - }, - "required": [ - "coordinates" - ] - }, - "GeoJsonGeometryCollection": { - "description": "A valid `GeoJSON GeometryCollection` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.8) for details.", - "x-ms-discriminator-value": "GeometryCollection", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonGeometryCollectionData" - } - ] - }, - "GeoJsonGeometryCollectionData": { - "type": "object", - "properties": { - "geometries": { - "description": "Contains a list of valid `GeoJSON` geometry objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude).", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonGeometry" - } - } - }, - "required": [ - "geometries" - ] - }, - "GeoJsonFeature": { - "description": "A valid `GeoJSON Feature` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.2) for details.", - "x-ms-discriminator-value": "Feature", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonObject" - }, - { - "$ref": "#/definitions/GeoJsonFeatureData" - } - ] - }, - "GeoJsonFeatureData": { - "type": "object", - "properties": { - "geometry": { - "$ref": "#/definitions/GeoJsonGeometry" - }, - "properties": { - "description": "Properties can contain any additional metadata about the `Feature`. Value can be any JSON object or a JSON null value", - "type": "object" - }, - "id": { - "description": "Identifier for the feature.", - "type": "string" - }, - "featureType": { - "description": "The type of the feature. The value depends on the data model the current feature is part of. Some data models may have an empty value.", - "type": "string" - } - }, - "required": [ - "geometry" - ] - }, - "GeoJsonFeatureCollection": { - "description": "A valid `GeoJSON FeatureCollection` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.3) for details.", - "x-ms-discriminator-value": "FeatureCollection", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonObject" - }, - { - "$ref": "#/definitions/GeoJsonFeatureCollectionData" - } - ] - }, - "GeoJsonFeatureCollectionData": { - "type": "object", - "properties": { - "features": { - "description": "Contains a list of valid `GeoJSON Feature` objects.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonFeature" - } - } - }, - "required": [ - "features" - ] - }, - "Ontology": { - "type": "string", - "description": "The ontology version of this dataset.", - "readOnly": true - } - }, - "parameters": { - "SubscriptionKey": { - "name": "subscription-key", - "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", - "type": "string", - "in": "query", - "required": false, - "x-ms-parameter-location": "client" - }, - "ApiVersion": { - "name": "api-version", - "description": "Version number of Azure Maps API.", - "type": "string", - "in": "query", - "required": true, - "default": "1.0", - "x-ms-parameter-location": "client" - }, - "ApiVersionV2": { - "name": "api-version", - "description": "Version number of Azure Maps API.", - "type": "string", - "in": "query", - "required": true, - "default": "2.0", - "x-ms-parameter-location": "client" - }, - "ClientId": { - "name": "x-ms-client-id", - "description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.", - "type": "string", - "in": "header", - "required": false, - "x-ms-parameter-location": "client" - }, - "JsonFormat": { - "name": "format", - "description": "Desired format of the response. Only `json` format is supported.", - "type": "string", - "in": "path", - "required": true, - "enum": [ - "json" - ], - "x-ms-enum": { - "name": "JsonFormat", - "modelAsString": true, - "values": [ - { - "value": "json", - "description": "[The JavaScript Object Notation Data Interchange Format](https://tools.ietf.org/html/rfc8259)" - } - ] - }, - "x-ms-parameter-location": "method" - } - }, - "responses": { - "200Async": { - "description": "The operation's status response.", - "schema": { - "$ref": "#/definitions/LongRunningOperationResult" - } - }, - "200AsyncV2": { - "description": "The operation is running or complete. If the operation was successful, use the Resource-Location header to obtain the path to the result.", - "schema": { - "$ref": "#/definitions/LongRunningOperationResult" - }, - "headers": { - "Resource-Location": { - "type": "string", - "description": "If successful, a URI where details on the newly created resource can be found." - } - } - }, - "201Async": { - "description": "The resource has been created successfully.", - "schema": { - "$ref": "#/definitions/LongRunningOperationResult" - }, - "headers": { - "Location": { - "type": "string", - "description": "A URI where details on the newly created resource can be found." - } - } - }, - "202Async": { - "description": "**Supported only for async request.**\nRequest Accepted: The request has been accepted for processing. Please use the URL in the Location Header to retry or access the results.", - "headers": { - "Location": { - "type": "string", - "description": "New URL to check for the results of the long running process." - } - } - }, - "202AsyncV2": { - "description": "Request Accepted: The request has been accepted for processing. Please use the URL in the Operation-Location Header to obtain status.", - "headers": { - "Operation-Location": { - "type": "string", - "description": "New URL to check for the results of the long running process." - } - } - }, - "400": { - "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "401": { - "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "headers": { - "WWW-Authenticate": { - "type": "string", - "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" - } - }, - "x-ms-error-response": true - }, - "403": { - "description": "Permission, capacity, or authentication issues.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "404": { - "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "409": { - "description": "The request could not be completed due to a conflict with the current state of the resource. Likely caused by a parallel update to the same resource.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "409StorageLimit": { - "description": "The [data storage limit](https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/azure-subscription-service-limits#azure-maps-limits) is reached on the Azure Maps account. You can always use the [Data Delete API](https://docs.microsoft.com/en-us/rest/api/maps/data/deletepreview) to delete old/unused content and create space for new uploads.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "500": { - "description": "An error occurred while processing the request. Please try again later.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - } - }, - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", - "scopes": { - "user_impersonation": "Impersonates a user's Azure Active Directory account." - } - }, - "apiKeyQuery": { - "type": "apiKey", - "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", - "name": "subscription-key", - "in": "query" - } - }, - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - }, - { - "apiKeyQuery": [] - } - ] -} diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json index 04f0330ab2a8..4a57f4c9f744 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json @@ -134,13 +134,13 @@ }, "parameters": [ { - "$ref": "./common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" }, { - "$ref": "./common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "./common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/UdidQuery" @@ -161,22 +161,22 @@ "x-ms-error-response": true }, "202": { - "$ref": "./common.json#/responses/202AsyncV2" + "$ref": "../../../Common/preview/2.0/common.json#/responses/202AsyncV2" }, "400": { - "$ref": "./common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "./common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "./common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "./common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "./common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } }, @@ -191,13 +191,13 @@ }, "parameters": [ { - "$ref": "./common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" }, { - "$ref": "./common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "./common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" } ], "responses": { @@ -208,19 +208,19 @@ } }, "400": { - "$ref": "./common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "./common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "./common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "./common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "./common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } } @@ -237,13 +237,13 @@ }, "parameters": [ { - "$ref": "./common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" }, { - "$ref": "./common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "./common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/ConversionId" @@ -257,19 +257,19 @@ } }, "400": { - "$ref": "./common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "./common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "./common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "./common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "./common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } }, @@ -284,13 +284,13 @@ }, "parameters": [ { - "$ref": "./common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" }, { - "$ref": "./common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "./common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/ConversionId" @@ -301,19 +301,19 @@ "description": "Conversion delete request completed successfully. The content for `conversionId` was deleted on the server." }, "400": { - "$ref": "./common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "./common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "./common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "./common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "./common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } } @@ -332,10 +332,10 @@ }, "parameters": [ { - "$ref": "./common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "./common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/ConversionOperationId" @@ -343,10 +343,10 @@ ], "responses": { "200": { - "$ref": "./common.json#/responses/200AsyncV2" + "$ref": "../../../Common/preview/2.0/common.json#/responses/200AsyncV2" }, "400": { - "$ref": "./common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" } } } @@ -382,7 +382,7 @@ "readOnly": true }, "ontology": { - "$ref": "./common.json#/definitions/Ontology" + "$ref": "../../../Common/preview/2.0/common.json#/definitions/Ontology" }, "udid": { "description": "The unique id of the content provided to create this conversion.", diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/common.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/common.json deleted file mode 100644 index f2af932e1a6f..000000000000 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/common.json +++ /dev/null @@ -1,721 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Azure Maps Common Types", - "version": "2.0" - }, - "host": "atlas.microsoft.com", - "schemes": [ - "https" - ], - "consumes": [], - "produces": [ - "application/json", - "application/xml" - ], - "paths": {}, - "definitions": { - "LongRunningOperationResult": { - "description": "The response model for a Long-Running Operations API.", - "type": "object", - "properties": { - "operationId": { - "description": "The Id for this long-running operation.", - "type": "string" - }, - "status": { - "description": "The status state of the request.", - "type": "string", - "enum": [ - "NotStarted", - "Running", - "Failed", - "Succeeded" - ], - "x-ms-enum": { - "name": "LroStatus", - "modelAsString": true, - "values": [ - { - "value": "NotStarted", - "description": "The request has not started processing yet." - }, - { - "value": "Running", - "description": "The request has started processing." - }, - { - "value": "Failed", - "description": "The request has one or more failures." - }, - { - "value": "Succeeded", - "description": "The request has successfully completed." - } - ] - }, - "readOnly": true - }, - "created": { - "description": "The created timestamp.", - "type": "string", - "readOnly": true - }, - "resourceLocation": { - "description": "The location URI for details about the created resource. This is only provided when the request was successfully completed.", - "type": "string", - "readOnly": true - }, - "error": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" - }, - "warning": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" - } - } - }, - "BatchRequestBody": { - "description": "This type represents the request body for the Batch service.", - "type": "object", - "properties": { - "batchItems": { - "description": "The list of queries to process.", - "type": "array", - "items": { - "description": "Batch Query object", - "type": "object", - "properties": { - "query": { - "description": "Partial query string.", - "type": "string", - "example": "?query=One, Microsoft Way, Redmond, WA 98052&limit=3" - } - } - } - } - } - }, - "BatchResponse": { - "description": "This object is returned from a successful Batch service call. Extend with 'batchItems' property.", - "type": "object", - "properties": { - "summary": { - "description": "Summary for the batch request", - "type": "object", - "readOnly": true, - "properties": { - "successfulRequests": { - "description": "Number of successful requests in the batch", - "type": "integer", - "readOnly": true - }, - "totalRequests": { - "description": "Total number of requests in the batch", - "type": "integer", - "readOnly": true - } - } - } - } - }, - "BatchItem": { - "description": "An item returned from Batch API. Extend with 'response' property.", - "type": "object", - "properties": { - "statusCode": { - "description": "HTTP request status code.", - "type": "number", - "readOnly": true, - "example": 200 - } - } - }, - "CoordinatesPair": { - "description": "A location represented as a latitude and longitude.", - "type": "object", - "properties": { - "latitude": { - "description": "Latitude property", - "type": "number", - "format": "double" - }, - "longitude": { - "description": "Longitude property", - "type": "number", - "format": "double" - } - } - }, - "CoordinatesPairAbbreviated": { - "description": "A location represented as a latitude and longitude using short names 'lat' & 'lon'.", - "type": "object", - "properties": { - "lat": { - "description": "Latitude property", - "type": "number", - "format": "double" - }, - "lon": { - "description": "Longitude property", - "type": "number", - "format": "double" - } - } - }, - "GeoJsonPosition": { - "description": "A `Position` is an array of numbers with two or more elements. The first two elements are _longitude_ and _latitude_, precisely in that order. _Altitude/Elevation_ is an optional third element. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.1) for details.", - "type": "array", - "items": { - "type": "number", - "format": "double" - } - }, - "GeoJsonLinearRing": { - "description": "Though a linear ring is not explicitly represented as a GeoJSON geometry type, it helps in defining the polygon as an array of linear rings. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.6) for details.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonPosition" - } - }, - "GeoJsonObject": { - "description": "A valid `GeoJSON` object. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3) for details.", - "type": "object", - "discriminator": "type", - "required": [ - "type" - ], - "properties": { - "type": { - "description": "Specifies the `GeoJSON` type. Must be one of the nine valid GeoJSON object types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon, GeometryCollection, Feature and FeatureCollection.", - "type": "string", - "enum": [ - "Point", - "MultiPoint", - "LineString", - "MultiLineString", - "Polygon", - "MultiPolygon", - "GeometryCollection", - "Feature", - "FeatureCollection" - ], - "x-ms-enum": { - "name": "GeoJsonObjectType", - "modelAsString": true, - "values": [ - { - "value": "Point", - "description": "`GeoJSON Point` geometry.", - "name": "GeoJsonPoint" - }, - { - "value": "MultiPoint", - "description": "`GeoJSON MultiPoint` geometry.", - "name": "GeoJsonMultiPoint" - }, - { - "value": "LineString", - "description": "`GeoJSON LineString` geometry.", - "name": "GeoJsonLineString" - }, - { - "value": "MultiLineString", - "description": "`GeoJSON MultiLineString` geometry.", - "name": "GeoJsonMultiLineString" - }, - { - "value": "Polygon", - "description": "`GeoJSON Polygon` geometry.", - "name": "GeoJsonPolygon" - }, - { - "value": "MultiPolygon", - "description": "`GeoJSON MultiPolygon` geometry.", - "name": "GeoJsonMultiPolygon" - }, - { - "value": "GeometryCollection", - "description": "`GeoJSON GeometryCollection` geometry.", - "name": "GeoJsonGeometryCollection" - }, - { - "value": "Feature", - "description": "`GeoJSON Feature` object.", - "name": "GeoJsonFeature" - }, - { - "value": "FeatureCollection", - "description": "`GeoJSON FeatureCollection` object.", - "name": "GeoJsonFeatureCollection" - } - ] - } - } - } - }, - "GeoJsonGeometry": { - "description": "A valid `GeoJSON` geometry object. The type must be one of the seven valid GeoJSON geometry types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon and GeometryCollection. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1) for details.", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonObject" - } - ] - }, - "GeoJsonPoint": { - "description": "A valid `GeoJSON Point` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.2) for details.", - "x-ms-discriminator-value": "Point", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonPointData" - } - ] - }, - "GeoJsonPointData": { - "description": "Data contained by a `GeoJson Point`.", - "type": "object", - "properties": { - "coordinates": { - "$ref": "#/definitions/GeoJsonPosition" - } - }, - "required": [ - "coordinates" - ] - }, - "GeoJsonMultiPoint": { - "description": "A valid `GeoJSON MultiPoint` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.3) for details.", - "x-ms-discriminator-value": "MultiPoint", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonMultiPointData" - } - ] - }, - "GeoJsonMultiPointData": { - "type": "object", - "description": "Data contained by a `GeoJson MultiPoint`.", - "properties": { - "coordinates": { - "description": "Coordinates for the `GeoJson MultiPoint` geometry.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonPosition" - } - } - }, - "required": [ - "coordinates" - ] - }, - "GeoJsonLineString": { - "description": "A valid `GeoJSON LineString` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.4) for details.", - "x-ms-discriminator-value": "LineString", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonLineStringData" - } - ] - }, - "GeoJsonLineStringData": { - "type": "object", - "properties": { - "coordinates": { - "description": "Coordinates for the `GeoJson LineString` geometry.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonPosition" - } - } - }, - "required": [ - "coordinates" - ] - }, - "GeoJsonMultiLineString": { - "description": "A valid `GeoJSON MultiLineString` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.5) for details.", - "x-ms-discriminator-value": "MultiLineString", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonMultiLineStringData" - } - ] - }, - "GeoJsonMultiLineStringData": { - "type": "object", - "properties": { - "coordinates": { - "description": "Coordinates for the `GeoJson MultiLineString` geometry.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonLinearRing" - } - } - }, - "required": [ - "coordinates" - ] - }, - "GeoJsonPolygon": { - "description": "A valid `GeoJSON Polygon` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.6) for details.", - "x-ms-discriminator-value": "Polygon", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonPolygonData" - } - ] - }, - "GeoJsonPolygonData": { - "type": "object", - "properties": { - "coordinates": { - "description": "Coordinates for the `GeoJson Polygon` geometry type.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonLinearRing" - } - } - }, - "required": [ - "coordinates" - ] - }, - "GeoJsonMultiPolygon": { - "description": "A valid `GeoJSON MultiPolygon` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.7) for details.", - "x-ms-discriminator-value": "MultiPolygon", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonMultiPolygonData" - } - ] - }, - "GeoJsonMultiPolygonData": { - "type": "object", - "properties": { - "coordinates": { - "description": "Contains a list of valid `GeoJSON Polygon` objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude).", - "type": "array", - "items": { - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonLinearRing" - } - } - } - }, - "required": [ - "coordinates" - ] - }, - "GeoJsonGeometryCollection": { - "description": "A valid `GeoJSON GeometryCollection` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.8) for details.", - "x-ms-discriminator-value": "GeometryCollection", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonGeometryCollectionData" - } - ] - }, - "GeoJsonGeometryCollectionData": { - "type": "object", - "properties": { - "geometries": { - "description": "Contains a list of valid `GeoJSON` geometry objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude).", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonGeometry" - } - } - }, - "required": [ - "geometries" - ] - }, - "GeoJsonFeature": { - "description": "A valid `GeoJSON Feature` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.2) for details.", - "x-ms-discriminator-value": "Feature", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonObject" - }, - { - "$ref": "#/definitions/GeoJsonFeatureData" - } - ] - }, - "GeoJsonFeatureData": { - "type": "object", - "properties": { - "geometry": { - "$ref": "#/definitions/GeoJsonGeometry" - }, - "properties": { - "description": "Properties can contain any additional metadata about the `Feature`. Value can be any JSON object or a JSON null value", - "type": "object" - }, - "id": { - "description": "Identifier for the feature.", - "type": "string" - }, - "featureType": { - "description": "The type of the feature. The value depends on the data model the current feature is part of. Some data models may have an empty value.", - "type": "string" - } - }, - "required": [ - "geometry" - ] - }, - "GeoJsonFeatureCollection": { - "description": "A valid `GeoJSON FeatureCollection` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.3) for details.", - "x-ms-discriminator-value": "FeatureCollection", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonObject" - }, - { - "$ref": "#/definitions/GeoJsonFeatureCollectionData" - } - ] - }, - "GeoJsonFeatureCollectionData": { - "type": "object", - "properties": { - "features": { - "description": "Contains a list of valid `GeoJSON Feature` objects.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonFeature" - } - } - }, - "required": [ - "features" - ] - }, - "Ontology": { - "type": "string", - "description": "The ontology version of this dataset.", - "readOnly": true - } - }, - "parameters": { - "SubscriptionKey": { - "name": "subscription-key", - "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", - "type": "string", - "in": "query", - "required": false, - "x-ms-parameter-location": "client" - }, - "ApiVersion": { - "name": "api-version", - "description": "Version number of Azure Maps API.", - "type": "string", - "in": "query", - "required": true, - "default": "1.0", - "x-ms-parameter-location": "client" - }, - "ApiVersionV2": { - "name": "api-version", - "description": "Version number of Azure Maps API.", - "type": "string", - "in": "query", - "required": true, - "default": "2.0", - "x-ms-parameter-location": "client" - }, - "ClientId": { - "name": "x-ms-client-id", - "description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.", - "type": "string", - "in": "header", - "required": false, - "x-ms-parameter-location": "client" - }, - "JsonFormat": { - "name": "format", - "description": "Desired format of the response. Only `json` format is supported.", - "type": "string", - "in": "path", - "required": true, - "enum": [ - "json" - ], - "x-ms-enum": { - "name": "JsonFormat", - "modelAsString": true, - "values": [ - { - "value": "json", - "description": "[The JavaScript Object Notation Data Interchange Format](https://tools.ietf.org/html/rfc8259)" - } - ] - }, - "x-ms-parameter-location": "method" - } - }, - "responses": { - "200Async": { - "description": "The operation's status response.", - "schema": { - "$ref": "#/definitions/LongRunningOperationResult" - } - }, - "200AsyncV2": { - "description": "The operation is running or complete. If the operation was successful, use the Resource-Location header to obtain the path to the result.", - "schema": { - "$ref": "#/definitions/LongRunningOperationResult" - }, - "headers": { - "Resource-Location": { - "type": "string", - "description": "If successful, a URI where details on the newly created resource can be found." - } - } - }, - "201Async": { - "description": "The resource has been created successfully.", - "schema": { - "$ref": "#/definitions/LongRunningOperationResult" - }, - "headers": { - "Location": { - "type": "string", - "description": "A URI where details on the newly created resource can be found." - } - } - }, - "202Async": { - "description": "**Supported only for async request.**\nRequest Accepted: The request has been accepted for processing. Please use the URL in the Location Header to retry or access the results.", - "headers": { - "Location": { - "type": "string", - "description": "New URL to check for the results of the long running process." - } - } - }, - "202AsyncV2": { - "description": "Request Accepted: The request has been accepted for processing. Please use the URL in the Operation-Location Header to obtain status.", - "headers": { - "Operation-Location": { - "type": "string", - "description": "New URL to check for the results of the long running process." - } - } - }, - "400": { - "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "401": { - "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "headers": { - "WWW-Authenticate": { - "type": "string", - "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" - } - }, - "x-ms-error-response": true - }, - "403": { - "description": "Permission, capacity, or authentication issues.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "404": { - "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "409": { - "description": "The request could not be completed due to a conflict with the current state of the resource. Likely caused by a parallel update to the same resource.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "409StorageLimit": { - "description": "The [data storage limit](https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/azure-subscription-service-limits#azure-maps-limits) is reached on the Azure Maps account. You can always use the [Data Delete API](https://docs.microsoft.com/en-us/rest/api/maps/data/deletepreview) to delete old/unused content and create space for new uploads.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "500": { - "description": "An error occurred while processing the request. Please try again later.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - } - }, - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", - "scopes": { - "user_impersonation": "Impersonates a user's Azure Active Directory account." - } - }, - "apiKeyQuery": { - "type": "apiKey", - "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", - "name": "subscription-key", - "in": "query" - } - }, - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - }, - { - "apiKeyQuery": [] - } - ] -} diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json index fecc1eb03847..0deeb0568c8a 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json @@ -146,10 +146,10 @@ }, "parameters": [ { - "$ref": "./common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "./common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/DatasetIdForCreate" @@ -175,19 +175,19 @@ } }, "400": { - "$ref": "./common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "./common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "./common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "./common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "./common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } }, @@ -202,10 +202,10 @@ }, "parameters": [ { - "$ref": "./common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "./common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" } ], "responses": { @@ -216,19 +216,19 @@ } }, "400": { - "$ref": "./common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "./common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "./common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "./common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "./common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } } @@ -245,10 +245,10 @@ }, "parameters": [ { - "$ref": "./common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "./common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -268,19 +268,19 @@ "description": "Stateset styles are updated successfully." }, "400": { - "$ref": "./common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "./common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "./common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "./common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "./common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } }, @@ -295,10 +295,10 @@ }, "parameters": [ { - "$ref": "./common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "./common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -309,19 +309,19 @@ "description": "Stateset Deleted." }, "400": { - "$ref": "./common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "./common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "./common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "./common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "./common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } }, @@ -336,10 +336,10 @@ }, "parameters": [ { - "$ref": "./common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "./common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -353,19 +353,19 @@ } }, "400": { - "$ref": "./common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "./common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "./common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "./common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "./common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } } @@ -382,10 +382,10 @@ }, "parameters": [ { - "$ref": "./common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "./common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -408,19 +408,19 @@ "description": "Feature states are updated successfully." }, "400": { - "$ref": "./common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "./common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "./common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "./common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "./common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } }, @@ -435,10 +435,10 @@ }, "parameters": [ { - "$ref": "./common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "./common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -455,22 +455,22 @@ "description": "Feature states deleted successfully." }, "400": { - "$ref": "./common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "./common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "./common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "./common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "409": { - "$ref": "./common.json#/responses/409" + "$ref": "../../../Common/preview/2.0/common.json#/responses/409" }, "500": { - "$ref": "./common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } }, @@ -485,10 +485,10 @@ }, "parameters": [ { - "$ref": "./common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "./common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -505,19 +505,19 @@ } }, "400": { - "$ref": "./common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "./common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "./common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "./common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "./common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/common.json deleted file mode 100644 index f2af932e1a6f..000000000000 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/common.json +++ /dev/null @@ -1,721 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Azure Maps Common Types", - "version": "2.0" - }, - "host": "atlas.microsoft.com", - "schemes": [ - "https" - ], - "consumes": [], - "produces": [ - "application/json", - "application/xml" - ], - "paths": {}, - "definitions": { - "LongRunningOperationResult": { - "description": "The response model for a Long-Running Operations API.", - "type": "object", - "properties": { - "operationId": { - "description": "The Id for this long-running operation.", - "type": "string" - }, - "status": { - "description": "The status state of the request.", - "type": "string", - "enum": [ - "NotStarted", - "Running", - "Failed", - "Succeeded" - ], - "x-ms-enum": { - "name": "LroStatus", - "modelAsString": true, - "values": [ - { - "value": "NotStarted", - "description": "The request has not started processing yet." - }, - { - "value": "Running", - "description": "The request has started processing." - }, - { - "value": "Failed", - "description": "The request has one or more failures." - }, - { - "value": "Succeeded", - "description": "The request has successfully completed." - } - ] - }, - "readOnly": true - }, - "created": { - "description": "The created timestamp.", - "type": "string", - "readOnly": true - }, - "resourceLocation": { - "description": "The location URI for details about the created resource. This is only provided when the request was successfully completed.", - "type": "string", - "readOnly": true - }, - "error": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" - }, - "warning": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" - } - } - }, - "BatchRequestBody": { - "description": "This type represents the request body for the Batch service.", - "type": "object", - "properties": { - "batchItems": { - "description": "The list of queries to process.", - "type": "array", - "items": { - "description": "Batch Query object", - "type": "object", - "properties": { - "query": { - "description": "Partial query string.", - "type": "string", - "example": "?query=One, Microsoft Way, Redmond, WA 98052&limit=3" - } - } - } - } - } - }, - "BatchResponse": { - "description": "This object is returned from a successful Batch service call. Extend with 'batchItems' property.", - "type": "object", - "properties": { - "summary": { - "description": "Summary for the batch request", - "type": "object", - "readOnly": true, - "properties": { - "successfulRequests": { - "description": "Number of successful requests in the batch", - "type": "integer", - "readOnly": true - }, - "totalRequests": { - "description": "Total number of requests in the batch", - "type": "integer", - "readOnly": true - } - } - } - } - }, - "BatchItem": { - "description": "An item returned from Batch API. Extend with 'response' property.", - "type": "object", - "properties": { - "statusCode": { - "description": "HTTP request status code.", - "type": "number", - "readOnly": true, - "example": 200 - } - } - }, - "CoordinatesPair": { - "description": "A location represented as a latitude and longitude.", - "type": "object", - "properties": { - "latitude": { - "description": "Latitude property", - "type": "number", - "format": "double" - }, - "longitude": { - "description": "Longitude property", - "type": "number", - "format": "double" - } - } - }, - "CoordinatesPairAbbreviated": { - "description": "A location represented as a latitude and longitude using short names 'lat' & 'lon'.", - "type": "object", - "properties": { - "lat": { - "description": "Latitude property", - "type": "number", - "format": "double" - }, - "lon": { - "description": "Longitude property", - "type": "number", - "format": "double" - } - } - }, - "GeoJsonPosition": { - "description": "A `Position` is an array of numbers with two or more elements. The first two elements are _longitude_ and _latitude_, precisely in that order. _Altitude/Elevation_ is an optional third element. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.1) for details.", - "type": "array", - "items": { - "type": "number", - "format": "double" - } - }, - "GeoJsonLinearRing": { - "description": "Though a linear ring is not explicitly represented as a GeoJSON geometry type, it helps in defining the polygon as an array of linear rings. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.6) for details.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonPosition" - } - }, - "GeoJsonObject": { - "description": "A valid `GeoJSON` object. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3) for details.", - "type": "object", - "discriminator": "type", - "required": [ - "type" - ], - "properties": { - "type": { - "description": "Specifies the `GeoJSON` type. Must be one of the nine valid GeoJSON object types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon, GeometryCollection, Feature and FeatureCollection.", - "type": "string", - "enum": [ - "Point", - "MultiPoint", - "LineString", - "MultiLineString", - "Polygon", - "MultiPolygon", - "GeometryCollection", - "Feature", - "FeatureCollection" - ], - "x-ms-enum": { - "name": "GeoJsonObjectType", - "modelAsString": true, - "values": [ - { - "value": "Point", - "description": "`GeoJSON Point` geometry.", - "name": "GeoJsonPoint" - }, - { - "value": "MultiPoint", - "description": "`GeoJSON MultiPoint` geometry.", - "name": "GeoJsonMultiPoint" - }, - { - "value": "LineString", - "description": "`GeoJSON LineString` geometry.", - "name": "GeoJsonLineString" - }, - { - "value": "MultiLineString", - "description": "`GeoJSON MultiLineString` geometry.", - "name": "GeoJsonMultiLineString" - }, - { - "value": "Polygon", - "description": "`GeoJSON Polygon` geometry.", - "name": "GeoJsonPolygon" - }, - { - "value": "MultiPolygon", - "description": "`GeoJSON MultiPolygon` geometry.", - "name": "GeoJsonMultiPolygon" - }, - { - "value": "GeometryCollection", - "description": "`GeoJSON GeometryCollection` geometry.", - "name": "GeoJsonGeometryCollection" - }, - { - "value": "Feature", - "description": "`GeoJSON Feature` object.", - "name": "GeoJsonFeature" - }, - { - "value": "FeatureCollection", - "description": "`GeoJSON FeatureCollection` object.", - "name": "GeoJsonFeatureCollection" - } - ] - } - } - } - }, - "GeoJsonGeometry": { - "description": "A valid `GeoJSON` geometry object. The type must be one of the seven valid GeoJSON geometry types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon and GeometryCollection. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1) for details.", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonObject" - } - ] - }, - "GeoJsonPoint": { - "description": "A valid `GeoJSON Point` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.2) for details.", - "x-ms-discriminator-value": "Point", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonPointData" - } - ] - }, - "GeoJsonPointData": { - "description": "Data contained by a `GeoJson Point`.", - "type": "object", - "properties": { - "coordinates": { - "$ref": "#/definitions/GeoJsonPosition" - } - }, - "required": [ - "coordinates" - ] - }, - "GeoJsonMultiPoint": { - "description": "A valid `GeoJSON MultiPoint` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.3) for details.", - "x-ms-discriminator-value": "MultiPoint", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonMultiPointData" - } - ] - }, - "GeoJsonMultiPointData": { - "type": "object", - "description": "Data contained by a `GeoJson MultiPoint`.", - "properties": { - "coordinates": { - "description": "Coordinates for the `GeoJson MultiPoint` geometry.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonPosition" - } - } - }, - "required": [ - "coordinates" - ] - }, - "GeoJsonLineString": { - "description": "A valid `GeoJSON LineString` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.4) for details.", - "x-ms-discriminator-value": "LineString", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonLineStringData" - } - ] - }, - "GeoJsonLineStringData": { - "type": "object", - "properties": { - "coordinates": { - "description": "Coordinates for the `GeoJson LineString` geometry.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonPosition" - } - } - }, - "required": [ - "coordinates" - ] - }, - "GeoJsonMultiLineString": { - "description": "A valid `GeoJSON MultiLineString` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.5) for details.", - "x-ms-discriminator-value": "MultiLineString", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonMultiLineStringData" - } - ] - }, - "GeoJsonMultiLineStringData": { - "type": "object", - "properties": { - "coordinates": { - "description": "Coordinates for the `GeoJson MultiLineString` geometry.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonLinearRing" - } - } - }, - "required": [ - "coordinates" - ] - }, - "GeoJsonPolygon": { - "description": "A valid `GeoJSON Polygon` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.6) for details.", - "x-ms-discriminator-value": "Polygon", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonPolygonData" - } - ] - }, - "GeoJsonPolygonData": { - "type": "object", - "properties": { - "coordinates": { - "description": "Coordinates for the `GeoJson Polygon` geometry type.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonLinearRing" - } - } - }, - "required": [ - "coordinates" - ] - }, - "GeoJsonMultiPolygon": { - "description": "A valid `GeoJSON MultiPolygon` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.7) for details.", - "x-ms-discriminator-value": "MultiPolygon", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonMultiPolygonData" - } - ] - }, - "GeoJsonMultiPolygonData": { - "type": "object", - "properties": { - "coordinates": { - "description": "Contains a list of valid `GeoJSON Polygon` objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude).", - "type": "array", - "items": { - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonLinearRing" - } - } - } - }, - "required": [ - "coordinates" - ] - }, - "GeoJsonGeometryCollection": { - "description": "A valid `GeoJSON GeometryCollection` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.8) for details.", - "x-ms-discriminator-value": "GeometryCollection", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonGeometryCollectionData" - } - ] - }, - "GeoJsonGeometryCollectionData": { - "type": "object", - "properties": { - "geometries": { - "description": "Contains a list of valid `GeoJSON` geometry objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude).", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonGeometry" - } - } - }, - "required": [ - "geometries" - ] - }, - "GeoJsonFeature": { - "description": "A valid `GeoJSON Feature` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.2) for details.", - "x-ms-discriminator-value": "Feature", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonObject" - }, - { - "$ref": "#/definitions/GeoJsonFeatureData" - } - ] - }, - "GeoJsonFeatureData": { - "type": "object", - "properties": { - "geometry": { - "$ref": "#/definitions/GeoJsonGeometry" - }, - "properties": { - "description": "Properties can contain any additional metadata about the `Feature`. Value can be any JSON object or a JSON null value", - "type": "object" - }, - "id": { - "description": "Identifier for the feature.", - "type": "string" - }, - "featureType": { - "description": "The type of the feature. The value depends on the data model the current feature is part of. Some data models may have an empty value.", - "type": "string" - } - }, - "required": [ - "geometry" - ] - }, - "GeoJsonFeatureCollection": { - "description": "A valid `GeoJSON FeatureCollection` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.3) for details.", - "x-ms-discriminator-value": "FeatureCollection", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonObject" - }, - { - "$ref": "#/definitions/GeoJsonFeatureCollectionData" - } - ] - }, - "GeoJsonFeatureCollectionData": { - "type": "object", - "properties": { - "features": { - "description": "Contains a list of valid `GeoJSON Feature` objects.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonFeature" - } - } - }, - "required": [ - "features" - ] - }, - "Ontology": { - "type": "string", - "description": "The ontology version of this dataset.", - "readOnly": true - } - }, - "parameters": { - "SubscriptionKey": { - "name": "subscription-key", - "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", - "type": "string", - "in": "query", - "required": false, - "x-ms-parameter-location": "client" - }, - "ApiVersion": { - "name": "api-version", - "description": "Version number of Azure Maps API.", - "type": "string", - "in": "query", - "required": true, - "default": "1.0", - "x-ms-parameter-location": "client" - }, - "ApiVersionV2": { - "name": "api-version", - "description": "Version number of Azure Maps API.", - "type": "string", - "in": "query", - "required": true, - "default": "2.0", - "x-ms-parameter-location": "client" - }, - "ClientId": { - "name": "x-ms-client-id", - "description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.", - "type": "string", - "in": "header", - "required": false, - "x-ms-parameter-location": "client" - }, - "JsonFormat": { - "name": "format", - "description": "Desired format of the response. Only `json` format is supported.", - "type": "string", - "in": "path", - "required": true, - "enum": [ - "json" - ], - "x-ms-enum": { - "name": "JsonFormat", - "modelAsString": true, - "values": [ - { - "value": "json", - "description": "[The JavaScript Object Notation Data Interchange Format](https://tools.ietf.org/html/rfc8259)" - } - ] - }, - "x-ms-parameter-location": "method" - } - }, - "responses": { - "200Async": { - "description": "The operation's status response.", - "schema": { - "$ref": "#/definitions/LongRunningOperationResult" - } - }, - "200AsyncV2": { - "description": "The operation is running or complete. If the operation was successful, use the Resource-Location header to obtain the path to the result.", - "schema": { - "$ref": "#/definitions/LongRunningOperationResult" - }, - "headers": { - "Resource-Location": { - "type": "string", - "description": "If successful, a URI where details on the newly created resource can be found." - } - } - }, - "201Async": { - "description": "The resource has been created successfully.", - "schema": { - "$ref": "#/definitions/LongRunningOperationResult" - }, - "headers": { - "Location": { - "type": "string", - "description": "A URI where details on the newly created resource can be found." - } - } - }, - "202Async": { - "description": "**Supported only for async request.**\nRequest Accepted: The request has been accepted for processing. Please use the URL in the Location Header to retry or access the results.", - "headers": { - "Location": { - "type": "string", - "description": "New URL to check for the results of the long running process." - } - } - }, - "202AsyncV2": { - "description": "Request Accepted: The request has been accepted for processing. Please use the URL in the Operation-Location Header to obtain status.", - "headers": { - "Operation-Location": { - "type": "string", - "description": "New URL to check for the results of the long running process." - } - } - }, - "400": { - "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "401": { - "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "headers": { - "WWW-Authenticate": { - "type": "string", - "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" - } - }, - "x-ms-error-response": true - }, - "403": { - "description": "Permission, capacity, or authentication issues.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "404": { - "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "409": { - "description": "The request could not be completed due to a conflict with the current state of the resource. Likely caused by a parallel update to the same resource.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "409StorageLimit": { - "description": "The [data storage limit](https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/azure-subscription-service-limits#azure-maps-limits) is reached on the Azure Maps account. You can always use the [Data Delete API](https://docs.microsoft.com/en-us/rest/api/maps/data/deletepreview) to delete old/unused content and create space for new uploads.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "500": { - "description": "An error occurred while processing the request. Please try again later.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - } - }, - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", - "scopes": { - "user_impersonation": "Impersonates a user's Azure Active Directory account." - } - }, - "apiKeyQuery": { - "type": "apiKey", - "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", - "name": "subscription-key", - "in": "query" - } - }, - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - }, - { - "apiKeyQuery": [] - } - ] -} diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json index 793a24a16178..91bc70a7c339 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json @@ -168,13 +168,13 @@ }, "parameters": [ { - "$ref": "./common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" }, { - "$ref": "./common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "./common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/TilesetId_rv2" @@ -239,19 +239,19 @@ } }, "400": { - "$ref": "./common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "./common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "./common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "./common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "./common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/common.json deleted file mode 100644 index f2af932e1a6f..000000000000 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/common.json +++ /dev/null @@ -1,721 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Azure Maps Common Types", - "version": "2.0" - }, - "host": "atlas.microsoft.com", - "schemes": [ - "https" - ], - "consumes": [], - "produces": [ - "application/json", - "application/xml" - ], - "paths": {}, - "definitions": { - "LongRunningOperationResult": { - "description": "The response model for a Long-Running Operations API.", - "type": "object", - "properties": { - "operationId": { - "description": "The Id for this long-running operation.", - "type": "string" - }, - "status": { - "description": "The status state of the request.", - "type": "string", - "enum": [ - "NotStarted", - "Running", - "Failed", - "Succeeded" - ], - "x-ms-enum": { - "name": "LroStatus", - "modelAsString": true, - "values": [ - { - "value": "NotStarted", - "description": "The request has not started processing yet." - }, - { - "value": "Running", - "description": "The request has started processing." - }, - { - "value": "Failed", - "description": "The request has one or more failures." - }, - { - "value": "Succeeded", - "description": "The request has successfully completed." - } - ] - }, - "readOnly": true - }, - "created": { - "description": "The created timestamp.", - "type": "string", - "readOnly": true - }, - "resourceLocation": { - "description": "The location URI for details about the created resource. This is only provided when the request was successfully completed.", - "type": "string", - "readOnly": true - }, - "error": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" - }, - "warning": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" - } - } - }, - "BatchRequestBody": { - "description": "This type represents the request body for the Batch service.", - "type": "object", - "properties": { - "batchItems": { - "description": "The list of queries to process.", - "type": "array", - "items": { - "description": "Batch Query object", - "type": "object", - "properties": { - "query": { - "description": "Partial query string.", - "type": "string", - "example": "?query=One, Microsoft Way, Redmond, WA 98052&limit=3" - } - } - } - } - } - }, - "BatchResponse": { - "description": "This object is returned from a successful Batch service call. Extend with 'batchItems' property.", - "type": "object", - "properties": { - "summary": { - "description": "Summary for the batch request", - "type": "object", - "readOnly": true, - "properties": { - "successfulRequests": { - "description": "Number of successful requests in the batch", - "type": "integer", - "readOnly": true - }, - "totalRequests": { - "description": "Total number of requests in the batch", - "type": "integer", - "readOnly": true - } - } - } - } - }, - "BatchItem": { - "description": "An item returned from Batch API. Extend with 'response' property.", - "type": "object", - "properties": { - "statusCode": { - "description": "HTTP request status code.", - "type": "number", - "readOnly": true, - "example": 200 - } - } - }, - "CoordinatesPair": { - "description": "A location represented as a latitude and longitude.", - "type": "object", - "properties": { - "latitude": { - "description": "Latitude property", - "type": "number", - "format": "double" - }, - "longitude": { - "description": "Longitude property", - "type": "number", - "format": "double" - } - } - }, - "CoordinatesPairAbbreviated": { - "description": "A location represented as a latitude and longitude using short names 'lat' & 'lon'.", - "type": "object", - "properties": { - "lat": { - "description": "Latitude property", - "type": "number", - "format": "double" - }, - "lon": { - "description": "Longitude property", - "type": "number", - "format": "double" - } - } - }, - "GeoJsonPosition": { - "description": "A `Position` is an array of numbers with two or more elements. The first two elements are _longitude_ and _latitude_, precisely in that order. _Altitude/Elevation_ is an optional third element. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.1) for details.", - "type": "array", - "items": { - "type": "number", - "format": "double" - } - }, - "GeoJsonLinearRing": { - "description": "Though a linear ring is not explicitly represented as a GeoJSON geometry type, it helps in defining the polygon as an array of linear rings. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.6) for details.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonPosition" - } - }, - "GeoJsonObject": { - "description": "A valid `GeoJSON` object. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3) for details.", - "type": "object", - "discriminator": "type", - "required": [ - "type" - ], - "properties": { - "type": { - "description": "Specifies the `GeoJSON` type. Must be one of the nine valid GeoJSON object types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon, GeometryCollection, Feature and FeatureCollection.", - "type": "string", - "enum": [ - "Point", - "MultiPoint", - "LineString", - "MultiLineString", - "Polygon", - "MultiPolygon", - "GeometryCollection", - "Feature", - "FeatureCollection" - ], - "x-ms-enum": { - "name": "GeoJsonObjectType", - "modelAsString": true, - "values": [ - { - "value": "Point", - "description": "`GeoJSON Point` geometry.", - "name": "GeoJsonPoint" - }, - { - "value": "MultiPoint", - "description": "`GeoJSON MultiPoint` geometry.", - "name": "GeoJsonMultiPoint" - }, - { - "value": "LineString", - "description": "`GeoJSON LineString` geometry.", - "name": "GeoJsonLineString" - }, - { - "value": "MultiLineString", - "description": "`GeoJSON MultiLineString` geometry.", - "name": "GeoJsonMultiLineString" - }, - { - "value": "Polygon", - "description": "`GeoJSON Polygon` geometry.", - "name": "GeoJsonPolygon" - }, - { - "value": "MultiPolygon", - "description": "`GeoJSON MultiPolygon` geometry.", - "name": "GeoJsonMultiPolygon" - }, - { - "value": "GeometryCollection", - "description": "`GeoJSON GeometryCollection` geometry.", - "name": "GeoJsonGeometryCollection" - }, - { - "value": "Feature", - "description": "`GeoJSON Feature` object.", - "name": "GeoJsonFeature" - }, - { - "value": "FeatureCollection", - "description": "`GeoJSON FeatureCollection` object.", - "name": "GeoJsonFeatureCollection" - } - ] - } - } - } - }, - "GeoJsonGeometry": { - "description": "A valid `GeoJSON` geometry object. The type must be one of the seven valid GeoJSON geometry types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon and GeometryCollection. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1) for details.", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonObject" - } - ] - }, - "GeoJsonPoint": { - "description": "A valid `GeoJSON Point` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.2) for details.", - "x-ms-discriminator-value": "Point", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonPointData" - } - ] - }, - "GeoJsonPointData": { - "description": "Data contained by a `GeoJson Point`.", - "type": "object", - "properties": { - "coordinates": { - "$ref": "#/definitions/GeoJsonPosition" - } - }, - "required": [ - "coordinates" - ] - }, - "GeoJsonMultiPoint": { - "description": "A valid `GeoJSON MultiPoint` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.3) for details.", - "x-ms-discriminator-value": "MultiPoint", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonMultiPointData" - } - ] - }, - "GeoJsonMultiPointData": { - "type": "object", - "description": "Data contained by a `GeoJson MultiPoint`.", - "properties": { - "coordinates": { - "description": "Coordinates for the `GeoJson MultiPoint` geometry.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonPosition" - } - } - }, - "required": [ - "coordinates" - ] - }, - "GeoJsonLineString": { - "description": "A valid `GeoJSON LineString` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.4) for details.", - "x-ms-discriminator-value": "LineString", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonLineStringData" - } - ] - }, - "GeoJsonLineStringData": { - "type": "object", - "properties": { - "coordinates": { - "description": "Coordinates for the `GeoJson LineString` geometry.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonPosition" - } - } - }, - "required": [ - "coordinates" - ] - }, - "GeoJsonMultiLineString": { - "description": "A valid `GeoJSON MultiLineString` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.5) for details.", - "x-ms-discriminator-value": "MultiLineString", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonMultiLineStringData" - } - ] - }, - "GeoJsonMultiLineStringData": { - "type": "object", - "properties": { - "coordinates": { - "description": "Coordinates for the `GeoJson MultiLineString` geometry.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonLinearRing" - } - } - }, - "required": [ - "coordinates" - ] - }, - "GeoJsonPolygon": { - "description": "A valid `GeoJSON Polygon` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.6) for details.", - "x-ms-discriminator-value": "Polygon", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonPolygonData" - } - ] - }, - "GeoJsonPolygonData": { - "type": "object", - "properties": { - "coordinates": { - "description": "Coordinates for the `GeoJson Polygon` geometry type.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonLinearRing" - } - } - }, - "required": [ - "coordinates" - ] - }, - "GeoJsonMultiPolygon": { - "description": "A valid `GeoJSON MultiPolygon` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.7) for details.", - "x-ms-discriminator-value": "MultiPolygon", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonMultiPolygonData" - } - ] - }, - "GeoJsonMultiPolygonData": { - "type": "object", - "properties": { - "coordinates": { - "description": "Contains a list of valid `GeoJSON Polygon` objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude).", - "type": "array", - "items": { - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonLinearRing" - } - } - } - }, - "required": [ - "coordinates" - ] - }, - "GeoJsonGeometryCollection": { - "description": "A valid `GeoJSON GeometryCollection` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.8) for details.", - "x-ms-discriminator-value": "GeometryCollection", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonGeometryCollectionData" - } - ] - }, - "GeoJsonGeometryCollectionData": { - "type": "object", - "properties": { - "geometries": { - "description": "Contains a list of valid `GeoJSON` geometry objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude).", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonGeometry" - } - } - }, - "required": [ - "geometries" - ] - }, - "GeoJsonFeature": { - "description": "A valid `GeoJSON Feature` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.2) for details.", - "x-ms-discriminator-value": "Feature", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonObject" - }, - { - "$ref": "#/definitions/GeoJsonFeatureData" - } - ] - }, - "GeoJsonFeatureData": { - "type": "object", - "properties": { - "geometry": { - "$ref": "#/definitions/GeoJsonGeometry" - }, - "properties": { - "description": "Properties can contain any additional metadata about the `Feature`. Value can be any JSON object or a JSON null value", - "type": "object" - }, - "id": { - "description": "Identifier for the feature.", - "type": "string" - }, - "featureType": { - "description": "The type of the feature. The value depends on the data model the current feature is part of. Some data models may have an empty value.", - "type": "string" - } - }, - "required": [ - "geometry" - ] - }, - "GeoJsonFeatureCollection": { - "description": "A valid `GeoJSON FeatureCollection` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.3) for details.", - "x-ms-discriminator-value": "FeatureCollection", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonObject" - }, - { - "$ref": "#/definitions/GeoJsonFeatureCollectionData" - } - ] - }, - "GeoJsonFeatureCollectionData": { - "type": "object", - "properties": { - "features": { - "description": "Contains a list of valid `GeoJSON Feature` objects.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonFeature" - } - } - }, - "required": [ - "features" - ] - }, - "Ontology": { - "type": "string", - "description": "The ontology version of this dataset.", - "readOnly": true - } - }, - "parameters": { - "SubscriptionKey": { - "name": "subscription-key", - "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", - "type": "string", - "in": "query", - "required": false, - "x-ms-parameter-location": "client" - }, - "ApiVersion": { - "name": "api-version", - "description": "Version number of Azure Maps API.", - "type": "string", - "in": "query", - "required": true, - "default": "1.0", - "x-ms-parameter-location": "client" - }, - "ApiVersionV2": { - "name": "api-version", - "description": "Version number of Azure Maps API.", - "type": "string", - "in": "query", - "required": true, - "default": "2.0", - "x-ms-parameter-location": "client" - }, - "ClientId": { - "name": "x-ms-client-id", - "description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.", - "type": "string", - "in": "header", - "required": false, - "x-ms-parameter-location": "client" - }, - "JsonFormat": { - "name": "format", - "description": "Desired format of the response. Only `json` format is supported.", - "type": "string", - "in": "path", - "required": true, - "enum": [ - "json" - ], - "x-ms-enum": { - "name": "JsonFormat", - "modelAsString": true, - "values": [ - { - "value": "json", - "description": "[The JavaScript Object Notation Data Interchange Format](https://tools.ietf.org/html/rfc8259)" - } - ] - }, - "x-ms-parameter-location": "method" - } - }, - "responses": { - "200Async": { - "description": "The operation's status response.", - "schema": { - "$ref": "#/definitions/LongRunningOperationResult" - } - }, - "200AsyncV2": { - "description": "The operation is running or complete. If the operation was successful, use the Resource-Location header to obtain the path to the result.", - "schema": { - "$ref": "#/definitions/LongRunningOperationResult" - }, - "headers": { - "Resource-Location": { - "type": "string", - "description": "If successful, a URI where details on the newly created resource can be found." - } - } - }, - "201Async": { - "description": "The resource has been created successfully.", - "schema": { - "$ref": "#/definitions/LongRunningOperationResult" - }, - "headers": { - "Location": { - "type": "string", - "description": "A URI where details on the newly created resource can be found." - } - } - }, - "202Async": { - "description": "**Supported only for async request.**\nRequest Accepted: The request has been accepted for processing. Please use the URL in the Location Header to retry or access the results.", - "headers": { - "Location": { - "type": "string", - "description": "New URL to check for the results of the long running process." - } - } - }, - "202AsyncV2": { - "description": "Request Accepted: The request has been accepted for processing. Please use the URL in the Operation-Location Header to obtain status.", - "headers": { - "Operation-Location": { - "type": "string", - "description": "New URL to check for the results of the long running process." - } - } - }, - "400": { - "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "401": { - "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "headers": { - "WWW-Authenticate": { - "type": "string", - "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" - } - }, - "x-ms-error-response": true - }, - "403": { - "description": "Permission, capacity, or authentication issues.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "404": { - "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "409": { - "description": "The request could not be completed due to a conflict with the current state of the resource. Likely caused by a parallel update to the same resource.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "409StorageLimit": { - "description": "The [data storage limit](https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/azure-subscription-service-limits#azure-maps-limits) is reached on the Azure Maps account. You can always use the [Data Delete API](https://docs.microsoft.com/en-us/rest/api/maps/data/deletepreview) to delete old/unused content and create space for new uploads.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "500": { - "description": "An error occurred while processing the request. Please try again later.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - } - }, - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", - "scopes": { - "user_impersonation": "Impersonates a user's Azure Active Directory account." - } - }, - "apiKeyQuery": { - "type": "apiKey", - "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", - "name": "subscription-key", - "in": "query" - } - }, - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - }, - { - "apiKeyQuery": [] - } - ] -} diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json index db43151a549a..dce99424be3e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json @@ -126,13 +126,13 @@ }, "parameters": [ { - "$ref": "./common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" }, { - "$ref": "./common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "./common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/DatasetIdQuery" @@ -150,22 +150,22 @@ "x-ms-error-response": true }, "202": { - "$ref": "./common.json#/responses/202AsyncV2" + "$ref": "../../../Common/preview/2.0/common.json#/responses/202AsyncV2" }, "400": { - "$ref": "./common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "./common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "./common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "./common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "./common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } }, @@ -180,13 +180,13 @@ }, "parameters": [ { - "$ref": "./common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" }, { - "$ref": "./common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "./common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" } ], "responses": { @@ -197,19 +197,19 @@ } }, "400": { - "$ref": "./common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "./common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "./common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "./common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "./common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } } @@ -226,13 +226,13 @@ }, "parameters": [ { - "$ref": "./common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" }, { - "$ref": "./common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "./common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/TilesetId" @@ -246,19 +246,19 @@ } }, "400": { - "$ref": "./common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "./common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "./common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "./common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "./common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } }, @@ -273,13 +273,13 @@ }, "parameters": [ { - "$ref": "./common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" }, { - "$ref": "./common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "./common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/TilesetId" @@ -290,19 +290,19 @@ "description": "Tileset delete request completed successfully." }, "400": { - "$ref": "./common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "./common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "./common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "./common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "./common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } } @@ -321,10 +321,10 @@ }, "parameters": [ { - "$ref": "./common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "./common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/TilesetOperationId" @@ -332,10 +332,10 @@ ], "responses": { "200": { - "$ref": "./common.json#/responses/200AsyncV2" + "$ref": "../../../Common/preview/2.0/common.json#/responses/200AsyncV2" }, "400": { - "$ref": "./common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" } } } @@ -371,7 +371,7 @@ "readOnly": true }, "ontology": { - "$ref": "./common.json#/definitions/Ontology" + "$ref": "../../../Common/preview/2.0/common.json#/definitions/Ontology" }, "datasetId": { "description": "The unique dataset Id used to create the tileset.", diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/common.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/common.json deleted file mode 100644 index f2af932e1a6f..000000000000 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/common.json +++ /dev/null @@ -1,721 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Azure Maps Common Types", - "version": "2.0" - }, - "host": "atlas.microsoft.com", - "schemes": [ - "https" - ], - "consumes": [], - "produces": [ - "application/json", - "application/xml" - ], - "paths": {}, - "definitions": { - "LongRunningOperationResult": { - "description": "The response model for a Long-Running Operations API.", - "type": "object", - "properties": { - "operationId": { - "description": "The Id for this long-running operation.", - "type": "string" - }, - "status": { - "description": "The status state of the request.", - "type": "string", - "enum": [ - "NotStarted", - "Running", - "Failed", - "Succeeded" - ], - "x-ms-enum": { - "name": "LroStatus", - "modelAsString": true, - "values": [ - { - "value": "NotStarted", - "description": "The request has not started processing yet." - }, - { - "value": "Running", - "description": "The request has started processing." - }, - { - "value": "Failed", - "description": "The request has one or more failures." - }, - { - "value": "Succeeded", - "description": "The request has successfully completed." - } - ] - }, - "readOnly": true - }, - "created": { - "description": "The created timestamp.", - "type": "string", - "readOnly": true - }, - "resourceLocation": { - "description": "The location URI for details about the created resource. This is only provided when the request was successfully completed.", - "type": "string", - "readOnly": true - }, - "error": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" - }, - "warning": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" - } - } - }, - "BatchRequestBody": { - "description": "This type represents the request body for the Batch service.", - "type": "object", - "properties": { - "batchItems": { - "description": "The list of queries to process.", - "type": "array", - "items": { - "description": "Batch Query object", - "type": "object", - "properties": { - "query": { - "description": "Partial query string.", - "type": "string", - "example": "?query=One, Microsoft Way, Redmond, WA 98052&limit=3" - } - } - } - } - } - }, - "BatchResponse": { - "description": "This object is returned from a successful Batch service call. Extend with 'batchItems' property.", - "type": "object", - "properties": { - "summary": { - "description": "Summary for the batch request", - "type": "object", - "readOnly": true, - "properties": { - "successfulRequests": { - "description": "Number of successful requests in the batch", - "type": "integer", - "readOnly": true - }, - "totalRequests": { - "description": "Total number of requests in the batch", - "type": "integer", - "readOnly": true - } - } - } - } - }, - "BatchItem": { - "description": "An item returned from Batch API. Extend with 'response' property.", - "type": "object", - "properties": { - "statusCode": { - "description": "HTTP request status code.", - "type": "number", - "readOnly": true, - "example": 200 - } - } - }, - "CoordinatesPair": { - "description": "A location represented as a latitude and longitude.", - "type": "object", - "properties": { - "latitude": { - "description": "Latitude property", - "type": "number", - "format": "double" - }, - "longitude": { - "description": "Longitude property", - "type": "number", - "format": "double" - } - } - }, - "CoordinatesPairAbbreviated": { - "description": "A location represented as a latitude and longitude using short names 'lat' & 'lon'.", - "type": "object", - "properties": { - "lat": { - "description": "Latitude property", - "type": "number", - "format": "double" - }, - "lon": { - "description": "Longitude property", - "type": "number", - "format": "double" - } - } - }, - "GeoJsonPosition": { - "description": "A `Position` is an array of numbers with two or more elements. The first two elements are _longitude_ and _latitude_, precisely in that order. _Altitude/Elevation_ is an optional third element. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.1) for details.", - "type": "array", - "items": { - "type": "number", - "format": "double" - } - }, - "GeoJsonLinearRing": { - "description": "Though a linear ring is not explicitly represented as a GeoJSON geometry type, it helps in defining the polygon as an array of linear rings. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.6) for details.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonPosition" - } - }, - "GeoJsonObject": { - "description": "A valid `GeoJSON` object. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3) for details.", - "type": "object", - "discriminator": "type", - "required": [ - "type" - ], - "properties": { - "type": { - "description": "Specifies the `GeoJSON` type. Must be one of the nine valid GeoJSON object types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon, GeometryCollection, Feature and FeatureCollection.", - "type": "string", - "enum": [ - "Point", - "MultiPoint", - "LineString", - "MultiLineString", - "Polygon", - "MultiPolygon", - "GeometryCollection", - "Feature", - "FeatureCollection" - ], - "x-ms-enum": { - "name": "GeoJsonObjectType", - "modelAsString": true, - "values": [ - { - "value": "Point", - "description": "`GeoJSON Point` geometry.", - "name": "GeoJsonPoint" - }, - { - "value": "MultiPoint", - "description": "`GeoJSON MultiPoint` geometry.", - "name": "GeoJsonMultiPoint" - }, - { - "value": "LineString", - "description": "`GeoJSON LineString` geometry.", - "name": "GeoJsonLineString" - }, - { - "value": "MultiLineString", - "description": "`GeoJSON MultiLineString` geometry.", - "name": "GeoJsonMultiLineString" - }, - { - "value": "Polygon", - "description": "`GeoJSON Polygon` geometry.", - "name": "GeoJsonPolygon" - }, - { - "value": "MultiPolygon", - "description": "`GeoJSON MultiPolygon` geometry.", - "name": "GeoJsonMultiPolygon" - }, - { - "value": "GeometryCollection", - "description": "`GeoJSON GeometryCollection` geometry.", - "name": "GeoJsonGeometryCollection" - }, - { - "value": "Feature", - "description": "`GeoJSON Feature` object.", - "name": "GeoJsonFeature" - }, - { - "value": "FeatureCollection", - "description": "`GeoJSON FeatureCollection` object.", - "name": "GeoJsonFeatureCollection" - } - ] - } - } - } - }, - "GeoJsonGeometry": { - "description": "A valid `GeoJSON` geometry object. The type must be one of the seven valid GeoJSON geometry types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon and GeometryCollection. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1) for details.", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonObject" - } - ] - }, - "GeoJsonPoint": { - "description": "A valid `GeoJSON Point` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.2) for details.", - "x-ms-discriminator-value": "Point", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonPointData" - } - ] - }, - "GeoJsonPointData": { - "description": "Data contained by a `GeoJson Point`.", - "type": "object", - "properties": { - "coordinates": { - "$ref": "#/definitions/GeoJsonPosition" - } - }, - "required": [ - "coordinates" - ] - }, - "GeoJsonMultiPoint": { - "description": "A valid `GeoJSON MultiPoint` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.3) for details.", - "x-ms-discriminator-value": "MultiPoint", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonMultiPointData" - } - ] - }, - "GeoJsonMultiPointData": { - "type": "object", - "description": "Data contained by a `GeoJson MultiPoint`.", - "properties": { - "coordinates": { - "description": "Coordinates for the `GeoJson MultiPoint` geometry.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonPosition" - } - } - }, - "required": [ - "coordinates" - ] - }, - "GeoJsonLineString": { - "description": "A valid `GeoJSON LineString` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.4) for details.", - "x-ms-discriminator-value": "LineString", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonLineStringData" - } - ] - }, - "GeoJsonLineStringData": { - "type": "object", - "properties": { - "coordinates": { - "description": "Coordinates for the `GeoJson LineString` geometry.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonPosition" - } - } - }, - "required": [ - "coordinates" - ] - }, - "GeoJsonMultiLineString": { - "description": "A valid `GeoJSON MultiLineString` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.5) for details.", - "x-ms-discriminator-value": "MultiLineString", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonMultiLineStringData" - } - ] - }, - "GeoJsonMultiLineStringData": { - "type": "object", - "properties": { - "coordinates": { - "description": "Coordinates for the `GeoJson MultiLineString` geometry.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonLinearRing" - } - } - }, - "required": [ - "coordinates" - ] - }, - "GeoJsonPolygon": { - "description": "A valid `GeoJSON Polygon` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.6) for details.", - "x-ms-discriminator-value": "Polygon", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonPolygonData" - } - ] - }, - "GeoJsonPolygonData": { - "type": "object", - "properties": { - "coordinates": { - "description": "Coordinates for the `GeoJson Polygon` geometry type.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonLinearRing" - } - } - }, - "required": [ - "coordinates" - ] - }, - "GeoJsonMultiPolygon": { - "description": "A valid `GeoJSON MultiPolygon` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.7) for details.", - "x-ms-discriminator-value": "MultiPolygon", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonMultiPolygonData" - } - ] - }, - "GeoJsonMultiPolygonData": { - "type": "object", - "properties": { - "coordinates": { - "description": "Contains a list of valid `GeoJSON Polygon` objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude).", - "type": "array", - "items": { - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonLinearRing" - } - } - } - }, - "required": [ - "coordinates" - ] - }, - "GeoJsonGeometryCollection": { - "description": "A valid `GeoJSON GeometryCollection` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.8) for details.", - "x-ms-discriminator-value": "GeometryCollection", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonGeometryCollectionData" - } - ] - }, - "GeoJsonGeometryCollectionData": { - "type": "object", - "properties": { - "geometries": { - "description": "Contains a list of valid `GeoJSON` geometry objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude).", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonGeometry" - } - } - }, - "required": [ - "geometries" - ] - }, - "GeoJsonFeature": { - "description": "A valid `GeoJSON Feature` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.2) for details.", - "x-ms-discriminator-value": "Feature", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonObject" - }, - { - "$ref": "#/definitions/GeoJsonFeatureData" - } - ] - }, - "GeoJsonFeatureData": { - "type": "object", - "properties": { - "geometry": { - "$ref": "#/definitions/GeoJsonGeometry" - }, - "properties": { - "description": "Properties can contain any additional metadata about the `Feature`. Value can be any JSON object or a JSON null value", - "type": "object" - }, - "id": { - "description": "Identifier for the feature.", - "type": "string" - }, - "featureType": { - "description": "The type of the feature. The value depends on the data model the current feature is part of. Some data models may have an empty value.", - "type": "string" - } - }, - "required": [ - "geometry" - ] - }, - "GeoJsonFeatureCollection": { - "description": "A valid `GeoJSON FeatureCollection` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.3) for details.", - "x-ms-discriminator-value": "FeatureCollection", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonObject" - }, - { - "$ref": "#/definitions/GeoJsonFeatureCollectionData" - } - ] - }, - "GeoJsonFeatureCollectionData": { - "type": "object", - "properties": { - "features": { - "description": "Contains a list of valid `GeoJSON Feature` objects.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonFeature" - } - } - }, - "required": [ - "features" - ] - }, - "Ontology": { - "type": "string", - "description": "The ontology version of this dataset.", - "readOnly": true - } - }, - "parameters": { - "SubscriptionKey": { - "name": "subscription-key", - "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", - "type": "string", - "in": "query", - "required": false, - "x-ms-parameter-location": "client" - }, - "ApiVersion": { - "name": "api-version", - "description": "Version number of Azure Maps API.", - "type": "string", - "in": "query", - "required": true, - "default": "1.0", - "x-ms-parameter-location": "client" - }, - "ApiVersionV2": { - "name": "api-version", - "description": "Version number of Azure Maps API.", - "type": "string", - "in": "query", - "required": true, - "default": "2.0", - "x-ms-parameter-location": "client" - }, - "ClientId": { - "name": "x-ms-client-id", - "description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.", - "type": "string", - "in": "header", - "required": false, - "x-ms-parameter-location": "client" - }, - "JsonFormat": { - "name": "format", - "description": "Desired format of the response. Only `json` format is supported.", - "type": "string", - "in": "path", - "required": true, - "enum": [ - "json" - ], - "x-ms-enum": { - "name": "JsonFormat", - "modelAsString": true, - "values": [ - { - "value": "json", - "description": "[The JavaScript Object Notation Data Interchange Format](https://tools.ietf.org/html/rfc8259)" - } - ] - }, - "x-ms-parameter-location": "method" - } - }, - "responses": { - "200Async": { - "description": "The operation's status response.", - "schema": { - "$ref": "#/definitions/LongRunningOperationResult" - } - }, - "200AsyncV2": { - "description": "The operation is running or complete. If the operation was successful, use the Resource-Location header to obtain the path to the result.", - "schema": { - "$ref": "#/definitions/LongRunningOperationResult" - }, - "headers": { - "Resource-Location": { - "type": "string", - "description": "If successful, a URI where details on the newly created resource can be found." - } - } - }, - "201Async": { - "description": "The resource has been created successfully.", - "schema": { - "$ref": "#/definitions/LongRunningOperationResult" - }, - "headers": { - "Location": { - "type": "string", - "description": "A URI where details on the newly created resource can be found." - } - } - }, - "202Async": { - "description": "**Supported only for async request.**\nRequest Accepted: The request has been accepted for processing. Please use the URL in the Location Header to retry or access the results.", - "headers": { - "Location": { - "type": "string", - "description": "New URL to check for the results of the long running process." - } - } - }, - "202AsyncV2": { - "description": "Request Accepted: The request has been accepted for processing. Please use the URL in the Operation-Location Header to obtain status.", - "headers": { - "Operation-Location": { - "type": "string", - "description": "New URL to check for the results of the long running process." - } - } - }, - "400": { - "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "401": { - "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "headers": { - "WWW-Authenticate": { - "type": "string", - "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" - } - }, - "x-ms-error-response": true - }, - "403": { - "description": "Permission, capacity, or authentication issues.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "404": { - "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "409": { - "description": "The request could not be completed due to a conflict with the current state of the resource. Likely caused by a parallel update to the same resource.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "409StorageLimit": { - "description": "The [data storage limit](https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/azure-subscription-service-limits#azure-maps-limits) is reached on the Azure Maps account. You can always use the [Data Delete API](https://docs.microsoft.com/en-us/rest/api/maps/data/deletepreview) to delete old/unused content and create space for new uploads.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "500": { - "description": "An error occurred while processing the request. Please try again later.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - } - }, - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", - "scopes": { - "user_impersonation": "Impersonates a user's Azure Active Directory account." - } - }, - "apiKeyQuery": { - "type": "apiKey", - "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", - "name": "subscription-key", - "in": "query" - } - }, - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - }, - { - "apiKeyQuery": [] - } - ] -} diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json index c026f2aea22f..f59c61f78f7d 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json @@ -132,13 +132,13 @@ }, "parameters": [ { - "$ref": "./common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" }, { - "$ref": "./common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "./common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" @@ -152,19 +152,19 @@ } }, "400": { - "$ref": "./common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "./common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "./common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "./common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "./common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } } @@ -181,13 +181,13 @@ }, "parameters": [ { - "$ref": "./common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" }, { - "$ref": "./common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "./common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" @@ -201,19 +201,19 @@ } }, "400": { - "$ref": "./common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "./common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "./common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "./common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "./common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } } @@ -230,13 +230,13 @@ }, "parameters": [ { - "$ref": "./common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" }, { - "$ref": "./common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "./common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" @@ -250,19 +250,19 @@ } }, "400": { - "$ref": "./common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "./common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "./common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "./common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "./common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } } @@ -279,13 +279,13 @@ }, "parameters": [ { - "$ref": "./common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" }, { - "$ref": "./common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "./common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" @@ -302,19 +302,19 @@ } }, "400": { - "$ref": "./common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "./common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "./common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "./common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "./common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } } @@ -331,13 +331,13 @@ }, "parameters": [ { - "$ref": "./common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" }, { - "$ref": "./common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "./common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" @@ -354,19 +354,19 @@ } }, "400": { - "$ref": "./common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "./common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "./common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "./common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "./common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } } @@ -383,13 +383,13 @@ }, "parameters": [ { - "$ref": "./common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" }, { - "$ref": "./common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "./common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" @@ -415,19 +415,19 @@ } }, "400": { - "$ref": "./common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "./common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "./common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "./common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "./common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } } @@ -444,10 +444,10 @@ }, "parameters": [ { - "$ref": "./common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "./common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" @@ -467,19 +467,19 @@ } }, "400": { - "$ref": "./common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "./common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "./common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "./common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "./common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } }, @@ -494,10 +494,10 @@ }, "parameters": [ { - "$ref": "./common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "./common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" @@ -514,19 +514,19 @@ "description": "Feature Deleted." }, "400": { - "$ref": "./common.json#/responses/400" + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" }, "401": { - "$ref": "./common.json#/responses/401" + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" }, "403": { - "$ref": "./common.json#/responses/403" + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" }, "404": { - "$ref": "./common.json#/responses/404" + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "./common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } } @@ -540,7 +540,7 @@ ], "properties": { "ontology": { - "$ref": "./common.json#/definitions/Ontology" + "$ref": "../../../Common/preview/2.0/common.json#/definitions/Ontology" }, "links": { "description": "Links to other WFS endpoints.", @@ -612,7 +612,7 @@ ], "properties": { "ontology": { - "$ref": "./common.json#/definitions/Ontology" + "$ref": "../../../Common/preview/2.0/common.json#/definitions/Ontology" }, "links": { "description": "Links to other WFS endpoints.", @@ -715,7 +715,7 @@ "example": "Buildings" }, "ontology": { - "$ref": "./common.json#/definitions/Ontology" + "$ref": "../../../Common/preview/2.0/common.json#/definitions/Ontology" }, "description": { "description": "a description of the features in the collection", @@ -775,7 +775,7 @@ "example": "Feature Class buildings" }, "ontology": { - "$ref": "./common.json#/definitions/Ontology" + "$ref": "../../../Common/preview/2.0/common.json#/definitions/Ontology" }, "geometryType": { "description": "type of geometry returned", @@ -883,7 +883,7 @@ "type": "object", "allOf": [ { - "$ref": "./common.json#/definitions/GeoJsonFeatureCollection" + "$ref": "../../../Common/preview/2.0/common.json#/definitions/GeoJsonFeatureCollection" }, { "$ref": "#/definitions/ExtendedGeoJsonFeatureCollectionData" @@ -894,7 +894,7 @@ "type": "object", "properties": { "ontology": { - "$ref": "./common.json#/definitions/Ontology" + "$ref": "../../../Common/preview/2.0/common.json#/definitions/Ontology" }, "numberReturned": { "description": "Number of returned features.", @@ -916,10 +916,10 @@ ], "properties": { "ontology": { - "$ref": "./common.json#/definitions/Ontology" + "$ref": "../../../Common/preview/2.0/common.json#/definitions/Ontology" }, "feature": { - "$ref": "./common.json#/definitions/GeoJsonFeature" + "$ref": "../../../Common/preview/2.0/common.json#/definitions/GeoJsonFeature" }, "links": { "description": "Links to other WFS endpoints.", From ae3adfabdd7feb7507dc92ff545fd6c1c8aa4bf8 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Tue, 4 May 2021 10:15:25 +0200 Subject: [PATCH 097/210] update featureid to local parameter in wfs to see if it fixes error. --- .../data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json | 10 +++++++++- specification/maps/data-plane/readme.md | 7 +++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json index f59c61f78f7d..474a142a0a67 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json @@ -117,6 +117,14 @@ "description": "Local identifier of a specific feature", "required": true, "x-ms-parameter-location": "method" + }, + "DatasetId": { + "name": "datasetId", + "type": "string", + "in": "path", + "description": "The identifier for the dataset to query from.", + "required": true, + "x-ms-parameter-location": "method" } }, "paths": { @@ -450,7 +458,7 @@ "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { - "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" + "$ref": "#/parameters/DatasetId" }, { "$ref": "#/parameters/CollectionId" diff --git a/specification/maps/data-plane/readme.md b/specification/maps/data-plane/readme.md index e0e90bd9ab53..f99302a4b645 100644 --- a/specification/maps/data-plane/readme.md +++ b/specification/maps/data-plane/readme.md @@ -142,7 +142,12 @@ input-file: - $(this-folder)/Microsoft.Maps/Alias/preview/1.0/alias.json - $(this-folder)/Microsoft.Maps/Data/preview/1.0/data.json - $(this-folder)/Microsoft.Maps/Dataset/preview/1.0/dataset.json + - $(this-folder)/Microsoft.Maps/Alias/preview/2.0/alias.json + - $(this-folder)/Microsoft.Maps/Data/preview/2.0/data.json + - $(this-folder)/Microsoft.Maps/Dataset/preview/2.0/dataset.json - $(this-folder)/Microsoft.Maps/DEM/preview/1.0/elevation.json + - $(this-folder)/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json + - $(this-folder)/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json - $(this-folder)/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json - $(this-folder)/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json - $(this-folder)/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json @@ -153,10 +158,12 @@ input-file: - $(this-folder)/Microsoft.Maps/Search/preview/1.0/search.json - $(this-folder)/Microsoft.Maps/Spatial/preview/1.0/spatial.json - $(this-folder)/Microsoft.Maps/Tileset/preview/1.0/tileset.json + - $(this-folder)/Microsoft.Maps/Tileset/preview/2.0/tileset.json - $(this-folder)/Microsoft.Maps/Timezone/preview/1.0/timezone.json - $(this-folder)/Microsoft.Maps/Traffic/preview/1.0/traffic.json - $(this-folder)/Microsoft.Maps/Weather/preview/1.0/weather.json - $(this-folder)/Microsoft.Maps/WFS/preview/1.0/wfs.json + - $(this-folder)/Microsoft.Maps/WFS/preview/2.0/wfs.json ``` From f541c2b879ec4bca7423a9fa2046b5bbbcc911ed Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Tue, 4 May 2021 10:21:30 +0200 Subject: [PATCH 098/210] Remove dataset from wfs as it is not needed to fix doc preview. --- .../data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json index 474a142a0a67..f59c61f78f7d 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json @@ -117,14 +117,6 @@ "description": "Local identifier of a specific feature", "required": true, "x-ms-parameter-location": "method" - }, - "DatasetId": { - "name": "datasetId", - "type": "string", - "in": "path", - "description": "The identifier for the dataset to query from.", - "required": true, - "x-ms-parameter-location": "method" } }, "paths": { @@ -458,7 +450,7 @@ "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" }, { - "$ref": "#/parameters/DatasetId" + "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" }, { "$ref": "#/parameters/CollectionId" From d4896e11a5b8fccf04f8e1ecf20c5bf4b866a675 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Tue, 4 May 2021 10:45:36 +0200 Subject: [PATCH 099/210] Remove part that should be auto generated. --- specification/maps/data-plane/readme.md | 48 ------------------------- 1 file changed, 48 deletions(-) diff --git a/specification/maps/data-plane/readme.md b/specification/maps/data-plane/readme.md index f99302a4b645..50d85627244b 100644 --- a/specification/maps/data-plane/readme.md +++ b/specification/maps/data-plane/readme.md @@ -126,51 +126,3 @@ See configuration in [readme.csharp.md](./readme.csharp.md) ## Go See configuration in [readme.go.md](./readme.go.md) - -## Multi-API/Profile support for AutoRest v3 generators - -AutoRest V3 generators require the use of `--tag=all-api-versions` to select api files. - -This block is updated by an automatic script. Edits may be lost! - -``` yaml $(tag) == 'all-api-versions' /* autogenerated */ -# include the azure profile definitions from the standard location -require: $(this-folder)/../../../profiles/readme.md - -# all the input files across all versions -input-file: - - $(this-folder)/Microsoft.Maps/Alias/preview/1.0/alias.json - - $(this-folder)/Microsoft.Maps/Data/preview/1.0/data.json - - $(this-folder)/Microsoft.Maps/Dataset/preview/1.0/dataset.json - - $(this-folder)/Microsoft.Maps/Alias/preview/2.0/alias.json - - $(this-folder)/Microsoft.Maps/Data/preview/2.0/data.json - - $(this-folder)/Microsoft.Maps/Dataset/preview/2.0/dataset.json - - $(this-folder)/Microsoft.Maps/DEM/preview/1.0/elevation.json - - $(this-folder)/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json - - $(this-folder)/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json - - $(this-folder)/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json - - $(this-folder)/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json - - $(this-folder)/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json - - $(this-folder)/Microsoft.Maps/Mobility/preview/1.0/mobility.json - - $(this-folder)/Microsoft.Maps/Render/preview/1.0/render.json - - $(this-folder)/Microsoft.Maps/Render/preview/2.0/render.json - - $(this-folder)/Microsoft.Maps/Route/preview/1.0/route.json - - $(this-folder)/Microsoft.Maps/Search/preview/1.0/search.json - - $(this-folder)/Microsoft.Maps/Spatial/preview/1.0/spatial.json - - $(this-folder)/Microsoft.Maps/Tileset/preview/1.0/tileset.json - - $(this-folder)/Microsoft.Maps/Tileset/preview/2.0/tileset.json - - $(this-folder)/Microsoft.Maps/Timezone/preview/1.0/timezone.json - - $(this-folder)/Microsoft.Maps/Traffic/preview/1.0/traffic.json - - $(this-folder)/Microsoft.Maps/Weather/preview/1.0/weather.json - - $(this-folder)/Microsoft.Maps/WFS/preview/1.0/wfs.json - - $(this-folder)/Microsoft.Maps/WFS/preview/2.0/wfs.json - -``` - -If there are files that should not be in the `all-api-versions` set, -uncomment the `exclude-file` section below and add the file paths. - -``` yaml $(tag) == 'all-api-versions' -#exclude-file: -# - $(this-folder)/Microsoft.Example/stable/2010-01-01/somefile.json -``` From 2c1a607b18f5833f57a61f0d5a53e51faa5f417d Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Thu, 6 May 2021 14:54:38 +0200 Subject: [PATCH 100/210] Fix error with java codegen. --- .../Alias/preview/2.0/alias.json | 4 +- specification/maps/data-plane/readme.java.md | 10 ++-- specification/maps/data-plane/readme.md | 49 +++++++++++++++++++ 3 files changed, 56 insertions(+), 7 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json index a22127cf37a7..4525090a887d 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json @@ -128,7 +128,7 @@ "201": { "description": "Content created successfully. The response body contains the newly created alias id `aliasId`.", "schema": { - "$ref": "#/definitions/AliasCreateResponse" + "$ref": "#/definitions/AliasCreateResponseV2" }, "headers": { "Access-Control-Expose-Headers": { @@ -332,7 +332,7 @@ } }, "definitions": { - "AliasCreateResponse": { + "AliasCreateResponseV2": { "description": "The response model for the Alias Create API for the case when the alias was successfully created.", "type": "object", "properties": { diff --git a/specification/maps/data-plane/readme.java.md b/specification/maps/data-plane/readme.java.md index d1293f165e3e..848477f37a3e 100644 --- a/specification/maps/data-plane/readme.java.md +++ b/specification/maps/data-plane/readme.java.md @@ -1,9 +1,9 @@ ## Java ``` yaml $(java) -namespace: com.azure.maps.service -license-header: MICROSOFT_MIT_NO_CODEGEN -java: trues -payload-flattening-threshold: 0 -output-folder: $(azure-libraries-for-java-folder)/azure-maps-service +java: + namespace: com.azure.maps.service + license-header: MICROSOFT_MIT_NO_CODEGEN + payload-flattening-threshold: 0 + output-folder: $(azure-libraries-for-java-folder)/azure-maps-service ``` \ No newline at end of file diff --git a/specification/maps/data-plane/readme.md b/specification/maps/data-plane/readme.md index 50d85627244b..22bc6a2a009d 100644 --- a/specification/maps/data-plane/readme.md +++ b/specification/maps/data-plane/readme.md @@ -126,3 +126,52 @@ See configuration in [readme.csharp.md](./readme.csharp.md) ## Go See configuration in [readme.go.md](./readme.go.md) + +## Multi-API/Profile support for AutoRest v3 generators + +AutoRest V3 generators require the use of `--tag=all-api-versions` to select api files. + +This block is updated by an automatic script. Edits may be lost! + +``` yaml $(tag) == 'all-api-versions' /* autogenerated */ +# include the azure profile definitions from the standard location +require: $(this-folder)/../../../profiles/readme.md + +# all the input files across all versions +input-file: + - $(this-folder)/Microsoft.Maps/Alias/preview/1.0/alias.json + - $(this-folder)/Microsoft.Maps/Data/preview/1.0/data.json + - $(this-folder)/Microsoft.Maps/Dataset/preview/1.0/dataset.json + - $(this-folder)/Microsoft.Maps/Alias/preview/2.0/alias.json + - $(this-folder)/Microsoft.Maps/Data/preview/2.0/data.json + - $(this-folder)/Microsoft.Maps/Dataset/preview/2.0/dataset.json + - $(this-folder)/Microsoft.Maps/DEM/preview/1.0/elevation.json + - $(this-folder)/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json + - $(this-folder)/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json + - $(this-folder)/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json + - $(this-folder)/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json + - $(this-folder)/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json + - $(this-folder)/Microsoft.Maps/Mobility/preview/1.0/mobility.json + - $(this-folder)/Microsoft.Maps/Render/preview/1.0/render.json + - $(this-folder)/Microsoft.Maps/Render/preview/2.0/render.json + - $(this-folder)/Microsoft.Maps/Route/preview/1.0/route.json + - $(this-folder)/Microsoft.Maps/Search/preview/1.0/search.json + - $(this-folder)/Microsoft.Maps/Spatial/preview/1.0/spatial.json + - $(this-folder)/Microsoft.Maps/Tileset/preview/1.0/tileset.json + - $(this-folder)/Microsoft.Maps/Tileset/preview/2.0/tileset.json + - $(this-folder)/Microsoft.Maps/Timezone/preview/1.0/timezone.json + - $(this-folder)/Microsoft.Maps/Traffic/preview/1.0/traffic.json + - $(this-folder)/Microsoft.Maps/Weather/preview/1.0/weather.json + - $(this-folder)/Microsoft.Maps/WFS/preview/1.0/wfs.json + - $(this-folder)/Microsoft.Maps/WFS/preview/2.0/wfs.json + +``` + +If there are files that should not be in the `all-api-versions` set, +uncomment the `exclude-file` section below and add the file paths. + +``` yaml $(tag) == 'all-api-versions' +#exclude-file: +# - $(this-folder)/Microsoft.Example/stable/2010-01-01/somefile.json +``` + From e042cf04ca035de5e5055bf401b33772c8ae5c07 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Fri, 7 May 2021 15:07:04 +0200 Subject: [PATCH 101/210] Try to only export new versions of api. --- specification/maps/data-plane/readme.md | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/specification/maps/data-plane/readme.md b/specification/maps/data-plane/readme.md index 22bc6a2a009d..ba47dae7b5fe 100644 --- a/specification/maps/data-plane/readme.md +++ b/specification/maps/data-plane/readme.md @@ -50,20 +50,10 @@ input-file: - Microsoft.Maps/Alias/preview/2.0/alias.json - Microsoft.Maps/Data/preview/2.0/data.json - Microsoft.Maps/Dataset/preview/2.0/dataset.json - - Microsoft.Maps/DEM/preview/1.0/elevation.json - Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json - Microsoft.Maps/FeatureState/preview/2.0/featurestate.json - - Microsoft.Maps/Geolocation/preview/1.0/geolocation.json - - Microsoft.Maps/Mobility/preview/1.0/mobility.json - - Microsoft.Maps/Render/preview/1.0/render.json - Microsoft.Maps/Render/preview/2.0/render.json - - Microsoft.Maps/Route/preview/1.0/route.json - - Microsoft.Maps/Search/preview/1.0/search.json - - Microsoft.Maps/Spatial/preview/1.0/spatial.json - Microsoft.Maps/Tileset/preview/2.0/tileset.json - - Microsoft.Maps/Timezone/preview/1.0/timezone.json - - Microsoft.Maps/Traffic/preview/1.0/traffic.json - - Microsoft.Maps/Weather/preview/1.0/weather.json - Microsoft.Maps/WFS/preview/2.0/wfs.json ``` ### Tag: package-1.0-preview From 0b126d24bc00ed9d07edaccb952ec8350c671e1a Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Fri, 7 May 2021 15:41:05 +0200 Subject: [PATCH 102/210] Readd removed api's. Try with wfs v1 to see if api-preview passes. --- specification/maps/data-plane/readme.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/specification/maps/data-plane/readme.md b/specification/maps/data-plane/readme.md index ba47dae7b5fe..fb1f1ace071a 100644 --- a/specification/maps/data-plane/readme.md +++ b/specification/maps/data-plane/readme.md @@ -50,11 +50,21 @@ input-file: - Microsoft.Maps/Alias/preview/2.0/alias.json - Microsoft.Maps/Data/preview/2.0/data.json - Microsoft.Maps/Dataset/preview/2.0/dataset.json + - Microsoft.Maps/DEM/preview/1.0/elevation.json - Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json - Microsoft.Maps/FeatureState/preview/2.0/featurestate.json + - Microsoft.Maps/Geolocation/preview/1.0/geolocation.json + - Microsoft.Maps/Mobility/preview/1.0/mobility.json + - Microsoft.Maps/Render/preview/1.0/render.json - Microsoft.Maps/Render/preview/2.0/render.json + - Microsoft.Maps/Route/preview/1.0/route.json + - Microsoft.Maps/Search/preview/1.0/search.json + - Microsoft.Maps/Spatial/preview/1.0/spatial.json - Microsoft.Maps/Tileset/preview/2.0/tileset.json - - Microsoft.Maps/WFS/preview/2.0/wfs.json + - Microsoft.Maps/Timezone/preview/1.0/timezone.json + - Microsoft.Maps/Traffic/preview/1.0/traffic.json + - Microsoft.Maps/Weather/preview/1.0/weather.json + - Microsoft.Maps/WFS/preview/1.0/wfs.json ``` ### Tag: package-1.0-preview From e90a0044baa72b6492c39b5f2ef7d42aa3bc696f Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Fri, 7 May 2021 15:46:17 +0200 Subject: [PATCH 103/210] remove wfs2 --- specification/maps/data-plane/readme.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/specification/maps/data-plane/readme.md b/specification/maps/data-plane/readme.md index fb1f1ace071a..59bff7de0254 100644 --- a/specification/maps/data-plane/readme.md +++ b/specification/maps/data-plane/readme.md @@ -162,8 +162,7 @@ input-file: - $(this-folder)/Microsoft.Maps/Timezone/preview/1.0/timezone.json - $(this-folder)/Microsoft.Maps/Traffic/preview/1.0/traffic.json - $(this-folder)/Microsoft.Maps/Weather/preview/1.0/weather.json - - $(this-folder)/Microsoft.Maps/WFS/preview/1.0/wfs.json - - $(this-folder)/Microsoft.Maps/WFS/preview/2.0/wfs.json + - $(this-folder)/Microsoft.Maps/WFS/preview/1.0/wfs.json ``` From dc316c526db019755e163aa0c8a6cf03553f6059 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Mon, 10 May 2021 10:01:10 +0200 Subject: [PATCH 104/210] Re-add wfs --- .../2.0/examples/GetCollectionDefinition.json | 37 +++++++++++++++++++ .../WFS/preview/2.0/examples/GetItem.json | 5 +++ .../WFS/preview/2.0/examples/GetItems.json | 5 +++ specification/maps/data-plane/readme.md | 5 ++- 4 files changed, 50 insertions(+), 2 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollectionDefinition.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollectionDefinition.json index 168c9d9e063e..74d7b6a02c4a 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollectionDefinition.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollectionDefinition.json @@ -38,11 +38,48 @@ "required": false, "type": "boolean" }, + { + "name": "navigableBy", + "required": false, + "type": { + "array": { + "enum": [ + "pedestrian", + "wheelchair", + "machine", + "bicycle", + "automobile", + "hiredAuto", + "bus", + "railcar", + "emergency", + "ferry", + "boat" + ] + } + } + }, { "name": "isRoutable", "required": false, "type": "boolean" }, + { + "name": "routeThroughBehavior", + "required": false, + "type": { + "enum": [ + "disallowed", + "allowed", + "preferred" + ] + } + }, + { + "name": "nonPublic", + "required": false, + "type": "boolean" + }, { "name": "levelId", "required": true, diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetItem.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetItem.json index 92cf9043a1bf..d01b2229ec86 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetItem.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetItem.json @@ -52,7 +52,12 @@ "originalId": "ddbbb583-4621-4e11-8859-299d1057e843", "categoryId": "CTG10", "isOpenArea": false, + "navigableBy": [ + "pedestrian" + ], "isRoutable": false, + "routeThroughBehavior": "allowed", + "nonPublic": false, "levelId": "LVL18", "occupants": [], "addressId": "DIR16", diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetItems.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetItems.json index ff4e1d0029b7..867aa5709635 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetItems.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetItems.json @@ -55,7 +55,12 @@ "originalId": "ddbbb583-4621-4e11-8859-299d1057e843", "categoryId": "CTG10", "isOpenArea": false, + "navigableBy": [ + "pedestrian" + ], "isRoutable": false, + "routeThroughBehavior": "allowed", + "nonPublic": false, "levelId": "LVL18", "occupants": [], "addressId": "DIR16", diff --git a/specification/maps/data-plane/readme.md b/specification/maps/data-plane/readme.md index 59bff7de0254..22bc6a2a009d 100644 --- a/specification/maps/data-plane/readme.md +++ b/specification/maps/data-plane/readme.md @@ -64,7 +64,7 @@ input-file: - Microsoft.Maps/Timezone/preview/1.0/timezone.json - Microsoft.Maps/Traffic/preview/1.0/traffic.json - Microsoft.Maps/Weather/preview/1.0/weather.json - - Microsoft.Maps/WFS/preview/1.0/wfs.json + - Microsoft.Maps/WFS/preview/2.0/wfs.json ``` ### Tag: package-1.0-preview @@ -162,7 +162,8 @@ input-file: - $(this-folder)/Microsoft.Maps/Timezone/preview/1.0/timezone.json - $(this-folder)/Microsoft.Maps/Traffic/preview/1.0/traffic.json - $(this-folder)/Microsoft.Maps/Weather/preview/1.0/weather.json - - $(this-folder)/Microsoft.Maps/WFS/preview/1.0/wfs.json + - $(this-folder)/Microsoft.Maps/WFS/preview/1.0/wfs.json + - $(this-folder)/Microsoft.Maps/WFS/preview/2.0/wfs.json ``` From d5e2b931d414621c978520898b4f9c3c96138a1c Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Mon, 10 May 2021 10:40:35 +0200 Subject: [PATCH 105/210] update the readme.go to see if it generates install instructions. --- specification/maps/data-plane/readme.go.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/specification/maps/data-plane/readme.go.md b/specification/maps/data-plane/readme.go.md index c11d5fbc9aa5..4bde7ed34e0d 100644 --- a/specification/maps/data-plane/readme.go.md +++ b/specification/maps/data-plane/readme.go.md @@ -13,6 +13,7 @@ go: ``` yaml $(go) && $(multiapi) batch: + - tag: package-1.0-preview - tag: package-preview-2.0 ``` @@ -22,5 +23,14 @@ These settings apply only when `--tag=package-preview-2.0 --go` is specified on Please also specify `--go-sdk-folder=`. ``` yaml $(tag) == 'package-preview-2.0' && $(go) +output-folder: $(go-sdk-folder)/services/preview/maps/2.0/$(namespace) +``` + +### Tag: package-1.0-preview and go + +These settings apply only when `--tag=package-1.0-preview --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'package-1.0-preview' && $(go) output-folder: $(go-sdk-folder)/services/preview/maps/1.0/$(namespace) ``` \ No newline at end of file From dca86fc545d1eb5c3a2498bd3adb148df5bc2a5f Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Mon, 10 May 2021 10:44:08 +0200 Subject: [PATCH 106/210] add after scripts to bundle install --- specification/maps/data-plane/readme.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/specification/maps/data-plane/readme.md b/specification/maps/data-plane/readme.md index 22bc6a2a009d..76332f4aee2b 100644 --- a/specification/maps/data-plane/readme.md +++ b/specification/maps/data-plane/readme.md @@ -106,6 +106,8 @@ swagger-to-sdk: - repo: azure-sdk-for-js - repo: azure-sdk-for-net - repo: azure-sdk-for-go + after_scripts: + - bundle install ``` ## Python From b18129166b60d1c00d3ea5c1ae7d78c54ee848d0 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Mon, 10 May 2021 20:40:11 +0200 Subject: [PATCH 107/210] Remove defaults from route to test if it fixes go sdk problems. --- .../Route/preview/1.0/route.json | 40 ++++--------------- 1 file changed, 7 insertions(+), 33 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json index ff47a76df64a..1d20cdeca84e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json @@ -151,7 +151,6 @@ "description": "The type of route requested.", "required": false, "type": "string", - "default": "fastest", "enum": [ "fastest", "shortest", @@ -188,7 +187,6 @@ "description": "Level of turns for thrilling route. This parameter can only be used in conjunction with `routeType`=thrilling.", "required": false, "type": "string", - "default": "normal", "enum": [ "low", "normal", @@ -220,7 +218,6 @@ "description": "Degree of hilliness for thrilling route. This parameter can only be used in conjunction with `routeType`=thrilling.", "required": false, "type": "string", - "default": "normal", "enum": [ "low", "normal", @@ -252,7 +249,6 @@ "description": "The mode of travel for the requested route. If not defined, default is 'car'. Note that the requested travelMode may not be available for the entire route. Where the requested travelMode is not available for a particular section, the travelMode element of the response for that section will be \"other\". Note that travel modes bus, motorcycle, taxi and van are BETA functionality. Full restriction data is not available in all areas. In **calculateReachableRange** requests, the values bicycle and pedestrian must not be used.", "required": false, "type": "string", - "default": "car", "enum": [ "car", "truck", @@ -368,7 +364,6 @@ "combustion", "electric" ], - "default": "combustion", "x-ms-enum": { "name": "VehicleEngineType", "modelAsString": true, @@ -495,7 +490,6 @@ "description": "Weight of the vehicle in kilograms.", "required": false, "type": "integer", - "default": 0, "x-ms-parameter-location": "method" }, "VehicleWeight": { @@ -504,7 +498,6 @@ "description": "Weight of the vehicle in kilograms.\n\n* It is mandatory if any of the *Efficiency parameters are set.\n\n* It must be strictly positive when used in the context of the Consumption Model. Weight restrictions are considered.\n\n* If no detailed **Consumption Model** is specified and the value of **vehicleWeight** is non-zero, then weight restrictions are considered.\n\n* In all other cases, this parameter is ignored.\n\nSensible Values : for **Combustion Model** : 1600, for **Electric Model** : 1900", "required": false, "type": "integer", - "default": 0, "x-ms-parameter-location": "method" }, "VehicleMaxSpeed": { @@ -513,7 +506,6 @@ "description": "Maximum speed of the vehicle in km/hour. The max speed in the vehicle profile is used to check whether a vehicle is allowed on motorways. \n\n* A value of 0 means that an appropriate value for the vehicle will be determined and applied during route planning.\n\n* A non-zero value may be overridden during route planning. For example, the current traffic flow is 60 km/hour. If the vehicle maximum speed is set to 50 km/hour, the routing engine will consider 60 km/hour as this is the current situation. If the maximum speed of the vehicle is provided as 80 km/hour but the current traffic flow is 60 km/hour, then routing engine will again use 60 km/hour.", "required": false, "type": "integer", - "default": 0, "x-ms-parameter-location": "method" }, "VehicleLength": { @@ -523,7 +515,6 @@ "required": false, "type": "number", "format": "float", - "default": 0, "x-ms-parameter-location": "method" }, "VehicleHeight": { @@ -533,7 +524,6 @@ "required": false, "type": "number", "format": "float", - "default": 0, "x-ms-parameter-location": "method" }, "VehicleWidth": { @@ -543,7 +533,6 @@ "required": false, "type": "number", "format": "float", - "default": 0, "x-ms-parameter-location": "method" }, "VehicleAxleWeight": { @@ -552,7 +541,6 @@ "description": "Weight per axle of the vehicle in kg. A value of 0 means that weight restrictions per axle are not considered.", "required": false, "type": "integer", - "default": 0, "x-ms-parameter-location": "method" }, "VehicleCommercial": { @@ -561,7 +549,6 @@ "description": "Vehicle is used for commercial purposes and thus may not be allowed to drive on some roads.", "required": false, "type": "boolean", - "default": false, "x-ms-parameter-location": "method" }, "DepartAt": { @@ -588,7 +575,6 @@ "description": "Specifies which of the section types is reported in the route response.

For example if sectionType = pedestrian the sections which are suited for pedestrians only are returned. Multiple types can be used. The default sectionType refers to the travelMode input. By default travelMode is set to car", "required": false, "type": "string", - "default": "travelMode", "enum": [ "carTrain", "country", @@ -655,7 +641,6 @@ "description": "Re-order the route waypoints using a fast heuristic algorithm to reduce the route length. Yields best results when used in conjunction with routeType _shortest_. Notice that origin and destination are excluded from the optimized waypoint indices. To include origin and destination in the response, please increase all the indices by 1 to account for the origin, and then add the destination as the final index. Possible values are true or false. True computes a better order if possible, but is not allowed to be used in conjunction with maxAlternatives value greater than 0 or in conjunction with circle waypoints. False will use the locations in the given order and not allowed to be used in conjunction with routeRepresentation _none_.", "required": false, "type": "boolean", - "default": false, "x-ms-parameter-location": "method" }, "RouteRepresentation": { @@ -664,7 +649,6 @@ "description": "Specifies the representation of the set of routes provided as response. This parameter value can only be used in conjunction with computeBestOrder=true.", "required": false, "type": "string", - "default": "polyline", "enum": [ "polyline", "summaryOnly", @@ -696,7 +680,6 @@ "description": "Specifies whether to return additional travel times using different types of traffic information (none, historic, live) as well as the default best-estimate travel time.", "required": false, "type": "string", - "default": "none", "enum": [ "none", "all" @@ -741,7 +724,6 @@ "description": "Possible values: \n * true - Do consider all available traffic information during routing\n * false - Ignore current traffic data during routing. Note that although the current traffic data is ignored \n during routing, the effect of historic traffic on effective road speeds is still incorporated.", "required": false, "type": "boolean", - "default": true, "x-ms-parameter-location": "method" }, "AlternativeRouteType": { @@ -750,7 +732,6 @@ "description": "Controls the optimality, with respect to the given planning criteria, of the calculated alternatives compared to the reference route.", "required": false, "type": "string", - "default": "anyRoute", "enum": [ "anyRoute", "betterRoute" @@ -836,8 +817,7 @@ "in": "query", "description": "Boolean to indicate whether to execute the request synchronously. If set to true, user will get a 200 response if the request is finished under 120 seconds. Otherwise, user will get a 202 response right away. Please refer to the API description for more details on 202 response. **Supported only for async request**.", "required": false, - "type": "boolean", - "default": false + "type": "boolean" }, { "$ref": "#/parameters/ComputeTravelTimeFor" @@ -968,8 +948,7 @@ "required": false, "type": "integer", "minimum": 0, - "maximum": 5, - "default": 0 + "maximum": 5 }, { "$ref": "#/parameters/AlternativeRouteType" @@ -979,8 +958,7 @@ "in": "query", "description": "All alternative routes returned will follow the reference route (see section POST Requests) from the origin point of the calculateRoute request for at least this number of meters. Can only be used when reconstructing a route. The minDeviationDistance parameter cannot be used in conjunction with arriveAt", "required": false, - "type": "integer", - "default": 0 + "type": "integer" }, { "$ref": "#/parameters/ArriveAt" @@ -993,8 +971,7 @@ "in": "query", "description": "All alternative routes returned will follow the reference route (see section POST Requests) from the origin point of the calculateRoute request for at least this number of seconds. Can only be used when reconstructing a route. The minDeviationTime parameter cannot be used in conjunction with arriveAt. Default value is 0. Setting )minDeviationTime_ to a value greater than zero has the following consequences:\n - The origin point of the _calculateRoute_ Request must be on\n (or very near) the input reference route.\n - If this is not the case, an error is returned.\n - However, the origin point does not need to be at the beginning\n of the input reference route (it can be thought of as the current\n vehicle position on the reference route).\n - The reference route, returned as the first route in the _calculateRoute_\n Response, will start at the origin point specified in the _calculateRoute_\n Request. The initial part of the input reference route up until the origin\n point will be excluded from the Response.\n - The values of _minDeviationDistance_ and _minDeviationTime_ determine\n how far alternative routes will be guaranteed to follow the reference\n route from the origin point onwards.\n - The route must use _departAt_.\n - The _vehicleHeading_ is ignored.", "required": false, - "type": "integer", - "default": 0 + "type": "integer" }, { "$ref": "#/parameters/RouteInstructionsType" @@ -1166,8 +1143,7 @@ "required": false, "type": "integer", "minimum": 0, - "maximum": 5, - "default": 0 + "maximum": 5 }, { "$ref": "#/parameters/AlternativeRouteType" @@ -1177,16 +1153,14 @@ "in": "query", "description": "All alternative routes returned will follow the reference route (see section POST Requests) from the origin point of the calculateRoute request for at least this number of meters. Can only be used when reconstructing a route. The minDeviationDistance parameter cannot be used in conjunction with arriveAt", "required": false, - "type": "integer", - "default": 0 + "type": "integer" }, { "name": "minDeviationTime", "in": "query", "description": "All alternative routes returned will follow the reference route (see section POST Requests) from the origin point of the calculateRoute request for at least this number of seconds. Can only be used when reconstructing a route. The minDeviationTime parameter cannot be used in conjunction with arriveAt. Default value is 0. Setting )minDeviationTime_ to a value greater than zero has the following consequences:\n - The origin point of the _calculateRoute_ Request must be on\n (or very near) the input reference route.\n - If this is not the case, an error is returned.\n - However, the origin point does not need to be at the beginning\n of the input reference route (it can be thought of as the current\n vehicle position on the reference route).\n - The reference route, returned as the first route in the _calculateRoute_\n Response, will start at the origin point specified in the _calculateRoute_\n Request. The initial part of the input reference route up until the origin\n point will be excluded from the Response.\n - The values of _minDeviationDistance_ and _minDeviationTime_ determine\n how far alternative routes will be guaranteed to follow the reference\n route from the origin point onwards.\n - The route must use _departAt_.\n - The _vehicleHeading_ is ignored.", "required": false, - "type": "integer", - "default": 0 + "type": "integer" }, { "$ref": "#/parameters/RouteInstructionsType" From c5bae91ce39aafd374fae85c7d47190656076ac7 Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Mon, 10 May 2021 10:17:18 -0700 Subject: [PATCH 108/210] Remove "x-publish" just for api doc preview test --- .../Microsoft.Maps/Alias/preview/1.0/alias.json | 4 ---- .../Microsoft.Maps/Alias/preview/2.0/alias.json | 5 ----- .../Microsoft.Maps/Data/preview/1.0/data.json | 5 ----- .../Microsoft.Maps/Data/preview/2.0/data.json | 5 ----- .../Dataset/preview/1.0/dataset.json | 4 ---- .../Dataset/preview/2.0/dataset.json | 4 ---- .../DwgConversion/preview/1.0/dwgconversion.json | 3 --- .../DwgConversion/preview/2.0/dwgconversion.json | 4 ---- .../FeatureState/preview/1.0/featurestate.json | 8 -------- .../FeatureState/preview/2.0/featurestate.json | 8 -------- .../Geolocation/preview/1.0/geolocation.json | 1 - .../Mobility/preview/1.0/mobility.json | 8 -------- .../Microsoft.Maps/Render/preview/1.0/render.json | 10 ---------- .../Microsoft.Maps/Route/preview/1.0/route.json | 5 ----- .../Microsoft.Maps/Search/preview/1.0/search.json | 15 --------------- .../Spatial/preview/1.0/spatial.json | 9 --------- .../Tileset/preview/1.0/tileset.json | 3 --- .../Tileset/preview/2.0/tileset.json | 4 ---- .../Timezone/preview/1.0/timezone.json | 6 ------ .../Traffic/preview/1.0/traffic.json | 5 ----- .../Microsoft.Maps/WFS/preview/1.0/wfs.json | 8 -------- .../Microsoft.Maps/WFS/preview/2.0/wfs.json | 8 -------- 22 files changed, 132 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json index 362db71c70f6..1fa91066a504 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json @@ -70,7 +70,6 @@ "paths": { "/alias": { "post": { - "x-publish": true, "description": "**Alias - Create API**\n\n**Applies to**: see pricing [tiers](https://azure.microsoft.com/en-us/pricing/details/azure-maps/).\n
\n\nThis API allows the caller to create an alias.
\nYou can also assign the alias during the create request as well.\n\n\n### Submit Create Request\n\nTo create your alias, you will use a `POST` request. If you would like to assign the alias during the creation, you will pass the `resourceId` query parameter.
\n\n\n### Create Alias Response\n\nThe Create API returns a HTTP `201 Created` response the id of the alias, `aliasId`, in the body.\nThe response will look something like:\n\n```json\n{\n \"aliasId\" : \"d7e5efc8-2239-4387-a286-5bb51aa804e3\"\n}\n```\n\n
", "operationId": "Alias_CreatePreview", "x-ms-examples": { @@ -111,7 +110,6 @@ } }, "get": { - "x-publish": true, "description": "**Alias - List API**\n\n**Applies to**: see pricing [tiers](https://azure.microsoft.com/en-us/pricing/details/azure-maps/).\n
\n\nThis API allows the caller to fetch a list of all previously successfully created aliases.\n\n\n### Submit List Request\n\nTo list all your aliases, you will issue a `GET` request with no additional parameters.
\n\n\n### List Data Response\n\nThe List API returns the complete list of all aliases in `json` format. The response contains the following details for each alias resource:\n\n > createdTimestamp - The timestamp that the alias was created.\n > aliasId - The id for the alias.\n > resourceId - The id for the resource that this alias references (could be null if the alias has not been assigned).\n > lastUpdatedTimestamp - The last time the alias was assigned to a resource.\n\n\nHere's a sample response returning 2 alias resources: \n\n
\n\n```json\n{\n \"aliases\": [\n {\n \"createdTimestamp\": \"2020-02-13T21:19:11+00:00\",\n \"aliasId\": \"a8a4b8bb-ecf4-fb27-a618-f41721552766\",\n \"resourceId\": \"e89aebb9-70a3-8fe1-32bb-1fbd0c725f14\",\n \"lastUpdatedTimestamp\": \"2020-02-13T21:19:22+00:00\"\n },\n {\n \"createdTimestamp\": \"2020-02-18T19:53:33+00:00\",\n \"aliasId\": \"1856dbfc-7a66-ee5a-bf8d-51dbfe1906f6\",\n \"resourceId\": null,\n \"lastUpdatedTimestamp\": \"2020-02-18T19:53:33+00:00\"\n }\n ]\n}\n```\n\n
", "operationId": "Alias_ListPreview", "x-ms-examples": { @@ -154,7 +152,6 @@ }, "/alias/assign/{aliasId}": { "patch": { - "x-publish": true, "description": "**Alias - Assign API**\n\n**Applies to**: see pricing [tiers](https://azure.microsoft.com/en-us/pricing/details/azure-maps/).\n
\n\nThis API allows the caller to assign an alias to reference a resource.
\n\n\n### Submit Assign Request\n\nTo assign your alias to a resource, you will use a `PATCH` request with the `aliasId` in the path and the `resourceId` passed as a query parameter.
\n\n\n### Create Alias Response\n\nThe Assign API returns a HTTP `204 No Content` response with an empty body, if the alias was assigned successfully.
", "operationId": "Alias_AssignPreview", "x-ms-examples": { @@ -200,7 +197,6 @@ }, "/alias/{aliasId}": { "delete": { - "x-publish": true, "description": "**Alias - Delete API**\n\n**Applies to**: see pricing [tiers](https://azure.microsoft.com/en-us/pricing/details/azure-maps/).\n
\n\nThis API allows the caller to delete a previously created alias.
\nYou can also use this API to delete old/unused aliases to create space for new content.\nThis API does not delete the references resource, only the alias referencing the resource.\n\n\n### Submit Delete Request\n\nTo delete your alias you will issue a `DELETE` request where the path will contain the `aliasId` of the alias to delete.
\n\n\n### Delete Alias Response\n\nThe Delete API returns a HTTP `204 No Content` response with an empty body, if the alias was deleted successfully.
\nA HTTP `400 Bad Request` error response will be returned if the alias with the passed-in `aliasId` is not found. ", "operationId": "Alias_DeletePreview", "x-ms-examples": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json index 4525090a887d..72db30e11450 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json @@ -105,7 +105,6 @@ "paths": { "/aliases": { "post": { - "x-publish": true, "description": "**Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. [This](https://docs.microsoft.com/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.\n\nThis API allows the caller to create an alias. You can also assign the alias during the create request. An alias can reference an ID generated by a creator service, but cannot reference another alias ID.\n\n### Submit Create Request\n\nTo create your alias, you will use a `POST` request. If you would like to assign the alias during the creation, you will pass the `resourceId` query parameter.\n\n### Create Alias Response\n\nThe Create API returns a HTTP `201 Created` response with the alias resource in the body.\n\nA sample response from creating an alias:\n\n```json\n{\n \"createdTimestamp\": \"2020-02-13T21:19:11.123Z\",\n \"aliasId\": \"a8a4b8bb-ecf4-fb27-a618-f41721552766\",\n \"creatorDataItemId\": \"e89aebb9-70a3-8fe1-32bb-1fbd0c725f14\",\n \"lastUpdatedTimestamp\": \"2020-02-13T21:19:22.123Z\"\n}\n```", "operationId": "Alias_Create", "x-ms-examples": { @@ -155,7 +154,6 @@ } }, "get": { - "x-publish": true, "description": "**Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. [This](https://docs.microsoft.com/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.\n\nThis API allows the caller to fetch a list of all previously successfully created aliases.\n\n### Submit List Request\n\nTo list all your aliases, you will issue a `GET` request with no additional parameters.\n\n### List Data Response\n\nThe List API returns the complete list of all aliases in `json` format. The response contains the following details for each alias resource:\n > createdTimestamp - The timestamp that the alias was created. Format yyyy-MM-ddTHH:mm:ss.sssZ\n > aliasId - The id for the alias.\n > creatorDataItemId - The id for the creator data item that this alias references (could be null if the alias has not been assigned).\n > lastUpdatedTimestamp - The last time the alias was assigned to a resource. Format yyyy-MM-ddTHH:mm:ss.sssZ\n\nA sample response returning 2 alias resources:\n\n```json\n{\n \"aliases\": [\n {\n \"createdTimestamp\": \"2020-02-13T21:19:11.123Z\",\n \"aliasId\": \"a8a4b8bb-ecf4-fb27-a618-f41721552766\",\n \"creatorDataItemId\": \"e89aebb9-70a3-8fe1-32bb-1fbd0c725f14\",\n \"lastUpdatedTimestamp\": \"2020-02-13T21:19:22.123Z\"\n },\n {\n \"createdTimestamp\": \"2020-02-18T19:53:33.123Z\",\n \"aliasId\": \"1856dbfc-7a66-ee5a-bf8d-51dbfe1906f6\",\n \"creatorDataItemId\": null,\n \"lastUpdatedTimestamp\": \"2020-02-18T19:53:33.123Z\"\n }\n ]\n}\n```", "operationId": "Alias_List", "x-ms-examples": { @@ -198,7 +196,6 @@ }, "/aliases/{aliasId}": { "put": { - "x-publish": true, "description": "**Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. [This](https://docs.microsoft.com/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.\n\nThis API allows the caller to assign an alias to reference a resource.\n\n### Submit Assign Request\n\nTo assign your alias to a resource, you will use a `PUT` request with the `aliasId` in the path and the `creatorDataItemId` passed as a query parameter.\n\n### Assign Alias Response\n\nThe Assign API returns a HTTP `200 OK` response with the updated alias resource in the body, if the alias was assigned successfully. A sample of the assign response is\n\n```json\n{\n \"createdTimestamp\": \"2020-02-13T21:19:11.123Z\",\n \"aliasId\": \"a8a4b8bb-ecf4-fb27-a618-f41721552766\",\n \"creatorDataItemId\": \"e89aebb9-70a3-8fe1-32bb-1fbd0c725f14\",\n \"lastUpdatedTimestamp\": \"2020-02-13T21:19:22.123Z\"\n}\n```", "operationId": "Alias_Assign", "x-ms-examples": { @@ -245,7 +242,6 @@ } }, "delete": { - "x-publish": true, "description": "**Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. [This](https://docs.microsoft.com/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.\n\nThis API allows the caller to delete a previously created alias. You can also use this API to delete old/unused aliases to create space for new content.This API does not delete the references resource, only the alias referencing the resource.\n\n### Submit Delete Request\n\nTo delete your alias you will issue a `DELETE` request where the path will contain the `aliasId` of the alias to delete.\n\n### Delete Alias Response\n\nThe Delete API returns a HTTP `204 No Content` response with an empty body, if the alias was deleted successfully.", "operationId": "Alias_Delete", "x-ms-examples": { @@ -286,7 +282,6 @@ } }, "get": { - "x-publish": true, "description": "**Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. [This](https://docs.microsoft.com/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.\n\nThis API allows the caller to fetch the details of a previously created alias.\n\n### Submit Get Details Request\n\nTo get the details of your alias, you will issue a `GET` request with the `aliasId` in the path.\n\n### Get Details Response\n\nThe Get Details API returns the previously created alias in `json` format. The response contains the following details for the alias resource:\n > createdTimestamp - The timestamp that the alias was created.\n > aliasId - The id for the alias.\n > creatorDataItemId - The id for the creator data item that this alias references (could be null if the alias has not been assigned).\n > lastUpdatedTimestamp - The last time the alias was assigned to a resource.\n\nHere's a sample response:\n```json\n{\n \"createdTimestamp\": \"2020-02-13T21:19:11.123Z\",\n \"aliasId\": \"a8a4b8bb-ecf4-fb27-a618-f41721552766\",\n \"creatorDataItemId\": \"e89aebb9-70a3-8fe1-32bb-1fbd0c725f14\",\n \"lastUpdatedTimestamp\": \"2020-02-13T21:19:22.123Z\"\n}\n```", "operationId": "Alias_GetDetails", "x-ms-examples": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json index 91ba5cb61f2b..85aa3bebee4d 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json @@ -90,7 +90,6 @@ "paths": { "/mapData/upload": { "post": { - "x-publish": true, "description": "**Data Upload API**\n\n**Applies to:** S1 pricing tier.\n\nThe Data Upload API allows the caller to upload data content to the Azure Maps service.\nYou can use this API in a scenario like uploading a collection of Geofences in `GeoJSON` \nformat, for use in our [Azure Maps Geofencing Service](https://docs.microsoft.com/rest/api/maps/spatial).\n\n## Submit Upload Request\n\nTo upload your content you will use a `POST` request. The request body will contain the data to upload. The \n`dataFormat` query parameter will contain the format for the data, the `dataSharingLevel` query parameter \ncan contain the sharing level for the data. The `Content-Type` header will be set to the content type of the \ndata.\n\nFor example, to upload a collection of geofences in `GeoJSON` format, set the request body to the geofence \ncontent. Set the `dataFormat` query parameter to _geojson_, and set the `Content-Type` header to either one \nof the following media types:\n\n- `application/json`\n- `application/vnd.geo+json`\n- `application/octet-stream`\n\nHere's a sample request body for uploading a simple Geofence represented as a circle geometry using a center \npoint and a radius. The sample below is in `GeoJSON`:\n\n```json\n{\n \"type\": \"FeatureCollection\",\n \"features\": [{\n \"type\": \"Feature\",\n \"geometry\": {\n \"type\": \"Point\",\n \"coordinates\": [-122.126986, 47.639754]\n },\n \"properties\": {\n \"geometryId\": \"001\",\n \"radius\": 500\n }\n }]\n}\n```\n\nThe Data Upload API performs a \n[long-running request](https://docs.microsoft.com/azure/azure-maps/private-atlas-long-running-operation).\n\n## Data Upload Limits\n\nPlease, be aware that currently every Azure Maps account has a [data storage limit](https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/azure-subscription-service-limits#azure-maps-limits). \nOnce the storage limit is reached, all the new upload API calls will return a `409 Conflict` http error response. \nYou can always use the [Data Delete API](https://docs.microsoft.com/rest/api/maps/data/deletepreview) to \ndelete old/unused content and create space for new uploads.", "operationId": "Data_UploadPreview", "x-ms-long-running-operation": true, @@ -159,7 +158,6 @@ }, "/mapData/{udid}": { "put": { - "x-publish": true, "description": "**Data Update API**\n\n**Applies to:** S1 pricing tier.\n\nThe Data Update API allows the caller to update a previously uploaded data content.\n\nYou can use this API in a scenario like adding or removing geofences to or from an existing collection of geofences. \nGeofences are uploaded using the [Data Upload API](https://docs.microsoft.com/rest/api/maps/data/uploadpreview), for \nuse in the [Azure Maps Geofencing Service](https://docs.microsoft.com/rest/api/maps/spatial).\n\nPlease note that the Update API will *replace* and *override* the existing data content.\n\n## Submit Update Request\n\nTo update your content you will use a `PUT` request. The request body will contain the new data that will replace \nthe existing data. The `Content-Type` header will be set to the content type of the data, and the path will contain \nthe `udid` of the data to be update.\n\nFor example, to update a collection of geofences that were previously uploaded using the Upload API, place the new \ngeofence content in the request body. Set the `udid` parameter in the path to the `udid` of the data received \npreviously in the upload API response. And set the `Content-Type` header to one of the following media types:\n\n- `application/json`\n- `application/vnd.geo+json`\n- `application/octet-stream`\n\nHere's a sample request body for updating a simple Geofence. It's represented as a circle geometry using a center \npoint and a radius. The sample below is in `GeoJSON`:\n\n```json\n{\n \"type\": \"FeatureCollection\",\n \"features\": [{\n \"type\": \"Feature\",\n \"geometry\": {\n \"type\": \"Point\",\n \"coordinates\": [-122.126986, 47.639754]\n },\n \"properties\": {\n \"geometryId\": \"001\",\n \"radius\": 500\n }\n }]\n}\n```\n\nThe previously uploaded geofence had a radius of 100m. The above request will update it to 500m.\n\nThe Data Update API performs a \n[long-running request](https://docs.microsoft.com/azure/azure-maps/private-atlas-long-running-operation).\n\n## Data Update Limits\n\nPlease, be aware that currently every Azure Maps account has a [data storage limit](https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/azure-subscription-service-limits#azure-maps-limits). \nOnce the storage limit is reached, all the new upload API calls will return a `409 Conflict` http error response. \nYou can always use the [Data Delete API](https://docs.microsoft.com/rest/api/maps/data/deletepreview) to \ndelete old/unused content and create space for new uploads.", "operationId": "Data_UpdatePreview", "x-ms-long-running-operation": true, @@ -226,7 +224,6 @@ } }, "get": { - "x-publish": true, "description": "**Data Download API**\n\n**Applies to:** S1 pricing tier.\n
\n\nThis API allows the caller to download a previously uploaded data content.
\nYou can use this API in a scenario like downloading an existing collection of geofences uploaded previously using the [Data Upload API](https://docs.microsoft.com/en-us/rest/api/maps/data/uploadpreview) for use in our [Azure Maps Geofencing Service](https://docs.microsoft.com/en-us/rest/api/maps/spatial). \n\n\n### Submit Download Request\n\nTo download your content you will use a `GET` request where the path will contain the `udid` of the data to download. Optionally, you can also pass in an `Accept` header to specify a preference for the `Content-Type` of the data response.
\nFor example, to download a collection of geofences previously uploaded using the Upload API, set the `udid` parameter in the path to the `udid` of the data received previously in the upload API response and set the `Accept` header to either one of the following media types: \n \n - `application/json`\n - `application/vnd.geo+json`\n - `application/octet-stream`\n\n\n### Download Data Response\n\nThe Download API will return a HTTP `200 OK` response if the data resource with the passed-in `udid` is found, where the response body will contain the content of the data resource.
\nA HTTP `400 Bad Request` error response will be returned if the data resource with the passed-in `udid` is not found.
\n\nHere's a sample response body for a simple geofence represented in `GeoJSON` uploaded previously using the Upload API:\n
\n\n```json\n{\n \"type\": \"FeatureCollection\",\n \"features\": [{\n \"type\": \"Feature\",\n \"geometry\": {\n \"type\": \"Point\",\n \"coordinates\": [-122.126986, 47.639754]\n },\n \"properties\": {\n \"geometryId\": \"001\",\n \"radius\": 500\n }\n }]\n}\n```", "operationId": "Data_DownloadPreview", "x-ms-examples": { @@ -276,7 +273,6 @@ } }, "delete": { - "x-publish": true, "description": "**Data Delete API**\n\n**Applies to:** S1 pricing tier.\n
\n\nThis API allows the caller to delete a previously uploaded data content.
\nYou can use this API in a scenario like removing geofences previously uploaded using the [Data Upload API](https://docs.microsoft.com/en-us/rest/api/maps/data/uploadpreview) for use in our [Azure Maps Geofencing Service](https://docs.microsoft.com/en-us/rest/api/maps/spatial). You can also use this API to delete old/unused uploaded content and create space for new content.\n\n\n### Submit Delete Request\n\nTo delete your content you will issue a `DELETE` request where the path will contain the `udid` of the data to delete.
\nFor example, to delete a collection of geofences previously uploaded using the Upload API, set the `udid` parameter in the path to the `udid` of the data received previously in the upload API response. \n\n\n### Delete Data Response\n\nThe Data Delete API returns a HTTP `204 No Content` response with an empty body, if the data resource was deleted successfully.
\nA HTTP `400 Bad Request` error response will be returned if the data resource with the passed-in `udid` is not found. ", "operationId": "Data_DeletePreview", "x-ms-examples": { @@ -322,7 +318,6 @@ }, "/mapData": { "get": { - "x-publish": true, "description": "**Data List API**\n\n**Applies to:** S1 pricing tier.\n
\n\nThis API allows the caller to fetch a list of all content uploaded previously using the [Data Upload API](https://docs.microsoft.com/en-us/rest/api/maps/data/uploadpreview). \n\n\n### Submit List Request\n\nTo list all your map data content you will issue a `GET` request with no additional parameters.\n\n\n### List Data Response\n\nThe Data List API returns the complete list of all data in `json` format. The response contains the following details for each data resource:\n\n > udid - The unique data id for the data resource.\n\n > location - The location of the data resource. Execute a HTTP `GET` on this location to download the data.\n\n\nHere's a sample response returning the `udid` and `location` of 3 data resources: \n\n
\n\n```json\n{\n \"mapDataList\": \n [\n {\n \"udid\": \"9a1288fa-1858-4a3b-b68d-13a8j5af7d7c\",\n \"location\": \"https://atlas.microsoft.com/mapData/9a1288fa-1858-4a3b-b68d-13a8j5af7d7c?api-version=1.0\",\n \"sizeInBytes\": 29920,\n \"uploadStatus\": \"Completed\"\n },\n {\n \"udid\": \"8b1288fa-1958-4a2b-b68e-13a7i5af7d7c\",\n \"location\": \"https://atlas.microsoft.com/mapData/8b1288fa-1958-4a2b-b68e-13a7i5af7d7c?api-version=1.0\",\n \"sizeInBytes\": 1339,\n \"uploadStatus\": \"Completed\"\n },\n {\n \"udid\": \"7c1288fa-2058-4a1b-b68f-13a6h5af7d7c\",\n \"location\": \"https://atlas.microsoft.com/mapData/7c1288fa-2058-4a1b-b68f-13a6h5af7d7c?api-version=1.0\",\n \"sizeInBytes\": 1650,\n \"uploadStatus\": \"Pending\"\n }]\n}\n```\n\n
", "operationId": "Data_ListPreview", "x-ms-examples": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json index ad3da6c8f588..5d07084cbe8e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json @@ -138,7 +138,6 @@ "paths": { "/mapData": { "post": { - "x-publish": true, "description": "**Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).\n\nThe Data Upload API allows the caller to upload data content to the Azure Maps service.\nYou can use this API in a scenario like uploading a collection of Geofences in `GeoJSON` \nformat, for use in our [Azure Maps Geofencing Service](https://docs.microsoft.com/rest/api/maps/spatial).\n\n## Submit Upload Request\n\nTo upload your content you will use a `POST` request. The request body will contain the data to upload. The \n`dataFormat` query parameter will contain the format for the data, the `dataSharingLevel` query parameter \ncan contain the sharing level for the data. The `Content-Type` header will be set to the content type of the \ndata.\n\nFor example, to upload a collection of geofences in `GeoJSON` format, set the request body to the geofence \ncontent. Set the `dataFormat` query parameter to _geojson_, and set the `Content-Type` header to either one \nof the following media types:\n\n- `application/json`\n- `application/vnd.geo+json`\n- `application/octet-stream`\n\nHere's a sample request body for uploading a simple Geofence represented as a circle geometry using a center \npoint and a radius. The sample below is in `GeoJSON`:\n\n```json\n{\n \"type\": \"FeatureCollection\",\n \"features\": [{\n \"type\": \"Feature\",\n \"geometry\": {\n \"type\": \"Point\",\n \"coordinates\": [-122.126986, 47.639754]\n },\n \"properties\": {\n \"geometryId\": \"001\",\n \"radius\": 500\n }\n }]\n}\n```\n\nThe Data Upload API performs a \n[long-running request](https://aka.ms/am-creator-lrt-v2).\n\n## Data Upload Limits\n\nPlease, be aware that currently every Azure Maps account has a [data storage limit](https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/azure-subscription-service-limits#azure-maps-limits). \nOnce the storage limit is reached, all the new upload API calls will return a `409 Conflict` http error response. \nYou can always use the [Data Delete API](https://docs.microsoft.com/rest/api/maps/data%20v2/deletepreview) to \ndelete old/unused content and create space for new uploads.", "operationId": "Data_UploadPreview", "x-ms-long-running-operation": true, @@ -209,7 +208,6 @@ } }, "get": { - "x-publish": true, "description": "**Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).\n\nThis API allows the caller to fetch a list of all content uploaded previously using the [Data Upload API](https://docs.microsoft.com/en-us/rest/api/maps/data%20v2/uploadpreview). \n\n\n### Submit List Request\n\nTo list all your map data content you will issue a `GET` request with no additional parameters.\n\n\n### List Data Response\n\nThe Data List API returns the complete list of all data in `json` format. The response contains the following details for each data resource:\n\n > udid - The unique data id for the data resource.\n\n > location - The location of the data resource. Execute a HTTP `GET` on this location to download the data.\n\n\nHere's a sample response returning the `udid` and `location` of 3 data resources: \n\n
\n\n```json\n{\n \"mapDataList\": \n [\n {\n \"udid\": \"9a1288fa-1858-4a3b-b68d-13a8j5af7d7c\",\n \"location\": \"https://us.atlas.microsoft.com/mapData/9a1288fa-1858-4a3b-b68d-13a8j5af7d7c?api-version=1.0\",\n \"sizeInBytes\": 29920,\n \"uploadStatus\": \"Completed\"\n },\n {\n \"udid\": \"8b1288fa-1958-4a2b-b68e-13a7i5af7d7c\",\n \"location\": \"https://us.atlas.microsoft.com/mapData/8b1288fa-1958-4a2b-b68e-13a7i5af7d7c?api-version=1.0\",\n \"sizeInBytes\": 1339,\n \"uploadStatus\": \"Completed\"\n },\n {\n \"udid\": \"7c1288fa-2058-4a1b-b68f-13a6h5af7d7c\",\n \"location\": \"https://us.atlas.microsoft.com/mapData/7c1288fa-2058-4a1b-b68f-13a6h5af7d7c?api-version=1.0\",\n \"sizeInBytes\": 1650,\n \"uploadStatus\": \"Pending\"\n }]\n}\n```\n\n
", "operationId": "Data_ListPreview", "x-ms-examples": { @@ -255,7 +253,6 @@ }, "/mapData/{udid}": { "put": { - "x-publish": true, "description": "**Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).\n\nThe Data Update API allows the caller to update a previously uploaded data content.\n\nYou can use this API in a scenario like adding or removing geofences to or from an existing collection of geofences. \nGeofences are uploaded using the [Data Upload API](https://docs.microsoft.com/rest/api/maps/data%20v2/uploadpreview), for \nuse in the [Azure Maps Geofencing Service](https://docs.microsoft.com/rest/api/maps/spatial).\n\nPlease note that the Update API will *replace* and *override* the existing data content.\n\n## Submit Update Request\n\nTo update your content you will use a `PUT` request. The request body will contain the new data that will replace \nthe existing data. The `Content-Type` header will be set to the content type of the data, and the path will contain \nthe `udid` of the data to be update.\n\nFor example, to update a collection of geofences that were previously uploaded using the Upload API, place the new \ngeofence content in the request body. Set the `udid` parameter in the path to the `udid` of the data received \npreviously in the upload API response. And set the `Content-Type` header to one of the following media types:\n\n- `application/json`\n- `application/vnd.geo+json`\n- `application/octet-stream`\n\nHere's a sample request body for updating a simple Geofence. It's represented as a circle geometry using a center \npoint and a radius. The sample below is in `GeoJSON`:\n\n```json\n{\n \"type\": \"FeatureCollection\",\n \"features\": [{\n \"type\": \"Feature\",\n \"geometry\": {\n \"type\": \"Point\",\n \"coordinates\": [-122.126986, 47.639754]\n },\n \"properties\": {\n \"geometryId\": \"001\",\n \"radius\": 500\n }\n }]\n}\n```\n\nThe previously uploaded geofence had a radius of 100m. The above request will update it to 500m.\n\nThe Data Update API performs a \n[long-running request](https://aka.ms/am-creator-lrt-v2).\n\n## Data Update Limits\n\nPlease, be aware that currently every Azure Maps account has a [data storage limit](https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/azure-subscription-service-limits#azure-maps-limits). \nOnce the storage limit is reached, all the new upload API calls will return a `409 Conflict` http error response. \nYou can always use the [Data Delete API](https://docs.microsoft.com/rest/api/maps/data%20v2/deletepreview) to \ndelete old/unused content and create space for new uploads.", "operationId": "Data_UpdatePreview", "x-ms-long-running-operation": true, @@ -326,7 +323,6 @@ } }, "get": { - "x-publish": true, "description": "**Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).\n\nThis API allows the caller to download a previously uploaded data content.
\nYou can use this API in a scenario like downloading an existing collection of geofences uploaded previously using the [Data Upload API](https://docs.microsoft.com/en-us/rest/api/maps/data%20v2/uploadpreview) for use in our [Azure Maps Geofencing Service](https://docs.microsoft.com/en-us/rest/api/maps/spatial). \n\n\n### Submit Download Request\n\nTo download your content you will use a `GET` request where the path will contain the `udid` of the data to download. Optionally, you can also pass in an `Accept` header to specify a preference for the `Content-Type` of the data response.
\nFor example, to download a collection of geofences previously uploaded using the Upload API, set the `udid` parameter in the path to the `udid` of the data received previously in the upload API response and set the `Accept` header to either one of the following media types: \n \n - `application/json`\n - `application/vnd.geo+json`\n - `application/octet-stream`\n\n\n### Download Data Response\n\nThe Download API will return a HTTP `200 OK` response if the data resource with the passed-in `udid` is found, where the response body will contain the content of the data resource.
\nA HTTP `400 Bad Request` error response will be returned if the data resource with the passed-in `udid` is not found.
\n\nHere's a sample response body for a simple geofence represented in `GeoJSON` uploaded previously using the Upload API:\n
\n\n```json\n{\n \"type\": \"FeatureCollection\",\n \"features\": [{\n \"type\": \"Feature\",\n \"geometry\": {\n \"type\": \"Point\",\n \"coordinates\": [-122.126986, 47.639754]\n },\n \"properties\": {\n \"geometryId\": \"001\",\n \"radius\": 500\n }\n }]\n}\n```", "operationId": "Data_DownloadPreview", "x-ms-examples": { @@ -376,7 +372,6 @@ } }, "delete": { - "x-publish": true, "description": "**Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).\n\nThis API allows the caller to delete a previously uploaded data content.
\nYou can use this API in a scenario like removing geofences previously uploaded using the [Data Upload API](https://docs.microsoft.com/en-us/rest/api/maps/data%20v2/uploadpreview) for use in our [Azure Maps Geofencing Service](https://docs.microsoft.com/en-us/rest/api/maps/spatial). You can also use this API to delete old/unused uploaded content and create space for new content.\n\n\n### Submit Delete Request\n\nTo delete your content you will issue a `DELETE` request where the path will contain the `udid` of the data to delete.
\nFor example, to delete a collection of geofences previously uploaded using the Upload API, set the `udid` parameter in the path to the `udid` of the data received previously in the upload API response. \n\n\n### Delete Data Response\n\nThe Data Delete API returns a HTTP `204 No Content` response with an empty body, if the data resource was deleted successfully.
\nA HTTP `400 Bad Request` error response will be returned if the data resource with the passed-in `udid` is not found. ", "operationId": "Data_DeletePreview", "x-ms-examples": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json index a509136be103..c50dd1194b6f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json @@ -152,7 +152,6 @@ "paths": { "/dataset/create": { "post": { - "x-publish": true, "description": "**Dataset Create API**\n\n**Applies to**: see pricing [tiers](https://azure.microsoft.com/en-us/pricing/details/azure-maps/).\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API \nand SDK. The Dataset APIs are part of Creator. This API allows the caller to create a dataset from data that \nwas uploaded to the Azure Maps Data Service.\n\nYou can use this API in a scenario like uploading a DWG zip package for a building, converting the zip package using \nthe Azure Maps Conversion Service, creating a dataset from the converted zip package. The created dataset can be \nused to create tilesets using the Azure Maps Tileset Service and can be queried via the Azure Maps WFS Service.\n\n## Submit Create Request\n\nTo create your dataset, you will use a `POST` request where the `conversionId` query parameter is an id that represents \nthe converted DWG zip package, the `type` parameter will describe the data type to use for the dataset, the `datasetId`\nparameter will describe if the provided data should be appended to a current dataset and, optionally, the \n`description` query parameter will contain a description (if description is not provided a default description will be \ngiven).\n\nThe Create API is a \n[long-running request](https://aka.ms/am-creator-lrt).", "operationId": "Dataset_CreatePreview", "x-ms-long-running-operation": true, @@ -217,7 +216,6 @@ }, "/dataset/import/{datasetId}": { "patch": { - "x-publish": true, "description": "**Dataset Import API**\n\n**Applies to**: see pricing [tiers](https://azure.microsoft.com/en-us/pricing/details/azure-maps/).\n
\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API \nand SDK. The Dataset APIs are part of Creator. This API allows the caller to bulk import data into a dataset \nfrom data that was uploaded to the Azure Maps Data service.
\n\n### Submit Import Request\n\nTo import data into your dataset, you will use a `PATCH` request where the `datasetId` query parameter is the \ndataset you want to import your data into, the `udid` query parameter is the data you want to import, and the `type` \nparameter will describe the data type to use for the import data.
\n\nThe Import API is a \n[long-running request](https://aka.ms/am-creator-lrt).", "operationId": "Dataset_ImportPreview", "x-ms-long-running-operation": true, @@ -276,7 +274,6 @@ }, "/dataset/{datasetId}": { "delete": { - "x-publish": true, "description": "**Dataset Delete API**\n\n**Applies to**: see pricing [tiers](https://azure.microsoft.com/en-us/pricing/details/azure-maps/).\n
\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. The Dataset APIs are part of Creator.\nThis API allows the caller to delete a previously created dataset.
\nYou can also use this API to delete old/unused datasets to create space for new Creator content.\n\n\n### Submit Delete Request\n\nTo delete your content you will issue a `DELETE` request where the path will contain the `datasetId` of the dataset to delete.
\n\n\n### Delete Data Response\n\nThe Delete API returns a HTTP `204 No Content` response if the dataset resource was deleted successfully.
", "operationId": "Dataset_DeletePreview", "x-ms-examples": { @@ -319,7 +316,6 @@ }, "/dataset": { "get": { - "x-publish": true, "description": "**Dataset List API**\n\n**Applies to**: see pricing [tiers](https://azure.microsoft.com/en-us/pricing/details/azure-maps/).\n
\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. The Dataset APIs are part of Creator.\nThis API allows the caller to fetch a list of all previously successfully created datasets.\n\n\n### Submit List Request\n\nTo list all your datasets, you will issue a `GET` request with no additional parameters.
\n\n\n### List Data Response\n\nThe List API returns the complete list of all datasets in `json` format. The response contains the following fields (if they are not null or empty):\n > created - The timestamp the dataset was created.\n > datasetId - The id for the dataset.\n > description - The description for the dataset.\n > datasetSources - The source data that was used when the create request was issued.\n\nThe `datasetSources` describes the source data that was used when the create request was issued and contains the following elements (if they are not null or empty):\n > conversionIds - The list of `conversionId` (null if none were provided).\n > udids - The list of `udid` (null if none were provided).\n > appendDatasetId - The `datasetId` that was used for an append operation (null if none was used).\n > type - The type of data stored in the dataset that was created.\n\nHere's a sample response returning the `timestamp`, `datasetId`, `description`, and `datasetSources` of 3 dataset resources:\n\n
\n\n```json\n{\n \"datasets\": [\n {\n \"timestamp\": \"2020-01-01T22:50:48+00:00\",\n \"datasetId\": \"f6495f62-94f8-0ec2-c252-45626f82fcb2\",\n \"description\": \"Some description or comment for the dataset.\",\n \"datasetSources\": {\n \"conversionIds\": [\n \"15d21452-c9bb-27b6-5e79-743ca5c3205d\"\n ],\n \"type\": \"facility\"\n },\n \"status\": \"Succeeded\"\n },\n {\n \"timestamp\": \"2020-01-01T22:57:53+00:00\",\n \"datasetId\": \"8b1288fa-1958-4a2b-b68e-13a7i5af7d7c\",\n \"description\": \"Create from upload '0c1288fa-2058-4a1b-b68d-13a5f5af7d7c'.\",\n \"datasetSources\": {\n \"udids\": [\n \"0c1288fa-2058-4a1b-b68d-13a5f5af7d7c\"\n ],\n \"type\": \"facility\"\n },\n \"status\": \"Succeeded\"\n },\n {\n \"timestamp\": \"2020-01-01T20:39:36+00:00\",\n \"datasetId\": \"7c1288fa-2058-4a1b-b68f-13a6h5af7d7c\",\n \"description\": \"Some other description or comment for the dataset.\",\n \"datasetSources\": {\n \"conversionIds\": [\n \"15d21452-c9bb-27b6-5e79-743ca5c3205d\"\n ],\n \"appendDatasetId\": \"8b1288fa-1958-4a2b-b68e-13a7i5af7d7c\",\n \"type\": \"facility\"\n },\n \"status\": \"Succeeded\"\n }\n ]\n}\n```\n
", "operationId": "Dataset_ListPreview", "x-ms-examples": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json index c9fbcf2397fa..02d1e5bff973 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json @@ -122,7 +122,6 @@ "paths": { "/datasets": { "post": { - "x-publish": true, "description": "**Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. [This](https://docs.microsoft.com/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.\n\n This API allows the caller to create a dataset from data that was uploaded to the Azure Maps Data Service and converted using the Azure Maps Conversion Service.\n\nYou can use this API in a scenario like uploading a DWG zip package for a building, converting the zip package using the Azure Maps Conversion Service, and creating a dataset from the converted zip package. The created dataset can be used to create tilesets using the Azure Maps Tileset Service and can be queried via the Azure Maps WFS Service.\n\n### Submit Create Request\n\nTo create your dataset, you will use a `POST` request where the `conversionId` query parameter is an ID that represents the converted DWG zip package, the `datasetId` parameter will be the ID of a previously created dataset to append with the current dataset and, optionally, the `description` query parameter will contain a description (if description is not provided a default description will be given).\n\nThe Create API is a [long-running request](https://aka.ms/am-creator-lrt-v2).", "operationId": "Dataset_Create", "x-ms-long-running-operation": true, @@ -180,7 +179,6 @@ } }, "get": { - "x-publish": true, "description": "**Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. [This](https://docs.microsoft.com/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.\n\nThis API allows the caller to fetch a list of all previously successfully created datasets.\n\n### Submit List Request\n\nTo list all your datasets, you will issue a `GET` request with no additional parameters.\n\n\n### List Data Response\n\nThe List API returns the complete list of all datasets in `json` format. The response contains the following fields (if they are not null or empty):\n> created - The timestamp the dataset was created.\n> datasetId - The id for the dataset.\n> description - The description for the dataset.\n> datasetSources - The source data that was used when the create request was issued.\n> ontology - The source [ontology](https://docs.microsoft.com/en-us/azure/azure-maps/creator-facility-ontology) that was used in the conversion service for the input data.
\n\nThe `datasetSources` describes the source data that was used when the create request was issued and contains the following elements (if they are not null or empty):\n\n> conversionIds - The list of `conversionId` (null if none were provided).\n> appendDatasetId - The `datasetId` that was used for an append operation (null if none was used).\n>featureCounts - The counts for each feature type in the dataset.
\n\nHere's a sample response returning the `timestamp`, `datasetId`, `description`, `datasetSources`, and `ontology` of 3 dataset resources:\n\n\n```json\n{\n \"datasets\": [\n {\n \"timestamp\": \"2020-01-01T22:50:48.123Z\",\n \"datasetId\": \"f6495f62-94f8-0ec2-c252-45626f82fcb2\",\n \"description\": \"Some description or comment for the dataset.\",\n \"datasetSources\": {\n \"conversionIds\": [\n \"15d21452-c9bb-27b6-5e79-743ca5c3205d\"\n ], },\n \"ontology\": \"facility-2.0\",\n \"featureCounts\": {\n \"directoryInfo\": 2,\n \"category\": 10,\n \"facility\": 1,\n \"level\": 3,\n \"unit\": 183,\n \"zone\": 3,\n \"verticalPenetration\": 6,\n \"opening\": 48,\n \"areaElement\": 108\n }\n },\n {\n \"timestamp\": \"2020-01-01T22:57:53.123Z\",\n \"datasetId\": \"8b1288fa-1958-4a2b-b68e-13a7i5af7d7c\",\n \"description\": \"Create from upload '0c1288fa-2058-4a1b-b68d-13a5f5af7d7c'.\",\n \"datasetSources\": {\n \"conversionIds\": [\n \"0c1288fa-2058-4a1b-b68d-13a5f5af7d7c\"\n ],\n \"appendDatasetId\": \"46d1edb6-d29e-4786-9589-dbd4efd7a977\"\n },\n \"ontology\": \"facility-2.0\",\n \"featureCounts\": {\n \"directoryInfo\": 2,\n \"category\": 10,\n \"facility\": 1,\n \"level\": 3,\n \"unit\": 183,\n \"zone\": 3,\n \"verticalPenetration\": 6,\n \"opening\": 48,\n \"areaElement\": 108\n }\n }\n ]\n}\n```", "operationId": "Dataset_List", "x-ms-examples": { @@ -223,7 +221,6 @@ }, "/datasets/{datasetId}": { "get": { - "x-publish": true, "description": "**Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. [This](https://docs.microsoft.com/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.\n\nThis API allows the caller to fetch a previously successfully created dataset.\n\n### Submit Get Details Request\n\nTo get the details for a previously created dataset, you will issue a `GET` request with the `datasetId` in the path.\n\n### Get Details Response\n\nThe Get Details API returns the details for a dataset in `json` format. The response contains the following fields (if they are not null or empty):\n> created - The timestamp the dataset was created.\n> datasetId - The id for the dataset.\n> description - The description for the dataset.\n> datasetSources - The source data that was used when the create request was issued.\n> ontology - The source [ontology](https://docs.microsoft.com/en-us/azure/azure-maps/creator-facility-ontology) that was used in the conversion service for the input data.
\n\nThe `datasetSources` describes the source data that was used when the create request was issued and contains the following elements (if they are not null or empty):\n> conversionIds - The list of `conversionId` (null if none were provided).\n> appendDatasetId - The `datasetId` that was used for an append operation (null if none was used).\n>featureCounts - The counts for each feature type in the dataset.
\n\nHere's a sample response returning the `timestamp`, `datasetId`, `description`, `datasetSources`, and `ontology` of a dataset resource:\n\n```json\n{\n \"timestamp\": \"2020-01-01T22:50:48.123Z\",\n \"datasetId\": \"f6495f62-94f8-0ec2-c252-45626f82fcb2\",\n \"description\": \"Some description or comment for the dataset.\",\n \"datasetSources\": {\n \"conversionIds\": [\n \"15d21452-c9bb-27b6-5e79-743ca5c3205d\"\n ],\n },\n \"ontology\": \"facility-2.0\",\n \"featureCounts\": {\n \"directoryInfo\": 2,\n \"category\": 10,\n \"facility\": 1,\n \"level\": 3,\n \"unit\": 183,\n \"zone\": 3,\n \"verticalPenetration\": 6,\n \"opening\": 48,\n \"areaElement\": 108\n }\n }\n```", "operationId": "Dataset_Get", "x-ms-examples": { @@ -267,7 +264,6 @@ } }, "delete": { - "x-publish": true, "description": "**Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. [This](https://docs.microsoft.com/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.\n\nYou can also use this API to delete old/unused datasets to create space for new Creator content.\n\n### Submit Delete Request\n\nTo delete your content you will issue a `DELETE` request where the path will contain the `datasetId` of the dataset to delete.", "operationId": "Dataset_Delete", "x-ms-examples": { diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json index 80af5a66da71..57ab3f054126 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json @@ -98,7 +98,6 @@ "paths": { "/conversion/convert": { "post": { - "x-publish": true, "description": "**Conversion Create API**\n\n**Applies to**: see pricing [tiers](https://azure.microsoft.com/en-us/pricing/details/azure-maps/).
\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and \nSDK. [This](https://docs.microsoft.com/en-us/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.
\n\nThe Conversion API lets the caller import a set of DWG design files as a zipped [Drawing Package](https://aka.ms/am-drawing-package) into Azure Maps. The [Drawing Package](https://aka.ms/am-drawing-package) should first be \nuploaded using the [Azure Maps Data Service](https://docs.microsoft.com/rest/api/maps/data). Once uploaded, use the \n`udid` returned by the [Data Upload API](https://docs.microsoft.com/rest/api/maps/data/uploadpreview) to call \nthis Conversion API.\n\n## Convert DWG package\n\nThe Conversion API performs a \n[long-running request](https://aka.ms/am-creator-lrt).\n\n## Debug DWG package issues\n\n\nDuring the Conversion process, if there are any issues with the DWG package [errors and warnings](https://aka.ms/am-conversion-errors) are provided in the response along with a *diagnostic package* to visualize \nand diagnose these issues. In case any issues are encountered with your DWG package, the Conversion operation status process as detailed \n[here](https://aka.ms/am-creator-lrt) returns the location of the *diagnostic\npackage* that can be downloaded by the caller to help them visualize and diagnose these issues. The *diagnostic package* location\ncan be found in the properties section of the conversion operation status response and looks like the following:\n\n```json\n{\n \"properties\": {\n \"diagnosticPackageLocation\": \"https://us.atlas.microsoft.com/mapdata/{DiagnosticPackageId}?api-version=1.0\" \n } \n}\n```\n\nThe *diagnostic package* can be downloaded by executing a `HTTP GET` request on the `diagnosticPackageLocation`.\nFor more details on how to use the tool to visualize and diagnose all the errors and warnings see [Drawing Error Visualizer](https://aka.ms/am-drawing-errors-visualizer).
\n\nA conversion operation will be marked as *success* if there are zero or more warnings but will be marked as *failed* if any errors are encountered. ", "operationId": "Conversion_ConvertPreview", "x-ms-long-running-operation": true, @@ -160,7 +159,6 @@ }, "/conversion": { "get": { - "x-publish": true, "description": "**Conversion List API**\n\n**Applies to**: see pricing [tiers](https://azure.microsoft.com/en-us/pricing/details/azure-maps/).
\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. [This](https://docs.microsoft.com/en-us/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.
\n\nThis API allows the caller to fetch a list of all successful data conversions submitted previously using the [Conversion API](https://docs.microsoft.com/en-us/rest/api/maps/conversion/convertpreview). \n\n### Submit List Request\n\nTo list all successful conversions you will issue a `GET` request with no additional parameters.\n\n### List Data Response\n\nThe Conversion List API returns the complete list of all conversion details in `json` format.
\n\nHere is a sample response returning the details of two successful conversion requests: \n\n
\n\n```json\n{\n \"conversions\": \n [\n {\n \"conversionId\": \"54398242-ea6c-1f31-4fa6-79b1ae0fc24d\",\n \"udid\": \"31838736-8b84-11ea-bc55-0242ac130003\",\n \"created\": \"5/19/2020 9:00:00 AM +00:00\",\n \"description\": \"User provided description.\",\n \"featureCounts\": {\n \"DIR\": 1,\n \"LVL\": 3,\n \"FCL\": 1,\n \"UNIT\": 150,\n \"CTG\": 8,\n \"AEL\": 0,\n \"OPN\": 10\n }\n },\n {\n \"conversionId\": \"2acf7d32-8b84-11ea-bc55-0242ac130003\",\n \"udid\": \"1214bc58-8b84-11ea-bc55-0242ac1300039\",\n \"created\": \"5/19/2020 9:00:00 AM +00:00\",\n \"description\": \"User provided description.\",\n \"featureCounts\": {\n \"DIR\": 1,\n \"LVL\": 3,\n \"FCL\": 1,\n \"UNIT\": 150,\n \"CTG\": 8,\n \"AEL\": 0,\n \"OPN\": 10\n }\n }\n ]\n}\n```\n\n
", "operationId": "Conversion_ListPreview", "x-ms-examples": { @@ -206,7 +204,6 @@ }, "/conversion/{conversionId}": { "delete": { - "x-publish": true, "description": "**Conversion Delete API**\n\n**Applies to**: see pricing [tiers](https://azure.microsoft.com/en-us/pricing/details/azure-maps/).
\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. [This](https://docs.microsoft.com/en-us/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.
\n\nThis API allows the caller to delete any data conversions created previously using the [Conversion API](https://docs.microsoft.com/en-us/rest/api/maps/conversion/convertpreview).\n\n### Submit Delete Request\n\nTo delete your conversion data you will issue a `DELETE` request where the path will contain the `conversionId` of the data to delete.\n\n### Conversion Delete Response\n\nThe Conversion Delete API returns a HTTP `204 No Content` response with an empty body, if the converted data resources were deleted successfully.
\nA HTTP `400 Bad Request` error response will be returned if no resource associated with the passed-in `conversionId` is found. ", "operationId": "Conversion_DeletePreview", "x-ms-examples": { diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json index 4a57f4c9f744..2726bb37040f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json @@ -120,7 +120,6 @@ "paths": { "/conversions": { "post": { - "x-publish": true, "description": "**Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. [This](https://docs.microsoft.com/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.\n\nThe Conversion API lets the caller import a set of DWG design files as a zipped [Drawing Package](https://aka.ms/am-drawing-package) into Azure Maps. The [Drawing Package](https://aka.ms/am-drawing-package) should first be uploaded using the [Azure Maps Data Service](https://docs.microsoft.com/rest/api/maps/data). Once uploaded, use the `udid` returned by the [Data Upload API](https://docs.microsoft.com/rest/api/maps/data/uploadpreview) to call this Conversion API.\n\n## Convert DWG package\n\nThe Conversion API performs a [long-running request](https://aka.ms/am-creator-lrt-v2).\n\n## Debug DWG package issues\n\n\nDuring the Conversion process, if there are any issues with the DWG package [errors and warnings](https://aka.ms/am-conversion-errors) are provided in the response along with a *diagnostic package* to visualize and diagnose these issues. In case any issues are encountered with your DWG package, the Conversion operation status process as detailed [here](https://aka.ms/am-creator-lrt-v2) returns the location of the *diagnostic package* that can be downloaded by the caller to help them visualize and diagnose these issues. The *diagnostic package* location can be found in the properties section of the conversion operation status response and looks like the following:\n\n```json\n{\n \"properties\": {\n \"diagnosticPackageLocation\": \"https://us.atlas.microsoft.com/mapdata/{DiagnosticPackageId}?api-version=1.0\" \n } \n}\n```\n\nThe *diagnostic package* can be downloaded by executing a `HTTP GET` request on the `diagnosticPackageLocation`.\nFor more details on how to use the tool to visualize and diagnose all the errors and warnings see [Drawing Error Visualizer](https://aka.ms/am-drawing-errors-visualizer).
\n\nA conversion operation will be marked as *success* if there are zero or more warnings but will be marked as *failed* if any errors are encountered. ", "operationId": "Conversion_Convert", "x-ms-long-running-operation": true, @@ -181,7 +180,6 @@ } }, "get": { - "x-publish": true, "description": "**Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. [This](https://docs.microsoft.com/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.\n\nThis API allows the caller to fetch a list of all successful data conversions submitted previously using the [Conversion API](https://docs.microsoft.com/en-us/rest/api/maps/conversion/convertpreview). \n\n### Submit List Request\n\nTo list all successful conversions you will issue a `GET` request with no additional parameters.\n\n### List Data Response\n\nThe Conversion List API returns the complete list of all conversion details in `json` format.
\n\nHere is a sample response returning the details of two successful conversion requests: \n\n
\n\n```json\n{\n \"conversions\": \n [\n {\n \"conversionId\": \"54398242-ea6c-1f31-4fa6-79b1ae0fc24d\",\n \"udid\": \"31838736-8b84-11ea-bc55-0242ac130003\",\n \"created\": \"5/19/2020 9:00:00 AM +00:00\",\n \"description\": \"User provided description.\",\n \"featureCounts\": {\n \"DIR\": 1,\n \"LVL\": 3,\n \"FCL\": 1,\n \"UNIT\": 150,\n \"CTG\": 8,\n \"AEL\": 0,\n \"OPN\": 10\n }\n },\n {\n \"conversionId\": \"2acf7d32-8b84-11ea-bc55-0242ac130003\",\n \"udid\": \"1214bc58-8b84-11ea-bc55-0242ac1300039\",\n \"created\": \"5/19/2020 9:00:00 AM +00:00\",\n \"description\": \"User provided description.\",\n \"featureCounts\": {\n \"DIR\": 1,\n \"LVL\": 3,\n \"FCL\": 1,\n \"UNIT\": 150,\n \"CTG\": 8,\n \"AEL\": 0,\n \"OPN\": 10\n }\n }\n ]\n}\n```\n\n
", "operationId": "Conversion_List", "x-ms-examples": { @@ -227,7 +225,6 @@ }, "/conversions/{conversionId}": { "get": { - "x-publish": true, "description": "**Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. [This](https://docs.microsoft.com/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.\n\nThis API allows the caller to fetch a successful data conversion submitted previously using the [Conversion API](https://docs.microsoft.com/en-us/rest/api/maps/conversion/convertpreview). ", "operationId": "Conversion_Get", "x-ms-examples": { @@ -274,7 +271,6 @@ } }, "delete": { - "x-publish": true, "description": "**Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. [This](https://docs.microsoft.com/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.\n\nThis API allows the caller to delete any data conversions created previously using the [Conversion API](https://docs.microsoft.com/en-us/rest/api/maps/conversion/convertpreview).\n\n### Submit Delete Request\n\nTo delete your conversion data you will issue a `DELETE` request where the path will contain the `conversionId` of the data to delete.\n\n### Conversion Delete Response\n\nThe Conversion Delete API returns a HTTP `204 No Content` response with an empty body, if the converted data resources were deleted successfully.
\nA HTTP `400 Bad Request` error response will be returned if no resource associated with the passed-in `conversionId` is found. ", "operationId": "Conversion_Delete", "x-ms-examples": { diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json index 170de6cf8b99..1665ccfdc688 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json @@ -101,7 +101,6 @@ "paths": { "/featureState/stateset/{statesetId}": { "get": { - "x-publish": true, "description": "**Applies to**: see pricing [tiers](https://azure.microsoft.com/en-us/pricing/details/azure-maps/).\n
\n\nThis GET API allows the user to get the stateset Information.\n\nThe stateset Information includes the datasetId associated to the stateset, and the styles of that stateset.", "operationId": "FeatureState_GetStatesetPreview", "x-ms-examples": { @@ -145,7 +144,6 @@ } }, "delete": { - "x-publish": true, "description": "**Applies to**: see pricing [tiers](https://azure.microsoft.com/en-us/pricing/details/azure-maps/).
This DELETE API allows the user to delete the stateset and the associated data.", "operationId": "FeatureState_DeleteStatesetPreview", "x-ms-examples": { @@ -186,7 +184,6 @@ } }, "put": { - "x-publish": true, "description": "**Applies to**: see pricing [tiers](https://azure.microsoft.com/en-us/pricing/details/azure-maps/).\n
\n\nThis PUT API allows the user to update the stateset style rules.", "operationId": "FeatureState_PutStatesetPreview", "x-ms-examples": { @@ -238,7 +235,6 @@ }, "/featureState/stateset": { "post": { - "x-publish": true, "description": "**Applies to**: see pricing [tiers](https://azure.microsoft.com/en-us/pricing/details/azure-maps/).\n
\n\nThis POST API allows the user to create a new Stateset and define stateset style using request body.\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. The Feature State API is part of Creator. \n\nThe Feature State service allows the user to update the states of a feature and query them to be used in other services. The dynamic properties of a feature that don't belong to the dataset are referred to as *states* here.\n\nThis Feature State service pivot on the Stateset. Like Tileset, Stateset encapsulates the storage mechanism for feature states for a dataset.\n\nOnce the stateset is created, users can use that statesetId to post feature state updates and retrieve the current feature states. A feature can have only one state at a given point in time. \n\nFeature state is defined by the key name, value and the timestamp. When a feature state update is posted to Azure Maps, the state value gets updated only if the provided state’s timestamp is later than the stored timestamp. \n\nAzure Maps MapControl provides a way to use these feature states to style the features. Please refer to the State Tile documentation for more information.", "operationId": "FeatureState_CreateStatesetPreview", "x-ms-examples": { @@ -291,7 +287,6 @@ } }, "get": { - "x-publish": true, "description": "**Applies to**: see pricing [tiers](https://azure.microsoft.com/en-us/pricing/details/azure-maps/).
This API allows the caller to fetch a list of all previously successfully created statesets.", "operationId": "FeatureState_ListStatesetPreview", "x-ms-examples": { @@ -334,7 +329,6 @@ }, "/featureState/state": { "get": { - "x-publish": true, "operationId": "FeatureState_GetStatesPreview", "description": "**Applies to**: see pricing [tiers](https://azure.microsoft.com/en-us/pricing/details/azure-maps/).
This API returns the current state information associated with the given feature in the given stateset.", "x-ms-examples": { @@ -381,7 +375,6 @@ } }, "post": { - "x-publish": true, "operationId": "FeatureState_UpdateStatesPreview", "description": "**Applies to**: see pricing [tiers](https://azure.microsoft.com/en-us/pricing/details/azure-maps/).
\nThis POST API allows the user to update the state of the given feature in the given stateset.", "x-ms-examples": { @@ -434,7 +427,6 @@ } }, "delete": { - "x-publish": true, "operationId": "FeatureState_DeleteStatePreview", "description": "**Applies to**: see pricing [tiers](https://azure.microsoft.com/en-us/pricing/details/azure-maps/).
This API deletes the state information identified by the StateKeyName parameter for the feature identified by the FeatureId parameter in the the stateset.", "x-ms-examples": { diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json index 0deeb0568c8a..63bba830c94e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json @@ -136,7 +136,6 @@ "paths": { "/featureStateSets": { "post": { - "x-publish": true, "description": "**Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. [This](https://docs.microsoft.com/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.\n\nThis POST API allows the user to create a new Stateset and define stateset style using request body.\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. The Feature State API is part of Creator. \n\nThe Feature State service allows the user to update the states of a feature and query them to be used in other services. The dynamic properties of a feature that don't belong to the dataset are referred to as *states* here.\n\nThis Feature State service pivot on the Stateset. Like Tileset, Stateset encapsulates the storage mechanism for feature states for a dataset.\n\nOnce the stateset is created, users can use that statesetId to post feature state updates and retrieve the current feature states. A feature can have only one state at a given point in time. \n\nFeature state is defined by the key name, value and the timestamp. When a feature state update is posted to Azure Maps, the state value gets updated only if the provided state’s timestamp is later than the stored timestamp. \n\nAzure Maps MapControl provides a way to use these feature states to style the features. Please refer to the State Tile documentation for more information.", "operationId": "FeatureState_CreateStateset", "x-ms-examples": { @@ -192,7 +191,6 @@ } }, "get": { - "x-publish": true, "description": "**Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. [This](https://docs.microsoft.com/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.\n\n This API allows the caller to fetch a list of all previously successfully created statesets.", "operationId": "FeatureState_ListStateset", "x-ms-examples": { @@ -235,7 +233,6 @@ }, "/featureStateSets/{statesetId}": { "put": { - "x-publish": true, "description": "**Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. [This](https://docs.microsoft.com/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.\n\nThis PUT API allows the user to update the stateset style rules.", "operationId": "FeatureState_PutStateset", "x-ms-examples": { @@ -285,7 +282,6 @@ } }, "delete": { - "x-publish": true, "description": "**Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. [This](https://docs.microsoft.com/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.\n\n This DELETE API allows the user to delete the stateset and the associated data.", "operationId": "FeatureState_DeleteStateset", "x-ms-examples": { @@ -326,7 +322,6 @@ } }, "get": { - "x-publish": true, "description": "**Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. [This](https://docs.microsoft.com/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.\n\nThis GET API allows the user to get the stateset Information.\n\nThe stateset Information includes the datasetId associated to the stateset, and the styles of that stateset.", "operationId": "FeatureState_GetStateset", "x-ms-examples": { @@ -372,7 +367,6 @@ }, "/featureStateSets/{statesetId}/featureStates/{featureId}": { "put": { - "x-publish": true, "operationId": "FeatureState_UpdateStates", "description": "**Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. [This](https://docs.microsoft.com/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.\n\nThis PUT API allows the user to update the state of the given feature in the given stateset.", "x-ms-examples": { @@ -425,7 +419,6 @@ } }, "delete": { - "x-publish": true, "operationId": "FeatureState_DeleteState", "description": "**Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. [This](https://docs.microsoft.com/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.\n\n This API deletes the state information identified by the StateKeyName parameter for the feature identified by the FeatureId parameter in the the stateset.", "x-ms-examples": { @@ -475,7 +468,6 @@ } }, "get": { - "x-publish": true, "operationId": "FeatureState_GetStates", "description": "**Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. [This](https://docs.microsoft.com/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.\n\n This API returns the current state information associated with the given feature in the given stateset.", "x-ms-examples": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json index 42e2b1e25d6e..1c26e49f1cb6 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json +++ b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json @@ -44,7 +44,6 @@ "paths": { "/geolocation/ip/{format}": { "get": { - "x-publish": true, "description": "\n**Applies to**: S0 and S1 pricing tiers.\n\n\nThis service will return the ISO country code for the provided IP address. Developers can use this information to block or alter certain content based on geographical locations where the application is being viewed from. \n\n\n__Note:__ This service returns results from IANA and does not necessarily reflect the views of Microsoft Corporation.", "operationId": "Geolocation_GetIPToLocationPreview", "x-ms-examples": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json index b6ed430c8e71..4aaa66ce9465 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json +++ b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json @@ -62,7 +62,6 @@ "paths": { "/mobility/metroArea/id/{format}": { "get": { - "x-publish": true, "operationId": "Mobility_GetMetroAreaPreview", "description": "**Metro Area API**\n\n**Applies to**: S1 pricing tier.\n\nService allows users to request metro areas in which the Azure Maps Mobility Service is available. The service supports filtering results by country or coordinate location. Information returned includes Metro Area details such as metro Id, name and a representation of the metro area geometry in GeoJSON format.", "x-ms-examples": { @@ -147,7 +146,6 @@ }, "/mobility/metroArea/info/{format}": { "get": { - "x-publish": true, "operationId": "Mobility_GetMetroAreaInfoPreview", "description": "**Metro Area Info API**\n\n**Applies to**: S1 pricing tier.\n\nService allows users to request additional information for metro areas in which the Azure Maps Mobility services are available. Information such as supported transit types, transit agencies and active alerts is available, depending on the options selected. Also, the service returns information if the public transit fare information is available for the requested metro area.", "x-ms-examples": { @@ -245,7 +243,6 @@ }, "/mobility/transit/nearby/{format}": { "get": { - "x-publish": true, "operationId": "Mobility_GetNearbyTransitPreview", "description": "**Find Nearby Transit API**\n\n**Applies to**: S1 pricing tier.\n\nGet Nearby Transit service allows you to search public transit stops around a given location returning the transit object details. Service allows users to search for public transit stops within a given radius returning a set of stops with stop details. Additional information such as transit operator information is returned depending on the options selected. The returned information can be used for further processing such as requesting [real-time arrivals](https://aka.ms/AzureMapsMobilityRealTimeArrivals) for the stop or [transit stop details](https://aka.ms/AzureMapsMobilityTransitStop) such as main transit type of most lines stopping for a given public, active service alerts or main transport agency.", "x-ms-examples": { @@ -331,7 +328,6 @@ }, "/mobility/transit/line/{format}": { "get": { - "x-publish": true, "operationId": "Mobility_GetTransitLineInfoPreview", "description": "**Transit Line Info API**\n\n**Applies to**: S1 pricing tier.\n\nYour scenario might require requesting transit line specific data such as stops and line geometry. Transit Line Info service allows you to request line group by line group id returning a line group comprised a set of lines. Additional information such as 24 hours static schedule, active alerts for the line group and line patterns is also available, depending on the options selected. Mobility services uses a parallel data model for public transit lines and line groups. Usually line group contains 2 lines, one going from A to B, and the other returning from B to A, both operating by the same Public Transport Agency having the same line number. We recommend you review our guidance [article](https://aka.ms/AMapsPublicTRansitConcepts) to understand the concepts of lines and line groups.", "x-ms-examples": { @@ -441,7 +437,6 @@ }, "/mobility/transit/stop/{format}": { "get": { - "x-publish": true, "operationId": "Mobility_GetTransitStopInfoPreview", "description": "**Transit Stop Info API**\n\n**Applies to**: S1 pricing tier.\n\nGet Transit Stop Info service allows you to request information for a given public transit stop. Basic information returned includes details such as main transit type of most lines stopping for a given public and main transport agency. Additional details such as stop lines and active service alerts for specified stop are also available, depending on the options selected.", "x-ms-examples": { @@ -567,7 +562,6 @@ }, "/mobility/transit/route/{format}": { "get": { - "x-publish": true, "operationId": "Mobility_GetTransitRoutePreview", "description": "**Transit Route API**\n\n**Applies to**: S1 pricing tier.\n\nGet Transit Route API will allow trip planning returning the best possible route options between an origin and destination by using multi-modal search. Service provides a variety of travel modes, including walk, bike, and public transit. The API supports parameters to request one or multiple public transit types such as bus, tram and subway, and prefer a specific transit agency operating in the area. Also, service provides transit fare details and options to choose optimal route with least walk or transfers and specify arrival or departure times when user need to be at a specific destination by a certain time.", "x-ms-examples": { @@ -907,7 +901,6 @@ }, "/mobility/transit/itinerary/{format}": { "get": { - "x-publish": true, "operationId": "Mobility_GetTransitItineraryPreview", "description": "**Transit Itinerary API**\n\n**Applies to**: S1 pricing tier.\n\nReturns data according to an itinerary Id previously returned by [Transit Route API](https://aka.ms/AzureMapsMobilityTransitRoute). The basic info contains data as to the various legs comprising the itinerary, including the locations, public transit lines, start and end times and fare information. Users can request additional routing information such as the shape of the itinerary and detailed itinerary schedules is also available, depending on the options selected. An itinerary is available up to 24 hours following a search request.", "x-ms-examples": { @@ -994,7 +987,6 @@ }, "/mobility/realtime/arrivals/{format}": { "get": { - "x-publish": true, "operationId": "Mobility_GetRealTimeArrivalsPreview", "description": "**Real-time Arrivals API**\n\n**Applies to**: S1 pricing tier.\n\nGet Real Time Arrivals API returns for a given a stop, line or location the requested number of real-time arrivals. Endpoint support different modes to request real-time arrivals such as number of live arrivals for all lines arriving at the specified stop or all arrivals of a line to stops near the user’s location. The API supports parameters to request one or multiple public transit types such as bus, tram and subway, maximum number if arrivals, and prefer a specific transit agency operating in the area. In some cases real-time arrivals may not be available, for example, if arrival is too far in the future or transit vehicle does not have capability to share the real-time location. This is symbolized in a scheduleType field present in all responses.", "x-ms-examples": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json index 157abc970aa7..3f4f207edd95 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json @@ -203,7 +203,6 @@ "paths": { "/map/static/{format}": { "get": { - "x-publish": true, "description": "**Applies to**: S0 and S1 pricing tiers.\n\n\nThe static image service renders a user-defined, rectangular image containing a map section using a zoom level from 0 to 20. The static image service renders a user-defined, rectangular image containing a map section using a zoom level from 0 to 20. The supported resolution range for the map image is from 1x1 to 8192x8192. If you are deciding when to use the static image service over the map tile service, you may want to consider how you would like to interact with the rendered map. If the map contents will be relatively unchanging, a static map is a good choice. If you want to support a lot of zooming, panning and changing of the map content, the map tile service would be a better choice. \n\nService also provides Image Composition functionality to get a static image back with additional data like; pushpins and geometry overlays with following S0 and S1 capabilities. \n\nIn S0 you can:\n- Render up to 5 pushpins specified in the request\n- Provide one custom image for the pins referenced in the request\n- Add labels to the pushpins\n\nIn S1 you can:\n- Render pushpins through [Azure Maps Data Service](https://aka.ms/AzureMapsMapDataService)\n- Specify multiple pushpin styles\n- Provide custom pushpin images stored in [Azure Maps Data Service](https://aka.ms/AzureMapsMapDataService)\n- Render circle, polyline and polygon geometry types.\n- Render of supported GeoJSON geometry types uploaded through [Azure Maps Data Service](https://aka.ms/AzureMapsMapDataService)\n\nPlease see [How-to-Guide](https://aka.ms/AzureMapsHowToGuideImageCompositor) for detailed examples.\n\n_Note_ : Either **center** or **bbox** parameter must be supplied to the\nAPI.\n

\nThe supported Lat and Lon ranges when using the **bbox** parameter, are as follows:\n

\n\n |Zoom Level | Max Lon Range | Max Lat Range|\n |:----------|:----------------|:-------------|\n |0 | 360.0 | 170.0 | \n |1 | 360.0 | 170.0 |\n |2 | 360.0 | 170.0 |\n |3 | 360.0 | 170.0 |\n |4 | 360.0 | 170.0 |\n |5 | 180.0 | 85.0 |\n |6 | 90.0 | 42.5 |\n |7 | 45.0 | 21.25 |\n |8 | 22.5 | 10.625 |\n |9 | 11.25 | 5.3125 |\n |10 | 5.625 | 2.62625 |\n |11 | 2.8125 | 1.328125 |\n |12 | 1.40625 | 0.6640625 |\n |13 | 0.703125 | 0.33203125 |\n |14 | 0.3515625 | 0.166015625 |\n |15 | 0.17578125 | 0.0830078125 | \n |16 | 0.087890625 | 0.0415039063 | \n |17 | 0.0439453125 | 0.0207519531 |\n |18 | 0.0219726563 | 0.0103759766 |\n |19 | 0.0109863281 | 0.0051879883 |\n |20 | 0.0054931641 | 0.0025939941 |", "operationId": "Render_GetMapImage", "x-ms-examples": { @@ -344,7 +343,6 @@ "items": { "type": "string" }, - "x-publish": true }, { "name": "path", @@ -356,7 +354,6 @@ "items": { "type": "string" }, - "x-publish": true } ], "produces": [ @@ -391,7 +388,6 @@ }, "/map/tile/{format}": { "get": { - "x-publish": true, "description": "**Applies to**: S0 and S1 pricing tiers.\n\n\nFetches map tiles in vector or raster format typically to be integrated into a new map control or SDK. By default, Azure uses vector map tiles for its web map control (see [Zoom Levels and Tile Grid](https://docs.microsoft.com/en-us/azure/location-based-services/zoom-levels-and-tile-grid))\n\n**Note**: Weather tiles are only available via [Get Map Tile V2 API](https://aka.ms/AzureMapsWeatherTiles). We recommend to start to use the new [Get Map Tile V2 API](https://aka.ms/GetMapTileV2).", "operationId": "Render_GetMapTile", "x-ms-examples": { @@ -551,7 +547,6 @@ }, "/map/statetile": { "get": { - "x-publish": true, "description": "**Applies to**: S0 and S1 pricing tiers.\n\n\nFetches state tiles in vector format typically to be integrated into indoor maps module of map control or SDK. The map control will call this API after user turns on dynamic styling (see [Zoom Levels and Tile Grid](https://docs.microsoft.com/en-us/azure/location-based-services/zoom-levels-and-tile-grid))", "operationId": "Render_GetMapStateTilePreview", "x-ms-examples": { @@ -617,7 +612,6 @@ }, "/map/copyright/caption/{format}": { "get": { - "x-publish": true, "description": "**Applies to**: S0 and S1 pricing tiers.\n\n\n\nCopyrights API is designed to serve copyright information for Render Tile \nservice. In addition to basic copyright for the whole map, API is serving \nspecific groups of copyrights for some countries.\n\nAs an alternative to copyrights for map request, one can receive captions\nfor displaying the map provider information on the map.", "operationId": "Render_GetCopyrightCaption", "x-ms-examples": { @@ -666,7 +660,6 @@ }, "/map/imagery/{format}": { "get": { - "x-publish": true, "description": "**Applies to:** S1 pricing tier.\n\n\nThis service returns a map image tile with size 256x256, given the x and y coordinates and zoom\nlevel. Zoom level ranges from 1 to 19. The current available style value is 'satellite' which provides satellite\nimagery alone.\n\n\n**Note**: We recommend to start to use the new [Get Map Tile V2 API](https://aka.ms/GetMapTileV2).", "operationId": "Render_GetMapImageryTile", "x-ms-examples": { @@ -749,7 +742,6 @@ }, "/map/copyright/bounding/{format}": { "get": { - "x-publish": true, "description": "**Applies to**: S0 and S1 pricing tiers.\n\n\nReturns copyright information for a given bounding box. Bounding-box requests should specify the minimum and maximum longitude and latitude (EPSG-3857) coordinates", "operationId": "Render_GetCopyrightFromBoundingBox", "x-ms-examples": { @@ -815,7 +807,6 @@ }, "/map/copyright/tile/{format}": { "get": { - "x-publish": true, "description": "**Applies to**: S0 and S1 pricing tiers.\n\n\n\nCopyrights API is designed to serve copyright information for Render Tile service. In addition to basic copyright for the whole map, API is serving specific groups of copyrights for some countries.\nReturns the copyright information for a given tile. To obtain the copyright information for a particular tile, the request should specify the tile's zoom level and x and y coordinates (see: Zoom Levels and Tile Grid).", "operationId": "Render_GetCopyrightForTile", "x-ms-examples": { @@ -876,7 +867,6 @@ }, "/map/copyright/world/{format}": { "get": { - "x-publish": true, "description": "**Applies to**: S0 and S1 pricing tiers.\n\n\nCopyrights API is designed to serve copyright information for Render Tile service. In addition to basic copyright for the whole map, API is serving specific groups of copyrights for some countries.\nReturns the copyright information for the world. To obtain the default copyright information for the whole world, do not specify a tile or bounding box.", "operationId": "Render_GetCopyrightForWorld", "x-ms-examples": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json index 1d20cdeca84e..6295a42a6d0c 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json @@ -787,7 +787,6 @@ "paths": { "/route/matrix/{format}": { "post": { - "x-publish": true, "description": "\n\n**Applies to**: S1 pricing tier.\n\nThe Matrix Routing service allows calculation of a matrix of route summaries for a set of routes defined by origin and destination locations by using an asynchronous (async) or synchronous (sync) POST request. For every given origin, the service calculates the cost of routing from that origin to every given destination. The set of origins and the set of destinations can be thought of as the column and row headers of a table and each cell in the table contains the costs of routing from the origin to the destination for that cell. As an example, let's say a food delivery company has 20 drivers and they need to find the closest driver to pick up the delivery from the restaurant. To solve this use case, they can call Matrix Route API.\n\n\nFor each route, the travel times and distances are returned. You can use the computed costs to determine which detailed routes to calculate using the Route Directions API.\n\n\nThe maximum size of a matrix for async request is **700** and for sync request it's **100** (the number of origins multiplied by the number of destinations).\n\n\n\n### Submit Synchronous Route Matrix Request\nIf your scenario requires synchronous requests and the maximum size of the matrix is less than or equal to 100, you might want to make synchronous request. The maximum size of a matrix for this API is **100** (the number of origins multiplied by the number of destinations). With that constraint in mind, examples of possible matrix dimensions are: 10x10, 6x8, 9x8 (it does not need to be square).\n\n```\nPOST https://atlas.microsoft.com/route/matrix/sync/json?api-version=1.0&subscription-key={subscription-key}\n```\n\n### Submit Asynchronous Route Matrix Request\nThe Asynchronous API is appropriate for processing big volumes of relatively complex routing requests. When you make a request by using async request, by default the service returns a 202 response code along a redirect URL in the Location field of the response header. This URL should be checked periodically until the response data or error information is available. If `waitForResults` parameter in the request is set to true, user will get a 200 response if the request is finished under 120 seconds.\n\n\nThe maximum size of a matrix for this API is **700** (the number of origins multiplied by the number of destinations). With that constraint in mind, examples of possible matrix dimensions are: 50x10, 10x10, 28x25. 10x70 (it does not need to be square).\n\n\nThe asynchronous responses are stored for **14** days. The redirect URL returns a 404 response if used after the expiration period.\n\n\n\n\n```\nPOST https://atlas.microsoft.com/route/matrix/json?api-version=1.0&subscription-key={subscription-key}\n```\n\nHere's a typical sequence of asynchronous operations:\n1. Client sends a Route Matrix POST request to Azure Maps\n\n2. The server will respond with one of the following:\n\n > HTTP `202 Accepted` - Route Matrix request has been accepted.\n\n > HTTP `Error` - There was an error processing your Route Matrix request. This could either be a 400 Bad Request or any other Error status code.\n\n\n3. If the Matrix Route request was accepted successfully, the Location header in the response contains the URL to download the results of the request. This status URI looks like the following:\n\n ```\n GET https://atlas.microsoft.com/route/matrix/{matrixId}?api-version=1.0?subscription-key={subscription-key}\n ```\n\n\n4. Client issues a GET request on the download URL obtained in Step 3 to download the results\n\n### Download Sync Results\nWhen you make a POST request for Route Matrix Sync API, the service returns 200 response code for successful request and a response array. The response body will contain the data and there will be no possibility to retrieve the results later.\n\n### Download Async Results\nWhen a request issues a `202 Accepted` response, the request is being processed using our async pipeline. You will be given a URL to check the progress of your async request in the location header of the response. This status URI looks like the following:\n```\n GET https://atlas.microsoft.com/route/matrix/{matrixId}?api-version=1.0?subscription-key={subscription-key}\n```\n\nThe URL provided by the location header will return the following responses when a `GET` request is issued.\n\n > HTTP `202 Accepted` - Matrix request was accepted but is still being processed. Please try again in some time.\n\n > HTTP `200 OK` - Matrix request successfully processed. The response body contains all of the results.", "operationId": "Route_PostRouteMatrix", "x-ms-long-running-operation": true, @@ -913,7 +912,6 @@ }, "/route/directions/{format}": { "get": { - "x-publish": true, "description": "**Applies to**: S0 and S1 pricing tiers.\n\n\nReturns a route between an origin and a destination, passing through waypoints if they are specified. The route will take into account factors such as current traffic and the typical road speeds on the requested day of the week and time of day.\n\nInformation returned includes the distance, estimated travel time, and a representation of the route geometry. Additional routing information such as optimized waypoint order or turn by turn instructions is also available, depending on the options selected.\n\nRouting service provides a set of parameters for a detailed description of vehicle-specific Consumption Model. Please check [Consumption Model](https://docs.microsoft.com/azure/azure-maps/consumption-model) for detailed explanation of the concepts and parameters involved.", "operationId": "Route_GetRouteDirections", "x-ms-examples": { @@ -1108,7 +1106,6 @@ } }, "post": { - "x-publish": true, "description": "**Applies to**: S0 and S1 pricing tiers.\n\n\nReturns a route between an origin and a destination, passing through waypoints if they are specified. The route will take into account factors such as current traffic and the typical road speeds on the requested day of the week and time of day.\n\nInformation returned includes the distance, estimated travel time, and a representation of the route geometry. Additional routing information such as optimized waypoint order or turn by turn instructions is also available, depending on the options selected.\n\nRouting service provides a set of parameters for a detailed description of a vehicle-specific Consumption Model. Please check [Consumption Model](https://docs.microsoft.com/azure/azure-maps/consumption-model) for detailed explanation of the concepts and parameters involved.", "operationId": "Route_PostRouteDirections", "x-ms-examples": { @@ -1314,7 +1311,6 @@ }, "/route/range/{format}": { "get": { - "x-publish": true, "description": "__Route Range (Isochrone) API__\n\n\n**Applies to**: S1 pricing tier.\n\nThis service will calculate a set of locations that can be reached from the origin point based on fuel, energy, time or distance budget that is specified. A polygon boundary (or Isochrone) is returned in a counterclockwise orientation as well as the precise polygon center which was the result of the origin point.\n\nThe returned polygon can be used for further processing such as [Search Inside Geometry](https://docs.microsoft.com/rest/api/maps/search/postsearchinsidegeometry) to search for POIs within the provided Isochrone.", "operationId": "Route_GetRouteRange", "x-ms-examples": { @@ -1486,7 +1482,6 @@ }, "/route/directions/batch/{format}": { "post": { - "x-publish": true, "description": "**Route Directions Batch API**\n\n\n**Applies to**: S1 pricing tier.\n\n\n\nThe Route Directions Batch API sends batches of queries to [Route Directions API](https://docs.microsoft.com/en-us/rest/api/maps/route/getroutedirections) using just a single API call. You can call Route Directions Batch API to run either asynchronously (async) or synchronously (sync). The async API allows caller to batch up to **700** queries and sync API up to **100** queries.\n### Submit Synchronous Batch Request\nThe Synchronous API is recommended for lightweight batch requests. When the service receives a request, it will respond as soon as the batch items are calculated and there will be no possibility to retrieve the results later. The Synchronous API will return a timeout error (a 408 response) if the request takes longer than 60 seconds. The number of batch items is limited to **100** for this API.\n```\nPOST https://atlas.microsoft.com/route/directions/batch/sync/json?api-version=1.0&subscription-key={subscription-key}\n```\n### Submit Asynchronous Batch Request\nThe Asynchronous API is appropriate for processing big volumes of relatively complex route requests\n- It allows the retrieval of results in a separate call (multiple downloads are possible).\n- The asynchronous API is optimized for reliability and is not expected to run into a timeout.\n- The number of batch items is limited to **700** for this API.\n\nWhen you make a request by using async request, by default the service returns a 202 response code along a redirect URL in the Location field of the response header. This URL should be checked periodically until the response data or error information is available.\nThe asynchronous responses are stored for **14** days. The redirect URL returns a 404 response if used after the expiration period.\n\nPlease note that asynchronous batch request is a long-running request. Here's a typical sequence of operations:\n1. Client sends a Route Directions Batch `POST` request to Azure Maps\n2. The server will respond with one of the following:\n\n > HTTP `202 Accepted` - Batch request has been accepted.\n\n > HTTP `Error` - There was an error processing your Batch request. This could either be a `400 Bad Request` or any other `Error` status code.\n\n3. If the batch request was accepted successfully, the `Location` header in the response contains the URL to download the results of the batch request.\n This status URI looks like following:\n\n``` GET https://atlas.microsoft.com/batch/{batch-id}?api-version=1.0 ```\nNote:- Please remember to add AUTH information (subscription-key/azure_auth - See [Security](#security)) to the _status URI_ before running it.
\n4. Client issues a `GET` request on the _download URL_ obtained in Step 3 to download the batch results.\n\n### POST Body for Batch Request\nTo send the _route directions_ queries you will use a `POST` request where the request body will contain the `batchItems` array in `json` format and the `Content-Type` header will be set to `application/json`. Here's a sample request body containing 3 _route directions_ queries:\n\n\n```json\n{\n \"batchItems\": [\n { \"query\": \"?query=47.620659,-122.348934:47.610101,-122.342015&travelMode=bicycle&routeType=eco&traffic=false\" },\n { \"query\": \"?query=40.759856,-73.985108:40.771136,-73.973506&travelMode=pedestrian&routeType=shortest\" },\n { \"query\": \"?query=48.923159,-122.557362:32.621279,-116.840362\" }\n ]\n}\n```\n\nA _route directions_ query in a batch is just a partial URL _without_ the protocol, base URL, path, api-version and subscription-key. It can accept any of the supported _route directions_ [URI parameters](https://docs.microsoft.com/en-us/rest/api/maps/route/getroutedirections#uri-parameters). The string values in the _route directions_ query must be properly escaped (e.g. \" character should be escaped with \\\\ ) and it should also be properly URL-encoded.\n\n\nThe async API allows caller to batch up to **700** queries and sync API up to **100** queries, and the batch should contain at least **1** query.\n\n\n### Download Asynchronous Batch Results\nTo download the async batch results you will issue a `GET` request to the batch download endpoint. This _download URL_ can be obtained from the `Location` header of a successful `POST` batch request and looks like the following:\n\n```\nhttps://atlas.microsoft.com/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\nHere's the typical sequence of operations for downloading the batch results:\n1. Client sends a `GET` request using the _download URL_.\n2. The server will respond with one of the following:\n \n > HTTP `202 Accepted` - Batch request was accepted but is still being processed. Please try again in some time.\n\n > HTTP `200 OK` - Batch request successfully processed. The response body contains all the batch results.\n\n\n\n### Batch Response Model\nThe returned data content is similar for async and sync requests. When downloading the results of an async batch request, if the batch has finished processing, the response body contains the batch response. This batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests`i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item in `batchItems` contains `statusCode` and `response` fields. Each `response` in `batchItems` is of one of the following types:\n\n - [`RouteDirectionsResponse`](https://docs.microsoft.com/en-us/rest/api/maps/route/getroutedirections#routedirectionsresponse) - If the query completed successfully.\n\n - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.\n\n\nHere's a sample Batch Response with 1 _successful_ and 1 _failed_ result:\n\n\n```json\n{\n \"summary\": {\n \"successfulRequests\": 1,\n \"totalRequests\": 2\n },\n \"batchItems\": [\n {\n \"statusCode\": 200,\n \"response\": {\n \"routes\": [\n {\n \"summary\": {\n \"lengthInMeters\": 1758,\n \"travelTimeInSeconds\": 387,\n \"trafficDelayInSeconds\": 0,\n \"departureTime\": \"2018-07-17T00:49:56+00:00\",\n \"arrivalTime\": \"2018-07-17T00:56:22+00:00\"\n },\n \"legs\": [\n {\n \"summary\": {\n \"lengthInMeters\": 1758,\n \"travelTimeInSeconds\": 387,\n \"trafficDelayInSeconds\": 0,\n \"departureTime\": \"2018-07-17T00:49:56+00:00\",\n \"arrivalTime\": \"2018-07-17T00:56:22+00:00\"\n },\n \"points\": [\n {\n \"latitude\": 47.62094,\n \"longitude\": -122.34892\n },\n {\n \"latitude\": 47.62094,\n \"longitude\": -122.3485\n },\n {\n \"latitude\": 47.62095,\n \"longitude\": -122.3476\n }\n ]\n }\n ],\n \"sections\": [\n {\n \"startPointIndex\": 0,\n \"endPointIndex\": 40,\n \"sectionType\": \"TRAVEL_MODE\",\n \"travelMode\": \"bicycle\"\n }\n ]\n }\n ]\n }\n },\n {\n \"statusCode\": 400,\n \"response\":\n {\n \"error\":\n {\n \"code\": \"400 BadRequest\",\n \"message\": \"Bad request: one or more parameters were incorrectly specified or are mutually exclusive.\"\n }\n }\n }\n ]\n}\n```", "operationId": "Route_PostRouteDirectionsBatch", "x-ms-long-running-operation": true, diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json index 7f9845fb6881..bc95744964de 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json @@ -400,7 +400,6 @@ "paths": { "/search/polygon/{format}": { "get": { - "x-publish": true, "description": "**Get Polygon**\n\n\n**Applies to**: S1 pricing tier.\n\n\nThe Get Polygon service allows you to request the geometry data such as a city or country outline for a set of entities, previously retrieved from an Online Search request in GeoJSON format. The geometry ID is returned in the dataSources object under \"geometry\" and \"id\" in either a Search Address or Search Fuzzy call.\n\nPlease note that any geometry ID retrieved from an Online Search endpoint has a limited lifetime. The client should not store geometry IDs in persistent storage for later referral, as the stability of these identifiers is not guaranteed for a long period of time. It is expected that a request to the Polygon method is made within a few minutes of the request to the Online Search method that provided the ID. The service allows for batch requests up to 20 identifiers.", "operationId": "Search_GetSearchPolygon", "x-ms-examples": { @@ -459,7 +458,6 @@ }, "/search/fuzzy/{format}": { "get": { - "x-publish": true, "description": "\n**Free Form Search**\n\n**Applies to**: S0 and S1 pricing tiers.\n\n\nThe basic default API is Free Form Search which handles the most fuzzy of inputs handling any combination of address or POI tokens. This search API is the canonical 'single line search'. The Free Form Search API is a seamless combination of POI search and geocoding. The API can also be weighted with a contextual position (lat./lon. pair), or fully constrained by a coordinate and radius, or it can be executed more generally without any geo biasing anchor point.

We strongly advise you to use the 'countrySet' parameter to specify only the countries for which your application needs coverage, as the default behavior will be to search the entire world, potentially returning unnecessary results.

E.g.: `countrySet`=US,FR

Please see [Search Coverage](https://docs.microsoft.com/azure/location-based-services/geocoding-coverage) for a complete list of all the supported countries.

Most Search queries default to `maxFuzzyLevel`=2 to gain performance and also reduce unusual results. This new default can be overridden as needed per request by passing in the query param `maxFuzzyLevel`=3 or 4.", "operationId": "Search_GetSearchFuzzy", "x-ms-examples": { @@ -586,7 +584,6 @@ }, "/search/poi/{format}": { "get": { - "x-publish": true, "description": "**Get POI by Name**\n\n**Applies to**: S0 and S1 pricing tiers.\n\n\nPoints of Interest (POI) Search allows you to request POI results by name. Search supports additional query parameters such as language and filtering results by area of interest driven by country or bounding box. Endpoint will return only POI results matching the query string. Response includes POI details such as address, coordinate location and category.", "operationId": "Search_GetSearchPOI", "x-ms-examples": { @@ -690,7 +687,6 @@ }, "/search/nearby/{format}": { "get": { - "x-publish": true, "description": "**Nearby Search**\n\n**Applies to**: S0 and S1 pricing tiers.\n\n\nIf you have a use case for only retrieving POI results around a specific location, the nearby search method may be the right choice. This endpoint will only return POI results, and does not take in a search query parameter.", "operationId": "Search_GetSearchNearby", "x-ms-examples": { @@ -779,7 +775,6 @@ }, "/search/poi/category/{format}": { "get": { - "x-publish": true, "description": "**Get POI by Category**\n\n**Applies to**: S0 and S1 pricing tiers.\n\n\nPoints of Interest (POI) Category Search allows you to request POI results from given category. Search allows to query POIs from one category at a time. Endpoint will only return POI results which are categorized as specified. Response includes POI details such as address, coordinate location and classification.", "operationId": "Search_GetSearchPOICategory", "x-ms-examples": { @@ -883,7 +878,6 @@ }, "/search/poi/category/tree/{format}": { "get": { - "x-publish": true, "description": "**Get POI Category Tree**\n\n**Applies to**: S0 and S1 pricing tiers.\n\n\nPOI Category API provides a full list of supported Points of Interest (POI) categories and subcategories together with their translations and synonyms. The returned content can be used to provide more meaningful results through other Search Service APIs, like [Get Search POI](https://docs.microsoft.com/rest/api/maps/search/getsearchpoi).", "operationId": "Search_GetSearchPOICategoryTreePreview", "x-ms-examples": { @@ -939,7 +933,6 @@ }, "/search/address/{format}": { "get": { - "x-publish": true, "description": "**Address Geocoding**\n\n**Applies to**: S0 and S1 pricing tiers.\n\n\nIn many cases, the complete search service might be too much, for instance if you are only interested in traditional geocoding. Search can also be accessed for address look up exclusively. The geocoding is performed by hitting the geocode endpoint with just the address or partial address in question. The geocoding search index will be queried for everything above the street level data. No POIs will be returned. Note that the geocoder is very tolerant of typos and incomplete addresses. It will also handle everything from exact street addresses or street or intersections as well as higher level geographies such as city centers, counties, states etc.", "operationId": "Search_GetSearchAddress", "x-ms-examples": { @@ -1031,7 +1024,6 @@ }, "/search/address/reverse/{format}": { "get": { - "x-publish": true, "description": "**Reverse Geocode to an Address**\n\n**Applies to**: S0 and S1 pricing tiers.\n\n\nThere may be times when you need to translate a coordinate (example: 37.786505, -122.3862) into a human understandable street address. Most often this is needed in tracking applications where you receive a GPS feed from the device or asset and wish to know what address where the coordinate is located. This endpoint will return address information for a given coordinate.", "operationId": "Search_GetSearchAddressReverse", "x-ms-examples": { @@ -1200,7 +1192,6 @@ }, "/search/address/reverse/crossStreet/{format}": { "get": { - "x-publish": true, "description": "**Reverse Geocode to a Cross Street**\n\n**Applies to**: S0 and S1 pricing tiers.\n\n\nThere may be times when you need to translate a coordinate (example: 37.786505, -122.3862) into a human understandable cross street. Most often this is needed in tracking applications where you receive a GPS feed from the device or asset and wish to know what address where the coordinate is located.\nThis endpoint will return cross street information for a given coordinate.", "operationId": "Search_GetSearchAddressReverseCrossStreet", "x-ms-examples": { @@ -1273,7 +1264,6 @@ }, "/search/address/structured/{format}": { "get": { - "x-publish": true, "description": "**Structured Address Geocoding**\n\n**Applies to**: S0 and S1 pricing tiers.\n\n\nAzure Address Geocoding can also be accessed for structured address look up exclusively. The geocoding search index will be queried for everything above the street level data. No POIs will be returned. Note that the geocoder is very tolerant of typos and incomplete addresses. It will also handle everything from exact street addresses or street or intersections as well as higher level geographies such as city centers, counties, states etc.", "operationId": "Search_GetSearchAddressStructured", "x-ms-examples": { @@ -1408,7 +1398,6 @@ }, "/search/geometry/{format}": { "post": { - "x-publish": true, "description": "**Applies to**: S0 and S1 pricing tiers.\n\nThe Search Geometry endpoint allows you to perform a free form search inside a single geometry or many of them. The search results that fall inside the geometry/geometries will be returned.

To send the geometry you will use a `POST` request where the request body will contain the `geometry` object represented as a `GeoJSON` type and the `Content-Type` header will be set to `application/json`. The geographical features to be searched can be modeled as Polygon and/or Circle geometries represented using any one of the following `GeoJSON` types:
  • **GeoJSON FeatureCollection**
    The `geometry` can be represented as a `GeoJSON FeatureCollection` object. This is the recommended option if the geometry contains both Polygons and Circles. The `FeatureCollection` can contain a max of 50 `GeoJSON Feature` objects. Each `Feature` object should represent either a Polygon or a Circle with the following conditions:
    • A `Feature` object for the Polygon geometry can have a max of 50 coordinates and it's properties must be empty.
    • A `Feature` object for the Circle geometry is composed of a _center_ represented using a `GeoJSON Point` type and a _radius_ value (in meters) which must be specified in the object's properties along with the _subType_ property whose value should be 'Circle'.

    Please see the Examples section below for a sample `FeatureCollection` representation.

  • **GeoJSON GeometryCollection**
    The `geometry` can be represented as a `GeoJSON GeometryCollection` object. This is the recommended option if the geometry contains a list of Polygons only. The `GeometryCollection` can contain a max of 50 `GeoJSON Polygon` objects. Each `Polygon` object can have a max of 50 coordinates. Please see the Examples section below for a sample `GeometryCollection` representation.

  • **GeoJSON Polygon**
    The `geometry` can be represented as a `GeoJSON Polygon` object. This is the recommended option if the geometry contains a single Polygon. The `Polygon` object can have a max of 50 coordinates. Please see the Examples section below for a sample `Polygon` representation.

.

", "operationId": "Search_PostSearchInsideGeometry", "x-ms-examples": { @@ -1496,7 +1485,6 @@ }, "/search/alongRoute/{format}": { "post": { - "x-publish": true, "description": "**Applies to**: S0 and S1 pricing tiers.\n\n\nThe Search Along Route endpoint allows you to perform a fuzzy search for POIs along a specified route. This search is constrained by specifying the `maxDetourTime` limiting measure.

To send the route-points you will use a `POST` request where the request body will contain the `route` object represented as a `GeoJSON LineString` type and the `Content-Type` header will be set to `application/json`. Each route-point in `route` is represented as a `GeoJSON Position` type i.e. an array where the _longitude_ value is followed by the _latitude_ value and the _altitude_ value is ignored. The `route` should contain at least 2 route-points.

It is possible that original route will be altered, some of it's points may be skipped. If the route that passes through the found point is faster than the original one, the `detourTime` value in the response is negative.", "operationId": "Search_PostSearchAlongRoute", "x-ms-examples": { @@ -1589,7 +1577,6 @@ }, "/search/fuzzy/batch/{format}": { "post": { - "x-publish": true, "description": "**Search Fuzzy Batch API**\n\n\n**Applies to**: S1 pricing tier.\n\n\n\nThe Search Address Batch API sends batches of queries to [Search Fuzzy API](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchfuzzy) using just a single API call. You can call Search Address Fuzzy Batch API to run either asynchronously (async) or synchronously (sync). The async API allows caller to batch up to **10,000** queries and sync API up to **100** queries.\n### Submit Synchronous Batch Request\nThe Synchronous API is recommended for lightweight batch requests. When the service receives a request, it will respond as soon as the batch items are calculated and there will be no possibility to retrieve the results later. The Synchronous API will return a timeout error (a 408 response) if the request takes longer than 60 seconds. The number of batch items is limited to **100** for this API.\n```\nPOST https://atlas.microsoft.com/search/fuzzy/batch/sync/json?api-version=1.0&subscription-key={subscription-key}\n```\n### Submit Asynchronous Batch Request\nThe Asynchronous API is appropriate for processing big volumes of relatively complex search requests\n- It allows the retrieval of results in a separate call (multiple downloads are possible).\n- The asynchronous API is optimized for reliability and is not expected to run into a timeout.\n- The number of batch items is limited to **10,000** for this API.\n\nWhen you make a request by using async request, by default the service returns a 202 response code along a redirect URL in the Location field of the response header. This URL should be checked periodically until the response data or error information is available.\nThe asynchronous responses are stored for **14** days. The redirect URL returns a 404 response if used after the expiration period.\n\nPlease note that asynchronous batch request is a long-running request. Here's a typical sequence of operations:\n1. Client sends a Search Address Batch `POST` request to Azure Maps\n2. The server will respond with one of the following:\n\n > HTTP `202 Accepted` - Batch request has been accepted.\n\n > HTTP `Error` - There was an error processing your Batch request. This could either be a `400 Bad Request` or any other `Error` status code.\n\n3. If the batch request was accepted successfully, the `Location` header in the response contains the URL to download the results of the batch request.\n This status URI looks like following:\n\n```\n GET https://atlas.microsoft.com/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\n4. Client issues a `GET` request on the _download URL_ obtained in Step 3 to download the batch results.\n\n### POST Body for Batch Request\nTo send the _search fuzzy_ queries you will use a `POST` request where the request body will contain the `batchItems` array in `json` format and the `Content-Type` header will be set to `application/json`. Here's a sample request body containing 5 _search fuzzy_ queries:\n\n\n```json\n{\n \"batchItems\": [\n {\"query\": \"?query=atm&lat=47.639769&lon=-122.128362&radius=5000&limit=5\"},\n {\"query\": \"?query=Statue Of Liberty&limit=2\"},\n {\"query\": \"?query=Starbucks&lat=47.639769&lon=-122.128362&radius=5000\"},\n {\"query\": \"?query=Space Needle\"},\n {\"query\": \"?query=pizza&limit=10\"}\n ]\n}\n```\n\nA _search fuzzy_ query in a batch is just a partial URL _without_ the protocol, base URL, path, api-version and subscription-key. It can accept any of the supported _search fuzzy_ [URI parameters](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchfuzzy#uri-parameters). The string values in the _search fuzzy_ query must be properly escaped (e.g. \" character should be escaped with \\\\ ) and it should also be properly URL-encoded.\n\n\nThe async API allows caller to batch up to **10,000** queries and sync API up to **100** queries, and the batch should contain at least **1** query.\n\n\n### Download Asynchronous Batch Results\nTo download the async batch results you will issue a `GET` request to the batch download endpoint. This _download URL_ can be obtained from the `Location` header of a successful `POST` batch request and looks like the following:\n\n```\nhttps://atlas.microsoft.com/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\nHere's the typical sequence of operations for downloading the batch results:\n1. Client sends a `GET` request using the _download URL_.\n2. The server will respond with one of the following:\n\n > HTTP `202 Accepted` - Batch request was accepted but is still being processed. Please try again in some time.\n\n > HTTP `200 OK` - Batch request successfully processed. The response body contains all the batch results.\n\n\n\n### Batch Response Model\nThe returned data content is similar for async and sync requests. When downloading the results of an async batch request, if the batch has finished processing, the response body contains the batch response. This batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests`i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item in `batchItems` contains `statusCode` and `response` fields. Each `response` in `batchItems` is of one of the following types:\n\n - [`SearchFuzzyResponse`](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchfuzzy#searchfuzzyresponse) - If the query completed successfully.\n\n - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.\n\n\nHere's a sample Batch Response with 2 _successful_ and 1 _failed_ result:\n\n\n```json\n{\n \"summary\": {\n \"successfulRequests\": 2,\n \"totalRequests\": 3\n },\n \"batchItems\": [\n {\n \"statusCode\": 200,\n \"response\":\n {\n \"summary\": {\n \"query\": \"atm\"\n },\n \"results\": [\n {\n \"type\": \"POI\",\n \"poi\": {\n \"name\": \"ATM at Wells Fargo\"\n },\n \"address\": {\n \"country\": \"United States Of America\",\n \"freeformAddress\": \"3240 157th Ave NE, Redmond, WA 98052\"\n }\n }\n ]\n }\n },\n {\n \"statusCode\": 200,\n \"response\":\n {\n \"summary\": {\n \"query\": \"statue of liberty\"\n },\n \"results\": [\n {\n \"type\": \"POI\",\n \"poi\": {\n \"name\": \"Statue of Liberty\"\n },\n \"address\": {\n \"country\": \"United States Of America\",\n \"freeformAddress\": \"New York, NY 10004\"\n }\n }\n ]\n }\n },\n {\n \"statusCode\": 400,\n \"response\":\n {\n \"error\":\n {\n \"code\": \"400 BadRequest\",\n \"message\": \"Bad request: one or more parameters were incorrectly specified or are mutually exclusive.\"\n }\n }\n }\n ]\n}\n```", "operationId": "Search_PostSearchFuzzyBatch", "x-ms-long-running-operation": true, @@ -1657,7 +1644,6 @@ }, "/search/address/batch/{format}": { "post": { - "x-publish": true, "description": "**Search Address Batch API**\n\n\n**Applies to**: S1 pricing tier.\n\n\n\nThe Search Address Batch API sends batches of queries to [Search Address API](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchaddress) using just a single API call. You can call Search Address Batch API to run either asynchronously (async) or synchronously (sync). The async API allows caller to batch up to **10,000** queries and sync API up to **100** queries.\n### Submit Synchronous Batch Request\nThe Synchronous API is recommended for lightweight batch requests. When the service receives a request, it will respond as soon as the batch items are calculated and there will be no possibility to retrieve the results later. The Synchronous API will return a timeout error (a 408 response) if the request takes longer than 60 seconds. The number of batch items is limited to **100** for this API.\n```\nPOST https://atlas.microsoft.com/search/address/batch/sync/json?api-version=1.0&subscription-key={subscription-key}\n```\n### Submit Asynchronous Batch Request\nThe Asynchronous API is appropriate for processing big volumes of relatively complex search requests\n- It allows the retrieval of results in a separate call (multiple downloads are possible).\n- The asynchronous API is optimized for reliability and is not expected to run into a timeout.\n- The number of batch items is limited to **10,000** for this API.\n\nWhen you make a request by using async request, by default the service returns a 202 response code along a redirect URL in the Location field of the response header. This URL should be checked periodically until the response data or error information is available.\nThe asynchronous responses are stored for **14** days. The redirect URL returns a 404 response if used after the expiration period.\n\nPlease note that asynchronous batch request is a long-running request. Here's a typical sequence of operations:\n1. Client sends a Search Address Batch `POST` request to Azure Maps\n2. The server will respond with one of the following:\n\n > HTTP `202 Accepted` - Batch request has been accepted.\n\n > HTTP `Error` - There was an error processing your Batch request. This could either be a `400 Bad Request` or any other `Error` status code.\n\n3. If the batch request was accepted successfully, the `Location` header in the response contains the URL to download the results of the batch request.\n This status URI looks like following:\n\n```\n GET https://atlas.microsoft.com/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\n4. Client issues a `GET` request on the _download URL_ obtained in Step 3 to download the batch results.\n\n### POST Body for Batch Request\nTo send the _search address_ queries you will use a `POST` request where the request body will contain the `batchItems` array in `json` format and the `Content-Type` header will be set to `application/json`. Here's a sample request body containing 5 _search address_ queries:\n\n\n```json\n{\n \"batchItems\": [\n {\"query\": \"?query=400 Broad St, Seattle, WA 98109&limit=3\"},\n {\"query\": \"?query=One, Microsoft Way, Redmond, WA 98052&limit=3\"},\n {\"query\": \"?query=350 5th Ave, New York, NY 10118&limit=1\"},\n {\"query\": \"?query=Pike Pl, Seattle, WA 98101&lat=47.610970&lon=-122.342469&radius=1000\"},\n {\"query\": \"?query=Champ de Mars, 5 Avenue Anatole France, 75007 Paris, France&limit=1\"}\n ]\n}\n```\n\nA _search address_ query in a batch is just a partial URL _without_ the protocol, base URL, path, api-version and subscription-key. It can accept any of the supported _search address_ [URI parameters](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchaddress#uri-parameters). The string values in the _search address_ query must be properly escaped (e.g. \" character should be escaped with \\\\ ) and it should also be properly URL-encoded.\n\n\nThe async API allows caller to batch up to **10,000** queries and sync API up to **100** queries, and the batch should contain at least **1** query.\n\n\n### Download Asynchronous Batch Results\nTo download the async batch results you will issue a `GET` request to the batch download endpoint. This _download URL_ can be obtained from the `Location` header of a successful `POST` batch request and looks like the following:\n\n```\nhttps://atlas.microsoft.com/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\nHere's the typical sequence of operations for downloading the batch results:\n1. Client sends a `GET` request using the _download URL_.\n2. The server will respond with one of the following:\n\n > HTTP `202 Accepted` - Batch request was accepted but is still being processed. Please try again in some time.\n\n > HTTP `200 OK` - Batch request successfully processed. The response body contains all the batch results.\n\n\n\n### Batch Response Model\nThe returned data content is similar for async and sync requests. When downloading the results of an async batch request, if the batch has finished processing, the response body contains the batch response. This batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests`i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item in `batchItems` contains `statusCode` and `response` fields. Each `response` in `batchItems` is of one of the following types:\n\n - [`SearchAddressResponse`](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchaddress#searchaddressresponse) - If the query completed successfully.\n\n - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.\n\n\nHere's a sample Batch Response with 2 _successful_ and 1 _failed_ result:\n\n\n```json\n{\n \"summary\": {\n \"successfulRequests\": 2,\n \"totalRequests\": 3\n },\n \"batchItems\": [\n {\n \"statusCode\": 200,\n \"response\":\n {\n \"summary\": {\n \"query\": \"one microsoft way redmond wa 98052\"\n },\n \"results\": [\n {\n \"position\": {\n \"lat\": 47.63989,\n \"lon\": -122.12509\n }\n }\n ]\n }\n },\n {\n \"statusCode\": 200,\n \"response\":\n {\n \"summary\": {\n \"query\": \"pike pl seattle wa 98101\"\n },\n \"results\": [\n {\n \"position\": {\n \"lat\": 47.60963,\n \"lon\": -122.34215\n }\n }\n ]\n }\n },\n {\n \"statusCode\": 400,\n \"response\":\n {\n \"error\":\n {\n \"code\": \"400 BadRequest\",\n \"message\": \"Bad request: one or more parameters were incorrectly specified or are mutually exclusive.\"\n }\n }\n }\n ]\n}\n```", "operationId": "Search_PostSearchAddressBatch", "x-ms-long-running-operation": true, @@ -1725,7 +1711,6 @@ }, "/search/address/reverse/batch/{format}": { "post": { - "x-publish": true, "description": "**Search Address Reverse Batch API**\n\n\n**Applies to**: S1 pricing tier.\n\n\n\nThe Search Address Batch API sends batches of queries to [Search Address Reverse API](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchaddressreverse) using just a single API call. You can call Search Address Reverse Batch API to run either asynchronously (async) or synchronously (sync). The async API allows caller to batch up to **10,000** queries and sync API up to **100** queries.\n### Submit Synchronous Batch Request\nThe Synchronous API is recommended for lightweight batch requests. When the service receives a request, it will respond as soon as the batch items are calculated and there will be no possibility to retrieve the results later. The Synchronous API will return a timeout error (a 408 response) if the request takes longer than 60 seconds. The number of batch items is limited to **100** for this API.\n```\nPOST https://atlas.microsoft.com/search/address/reverse/batch/sync/json?api-version=1.0&subscription-key={subscription-key}\n```\n### Submit Asynchronous Batch Request\nThe Asynchronous API is appropriate for processing big volumes of relatively complex search requests\n- It allows the retrieval of results in a separate call (multiple downloads are possible).\n- The asynchronous API is optimized for reliability and is not expected to run into a timeout.\n- The number of batch items is limited to **10,000** for this API.\n\nWhen you make a request by using async request, by default the service returns a 202 response code along a redirect URL in the Location field of the response header. This URL should be checked periodically until the response data or error information is available.\nThe asynchronous responses are stored for **14** days. The redirect URL returns a 404 response if used after the expiration period.\n\nPlease note that asynchronous batch request is a long-running request. Here's a typical sequence of operations:\n1. Client sends a Search Address Batch `POST` request to Azure Maps\n2. The server will respond with one of the following:\n\n > HTTP `202 Accepted` - Batch request has been accepted.\n\n > HTTP `Error` - There was an error processing your Batch request. This could either be a `400 Bad Request` or any other `Error` status code.\n\n3. If the batch request was accepted successfully, the `Location` header in the response contains the URL to download the results of the batch request.\n This status URI looks like following:\n\n```\n GET https://atlas.microsoft.com/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\n4. Client issues a `GET` request on the _download URL_ obtained in Step 3 to download the batch results.\n\n### POST Body for Batch Request\nTo send the _search address reverse_ queries you will use a `POST` request where the request body will contain the `batchItems` array in `json` format and the `Content-Type` header will be set to `application/json`. Here's a sample request body containing 5 _search address reverse_ queries:\n\n\n```json\n{\n \"batchItems\": [\n {\"query\": \"?query=48.858561,2.294911\"},\n {\"query\": \"?query=47.639765,-122.127896&radius=5000&limit=2\"},\n {\"query\": \"?query=47.621028,-122.348170\"},\n {\"query\": \"?query=43.722990,10.396695\"},\n {\"query\": \"?query=40.750958,-73.982336\"}\n ]\n}\n```\n\nA _search address reverse_ query in a batch is just a partial URL _without_ the protocol, base URL, path, api-version and subscription-key. It can accept any of the supported _search address reverse_ [URI parameters](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchaddressreverse#uri-parameters). The string values in the _search address reverse_ query must be properly escaped (e.g. \" character should be escaped with \\\\ ) and it should also be properly URL-encoded.\n\n\nThe async API allows caller to batch up to **10,000** queries and sync API up to **100** queries, and the batch should contain at least **1** query.\n\n\n### Download Asynchronous Batch Results\nTo download the async batch results you will issue a `GET` request to the batch download endpoint. This _download URL_ can be obtained from the `Location` header of a successful `POST` batch request and looks like the following:\n\n```\nhttps://atlas.microsoft.com/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\nHere's the typical sequence of operations for downloading the batch results:\n1. Client sends a `GET` request using the _download URL_.\n2. The server will respond with one of the following:\n\n > HTTP `202 Accepted` - Batch request was accepted but is still being processed. Please try again in some time.\n\n > HTTP `200 OK` - Batch request successfully processed. The response body contains all the batch results.\n\n\n\n### Batch Response Model\nThe returned data content is similar for async and sync requests. When downloading the results of an async batch request, if the batch has finished processing, the response body contains the batch response. This batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests`i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item in `batchItems` contains `statusCode` and `response` fields. Each `response` in `batchItems` is of one of the following types:\n\n - [`SearchAddressReverseResponse`](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchaddressreverse#searchaddressreverseresponse) - If the query completed successfully.\n\n - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.\n\n\nHere's a sample Batch Response with 2 _successful_ and 1 _failed_ result:\n\n\n```json\n{\n \"summary\": {\n \"successfulRequests\": 2,\n \"totalRequests\": 3\n },\n \"batchItems\": [\n {\n \"statusCode\": 200,\n \"response\":\n {\n \"summary\": {\n \"queryTime\": 11\n },\n \"addresses\": [\n {\n \"address\": {\n \"country\": \"France\",\n \"freeformAddress\": \"Avenue Anatole France, 75007 Paris\"\n },\n \"position\": \"48.858490,2.294820\"\n }\n ]\n }\n },\n {\n \"statusCode\": 200,\n \"response\":\n {\n \"summary\": {\n \"queryTime\": 1\n },\n \"addresses\": [\n {\n \"address\": {\n \"country\": \"United States of America\",\n \"freeformAddress\": \"157th Pl NE, Redmond WA 98052\"\n },\n \"position\": \"47.640470,-122.129430\"\n }\n ]\n }\n },\n {\n \"statusCode\": 400,\n \"response\":\n {\n \"error\":\n {\n \"code\": \"400 BadRequest\",\n \"message\": \"Bad request: one or more parameters were incorrectly specified or are mutually exclusive.\"\n }\n }\n }\n ]\n}\n```", "operationId": "Search_PostSearchAddressReverseBatch", "x-ms-long-running-operation": true, diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json index ff9c32c9ee5e..5c1ed7e6605c 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json @@ -128,7 +128,6 @@ "paths": { "/spatial/geofence/{format}": { "get": { - "x-publish": true, "description": "**Search Geofence Get API**\n\n**Applies to:** S1 Pricing tier.\n\nThe Geofence Get API allows you to retrieve the proximity of a coordinate to a \ngeofence that has been uploaded to the Data service. You can use the \n[Data Upload API](https://docs.microsoft.com/en-us/rest/api/maps/data/uploadPreview) to upload \na geofence or set of fences. See [Geofencing GeoJSON data](https://docs.microsoft.com/en-us/azure/azure-maps/geofence-geojson) \nfor more details on the geofence data format. To query the proximity of a coordinate, you supply the location of the object you are tracking as well\nas the ID for the fence or set of fences, and the response will contain information about\nthe distance from the outer edge of the geofence. A negative value signifies that the \ncoordinate is inside of the fence while a positive value means that it is outside of the\nfence.

This API can be used for a variety of scenarios that include things like asset \ntracking, fleet management, or setting up alerts for moving objects.\n\nThe API supports [integration with Event Grid](https://docs.microsoft.com/azure/azure-maps/azure-maps-event-grid-integration). The isAsync parameter is used to enable integration with Event Grid (disabled by default).\nTo test this API, you can upload the sample data from Post Geofence API examples(Request Body) via Data Upload API and replace the [udid] from the sample request below with the udid returned by Data Upload API.\n\n\n### Geofencing InnerError code\n\nIn geofencing response error contract, `innererror` is an object containing service specific information about the error. `code` is a property in `innererror` which can map to a specific geofencing error type. The table belows shows the code mapping between all the known client error type to the corresponding geofencing error `message`.\n\ninnererror.code | error.message\n---------------------------- | -------------------------------------- \nNullDeviceId | Device Id should not be null.\nNullUdid\t | Udid should not be null.\nUdidWrongFormat| Udid should be acquired from user data ingestion API.\nInvalidUserTime| Usertime is invalid.\nInvalidSearchBuffer| Searchbuffer is invalid.\nInvalidSearchRange| The value range of searchbuffer should be from 0 to 500 meters.\nInvalidLatLon| Lat and/or lon parameters are invalid.\nInvalidIsAsyncValue| The IsAsync parameter is invalid.\nInvalidModeValue| The mode parameter invalid.\nInvalidJson| Geofencing data is not a valid json file.\nNotSupportedGeoJson| Geofencing data can't be read as a Feature or FeatureCollections.\nInvalidGeoJson| Geofencing data is invalid.\nNoUserDataWithAccountOrSubscription| Can't find user geofencing data with provided account-id and/or subscription-id.\nNoUserDataWithUdid|\tCan't find user geofencing data with provided udId.", "operationId": "Spatial_GetGeofence", "x-ms-examples": { @@ -247,7 +246,6 @@ } }, "post": { - "x-publish": true, "description": "**Search Geofence Post API**\n**Applies to:** S1 Pricing tier.\nThe Geofence Post API allows you to retrieve the proximity of a coordinate to a provided geofence or set of fences. With POST call, you do not have to upload the fence data in advance, instead you supply the location of the object you are tracking in query parameters as well as the fence or set of fences data in post request body. See [Geofencing GeoJSON data](https://docs.microsoft.com/en-us/azure/azure-maps/geofence-geojson) for more details on the geofence data format. The response will contain information about the distance from the outer edge of the geofence. A negative value signifies that the coordinate is inside of the fence while a positive value means that it is outside of the fence.

This API can be used for a variety of scenarios that include things like asset tracking, fleet management, or setting up alerts for moving objects.\n\nThe API supports [integration with Event Grid](https://docs.microsoft.com/azure/azure-maps/azure-maps-event-grid-integration). The isAsync parameter is used to enable integration with Event Grid (disabled by default).", "operationId": "Spatial_PostGeofence", "x-ms-examples": { @@ -370,7 +368,6 @@ }, "/spatial/buffer/{format}": { "post": { - "x-publish": true, "description": "**Applies to**: S1 pricing tier.\n\nThis API returns a FeatureCollection where each Feature is a buffer around the corresponding indexed Feature of the input. The buffer could be either on the outside or the inside of the provided Feature, depending on the distance provided in the input. There must be either one distance provided per Feature in the FeatureCollection input, or if only one distance is provided, then that distance is applied to every Feature in the collection. The positive (or negative) buffer of a geometry is defined as the Minkowski sum (or difference) of the geometry with a circle of radius equal to the absolute value of the buffer distance. The buffer API always returns a polygonal result. The negative or zero-distance buffer of lines and points is always an empty polygon. The input may contain a collection of Point, MultiPoint, Polygon, MultiPolygon, LineString and MultiLineString. GeometryCollection will be ignored if provided.", "operationId": "Spatial_PostBuffer", "x-ms-examples": { @@ -429,7 +426,6 @@ } }, "get": { - "x-publish": true, "description": "**Applies to**: S1 pricing tier.\n\nThis API returns a FeatureCollection where each Feature is a buffer around the corresponding indexed Feature of the input. The buffer could be either on the outside or the inside of the provided Feature, depending on the distance provided in the input. There must be either one distance provided per Feature in the FeatureCollection input, or if only one distance is provided, then that distance is applied to every Feature in the collection. The positive (or negative) buffer of a geometry is defined as the Minkowski sum (or difference) of the geometry with a circle of radius equal to the absolute value of the buffer distance. The buffer API always returns a polygonal result. The negative or zero-distance buffer of lines and points is always an empty polygon. The input features are provided by a GeoJSON file which is uploaded via [Data Upload API](https://docs.microsoft.com/en-us/rest/api/maps/data/uploadPreview) and referenced by a unique udid. The GeoJSON file may contain a collection of Point, MultiPoint, Polygon, MultiPolygon, LineString and MultiLineString. GeometryCollection will be ignored if provided. \n\nTo test this API, you can upload the sample data from [Post Buffer API](https://docs.microsoft.com/en-us/rest/api/maps/spatial/postbuffer#examples) examples(Request Body without distances array) via [Data Upload API](https://docs.microsoft.com/en-us/rest/api/maps/data/uploadPreview) and replace the [udid] from the [sample request below](https://docs.microsoft.com/en-us/rest/api/maps/spatial/getbuffer#examples) with the udid returned by Data Upload API.", "operationId": "Spatial_GetBuffer", "x-ms-examples": { @@ -491,7 +487,6 @@ }, "/spatial/closestPoint/{format}": { "post": { - "x-publish": true, "description": "**Applies to**: S1 pricing tier.\n\nThis API returns the closest point between a base point and a given set of target points. The set of target points is provided by user data in post request body. The user data may only contain a collection of Point geometry. MultiPoint or other geometries will be ignored if provided. The algorithm does not take into account routing or traffic. The maximum number of points accepted is 100,000. Information returned includes closest point latitude, longitude, and distance in meters from the closest point.", "operationId": "Spatial_PostClosestPoint", "x-ms-examples": { @@ -571,7 +566,6 @@ } }, "get": { - "x-publish": true, "description": "**Applies to**: S1 pricing tier.\n\nThis API returns the closest point between a base point and a given set of points in the user uploaded data set identified by udid. The set of target points is provided by a GeoJSON file which is uploaded via [Data Upload API](https://docs.microsoft.com/en-us/rest/api/maps/data/uploadPreview) and referenced by a unique udid. The GeoJSON file may only contain a collection of Point geometry. MultiPoint or other geometries will be ignored if provided. The maximum number of points accepted is 100,000. The algorithm does not take into account routing or traffic. Information returned includes closest point latitude, longitude, and distance in meters from the closest point.\n\nTo test this API, you can upload the sample data from [Post Closest Point API](https://docs.microsoft.com/en-us/rest/api/maps/spatial/postclosestpoint#examples) examples(Request Body) via [Data Upload API](https://docs.microsoft.com/en-us/rest/api/maps/data/uploadPreview) and replace the [udid] from the [sample request below](https://docs.microsoft.com/en-us/rest/api/maps/spatial/getclosestpoint#examples) with the udid returned by Data Upload API.", "operationId": "Spatial_GetClosestPoint", "x-ms-examples": { @@ -647,7 +641,6 @@ }, "/spatial/pointInPolygon/{format}": { "post": { - "x-publish": true, "description": "**Applies to**: S1 pricing tier.\n\nThis API returns a boolean value indicating whether a point is inside a set of polygons. The user data may contain Polygon and MultiPolygon geometries, other geometries will be ignored if provided. If the point is inside or on the boundary of one of these polygons, the value returned is true. In all other cases, the value returned is false. When the point is inside multiple polygons, the result will give intersecting geometries section to show all valid geometries (referenced by geometryId) in user data. The maximum number of vertices accepted to form a Polygon is 10,000.", "operationId": "Spatial_PostPointInPolygon", "x-ms-examples": { @@ -720,7 +713,6 @@ } }, "get": { - "x-publish": true, "description": "**Applies to**: S1 pricing tier.\n\nThis API returns a boolean value indicating whether a point is inside a set of polygons. The set of polygons is provided by a GeoJSON file which is uploaded via [Data Upload API](https://docs.microsoft.com/en-us/rest/api/maps/data/uploadPreview) and referenced by a unique udid. The GeoJSON file may contain Polygon and MultiPolygon geometries, other geometries will be ignored if provided. If the point is inside or on the boundary of one of these polygons, the value returned is true. In all other cases, the value returned is false. When the point is inside multiple polygons, the result will give intersecting geometries section to show all valid geometries(referenced by geometryId) in user data. The maximum number of vertices accepted to form a Polygon is 10,000.\n\n \nTo test this API, you can upload the sample data from [Post Point In Polygon API](https://docs.microsoft.com/en-us/rest/api/maps/spatial/postpointinpolygon#examples) examples(Request Body) via [Data Upload API](https://docs.microsoft.com/en-us/rest/api/maps/data/uploadPreview) and replace the [udid] from the [sample request below](https://docs.microsoft.com/en-us/rest/api/maps/spatial/getpointinpolygon#examples) with the udid returned by Data Upload API.", "operationId": "Spatial_GetPointInPolygon", "x-ms-examples": { @@ -789,7 +781,6 @@ }, "/spatial/greatCircleDistance/{format}": { "get": { - "x-publish": true, "description": "**Applies to**: S1 pricing tier.\n\nThis API will return the great-circle or shortest distance between two points on the surface of a sphere, measured along the surface of the sphere. This differs from calculating a straight line through the sphere's interior. This method is helpful for estimating travel distances for airplanes by calculating the shortest distance between airports.", "operationId": "Spatial_GetGreatCircleDistance", "x-ms-examples": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json index 949e919f9d18..20c92d7292fa 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json @@ -104,7 +104,6 @@ "paths": { "/tileset/create/vector": { "post": { - "x-publish": true, "description": "**Tileset Create API**\n\n**Applies to**: see pricing [tiers](https://azure.microsoft.com/en-us/pricing/details/azure-maps/).\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API \nand SDK. [This](https://docs.microsoft.com/en-us/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.\n\nThe Tileset Create API allows the caller to create a tileset from a dataset. A tileset contains a set of tiles that can be consumed \nfrom the [Get Map Tile](/rest/api/maps/render/getmaptile) to retrieve custom tiles. To make a dataset, use the \n[DataSet Create API](/rest/api/maps/dataset/createpreview).\n\n## Submit Create Request\n\nTo create your tileset you will make a `POST` request with an empty body. The `datasetId` query parameter will be \nused as the source of the tileset data.\n\nThe Create Tileset API is a \n[long-running request](https://aka.ms/am-creator-lrt).", "operationId": "Tileset_CreatePreview", "x-ms-long-running-operation": true, @@ -163,7 +162,6 @@ }, "/tileset": { "get": { - "x-publish": true, "description": "**Tileset List API**\n\n**Applies to**: see pricing [tiers](https://azure.microsoft.com/en-us/pricing/details/azure-maps/).\n
\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. [This](https://docs.microsoft.com/en-us/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.\nThis API allows the caller to fetch a list of all tilesets created. \n
", "operationId": "Tileset_ListPreview", "x-ms-examples": { @@ -209,7 +207,6 @@ }, "/tileset/{tilesetId}": { "delete": { - "x-publish": true, "description": "**Tileset Delete API**\n\n**Applies to**: see pricing [tiers](https://azure.microsoft.com/en-us/pricing/details/azure-maps/).\n
\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. [This](https://docs.microsoft.com/en-us/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.\nThis API allows the caller to delete a created tileset.
\nYou can use this API if a tileset is no longer needed. \n\n### Submit Delete Request\n\nTo delete your content you will issue a `DELETE` request where the path will contain the `tilesetId` of the tileset to delete.
\n\n#### Delete request \"Successful\"\n\nThe Tileset Delete API returns a HTTP `204 No Content` response with an empty body, if the tileset was deleted successfully.
\n\n#### Delete request \"Failed\"\n\nA HTTP `400 Bad Request` error response will be returned if the tileset with the passed-in `tilesetId` is not found. \n\nHere is a sample error response:\n\n
\n\n```json\n{\n \"error\": {\n \"code\": \"400 BadRequest\",\n \"message\": \"Bad request - Tileset Id: d85b5b27-5fc4-4599-8b50-47160e90f8ce does not exist.\"\n }\n}\n```", "operationId": "Tileset_DeletePreview", "x-ms-examples": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json index dce99424be3e..1a7d405ff7a4 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json @@ -112,7 +112,6 @@ "paths": { "/tilesets": { "post": { - "x-publish": true, "description": "**Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. [This](https://docs.microsoft.com/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.\n\n [This](https://docs.microsoft.com/en-us/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.\n\nThe Tileset Create API allows the caller to create a tileset from a dataset. A tileset contains a set of tiles that can be consumed \nfrom the [Get Map Tile](/rest/api/maps/render/getmaptile) to retrieve custom tiles. To make a dataset, use the \n[DataSet Create API](/rest/api/maps/dataset/createpreview).\n\n## Submit Create Request\n\nTo create your tileset you will make a `POST` request with an empty body. The `datasetId` query parameter will be \nused as the source of the tileset data.\n\nThe Create Tileset API is a \n[long-running request](https://aka.ms/am-creator-lrt-v2).", "operationId": "Tileset_Create", "x-ms-long-running-operation": true, @@ -170,7 +169,6 @@ } }, "get": { - "x-publish": true, "description": "**Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. [This](https://docs.microsoft.com/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.\n\nThis API allows the caller to fetch a list of all tilesets created. \n
", "operationId": "Tileset_List", "x-ms-examples": { @@ -216,7 +214,6 @@ }, "/tilesets/{tilesetId}": { "get": { - "x-publish": true, "description": "**Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. [This](https://docs.microsoft.com/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.\n\nThis API allows the caller to fetch a tileset.", "operationId": "Tileset_Get", "x-ms-examples": { @@ -263,7 +260,6 @@ } }, "delete": { - "x-publish": true, "description": "**Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. [This](https://docs.microsoft.com/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.\n\nThis API allows the caller to delete a created tileset.
\nYou can use this API if a tileset is no longer needed. \n\n### Submit Delete Request\n\nTo delete your content you will issue a `DELETE` request where the path will contain the `tilesetId` of the tileset to delete.
\n\n#### Delete request \"Successful\"\n\nThe Tileset Delete API returns a HTTP `204 No Content` response with an empty body, if the tileset was deleted successfully.
\n\n#### Delete request \"Failed\"\n\nA HTTP `400 Bad Request` error response will be returned if the tileset with the passed-in `tilesetId` is not found. \n\nHere is a sample error response:\n\n
\n\n```json\n{\n \"error\": {\n \"code\": \"400 BadRequest\",\n \"message\": \"Bad request - Tileset Id: d85b5b27-5fc4-4599-8b50-47160e90f8ce does not exist.\"\n }\n}\n```", "operationId": "Tileset_Delete", "x-ms-examples": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json index 7ae2fec2e398..13de9a9bbc8e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json +++ b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json @@ -117,7 +117,6 @@ "paths": { "/timezone/byId/{format}": { "get": { - "x-publish": true, "description": "__Time Zone by Id__\n\n**Applies to**: S0 and S1 pricing tiers.\n\n\nThis API returns current, historical, and future time zone information for the specified IANA time zone ID.", "operationId": "Timezone_GetTimezoneByID", "x-ms-examples": { @@ -191,7 +190,6 @@ }, "/timezone/byCoordinates/{format}": { "get": { - "x-publish": true, "description": "__Time Zone by Coordinates__\n\n**Applies to**: S0 and S1 pricing tiers.\n\n\nThis API returns current, historical, and future time zone information for a specified latitude-longitude pair. In addition, the API provides sunset and sunrise times for a given location.", "operationId": "Timezone_GetTimezoneByCoordinates", "x-ms-examples": { @@ -265,7 +263,6 @@ }, "/timezone/enumWindows/{format}": { "get": { - "x-publish": true, "description": "__Enumerate Windows Time Zones__\n\n\n**Applies to**: S0 and S1 pricing tiers.\n\n\nThis API returns a full list of Windows Time Zone IDs.", "operationId": "Timezone_GetTimezoneEnumWindows", "x-ms-examples": { @@ -317,7 +314,6 @@ }, "/timezone/enumIana/{format}": { "get": { - "x-publish": true, "description": "__Enumerate IANA Time Zones__\n\n\n**Applies to**: S0 and S1 pricing tiers.\n\n\nThis API returns a full list of IANA time zone IDs. Updates to the IANA service will be reflected in the system within one day.", "operationId": "Timezone_GetTimezoneEnumIANA", "x-ms-examples": { @@ -369,7 +365,6 @@ }, "/timezone/ianaVersion/{format}": { "get": { - "x-publish": true, "description": "__Time Zone IANA Version__\n\n\n**Applies to**: S0 and S1 pricing tiers.\n\n\nThis API returns the current IANA version number.", "operationId": "Timezone_GetTimezoneIANAVersion", "x-ms-examples": { @@ -421,7 +416,6 @@ }, "/timezone/windowsToIana/{format}": { "get": { - "x-publish": true, "description": "__Windows to IANA Time Zone__\n\n\n**Applies to**: S0 and S1 pricing tiers.\n\n\nThis API returns a corresponding IANA ID, given a valid Windows Time Zone ID. Multiple IANA IDs may be returned for a single Windows ID. It is possible to narrow these results by adding an optional territory parameter.", "operationId": "Timezone_GetTimezoneWindowsToIANA", "x-ms-examples": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json index 161364013941..0f8765f06938 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json +++ b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json @@ -138,7 +138,6 @@ "paths": { "/traffic/flow/tile/{format}": { "get": { - "x-publish": true, "description": "__Traffic Flow Tile__\n\n\n**Applies to**: S0 and S1 pricing tiers.\n\nThe Azure Flow Tile API serves 256 x 256 pixel tiles showing traffic flow. All tiles use the same grid system. Because the traffic tiles use transparent images, they can be layered on top of map tiles to create a compound display. The Flow tiles use colors to indicate either the speed of traffic on different road segments, or the difference between that speed and the free-flow speed on the road segment in question.", "operationId": "Traffic_GetTrafficFlowTile", "x-ms-examples": { @@ -245,7 +244,6 @@ }, "/traffic/flow/segment/{format}": { "get": { - "x-publish": true, "description": "__Traffic Flow Segment__\n\n\n**Applies to**: S0 and S1 pricing tiers.\n\nThis service provides information about the speeds and travel times of the road fragment closest to the given coordinates. It is designed to work alongside the Flow layer of the Render Service to support clickable flow data visualizations. With this API, the client side can connect any place in the map with flow data on the closest road and present it to the user.", "operationId": "Traffic_GetTrafficFlowSegment", "x-ms-examples": { @@ -365,7 +363,6 @@ }, "/traffic/incident/tile/{format}": { "get": { - "x-publish": true, "description": "__Traffic Incident Tile__\n\n\n**Applies to**: S0 and S1 pricing tiers.\n\nThis service serves 256 x 256 pixel tiles showing traffic incidents. All tiles use the same grid system. Because the traffic tiles use transparent images, they can be layered on top of map tiles to create a compound display. Traffic tiles render graphics to indicate traffic on the roads in the specified area.", "operationId": "Traffic_GetTrafficIncidentTile", "x-ms-examples": { @@ -470,7 +467,6 @@ }, "/traffic/incident/detail/{format}": { "get": { - "x-publish": true, "description": "__Traffic Incident Detail__ \n\n\n\n**Applies to**: S0 and S1 pricing tiers.\n\nThis API provides information on traffic incidents inside a given bounding box, based on the current Traffic Model ID. The Traffic Model ID is available to grant synchronization of data between calls and API's. The Traffic Model ID is a key value for determining the currency of traffic incidents. It is updated every minute, and is valid for two minutes before it times out. It is used in rendering [incident tiles](https://docs.microsoft.com/en-us/rest/api/maps/traffic/gettrafficincidenttile). It can be obtained from the [Viewport API](https://docs.microsoft.com/en-us/rest/api/maps/traffic/gettrafficincidentviewport).", "operationId": "Traffic_GetTrafficIncidentDetail", "x-ms-examples": { @@ -651,7 +647,6 @@ }, "/traffic/incident/viewport/{format}": { "get": { - "x-publish": true, "description": "__Traffic Incident Viewport__\n\n\n**Applies to**: S0 and S1 pricing tiers.\n\nThis API returns legal and technical information for the viewport described in the request. It should be called by client applications whenever the viewport changes (for instance, through zooming, panning, going to a location, or displaying a route). The request should contain the bounding box and zoom level of the viewport whose information is needed. The return will contain map version information, as well as the current Traffic Model ID and copyright IDs. The Traffic Model ID returned by the Viewport Description is used by other APIs to retrieve last traffic information for further processing.", "operationId": "Traffic_GetTrafficIncidentViewport", "x-ms-examples": { diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json index 9abf52df3b21..924aaad65e61 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json @@ -95,7 +95,6 @@ "paths": { "/wfs/datasets/{datasetId}/": { "get": { - "x-publish": true, "description": "Creator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. The Web Feature Service (WFS) API is part of Creator. WFS API follows the [Open Geospatial Consortium API standard for Features](http://docs.opengeospatial.org/is/17-069r3/17-069r3.html) to query [Datasets](https://docs.microsoft.com/en-us/rest/api/maps/dataset/createpreview). \nA dataset consists of multiple feature collections. A feature collection is a collection of features of a similar type, based on a common schema.\nThe Get Landing Page API provides links to the API definition, the Conformance statements and the metadata about the feature data in this dataset.", "operationId": "WFS_GetLandingPagePreview", "x-ms-examples": { @@ -145,7 +144,6 @@ "/wfs/datasets/{datasetId}/conformance": { "get": { "description": "Creator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. The Web Feature Service (WFS) API is part of Creator. WFS API follows the [Open Geospatial Consortium API standard for Features](http://docs.opengeospatial.org/is/17-069r3/17-069r3.html) to query [Datasets](https://docs.microsoft.com/en-us/rest/api/maps/dataset/createpreview). \nA dataset consists of multiple feature collections. A feature collection is a collection of features of a similar type, based on a common schema.\nThe Get Requirements Classes lists all requirements classes specified in the standard that the server conforms to.", - "x-publish": true, "operationId": "WFS_GetRequirementsClassesPreview", "x-ms-examples": { "GetConformance": { @@ -195,7 +193,6 @@ "get": { "description": "Creator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. The Web Feature Service (WFS) API is part of Creator. WFS API follows the [Open Geospatial Consortium API standard for Features](http://docs.opengeospatial.org/is/17-069r3/17-069r3.html) to query [Datasets](https://docs.microsoft.com/en-us/rest/api/maps/dataset/createpreview). \nA dataset consists of multiple feature collections. A feature collection is a collection of features of a similar type, based on a common schema.\nThe Collections Description API provides descriptions of all the collections in a given dataset.", "operationId": "WFS_CollectionsDescriptionPreview", - "x-publish": true, "x-ms-examples": { "GetCollections": { "$ref": "./examples/GetCollections.json" @@ -244,7 +241,6 @@ "get": { "description": "Creator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. The Web Feature Service (WFS) API is part of Creator. WFS API follows the [Open Geospatial Consortium API standard for Features](http://docs.opengeospatial.org/is/17-069r3/17-069r3.html) to query [Datasets](https://docs.microsoft.com/en-us/rest/api/maps/dataset/createpreview). \nA dataset consists of multiple feature collections. A feature collection is a collection of features of a similar type, based on a common schema.\n \nThe Collection Description API provides the description of a given collection. It includes the links to the operations that can be performed on the collection.", "operationId": "WFS_CollectionDescriptionPreview", - "x-publish": true, "x-ms-examples": { "GetCollection": { "$ref": "./examples/GetCollection.json" @@ -296,7 +292,6 @@ "get": { "description": "Creator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. The Web Feature Service (WFS) API is part of Creator. WFS API follows the [Open Geospatial Consortium API standard for Features](http://docs.opengeospatial.org/is/17-069r3/17-069r3.html) to query [Datasets](https://docs.microsoft.com/en-us/rest/api/maps/dataset/createpreview). \nA dataset consists of multiple feature collections. A feature collection is a collection of features of a similar type, based on a common schema.\n \nThe Collection Definition API provides the detailed data model of a given collection.", "operationId": "WFS_CollectionDefinitionPreview", - "x-publish": true, "x-ms-examples": { "GetCollectionDefinition": { "$ref": "./examples/GetCollectionDefinition.json" @@ -348,7 +343,6 @@ "get": { "description": "Creator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. The Web Feature Service (WFS) API is part of Creator. WFS API follows the [Open Geospatial Consortium API standard for Features](http://docs.opengeospatial.org/is/17-069r3/17-069r3.html) to query [Datasets](https://docs.microsoft.com/en-us/rest/api/maps/dataset/createpreview). \nA dataset consists of multiple feature collections. A feature collection is a collection of features of a similar type, based on a common schema.\nThe Get Features API returns the list of features in the given collection.", "operationId": "WFS_GetFeaturesPreview", - "x-publish": true, "x-ms-examples": { "Getitems": { "$ref": "./examples/GetItems.json" @@ -408,7 +402,6 @@ "/wfs/datasets/{datasetId}/collections/{collectionId}/items/{featureId}": { "get": { "description": "Creator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. The Web Feature Service (WFS) API is part of Creator. WFS API follows the [Open Geospatial Consortium API standard for Features](http://docs.opengeospatial.org/is/17-069r3/17-069r3.html) to query [Datasets](https://docs.microsoft.com/en-us/rest/api/maps/dataset/createpreview). \nA dataset consists of multiple feature collections. A feature collection is a collection of features of a similar type, based on a common schema.\nThe Get Feature API returns the feature identified by the provided id in the given collection.", - "x-publish": true, "operationId": "WFS_GetFeaturePreview", "x-ms-examples": { "GetFeature": { @@ -458,7 +451,6 @@ }, "delete": { "description": "Creator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. The Web Feature Service (WFS) API is part of Creator. WFS API follows the [Open Geospatial Consortium API standard for Features](http://docs.opengeospatial.org/is/17-069r3/17-069r3.html) to query [Datasets](https://docs.microsoft.com/en-us/rest/api/maps/dataset/createpreview). \nA dataset consists of multiple feature collections. A feature collection is a collection of features of a similar type, based on a common schema.\nThe Delete Feature API deletes the feature identified by the provided id in the given collection. At this point this API supports only facility features. Deleting a facility feature deletes all the child features of that facility recursively.", - "x-publish": true, "operationId": "WFS_DeleteFeaturePreview", "x-ms-examples": { "GetFeature": { diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json index f59c61f78f7d..5e6669ff1353 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json @@ -122,7 +122,6 @@ "paths": { "/wfs/datasets/{datasetId}/": { "get": { - "x-publish": true, "description": "**Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. [This](https://docs.microsoft.com/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.\n\n The Web Feature Service (WFS) API is part of Creator. WFS API follows the [Open Geospatial Consortium API standard for Features](http://docs.opengeospatial.org/is/17-069r3/17-069r3.html) to query [Datasets](https://docs.microsoft.com/en-us/rest/api/maps/dataset/createpreview). \nA dataset consists of multiple feature collections. A feature collection is a collection of features of a similar type, based on a common schema.\nThe Get Landing Page API provides links to the API definition, the Conformance statements and the metadata about the feature data in this dataset.", "operationId": "WFS_GetLandingPage", "x-ms-examples": { @@ -172,7 +171,6 @@ "/wfs/datasets/{datasetId}/conformance": { "get": { "description": "**Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. [This](https://docs.microsoft.com/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.\n\nThe Web Feature Service (WFS) API is part of Creator. WFS API follows the [Open Geospatial Consortium API standard for Features](http://docs.opengeospatial.org/is/17-069r3/17-069r3.html) to query [Datasets](https://docs.microsoft.com/en-us/rest/api/maps/dataset/createpreview). \nA dataset consists of multiple feature collections. A feature collection is a collection of features of a similar type, based on a common schema.\nThe Get Requirements Classes lists all requirements classes specified in the standard that the server conforms to.", - "x-publish": true, "operationId": "WFS_GetRequirementsClasses", "x-ms-examples": { "GetConformance": { @@ -222,7 +220,6 @@ "get": { "description": "**Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. [This](https://docs.microsoft.com/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.\n\n The Web Feature Service (WFS) API is part of Creator. WFS API follows the [Open Geospatial Consortium API standard for Features](http://docs.opengeospatial.org/is/17-069r3/17-069r3.html) to query [Datasets](https://docs.microsoft.com/en-us/rest/api/maps/dataset/createpreview). \nA dataset consists of multiple feature collections. A feature collection is a collection of features of a similar type, based on a common schema.\nThe Collections Description API provides descriptions of all the collections in a given dataset.", "operationId": "WFS_CollectionsDescription", - "x-publish": true, "x-ms-examples": { "GetCollections": { "$ref": "./examples/GetCollections.json" @@ -271,7 +268,6 @@ "get": { "description": "**Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. [This](https://docs.microsoft.com/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.\n\n The Web Feature Service (WFS) API is part of Creator. WFS API follows the [Open Geospatial Consortium API standard for Features](http://docs.opengeospatial.org/is/17-069r3/17-069r3.html) to query [Datasets](https://docs.microsoft.com/en-us/rest/api/maps/dataset/createpreview). \nA dataset consists of multiple feature collections. A feature collection is a collection of features of a similar type, based on a common schema.\n \nThe Collection Description API provides the description of a given collection. It includes the links to the operations that can be performed on the collection.", "operationId": "WFS_CollectionDescription", - "x-publish": true, "x-ms-examples": { "GetCollection": { "$ref": "./examples/GetCollection.json" @@ -323,7 +319,6 @@ "get": { "description": "**Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. [This](https://docs.microsoft.com/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.\n\n [This](https://docs.microsoft.com/en-us/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator. WFS API follows the [Open Geospatial Consortium API standard for Features](http://docs.opengeospatial.org/is/17-069r3/17-069r3.html) to query [Datasets](https://docs.microsoft.com/en-us/rest/api/maps/dataset/createpreview). \nA dataset consists of multiple feature collections. A feature collection is a collection of features of a similar type, based on a common schema.\n \nThe Collection Definition API provides the detailed data model of a given collection.", "operationId": "WFS_CollectionDefinition", - "x-publish": true, "x-ms-examples": { "GetCollectionDefinition": { "$ref": "./examples/GetCollectionDefinition.json" @@ -375,7 +370,6 @@ "get": { "description": "**Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. [This](https://docs.microsoft.com/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.\n\n The Web Feature Service (WFS) API is part of Creator. WFS API follows the [Open Geospatial Consortium API standard for Features](http://docs.opengeospatial.org/is/17-069r3/17-069r3.html) to query [Datasets](https://docs.microsoft.com/en-us/rest/api/maps/dataset/createpreview). \nA dataset consists of multiple feature collections. A feature collection is a collection of features of a similar type, based on a common schema.\nThe Get Features API returns the list of features in the given collection.", "operationId": "WFS_GetFeatures", - "x-publish": true, "x-ms-examples": { "Getitems": { "$ref": "./examples/GetItems.json" @@ -435,7 +429,6 @@ "/wfs/datasets/{datasetId}/collections/{collectionId}/items/{featureId}": { "get": { "description": "**Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. [This](https://docs.microsoft.com/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.\n\n The Web Feature Service (WFS) API is part of Creator. WFS API follows the [Open Geospatial Consortium API standard for Features](http://docs.opengeospatial.org/is/17-069r3/17-069r3.html) to query [Datasets](https://docs.microsoft.com/en-us/rest/api/maps/dataset/createpreview). \nA dataset consists of multiple feature collections. A feature collection is a collection of features of a similar type, based on a common schema.\nThe Get Feature API returns the feature identified by the provided id in the given collection.", - "x-publish": true, "operationId": "WFS_GetFeature", "x-ms-examples": { "GetFeature": { @@ -485,7 +478,6 @@ }, "delete": { "description": "**Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. [This](https://docs.microsoft.com/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.\n\n The Web Feature Service (WFS) API is part of Creator. WFS API follows the [Open Geospatial Consortium API standard for Features](http://docs.opengeospatial.org/is/17-069r3/17-069r3.html) to query [Datasets](https://docs.microsoft.com/en-us/rest/api/maps/dataset/createpreview). \nA dataset consists of multiple feature collections. A feature collection is a collection of features of a similar type, based on a common schema.\nThe Delete Feature API deletes the feature identified by the provided id in the given collection. At this point this API supports only facility features. Deleting a facility feature deletes all the child features of that facility recursively.", - "x-publish": true, "operationId": "WFS_DeleteFeature", "x-ms-examples": { "GetFeature": { From 2c7864073764528b7cd8a86f9c35deda4fd2553a Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Mon, 10 May 2021 10:32:04 -0700 Subject: [PATCH 109/210] fix JSON typo after removal --- .../data-plane/Microsoft.Maps/Render/preview/1.0/render.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json index 3f4f207edd95..0cdda7fa0cab 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json @@ -342,7 +342,7 @@ "collectionFormat": "multi", "items": { "type": "string" - }, + } }, { "name": "path", @@ -353,7 +353,7 @@ "collectionFormat": "multi", "items": { "type": "string" - }, + } } ], "produces": [ From c3829a530b2b915243cc7300c993f5f561eb45fc Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Mon, 10 May 2021 11:09:54 -0700 Subject: [PATCH 110/210] Experiment: do not use common responses for WFS 2.0 --- .../WFS/preview/2.0/examples/DeleteItem.json | 47 +------ .../preview/2.0/examples/GetCollection.json | 45 ------ .../2.0/examples/GetCollectionDefinition.json | 45 ------ .../preview/2.0/examples/GetCollections.json | 45 ------ .../preview/2.0/examples/GetConformance.json | 45 ------ .../WFS/preview/2.0/examples/GetItem.json | 45 ------ .../WFS/preview/2.0/examples/GetItems.json | 45 ------ .../preview/2.0/examples/GetLandingPage.json | 45 ------ .../Microsoft.Maps/WFS/preview/2.0/wfs.json | 128 +++--------------- 9 files changed, 17 insertions(+), 473 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/DeleteItem.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/DeleteItem.json index cfa32ddaba74..6fa2fe3a6197 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/DeleteItem.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/DeleteItem.json @@ -8,51 +8,6 @@ "featureId": "FCL39" }, "responses": { - "204": {}, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } - } + "204": {} } } diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollection.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollection.json index ac23caa02a0b..83c9da7d1110 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollection.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollection.json @@ -30,51 +30,6 @@ } ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollectionDefinition.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollectionDefinition.json index 74d7b6a02c4a..79edecb4c626 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollectionDefinition.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollectionDefinition.json @@ -148,51 +148,6 @@ } ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollections.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollections.json index 6351d0956005..59cb7a763a4e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollections.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollections.json @@ -249,51 +249,6 @@ } ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetConformance.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetConformance.json index 47407a822eb0..73bebb748240 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetConformance.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetConformance.json @@ -15,51 +15,6 @@ "http://tempuri.org/wfs/3.0/edit" ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetItem.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetItem.json index d01b2229ec86..29b978981a5f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetItem.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetItem.json @@ -80,51 +80,6 @@ } ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetItems.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetItems.json index 867aa5709635..2a97007d664f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetItems.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetItems.json @@ -89,51 +89,6 @@ } ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetLandingPage.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetLandingPage.json index b85b94b2dc1c..3c2143a02635 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetLandingPage.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetLandingPage.json @@ -37,51 +37,6 @@ } ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json index 5e6669ff1353..ec52d1769b44 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json @@ -150,20 +150,8 @@ "$ref": "#/definitions/LandingPage" } }, - "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "default": { + "description": "asdf" } } } @@ -198,20 +186,8 @@ "$ref": "#/definitions/ReqClasses" } }, - "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "default": { + "description": "Default response description." } } } @@ -246,20 +222,8 @@ "$ref": "#/definitions/CollectionsResponse" } }, - "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "default": { + "description": "Default response description." } } } @@ -297,20 +261,8 @@ "$ref": "#/definitions/CollectionInfo" } }, - "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "default": { + "description": "Default response description." } } } @@ -348,20 +300,8 @@ "$ref": "#/definitions/CollectionDefinition" } }, - "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "default": { + "description": "Default response description." } } } @@ -408,20 +348,8 @@ "$ref": "#/definitions/ExtendedGeoJsonFeatureCollection" } }, - "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "default": { + "description": "Default response description." } } } @@ -459,20 +387,8 @@ "$ref": "#/definitions/FeatureResponse" } }, - "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "default": { + "description": "Default response description." } } }, @@ -505,20 +421,8 @@ "204": { "description": "Feature Deleted." }, - "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "default": { + "description": "Default response description." } } } From 5c0556cb70e2e67e74bd038ad0aebaf9b925a7a5 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Tue, 11 May 2021 13:32:35 +0200 Subject: [PATCH 111/210] Remove required false as it is the default value for query parameters. Remove default value for non required values. --- .../Alias/preview/2.0/alias.json | 1 - .../Common/preview/1.0/common.json | 2 - .../Common/preview/2.0/common.json | 2 - .../DEM/preview/1.0/elevation.json | 8 +-- .../Microsoft.Maps/Data/preview/2.0/data.json | 1 - .../Dataset/preview/1.0/dataset.json | 5 -- .../Dataset/preview/2.0/dataset.json | 2 - .../preview/1.0/dwgconversion.json | 1 - .../preview/2.0/dwgconversion.json | 1 - .../Mobility/preview/1.0/mobility.json | 42 +------------- .../Render/preview/1.0/render.json | 22 +------- .../Render/preview/2.0/render.json | 5 -- .../Route/preview/1.0/route.json | 51 ----------------- .../Search/preview/1.0/search.json | 55 +------------------ .../Spatial/preview/1.0/spatial.json | 25 ++------- .../Tileset/preview/1.0/tileset.json | 3 +- .../Tileset/preview/2.0/tileset.json | 3 +- .../Timezone/preview/1.0/timezone.json | 8 +-- .../Traffic/preview/1.0/traffic.json | 29 ++-------- .../1.0/examples/GetCollectionDefinition.json | 2 +- .../Microsoft.Maps/WFS/preview/1.0/wfs.json | 4 +- .../Microsoft.Maps/WFS/preview/2.0/wfs.json | 4 +- .../Weather/preview/1.0/weather.json | 13 +---- 23 files changed, 26 insertions(+), 263 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json index 72db30e11450..9d99db84bbec 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json @@ -82,7 +82,6 @@ "description": "The unique id that references a creator data item to be aliased.", "type": "string", "in": "query", - "required": false, "x-ms-parameter-location": "method" }, "AssignCreatorDataItemId": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index d3f390f05761..1081e2f90f2f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -535,7 +535,6 @@ "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", "type": "string", "in": "query", - "required": false, "x-ms-parameter-location": "client" }, "ApiVersion": { @@ -561,7 +560,6 @@ "description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.", "type": "string", "in": "header", - "required": false, "x-ms-parameter-location": "client" }, "JsonFormat": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/2.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/2.0/common.json index f2af932e1a6f..5f4d7428195f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/2.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/2.0/common.json @@ -535,7 +535,6 @@ "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", "type": "string", "in": "query", - "required": false, "x-ms-parameter-location": "client" }, "ApiVersion": { @@ -561,7 +560,6 @@ "description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.", "type": "string", "in": "header", - "required": false, "x-ms-parameter-location": "client" }, "JsonFormat": { diff --git a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json index 5a55ef4161a5..742693072ac6 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json +++ b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json @@ -217,9 +217,7 @@ "description": "The samples parameter specifies the number of equally spaced points at which elevation values should be provided along a polyline path. The number of samples should range from 2 to 2,000. Default value is 10.", "type": "number", "minimum": 2, - "maximum": 2000, - "default": 10, - "required": false + "maximum": 2000 } ], "produces": [ @@ -291,9 +289,7 @@ "description": "The samples parameter specifies the number of equally spaced points at which elevation values should be provided along a polyline path. The number of samples should range from 2 to 2,000. Default value is 10.", "type": "number", "minimum": 2, - "maximum": 2000, - "default": 10, - "required": false + "maximum": 2000 } ], "produces": [ diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json index 5d07084cbe8e..2b3df21e5f6e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json @@ -123,7 +123,6 @@ "description": "The description to be given to the upload.", "type": "string", "in": "query", - "required": false, "x-ms-parameter-location": "method" }, "DataUploadOperationId": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json index c50dd1194b6f..36e6d7a54338 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json @@ -56,7 +56,6 @@ "description": "The unique ID used to create the dataset. The `conversionId` must have been obtained from a successful call to the Conversion Service Convert API and must be provided with multiple query parameters with same name (if more than one is provided). May not be provided in conjunction with the `udid` query parameter.", "type": "string", "in": "query", - "required": false, "x-ms-parameter-location": "method" }, "UdidDataset": { @@ -65,7 +64,6 @@ "description": "The unique data ID used to create the dataset. The `udid` must have been obtained from a successful call to the Data Service Upload API and must be provided with multiple query parameters with the same name (if more than one is provided). May not be provided in conjunction with `conversionId` query parameter.", "type": "string", "in": "query", - "required": false, "x-ms-parameter-location": "method" }, "DescriptionDataset": { @@ -74,7 +72,6 @@ "description": "The description to be given to the dataset.", "type": "string", "in": "query", - "required": false, "x-ms-parameter-location": "method" }, "DatasetId": { @@ -114,7 +111,6 @@ "description": "The unique data ID used to import data into the dataset. The `udid` must have been obtained from a successful call to the Data Service Upload API.", "type": "string", "in": "query", - "required": false, "x-ms-parameter-location": "method" }, "ImportType": { @@ -145,7 +141,6 @@ "type": "string", "in": "query", "description": "The ID for the dataset to append to.", - "required": false, "x-ms-parameter-location": "method" } }, diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json index 02d1e5bff973..dbc437c20b5c 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json @@ -91,7 +91,6 @@ "description": "The description to be given to the dataset.", "type": "string", "in": "query", - "required": false, "x-ms-parameter-location": "method" }, "DatasetId": { @@ -107,7 +106,6 @@ "type": "string", "in": "query", "description": "The ID for the dataset to append with. The dataset must originate from a previous dataset creation call that matches the datasetId", - "required": false, "x-ms-parameter-location": "method" }, "DatasetOperationId": { diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json index 57ab3f054126..3f7a6eb0b17f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json @@ -91,7 +91,6 @@ "description": "User provided description of the content being converted.", "type": "string", "in": "query", - "required": false, "x-ms-parameter-location": "method" } }, diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json index 2726bb37040f..40858281abad 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json @@ -105,7 +105,6 @@ "description": "User provided description of the content being converted.", "type": "string", "in": "query", - "required": false, "x-ms-parameter-location": "method" }, "ConversionOperationId": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json index 4aaa66ce9465..b3dccbaa293a 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json +++ b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json @@ -47,7 +47,6 @@ "type": "integer", "format": "int32", "in": "query", - "required": false, "x-ms-parameter-location": "method" }, "MobilityLanguage": { @@ -55,7 +54,6 @@ "description": "Language in which search results will be returned. Only NGT is supported. Please refer to [Supported languages](https://docs.microsoft.com/azure/azure-maps/supported-languages) for details.", "type": "string", "in": "query", - "required": false, "x-ms-parameter-location": "method" } }, @@ -93,9 +91,7 @@ "name": "queryType", "description": "The type of the query. By default originType=position, specified as a comma separated string composed by latitude followed by longitude, e.g. \"47.641268,-122.125679”.", "in": "query", - "required": false, "type": "string", - "default": "position", "enum": [ "position", "countryCode" @@ -277,7 +273,6 @@ "name": "limit", "description": "Maximum number of responses that will be returned. Default is 3, minimum 1 and maximum 100. Sort order is based on distance from input location.", "in": "query", - "required": false, "type": "integer", "format": "int32" }, @@ -285,7 +280,6 @@ "name": "radius", "description": "Specifies the search area to constrain a search. The radius in meters to for the results to be constrained to the defined area. Default value is 30 meters, minimum 1 meter and maximum 5000 meters (5km).", "in": "query", - "required": false, "type": "integer", "format": "int32" }, @@ -293,8 +287,6 @@ "name": "objectType", "description": "The transit object type. By default, objectType is set to `stop`", "in": "query", - "required": false, - "default": "stop", "type": "string" }, { @@ -362,7 +354,6 @@ "name": "detailType", "description": "Specify additional details requested respective to the line group as a comma separated list. As a default service returns line basic info. Supported values are:\n * `alerts` - Return any active service alerts for the specified stop. Response provides brief information for disruption in service and all basic data associated with the alert.\n * `alertDetails` - Can only be used in conjunction with detailType=alerts.Return additional details associated with the active service alerts.\n * `lines` - Return transit lines that stops at the specified stop.\n * `stops` - Return list of stops the line group goes through.\n * `schedule` - Return a 24h static schedule for the specified line group from the current time of the day to the end of the current day.\n * `patterns` - Return list of patterns this group is comprised of. A pattern consists of a stop sequence and shape per line.", "in": "query", - "required": false, "type": "array", "items": { "type": "string", @@ -471,13 +462,11 @@ "name": "queryType", "description": "The type of the unique query parameter of the stop. By default queryType=stopId.", "in": "query", - "required": false, "type": "string", "enum": [ "stopId", "stopKey" ], - "default": "stopId", "x-ms-enum": { "name": "TransitStopQueryType", "modelAsString": true, @@ -497,7 +486,6 @@ "name": "detailType", "description": "Specify additional details requested respective to the transit stop as a comma separated list. Supported values are:\n * `alerts` - Return any active service alerts for the specified stop. Response provides brief information for disruption in service and all basic data associated with the alert.\n * `alertDetails` - Can only be used in conjunction with detailType=alerts.Return additional details associated with the active service alerts.\n * `lines` - Return transit lines that stops at the specified stop.\n * `lineGroups` - Return line groups that stops at the specified stop.", "in": "query", - "required": false, "type": "array", "items": { "type": "string", @@ -596,14 +584,12 @@ "name": "originType", "description": "The type of the origin. By default originType=position, specified as a comma separated string composed by latitude followed by longitude, e.g., \"47.641268,-122.125679”.", "in": "query", - "required": false, "type": "string", "enum": [ "position", "stopId", "stopKey" ], - "default": "position", "x-ms-enum": { "name": "OriginType", "modelAsString": true, @@ -634,9 +620,7 @@ "name": "destinationType", "description": "The type of the destination.", "in": "query", - "required": false, "type": "string", - "default": "position", "enum": [ "position", "stopId", @@ -664,7 +648,6 @@ { "name": "modeType", "description": "The mode of travel for the requested route; as comma separated list. If not specified, all modes will be allowed. All modes might not be available in all metro areas. If valid trip is not found, empty result will be returned. Supported values are:\n * `walk` - Walk (pedestrian)\n * `bike` - Bike\n * `publicTransit` - Public transit", - "required": false, "in": "query", "type": "array", "items": { @@ -698,7 +681,6 @@ "name": "transitType", "description": "Applicable only with modeType = publicTransit. Allow only a specific set of public transit types (as a comma separated list) to be returned for the route. Note that the requested transitType may not be available for the entire route. If not specified, all modes will be allowed. Supported values are:\n * `bus` - Bus\n * `cableCar` - Cable car\n * `ferry` - Ferry\n * `funicular` - Funicular\n * `gondola` - Gondola\n * `rail` - Rail\n * `tram` - Tram\n * `subway` - Subway/Metro", "in": "query", - "required": false, "type": "array", "items": { "type": "string", @@ -756,7 +738,6 @@ "name": "agency", "description": "Specifies whether to prefer routes from a specific set of agencies if possible; as a comma separated list. If valid trip isn’t found with the preferred agency, or only one with very long trips or with large number of transfers, itineraries with other agencies will be returned.", "in": "query", - "required": false, "type": "array", "items": { "type": "string" @@ -766,9 +747,7 @@ "name": "agencyType", "description": "Specifies the agency identifier to request routes from preferred agencies. By default the agencyType=agencyId.", "in": "query", - "required": false, "type": "string", - "default": "agencyId", "enum": [ "agencyId", "agencyKey", @@ -797,16 +776,13 @@ "name": "time", "description": "The time of departure or arrival in the local time in ISO format (2019-04-05T14:24:18-04:00). If timeType is not specified, it will be assumed to be 'departure' and time is the current local time at the origin point.", "in": "query", - "required": false, "type": "string" }, { "name": "timeType", "description": "Specifies whether the time signifies departure time or arrival time. If not defined, default value is 'departure'.", "in": "query", - "required": false, "type": "string", - "default": "departure", "enum": [ "arrival", "departure", @@ -835,9 +811,7 @@ "name": "routeType", "description": "The type of route requested. If not specified, 'optimal' will be used.", "in": "query", - "required": false, "type": "string", - "default": "optimal", "enum": [ "optimal", "leastWalk", @@ -866,9 +840,7 @@ "name": "bikeType", "description": "Bike type of the bike. Specifies which type of bikes will be used. Only private bikes are supported.", "in": "query", - "required": false, - "type": "string", - "default": "privateBike" + "type": "string" }, { "$ref": "#/parameters/MobilityLanguage" @@ -931,7 +903,6 @@ { "name": "detailType", "description": "Specify additional details returned in the transit route itinerary response, as a comma separated list. Supported values are:\n * `geometry` - Shape of an in GeoJSON format. For public transit legs will return also the stops that the leg passes through. For walk and bike legs, will return also the turn-by-turn navigation data. \n * `schedule` - Static schedule data as to all departures of Public Transit legs from the current time of the day to the end of the current day.", - "required": false, "in": "query", "type": "array", "items": { @@ -1021,7 +992,6 @@ "name": "queryType", "description": "The type of the query parameter. Defines the mode of the request. Only one mode per request is supported. By default queryType is set to be ‘stops’ returning the requested number of Live Arrivals for all lines arriving at the specified stop.", "in": "query", - "required": false, "type": "string", "enum": [ "stops", @@ -1029,7 +999,6 @@ "lineAndStop", "position" ], - "default": "stops", "x-ms-enum": { "name": "RealTimeArrivalsQueryType", "modelAsString": true, @@ -1057,13 +1026,11 @@ "name": "stopQueryType", "description": "The type of the unique query parameter of the stop. By default stopQueryType=stopId. This parameter can only be used in conjunction with queryType=stops or queryType=lineAndStop.", "in": "query", - "required": false, "type": "string", "enum": [ "stopId", "stopKey" ], - "default": "stopId", "x-ms-enum": { "name": "StopQueryType", "modelAsString": true, @@ -1083,14 +1050,12 @@ "name": "limit", "description": "The maximum arrivals to return. If not specified, the system default will be used. For stops max number of arrivals per stop. For lines max arrivals per stop on the line. For everything else max arrivals overall.", "in": "query", - "required": false, "type": "integer", "format": "int32" }, { "name": "maxMinutesInFuture", "description": "The maximum time (in minutes) in the future to return arrivals for. If not specified, the system default (30 minutes) will be used. The minimum value is 0 and maximum value is 60 minutes.", - "required": false, "type": "integer", "format": "int32", "in": "query" @@ -1099,7 +1064,6 @@ "name": "transitType", "description": "Type of public transit user is requesting respective transit stop, as a comma separated list. For example, transitType=Bus,Subway. If not specified, all will be allowed. This parameter can only be used in conjunction with queryType=stops. Supported values are:\n * `bus` - Bus\n * `cableCar` - Cable car\n * `ferry` - Ferry\n * `funicular` - Funicular\n * `gondola` - Gondola\n * `rail` - Rail\n * `tram` - Tram\n * `subway` - Subway/Metro", "in": "query", - "required": false, "type": "array", "items": { "type": "string", @@ -1157,7 +1121,6 @@ "name": "agency", "description": "In case you prefer routes from a specific set of agencies to be returned. Specified as a comma separated string.", "in": "query", - "required": false, "type": "array", "items": { "type": "string" @@ -1167,9 +1130,7 @@ "name": "agencyType", "description": "Specifies the agency identifier to request routes from a specific set of agencies to be returned. By default the agencyType=agencyId.", "in": "query", - "required": false, "type": "string", - "default": "agencyId", "enum": [ "agencyId", "agencyKey", @@ -1198,7 +1159,6 @@ "name": "timeoutInSeconds", "description": "Time in seconds within which if the provider doesn’t respond, end point will return static data.", "in": "query", - "required": false, "type": "integer", "format": "int32" }, diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json index 0cdda7fa0cab..dd9533e59ce8 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json @@ -176,7 +176,6 @@ "name": "text", "in": "query", "description": "Yes/no value to exclude textual data from response. Only images and country names will be in response.", - "required": false, "type": "string", "enum": [ "yes", @@ -196,7 +195,6 @@ } ] }, - "default": "yes", "x-ms-parameter-location": "method" } }, @@ -227,8 +225,6 @@ "name": "layer", "in": "query", "description": "Map layer requested. If layer is set to labels or hybrid, the format should be png.", - "required": false, - "default": "basic", "type": "string", "enum": [ "basic", @@ -258,8 +254,6 @@ "name": "style", "in": "query", "description": "Map style to be returned. Possible values are main and dark.", - "required": false, - "default": "main", "type": "string", "enum": [ "main", @@ -284,8 +278,6 @@ "name": "zoom", "in": "query", "description": "Desired zoom level of the map. Zoom value must be in the range: 0-20 (inclusive). Default value is 12.

Please see [Zoom Levels and Tile Grid](https://docs.microsoft.com/en-us/azure/location-based-services/zoom-levels-and-tile-grid) for details.", - "required": false, - "default": 12, "type": "integer", "format": "int32", "minimum": 0, @@ -295,37 +287,31 @@ "name": "center", "in": "query", "description": "Coordinates of the center point. Format: 'lon,lat'. Projection used\n- EPSG:3857. Longitude range: -180 to 180. Latitude range: -85 to 85. \n\nNote: Either center or bbox are required parameters. They are\nmutually exclusive.", - "required": false, "type": "string" }, { "name": "bbox", "in": "query", "description": "Bounding box. Projection used - EPSG:3857. Format : 'minLon, minLat,\nmaxLon, maxLat'. \n\nNote: Either bbox or center are required\nparameters. They are mutually exclusive. It shouldn’t be used with\nheight or width.\n\nThe maximum allowed ranges for Lat and Lon are defined for each zoom level\nin the table at the top of this page.", - "required": false, "type": "string" }, { "name": "height", "in": "query", "description": "Height of the resulting image in pixels. Range is 1 to 8192. Default\nis 512. It shouldn’t be used with bbox.", - "required": false, "type": "integer", "format": "int32", "minimum": 1, - "maximum": 8192, - "default": 512 + "maximum": 8192 }, { "name": "width", "in": "query", "description": "Width of the resulting image in pixels. Range is 1 to 8192. Default is 512. It shouldn’t be used with bbox.", - "required": false, "type": "integer", "format": "int32", "minimum": 1, - "maximum": 8192, - "default": 512 + "maximum": 8192 }, { "$ref": "../../../Search/preview/1.0/search.json#/parameters/Language" @@ -337,7 +323,6 @@ "name": "pins", "description": "Pushpin style and instances. Use this parameter to optionally add pushpins to the image.\nThe pushpin style describes the appearance of the pushpins, and the instances specify\nthe coordinates of the pushpins and optional labels for each pin. (Be sure to properly URL-encode values of this\nparameter since it will contain reserved characters such as pipes and punctuation.)\n\nThe Azure Maps account S0 SKU only supports a single instance of the pins parameter. Other SKUs\nallow multiple instances of the pins parameter to specify multiple pin styles.\n\nTo render a pushpin at latitude 45°N and longitude 122°W using the default built-in pushpin style, add the\nquerystring parameter \n\n`pins=default||-122 45` \n\nNote that the longitude comes before the latitude.\nAfter URL encoding this will look like\n\n`pins=default%7C%7C-122+45`\n\nAll of the examples here show the pins\nparameter without URL encoding, for clarity.\n\nTo render a pin at multiple locations, separate each location with a pipe character. For example, use\n\n`pins=default||-122 45|-119.5 43.2|-121.67 47.12`\n\nThe S0 Azure Maps account SKU only allows five pushpins. Other account SKUs do not have this limitation.\n\n### Style Modifiers\n\nYou can modify the appearance of the pins by adding style modifiers. These are added after the style but before\nthe locations and labels. Style modifiers each have a two-letter name. These abbreviated names are used to help\nreduce the length of the URL.\n\nTo change the color of the pushpin, use the 'co' style modifier and specify the color using the HTML/CSS RGB color\nformat which is a six-digit hexadecimal number (the three-digit form is not supported). For example, to use\na deep pink color which you would specify as #FF1493 in CSS, use\n\n`pins=default|coFF1493||-122 45`\n\n### Pushpin Labels\n\nTo add a label to the pins, put the label in single quotes just before the coordinates. For example, to label\nthree pins with the values '1', '2', and '3', use\n\n`pins=default||'1'-122 45|'2'-119.5 43.2|'3'-121.67 47.12`\n\nThere is a built in pushpin style called 'none' that does not display a pushpin image. You can use this if\nyou want to display labels without any pin image. For example,\n\n`pins=none||'A'-122 45|'B'-119.5 43.2`\n\nTo change the color of the pushpin labels, use the 'lc' label color style modifier. For example, to use pink\npushpins with black labels, use\n\n`pins=default|coFF1493|lc000000||-122 45`\n\nTo change the size of the labels, use the 'ls' label size style modifier. The label size represents the approximate\nheight of the label text in pixels. For example, to increase the label size to 12, use\n\n`pins=default|ls12||'A'-122 45|'B'-119 43`\n\nThe labels are centered at the pushpin 'label anchor.' The anchor location is predefined for built-in pushpins and\nis at the top center of custom pushpins (see below). To override the label anchor, using the 'la' style modifier\nand provide X and Y pixel coordinates for the anchor. These coordinates are relative to the top left corner of the\npushpin image. Positive X values move the anchor to the right, and positive Y values move the anchor down. For example,\nto position the label anchor 10 pixels right and 4 pixels above the top left corner of the pushpin image,\nuse\n\n`pins=default|la10 -4||'A'-122 45|'B'-119 43`\n\n### Custom Pushpins\n\nTo use a custom pushpin image, use the word 'custom' as the pin style name, and then specify a URL after the\nlocation and label information. Use two pipe characters to indicate that you're done specifying locations and are\nstarting the URL. For example,\n\n`pins=custom||-122 45||http://contoso.com/pushpins/red.png`\n\nAfter URL encoding, this would look like\n\n`pins=custom%7C%7C-122+45%7C%7Chttp%3A%2F%2Fcontoso.com%2Fpushpins%2Fred.png`\n\nBy default, custom pushpin images are drawn centered at the pin coordinates. This usually isn't ideal as it obscures\nthe location that you're trying to highlight. To override the anchor location of the pin image, use the 'an'\nstyle modifier. This uses the same format as the 'la' label anchor style modifier. For example, if your custom\npin image has the tip of the pin at the top left corner of the image, you can set the anchor to that spot by\nusing\n\n`pins=custom|an0 0||-122 45||http://contoso.com/pushpins/red.png`\n\nNote: If you use the 'co' color modifier with a custom pushpin image, the specified color will replace the RGB \nchannels of the pixels in the image but will leave the alpha (opacity) channel unchanged. This would usually\nonly be done with a solid-color custom image.\n\n### Getting Pushpins from Azure Maps Data Storage\n\nFor all Azure Maps account SKUs other than S0,\nthe pushpin image and location information can be obtained from Azure Maps Data Storage. After uploading a pushpin image\nor a GeoJSON document containing pin locations, the Data Storage service returns a Unique Data ID (UDID) that you can use\nto reference the data in the pins parameter.\n\nTo use a custom pushpin image from Azure Maps Data Storage, specify the UDID prefixed by 'udid-' as the name of the\npushpin style. For example,\n\n`pins=udid-fe22c504-3a81-4fcd-adc6-a3507ce866c1||-122 45`\n\nTo use the point geometry from an uploaded GeoJSON document as the pin locations, specify the UDID in the locations\nsection of the pins parameter. For example,\n\n`pins=default||udid-29dc105a-dee7-409f-a3f9-22b066ae4713`\n\nNote that\nonly point and multipoint geometry, points and multipoints from geometry collections, and point geometry from features\nwill be used. Linestring and polygon geometry will be ignored. If the point comes from a feature and the feature\nhas a string property called \"label\", the value of that property will be used as the label for the pin.\n\nYou can mix pin locations from Data Storage and pin locations specified in the pins parameter. Any of the pipe-delimited\npin locations can be a longitude and latitude or a UDID. For example,\n\n`pins=default||-122 45|udid-29dc105a-dee7-409f-a3f9-22b066ae4713|-119 43`\n\n### Scale, Rotation, and Opacity\n\nYou can make pushpins and their labels larger or smaller by using the 'sc' scale style modifier. This is a\nvalue greater than zero. A value of 1 is the standard scale. Values larger than 1 will make the pins larger, and\nvalues smaller than 1 will make them smaller. For example, to draw the pushpins 50% larger than normal, use\n\n`pins=default|sc1.5||-122 45`\n\nYou can rotate pushpins and their labels by using the 'ro' rotation style modifier. This is a number of degrees\nof clockwise rotation. Use a negative number to rotate counter-clockwise. For example, to rotate the pushpins\n90 degrees clockwise and double their size, use\n\n`pins=default|ro90|sc2||-122 45`\n\nYou can make pushpins and their labels partially transparent by specifying the 'al' alpha style modifier.\nThis is a number between 0 and 1 indicating the opacity of the pushpins. Zero makes them completely transparent\n(and not visible) and 1 makes them completely opaque (which is the default). For example, to make pushpins\nand their labels only 67% opaque, use\n\n`pins=default|al.67||-122 45`\n\n### Style Modifier Summary\n\nModifier | Description | Range \n:--------:|-----------------|------------------\nal | Alpha (opacity) | 0 to 1 \nan | Pin anchor | * \nco | Pin color | 000000 to FFFFFF \nla | Label anchor | * \nlc | Label color | 000000 to FFFFFF \nls | Label size | Greater than 0 \nro | Rotation | -360 to 360 \nsc | Scale | Greater than 0 \n\n* X and Y coordinates can be anywhere within pin image or a margin around it.\nThe margin size is the minimum of the pin width and height.", "in": "query", - "required": false, "type": "array", "collectionFormat": "multi", "items": { @@ -348,7 +333,6 @@ "name": "path", "description": "Path style and locations. Use this parameter to optionally add lines, polygons or circles to the image.\nThe path style describes the appearance of the line and fill. (Be sure to properly URL-encode values of this\nparameter since it will contain reserved characters such as pipes and punctuation.)\n\nPath parameter is supported in Azure Maps account SKU starting with S1. Multiple instances of the path parameter \nallow to specify multiple geometries with their styles. Number of parameters per request is limited to 10 and\nnumber of locations is limited to 100 per path.\n\nTo render a circle with radius 100 meters and center point at latitude 45°N and longitude 122°W using the default style, add the\nquerystring parameter \n\n`path=ra100||-122 45` \n\nNote that the longitude comes before the latitude.\nAfter URL encoding this will look like\n\n`path=ra100%7C%7C-122+45`\n\nAll of the examples here show the path parameter without URL encoding, for clarity.\n\nTo render a line, separate each location with a pipe character. For example, use\n\n`path=||-122 45|-119.5 43.2|-121.67 47.12`\n\nTo render a polygon, last location must be equal to the start location. For example, use\n\n`path=||-122 45|-119.5 43.2|-121.67 47.12|-122 45`\n\nLongitude and latitude values for locations of lines and polygons can be in the range from -360 to 360 to allow for rendering of geometries crossing the anti-meridian.\n\n### Style Modifiers\n\nYou can modify the appearance of the path by adding style modifiers. These are added before the locations. \nStyle modifiers each have a two-letter name. These abbreviated names are used to help reduce the length\nof the URL.\n\nTo change the color of the outline, use the 'lc' style modifier and specify the color using the HTML/CSS RGB color\nformat which is a six-digit hexadecimal number (the three-digit form is not supported). For example, to use\na deep pink color which you would specify as #FF1493 in CSS, use\n\n`path=lcFF1493||-122 45|-119.5 43.2`\n\nMultiple style modifiers may be combined together to create a more complex visual style.\n\n`lc0000FF|lw3|la0.60|fa0.50||-122.2 47.6|-122.2 47.7|-122.3 47.7|-122.3 47.6|-122.2 47.6`\n\n### Getting Path locations from Azure Maps Data Storage\n\nFor all Azure Maps account SKUs other than S0, the path location information can be obtained from Azure Maps Data Storage. \nAfter uploading a GeoJSON document containing path locations, the Data Storage service returns a Unique Data ID (UDID) that you can use\nto reference the data in the path parameter.\n\nTo use the point geometry from an uploaded GeoJSON document as the path locations, specify the UDID in the locations\nsection of the path parameter. For example,\n\n`path=||udid-29dc105a-dee7-409f-a3f9-22b066ae4713`\n\nNote the it is not allowed to mix path locations from Data Storage with locations specified in the path parameter. \n\n### Style Modifier Summary\n\nModifier | Description | Range \n:--------:|------------------------|------------------\nlc | Line color | 000000 to FFFFFF\nfc | Fill color | 000000 to FFFFFF\nla | Line alpha (opacity) | 0 to 1 \nfa | Fill alpha (opacity) | 0 to 1 \nlw | Line width | Greater than 0 \nra | Circle radius (meters) | Greater than 0", "in": "query", - "required": false, "type": "array", "collectionFormat": "multi", "items": { @@ -486,9 +470,7 @@ "name": "tileSize", "in": "query", "description": "The size of the returned map tile in pixels.", - "required": false, "type": "string", - "default": "256", "enum": [ "256", "512" diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json index 91bc70a7c339..ec288e18fdc5 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json @@ -132,7 +132,6 @@ "name": "text", "in": "query", "description": "Yes/no value to exclude textual data from response. Only images and country names will be in response.", - "required": false, "type": "string", "enum": [ "yes", @@ -152,7 +151,6 @@ } ] }, - "default": "yes", "x-ms-parameter-location": "method" } }, @@ -192,16 +190,13 @@ "name": "timeStamp", "in": "query", "description": "The desired date and time of the requested tile. This parameter must be specified in the standard date-time format (e.g. 2019-11-14T16:03:00-08:00), as defined by [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601). This parameter is only supported when tilesetId parameter is set to one of the values below.\n \n* microsoft.weather.infrared.main: We provide tiles up to 3 hours in the past. Tiles are available in 10-minute intervals. We round the timeStamp value to the nearest 10-minute time frame.\n* microsoft.weather.radar.main: We provide tiles up to 1.5 hours in the past and up to 2 hours in the future. Tiles are available in 5-minute intervals. We round the timeStamp value to the nearest 5-minute time frame.", - "required": false, "type": "string" }, { "name": "tileSize", "in": "query", "description": "The size of the returned map tile in pixels.", - "required": false, "type": "string", - "default": "256", "enum": [ "256", "512" diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json index 6295a42a6d0c..04b370f2f936 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json @@ -73,7 +73,6 @@ "name": "vehicleLoadType", "in": "query", "description": "Types of cargo that may be classified as hazardous materials and restricted from some roads. Available vehicleLoadType values are US Hazmat classes 1 through 9, plus generic classifications for use in other countries. Values beginning with USHazmat are for US routing while otherHazmat should be used for all other countries. vehicleLoadType can be specified multiple times. This parameter is currently only considered for travelMode=truck.", - "required": false, "type": "string", "enum": [ "USHazmatClass1", @@ -149,7 +148,6 @@ "name": "routeType", "in": "query", "description": "The type of route requested.", - "required": false, "type": "string", "enum": [ "fastest", @@ -185,7 +183,6 @@ "name": "windingness", "in": "query", "description": "Level of turns for thrilling route. This parameter can only be used in conjunction with `routeType`=thrilling.", - "required": false, "type": "string", "enum": [ "low", @@ -216,7 +213,6 @@ "name": "hilliness", "in": "query", "description": "Degree of hilliness for thrilling route. This parameter can only be used in conjunction with `routeType`=thrilling.", - "required": false, "type": "string", "enum": [ "low", @@ -247,7 +243,6 @@ "name": "travelMode", "in": "query", "description": "The mode of travel for the requested route. If not defined, default is 'car'. Note that the requested travelMode may not be available for the entire route. Where the requested travelMode is not available for a particular section, the travelMode element of the response for that section will be \"other\". Note that travel modes bus, motorcycle, taxi and van are BETA functionality. Full restriction data is not available in all areas. In **calculateReachableRange** requests, the values bicycle and pedestrian must not be used.", - "required": false, "type": "string", "enum": [ "car", @@ -303,7 +298,6 @@ "name": "avoid", "in": "query", "description": "Specifies something that the route calculation should try to avoid when determining the route. Can be specified multiple times in one request, for example, '&avoid=motorways&avoid=tollRoads&avoid=ferries'. In calculateReachableRange requests, the value alreadyUsedRoads must not be used.", - "required": false, "type": "array", "collectionFormat": "multi", "items": { @@ -358,7 +352,6 @@ "name": "vehicleEngineType", "in": "query", "description": "Engine type of the vehicle. When a detailed Consumption Model is specified, it must be consistent with the value of **vehicleEngineType**.", - "required": false, "type": "string", "enum": [ "combustion", @@ -384,7 +377,6 @@ "name": "constantSpeedConsumptionInLitersPerHundredkm", "in": "query", "description": "\n\nSpecifies the speed-dependent component of consumption.\n\nProvided as an unordered list of colon-delimited speed & consumption-rate pairs. The list defines points on a consumption curve. Consumption rates for speeds not in the list are found as follows:\n\n * by linear interpolation, if the given speed lies in between two speeds in the list\n\n * by linear extrapolation otherwise, assuming a constant (ΔConsumption/ΔSpeed) determined by the nearest two points in the list\n\nThe list must contain between 1 and 25 points (inclusive), and may not contain duplicate points for the same speed. If it only contains a single point, then the consumption rate of that point is used without further processing.\n\nConsumption specified for the largest speed must be greater than or equal to that of the penultimate largest speed. This ensures that extrapolation does not lead to negative consumption rates.\n\nSimilarly, consumption values specified for the two smallest speeds in the list cannot lead to a negative consumption rate for any smaller speed.\n\nThe valid range for the consumption values(expressed in l/100km) is between 0.01 and 100000.0.\n\nSensible Values : 50,6.3:130,11.5\n\n**Note** : This parameter is required for **The Combustion Consumption Model**.", - "required": false, "type": "number", "format": "float", "x-ms-parameter-location": "method" @@ -393,7 +385,6 @@ "name": "currentFuelInLiters", "in": "query", "description": "Specifies the current supply of fuel in liters.\n\nSensible Values : 55", - "required": false, "type": "number", "format": "float", "x-ms-parameter-location": "method" @@ -402,7 +393,6 @@ "name": "auxiliaryPowerInLitersPerHour", "in": "query", "description": "Specifies the amount of fuel consumed for sustaining auxiliary systems of the vehicle, in liters per hour.\n\nIt can be used to specify consumption due to devices and systems such as AC systems, radio, heating, etc.\n\nSensible Values : 0.2", - "required": false, "type": "number", "format": "float", "x-ms-parameter-location": "method" @@ -411,7 +401,6 @@ "name": "fuelEnergyDensityInMJoulesPerLiter", "in": "query", "description": "Specifies the amount of chemical energy stored in one liter of fuel in megajoules (MJ). It is used in conjunction with the ***Efficiency** parameters for conversions between saved or consumed energy and fuel. For example, energy density is 34.2 MJ/l for gasoline, and 35.8 MJ/l for Diesel fuel.\n\nThis parameter is required if any ***Efficiency** parameter is set.\n\nSensible Values : 34.2", - "required": false, "type": "number", "format": "float", "x-ms-parameter-location": "method" @@ -420,7 +409,6 @@ "name": "accelerationEfficiency", "in": "query", "description": "Specifies the efficiency of converting chemical energy stored in fuel to kinetic energy when the vehicle accelerates _(i.e. KineticEnergyGained/ChemicalEnergyConsumed). ChemicalEnergyConsumed_ is obtained by converting consumed fuel to chemical energy using **fuelEnergyDensityInMJoulesPerLiter**.\n\nMust be paired with **decelerationEfficiency**.\n\nThe range of values allowed are 0.0 to 1/**decelerationEfficiency**.\n\nSensible Values : for **Combustion Model** : 0.33, for **Electric Model** : 0.66", - "required": false, "type": "number", "format": "float", "x-ms-parameter-location": "method" @@ -429,7 +417,6 @@ "name": "decelerationEfficiency", "in": "query", "description": "Specifies the efficiency of converting kinetic energy to saved (not consumed) fuel when the vehicle decelerates _(i.e. ChemicalEnergySaved/KineticEnergyLost). ChemicalEnergySaved_ is obtained by converting saved (not consumed) fuel to energy using **fuelEnergyDensityInMJoulesPerLiter**.\n\nMust be paired with **accelerationEfficiency**.\n\nThe range of values allowed are 0.0 to 1/**accelerationEfficiency**.\n\nSensible Values : for **Combustion Model** : 0.83, for **Electric Model** : 0.91", - "required": false, "type": "number", "format": "float", "x-ms-parameter-location": "method" @@ -438,7 +425,6 @@ "name": "uphillEfficiency", "in": "query", "description": "Specifies the efficiency of converting chemical energy stored in fuel to potential energy when the vehicle gains elevation _(i.e. PotentialEnergyGained/ChemicalEnergyConsumed). ChemicalEnergyConsumed_ is obtained by converting consumed fuel to chemical energy using **fuelEnergyDensityInMJoulesPerLiter**.\n\nMust be paired with **downhillEfficiency**.\n\nThe range of values allowed are 0.0 to 1/**downhillEfficiency**.\n\nSensible Values : for **Combustion Model** : 0.27, for **Electric Model** : 0.74", - "required": false, "type": "number", "format": "float", "x-ms-parameter-location": "method" @@ -447,7 +433,6 @@ "name": "downhillEfficiency", "in": "query", "description": "Specifies the efficiency of converting potential energy to saved (not consumed) fuel when the vehicle loses elevation _(i.e. ChemicalEnergySaved/PotentialEnergyLost). ChemicalEnergySaved_ is obtained by converting saved (not consumed) fuel to energy using **fuelEnergyDensityInMJoulesPerLiter**.\n\nMust be paired with **uphillEfficiency**.\n\nThe range of values allowed are 0.0 to 1/**uphillEfficiency**.\n\nSensible Values : for **Combustion Model** : 0.51, for **Electric Model** : 0.73", - "required": false, "type": "number", "format": "float", "x-ms-parameter-location": "method" @@ -456,7 +441,6 @@ "name": "constantSpeedConsumptionInkWhPerHundredkm", "in": "query", "description": "Specifies the speed-dependent component of consumption.\n\nProvided as an unordered list of speed/consumption-rate pairs. The list defines points on a consumption curve. Consumption rates for speeds not in the list are found as follows:\n\n* by linear interpolation, if the given speed lies in between two speeds in the list\n\n* by linear extrapolation otherwise, assuming a constant (ΔConsumption/ΔSpeed) determined by the nearest two points in the list\n\nThe list must contain between 1 and 25 points (inclusive), and may not contain duplicate points for the same speed. If it only contains a single point, then the consumption rate of that point is used without further processing.\n\nConsumption specified for the largest speed must be greater than or equal to that of the penultimate largest speed. This ensures that extrapolation does not lead to negative consumption rates.\n\nSimilarly, consumption values specified for the two smallest speeds in the list cannot lead to a negative consumption rate for any smaller speed.\n\nThe valid range for the consumption values(expressed in kWh/100km) is between 0.01 and 100000.0.\n\nSensible Values : 50,8.2:130,21.3\n\nThis parameter is required for **Electric consumption model**.", - "required": false, "type": "string", "x-ms-parameter-location": "method" }, @@ -464,7 +448,6 @@ "name": "currentChargeInkWh", "in": "query", "description": "Specifies the current electric energy supply in kilowatt hours (kWh).\n\nThis parameter co-exists with **maxChargeInkWh** parameter.\n\nThe range of values allowed are 0.0 to **maxChargeInkWh**.\n\nSensible Values : 43", - "required": false, "type": "string", "x-ms-parameter-location": "method" }, @@ -472,7 +455,6 @@ "name": "maxChargeInkWh", "in": "query", "description": "Specifies the maximum electric energy supply in kilowatt hours (kWh) that may be stored in the vehicle's battery.\n\nThis parameter co-exists with **currentChargeInkWh** parameter.\n\nMinimum value has to be greater than or equal to **currentChargeInkWh**.\n\nSensible Values : 85", - "required": false, "type": "string", "x-ms-parameter-location": "method" }, @@ -480,7 +462,6 @@ "name": "auxiliaryPowerInkW", "in": "query", "description": "Specifies the amount of power consumed for sustaining auxiliary systems, in kilowatts (kW).\n\nIt can be used to specify consumption due to devices and systems such as AC systems, radio, heating, etc.\n\nSensible Values : 1.7", - "required": false, "type": "string", "x-ms-parameter-location": "method" }, @@ -488,7 +469,6 @@ "name": "vehicleWeight", "in": "query", "description": "Weight of the vehicle in kilograms.", - "required": false, "type": "integer", "x-ms-parameter-location": "method" }, @@ -496,7 +476,6 @@ "name": "vehicleWeight", "in": "query", "description": "Weight of the vehicle in kilograms.\n\n* It is mandatory if any of the *Efficiency parameters are set.\n\n* It must be strictly positive when used in the context of the Consumption Model. Weight restrictions are considered.\n\n* If no detailed **Consumption Model** is specified and the value of **vehicleWeight** is non-zero, then weight restrictions are considered.\n\n* In all other cases, this parameter is ignored.\n\nSensible Values : for **Combustion Model** : 1600, for **Electric Model** : 1900", - "required": false, "type": "integer", "x-ms-parameter-location": "method" }, @@ -504,7 +483,6 @@ "name": "vehicleMaxSpeed", "in": "query", "description": "Maximum speed of the vehicle in km/hour. The max speed in the vehicle profile is used to check whether a vehicle is allowed on motorways. \n\n* A value of 0 means that an appropriate value for the vehicle will be determined and applied during route planning.\n\n* A non-zero value may be overridden during route planning. For example, the current traffic flow is 60 km/hour. If the vehicle maximum speed is set to 50 km/hour, the routing engine will consider 60 km/hour as this is the current situation. If the maximum speed of the vehicle is provided as 80 km/hour but the current traffic flow is 60 km/hour, then routing engine will again use 60 km/hour.", - "required": false, "type": "integer", "x-ms-parameter-location": "method" }, @@ -512,7 +490,6 @@ "name": "vehicleLength", "in": "query", "description": "Length of the vehicle in meters. A value of 0 means that length restrictions are not considered.", - "required": false, "type": "number", "format": "float", "x-ms-parameter-location": "method" @@ -521,7 +498,6 @@ "name": "vehicleHeight", "in": "query", "description": "Height of the vehicle in meters. A value of 0 means that height restrictions are not considered.", - "required": false, "type": "number", "format": "float", "x-ms-parameter-location": "method" @@ -530,7 +506,6 @@ "name": "vehicleWidth", "in": "query", "description": "Width of the vehicle in meters. A value of 0 means that width restrictions are not considered.", - "required": false, "type": "number", "format": "float", "x-ms-parameter-location": "method" @@ -539,7 +514,6 @@ "name": "vehicleAxleWeight", "in": "query", "description": "Weight per axle of the vehicle in kg. A value of 0 means that weight restrictions per axle are not considered.", - "required": false, "type": "integer", "x-ms-parameter-location": "method" }, @@ -547,7 +521,6 @@ "name": "vehicleCommercial", "in": "query", "description": "Vehicle is used for commercial purposes and thus may not be allowed to drive on some roads.", - "required": false, "type": "boolean", "x-ms-parameter-location": "method" }, @@ -557,7 +530,6 @@ "description": "The date and time of departure from the origin point. Departure times apart from now must be specified as a dateTime. When a time zone offset is not specified, it will be assumed to be that of the origin point. The departAt value must be in the future in the date-time format (1996-12-19T16:39:57-08:00).", "type": "string", "format": "date-time", - "required": false, "x-ms-parameter-location": "method" }, "ArriveAt": { @@ -566,14 +538,12 @@ "description": "The date and time of arrival at the destination point. It must be specified as a dateTime. When a time zone offset is not specified it will be assumed to be that of the destination point. The arriveAt value must be in the future. The arriveAt parameter cannot be used in conjunction with departAt, minDeviationDistance or minDeviationTime.", "type": "string", "format": "date-time", - "required": false, "x-ms-parameter-location": "method" }, "SectionType": { "name": "sectionType", "in": "query", "description": "Specifies which of the section types is reported in the route response.

For example if sectionType = pedestrian the sections which are suited for pedestrians only are returned. Multiple types can be used. The default sectionType refers to the travelMode input. By default travelMode is set to car", - "required": false, "type": "string", "enum": [ "carTrain", @@ -639,7 +609,6 @@ "name": "computeBestOrder", "in": "query", "description": "Re-order the route waypoints using a fast heuristic algorithm to reduce the route length. Yields best results when used in conjunction with routeType _shortest_. Notice that origin and destination are excluded from the optimized waypoint indices. To include origin and destination in the response, please increase all the indices by 1 to account for the origin, and then add the destination as the final index. Possible values are true or false. True computes a better order if possible, but is not allowed to be used in conjunction with maxAlternatives value greater than 0 or in conjunction with circle waypoints. False will use the locations in the given order and not allowed to be used in conjunction with routeRepresentation _none_.", - "required": false, "type": "boolean", "x-ms-parameter-location": "method" }, @@ -647,7 +616,6 @@ "name": "routeRepresentation", "in": "query", "description": "Specifies the representation of the set of routes provided as response. This parameter value can only be used in conjunction with computeBestOrder=true.", - "required": false, "type": "string", "enum": [ "polyline", @@ -678,7 +646,6 @@ "name": "computeTravelTimeFor", "in": "query", "description": "Specifies whether to return additional travel times using different types of traffic information (none, historic, live) as well as the default best-estimate travel time.", - "required": false, "type": "string", "enum": [ "none", @@ -704,7 +671,6 @@ "name": "vehicleHeading", "in": "query", "description": "The directional heading of the vehicle in degrees starting at true North and continuing in clockwise direction. North is 0 degrees, east is 90 degrees, south is 180 degrees, west is 270 degrees. Possible values 0-359", - "required": false, "type": "integer", "minimum": 0, "maximum": 359, @@ -714,7 +680,6 @@ "name": "report", "in": "query", "description": "Specifies which data should be reported for diagnosis purposes. The only possible value is _effectiveSettings_. Reports the effective parameters or data used when calling the API. In the case of defaulted parameters the default will be reflected where the parameter was not specified by the caller.", - "required": false, "type": "string", "x-ms-parameter-location": "method" }, @@ -722,7 +687,6 @@ "name": "traffic", "in": "query", "description": "Possible values: \n * true - Do consider all available traffic information during routing\n * false - Ignore current traffic data during routing. Note that although the current traffic data is ignored \n during routing, the effect of historic traffic on effective road speeds is still incorporated.", - "required": false, "type": "boolean", "x-ms-parameter-location": "method" }, @@ -730,7 +694,6 @@ "name": "alternativeType", "in": "query", "description": "Controls the optimality, with respect to the given planning criteria, of the calculated alternatives compared to the reference route.", - "required": false, "type": "string", "enum": [ "anyRoute", @@ -756,7 +719,6 @@ "name": "instructionsType", "in": "query", "description": "If specified, guidance instructions will be returned. Note that the instructionsType parameter cannot be used in conjunction with routeRepresentation=none", - "required": false, "type": "string", "enum": [ "coded", @@ -815,7 +777,6 @@ "name": "waitForResults", "in": "query", "description": "Boolean to indicate whether to execute the request synchronously. If set to true, user will get a 200 response if the request is finished under 120 seconds. Otherwise, user will get a 202 response right away. Please refer to the API description for more details on 202 response. **Supported only for async request**.", - "required": false, "type": "boolean" }, { @@ -943,7 +904,6 @@ "name": "maxAlternatives", "in": "query", "description": "Number of desired alternative routes to be calculated. Default: 0, minimum: 0 and maximum: 5", - "required": false, "type": "integer", "minimum": 0, "maximum": 5 @@ -955,7 +915,6 @@ "name": "minDeviationDistance", "in": "query", "description": "All alternative routes returned will follow the reference route (see section POST Requests) from the origin point of the calculateRoute request for at least this number of meters. Can only be used when reconstructing a route. The minDeviationDistance parameter cannot be used in conjunction with arriveAt", - "required": false, "type": "integer" }, { @@ -968,7 +927,6 @@ "name": "minDeviationTime", "in": "query", "description": "All alternative routes returned will follow the reference route (see section POST Requests) from the origin point of the calculateRoute request for at least this number of seconds. Can only be used when reconstructing a route. The minDeviationTime parameter cannot be used in conjunction with arriveAt. Default value is 0. Setting )minDeviationTime_ to a value greater than zero has the following consequences:\n - The origin point of the _calculateRoute_ Request must be on\n (or very near) the input reference route.\n - If this is not the case, an error is returned.\n - However, the origin point does not need to be at the beginning\n of the input reference route (it can be thought of as the current\n vehicle position on the reference route).\n - The reference route, returned as the first route in the _calculateRoute_\n Response, will start at the origin point specified in the _calculateRoute_\n Request. The initial part of the input reference route up until the origin\n point will be excluded from the Response.\n - The values of _minDeviationDistance_ and _minDeviationTime_ determine\n how far alternative routes will be guaranteed to follow the reference\n route from the origin point onwards.\n - The route must use _departAt_.\n - The _vehicleHeading_ is ignored.", - "required": false, "type": "integer" }, { @@ -978,7 +936,6 @@ "name": "language", "in": "query", "description": "The language parameter determines the language of the guidance messages. Proper nouns (the names of streets, plazas, etc.) are returned in the specified language, or if that is not available, they are returned in an available language that is close to it. Allowed values are (a subset of) the IETF language tags. The currently supported languages are listed in the [Supported languages section](https://docs.microsoft.com/azure/azure-maps/supported-languages).\n\nDefault value: en-GB", - "required": false, "type": "string" }, { @@ -1137,7 +1094,6 @@ "name": "maxAlternatives", "in": "query", "description": "Number of desired alternative routes to be calculated. Default: 0, minimum: 0 and maximum: 5", - "required": false, "type": "integer", "minimum": 0, "maximum": 5 @@ -1149,14 +1105,12 @@ "name": "minDeviationDistance", "in": "query", "description": "All alternative routes returned will follow the reference route (see section POST Requests) from the origin point of the calculateRoute request for at least this number of meters. Can only be used when reconstructing a route. The minDeviationDistance parameter cannot be used in conjunction with arriveAt", - "required": false, "type": "integer" }, { "name": "minDeviationTime", "in": "query", "description": "All alternative routes returned will follow the reference route (see section POST Requests) from the origin point of the calculateRoute request for at least this number of seconds. Can only be used when reconstructing a route. The minDeviationTime parameter cannot be used in conjunction with arriveAt. Default value is 0. Setting )minDeviationTime_ to a value greater than zero has the following consequences:\n - The origin point of the _calculateRoute_ Request must be on\n (or very near) the input reference route.\n - If this is not the case, an error is returned.\n - However, the origin point does not need to be at the beginning\n of the input reference route (it can be thought of as the current\n vehicle position on the reference route).\n - The reference route, returned as the first route in the _calculateRoute_\n Response, will start at the origin point specified in the _calculateRoute_\n Request. The initial part of the input reference route up until the origin\n point will be excluded from the Response.\n - The values of _minDeviationDistance_ and _minDeviationTime_ determine\n how far alternative routes will be guaranteed to follow the reference\n route from the origin point onwards.\n - The route must use _departAt_.\n - The _vehicleHeading_ is ignored.", - "required": false, "type": "integer" }, { @@ -1166,7 +1120,6 @@ "name": "language", "in": "query", "description": "The language parameter determines the language of the guidance messages. It does not affect proper nouns (the names of streets, plazas, etc.) It has no effect when instructionsType=coded. Allowed values are (a subset of) the IETF language tags described", - "required": false, "type": "string" }, { @@ -1342,7 +1295,6 @@ "name": "fuelBudgetInLiters", "in": "query", "description": "Fuel budget in liters that determines maximal range which can be travelled using the specified Combustion Consumption Model.
When fuelBudgetInLiters is used, it is mandatory to specify a detailed Combustion Consumption Model.
Exactly one budget (fuelBudgetInLiters, energyBudgetInkWh, timeBudgetInSec, or distanceBudgetInMeters) must be used.", - "required": false, "type": "number", "format": "float" }, @@ -1350,7 +1302,6 @@ "name": "energyBudgetInkWh", "in": "query", "description": "Electric energy budget in kilowatt hours (kWh) that determines maximal range which can be travelled using the specified Electric Consumption Model.
When energyBudgetInkWh is used, it is mandatory to specify a detailed Electric Consumption Model.
Exactly one budget (fuelBudgetInLiters, energyBudgetInkWh, timeBudgetInSec, or distanceBudgetInMeters) must be used.", - "required": false, "type": "number", "format": "float" }, @@ -1358,7 +1309,6 @@ "name": "timeBudgetInSec", "in": "query", "description": "Time budget in seconds that determines maximal range which can be travelled using driving time. The Consumption Model will only affect the range when routeType is eco.
Exactly one budget (fuelBudgetInLiters, energyBudgetInkWh, timeBudgetInSec, or distanceBudgetInMeters) must be used.", - "required": false, "type": "number", "format": "float" }, @@ -1366,7 +1316,6 @@ "name": "distanceBudgetInMeters", "in": "query", "description": "Distance budget in meters that determines maximal range which can be travelled using driving distance. The Consumption Model will only affect the range when routeType is eco.
Exactly one budget (fuelBudgetInLiters, energyBudgetInkWh, timeBudgetInSec, or distanceBudgetInMeters) must be used.", - "required": false, "type": "number", "format": "float" }, diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json index bc95744964de..e89e3b5b3b45 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json @@ -73,9 +73,7 @@ "name": "limit", "in": "query", "description": "Maximum number of responses that will be returned. Default: 10, minimum: 1 and maximum: 100", - "required": false, "type": "integer", - "default": 10, "minimum": 1, "maximum": 100, "x-ms-parameter-location": "method" @@ -84,9 +82,7 @@ "name": "ofs", "in": "query", "description": "Starting offset of the returned results within the full result set. Default: 0, minimum: 0 and maximum: 1900", - "required": false, "type": "integer", - "default": 0, "minimum": 0, "maximum": 1900, "x-ms-parameter-location": "method" @@ -95,7 +91,6 @@ "name": "lat", "in": "query", "description": "Latitude where results should be biased. E.g. 37.337", - "required": false, "type": "number", "x-ms-parameter-location": "method" }, @@ -103,7 +98,6 @@ "name": "lon", "in": "query", "description": "Longitude where results should be biased. E.g. -121.89", - "required": false, "type": "number", "x-ms-parameter-location": "method" }, @@ -112,7 +106,6 @@ "name": "topLeft", "in": "query", "description": "Top left position of the bounding box. E.g. 37.553,-122.453", - "required": false, "type": "string", "x-ms-parameter-location": "method" }, @@ -121,7 +114,6 @@ "name": "btmRight", "in": "query", "description": "Bottom right position of the bounding box. E.g. 37.553,-122.453", - "required": false, "type": "string", "x-ms-parameter-location": "method" }, @@ -145,7 +137,6 @@ "name": "language", "in": "query", "description": "Language in which search results should be returned. Should be one of supported IETF language tags, case insensitive. When data in specified language is not available for a specific field, default language is used.\n\nPlease refer to [Supported Languages](https://docs.microsoft.com/en-us/azure/azure-maps/supported-languages) for details.", - "required": false, "type": "string", "x-ms-parameter-location": "method" }, @@ -169,7 +160,6 @@ "name": "view", "in": "query", "description": "The View parameter specifies which set of geopolitically disputed content is returned via Azure Maps services, including borders and labels displayed on the map. The View parameter (also referred to as “user region parameter”) will show the correct maps for that country/region. By default, the View parameter is set to “Unified” even if you haven’t defined it in the request. It is your responsibility to determine the location of your users, and then set the View parameter correctly for that location. Alternatively, you have the option to set ‘View=Auto’, which will return the map data based on the IP address of the request. The View parameter in Azure Maps must be used in compliance with applicable laws, including those regarding mapping, of the country where maps, images and other data and third party content that you are authorized to access via Azure Maps is made available. Example: view=IN.\n\nPlease refer to [Supported Views](https://aka.ms/AzureMapsLocalizationViews) for details and to see the available Views.", - "required": false, "type": "string", "x-ms-parameter-location": "method" }, @@ -177,7 +167,6 @@ "name": "idxSet", "in": "query", "description": "A comma separated list of indexes which should be utilized for the search. Item order does not matter. Available indexes are: Addr = Address range interpolation, Geo = Geographies, PAD = Point Addresses, POI = Points of interest, Str = Streets, Xstr = Cross Streets (intersections)", - "required": false, "type": "array", "items": { "type": "string", @@ -227,7 +216,6 @@ "name": "extendedPostalCodesFor", "in": "query", "description": "Indexes for which extended postal codes should be included in the results.\n\nAvailable indexes are: \n\n **Addr** = Address ranges \n\n **Geo** = Geographies \n\n **PAD** = Point Addresses \n\n **POI** = Points of Interest \n\n **Str** = Streets \n\n **XStr** = Cross Streets (intersections)\n\nValue should be a comma separated list of index types (in any order) or **None** for no indexes.\n\nBy default extended postal codes are included for all indexes except Geo. Extended postal code lists for geographies can be quite long so they have to be explicitly requested when needed.\n\nUsage examples:\n\n extendedPostalCodesFor=POI \n\n extendedPostalCodesFor=PAD,Addr,POI \n\n extendedPostalCodesFor=None\n\nExtended postal code is returned as an **extendedPostalCode** property of an address. Availability is region-dependent.", - "required": false, "type": "string", "x-ms-parameter-location": "method" }, @@ -235,7 +223,6 @@ "name": "extendedPostalCodesFor", "in": "query", "description": "Indexes for which extended postal codes should be included in the results.\n\nAvailable indexes are: \n\n **POI** = Points of Interest \n\nValue should be **POI** or **None** to disable extended postal codes.\n\nBy default extended postal codes are included.\n\nUsage examples:\n\n extendedPostalCodesFor=POI \n\n extendedPostalCodesFor=None\n\nExtended postal code is returned as an **extendedPostalCode** property of an address. Availability is region-dependent.", - "required": false, "type": "string", "x-ms-parameter-location": "method" }, @@ -243,16 +230,13 @@ "name": "typeahead", "in": "query", "description": "Boolean. If the typeahead flag is set, the query will be interpreted as a partial input and the search will enter predictive mode", - "required": false, "type": "boolean", - "default": false, "x-ms-parameter-location": "method" }, "CategorySet": { "name": "categorySet", "in": "query", "description": "A comma-separated list of category set IDs which could be used to restrict the result to specific Points of Interest categories. ID order does not matter. When multiple category identifiers are provided, only POIs that belong to (at least) one of the categories from the provided list will be returned. The list of supported categories can be discovered using  [POI Categories API](https://aka.ms/AzureMapsPOICategoryTree). Usage examples: \n\n* **categorySet=7315** (Search Points of Interest from category Restaurant)\n\n* **categorySet=7315025,7315017** (Search Points of Interest of category either Italian or French Restaurant) ", - "required": false, "type": "array", "items": { "type": "integer" @@ -264,7 +248,6 @@ "name": "countrySet", "in": "query", "description": "Comma separated string of country codes, e.g. FR,ES. This will limit the search to the specified countries", - "required": false, "type": "array", "items": { "type": "string" @@ -276,7 +259,6 @@ "name": "radius", "in": "query", "description": "The radius in meters to for the results to be constrained to the defined area", - "required": false, "type": "number", "x-ms-parameter-location": "method" }, @@ -292,7 +274,6 @@ "name": "brandSet", "in": "query", "description": "A comma-separated list of brand names which could be used to restrict the result to specific brands. Item order does not matter. When multiple brands are provided, only results that belong to (at least) one of the provided list will be returned. Brands that contain a \",\" in their name should be put into quotes.\n\nUsage examples:\n\n brandSet=Foo\n\n brandSet=Foo,Bar\n\n brandSet=\"A,B,C Comma\",Bar", - "required": false, "type": "array", "items": { "type": "string" @@ -304,7 +285,6 @@ "name": "connectorSet", "in": "query", "description": "A comma-separated list of connector types which could be used to restrict the result to Electric Vehicle Station supporting specific connector types. Item order does not matter. When multiple connector types are provided, only results that belong to (at least) one of the provided list will be returned.\n\nAvailable connector types are:\n * `StandardHouseholdCountrySpecific` - These are the standard household connectors for a certain region. They are all AC single phase and the standard Voltage and standard Amperage. See also: [Plug & socket types - World Standards](https://www.worldstandards.eu/electricity/plugs-and-sockets).\n * `IEC62196Type1` - Type 1 connector as defined in the IEC 62196-2 standard. Also called Yazaki after the original manufacturer or SAE J1772 after the standard that first published it. Mostly used in combination with 120V single phase or up to 240V single phase infrastructure.\n * `IEC62196Type1CCS` - Type 1 based combo connector as defined in the IEC 62196-3 standard. The connector is based on the Type 1 connector – as defined in the IEC 62196-2 standard – with two additional direct current (DC) contacts to allow DC fast charging.\n * `IEC62196Type2CableAttached` - Type 2 connector as defined in the IEC 62196-2 standard. Provided as a cable and plug attached to the charging point.\n * `IEC62196Type2Outlet` - Type 2 connector as defined in the IEC 62196-2 standard. Provided as a socket set into the charging point.\n * `IEC62196Type2CCS` - Type 2 based combo connector as defined in the IEC 62196-3 standard. The connector is based on the Type 2 connector – as defined in the IEC 62196-2 standard – with two additional direct current (DC) contacts to allow DC fast charging.\n * `IEC62196Type3` - Type 3 connector as defined in the IEC 62196-2 standard. Also called Scame after the original manufacturer. Mostly used in combination with up to 240V single phase or up to 420V three phase infrastructure.\n * `Chademo` - CHAdeMO connector named after an association formed by the Tokyo Electric Power Company and industrial partners. Because of this is is also known as the TEPCO's connector. It supports fast DC charging.\n * `IEC60309AC1PhaseBlue` - Industrial Blue connector is a connector defined in the IEC 60309 standard. It is sometime referred to as by some combination of the standard, the color and the fact that is a single phase connector. The connector usually has the \"P+N+E, 6h\" configuration.\n * `IEC60309DCWhite` - Industrial White connector is a DC connector defined in the IEC 60309 standard.\n * `Tesla` - The Tesla connector is the regionally specific Tesla Supercharger connector. I.e. it refers to either Tesla's proprietary connector, sometimes referred to as Tesla Port mostly limited to North America or the modified Type 2 (DC over Type 2) in Europe.\n\nUsage examples:\n\n connectorSet=IEC62196Type2CableAttached\n connectorSet=IEC62196Type2Outlet,IEC62196Type2CableAttached", - "required": false, "type": "array", "items": { "type": "string", @@ -380,7 +360,6 @@ "description": "Hours of operation for a POI (Points of Interest). The availability of hours of operation will vary based on the data available.\nSupported value: nextSevenDays", "type": "string", "in": "query", - "required": false, "enum": [ "nextSevenDays" ], @@ -525,9 +504,7 @@ "name": "minFuzzyLevel", "in": "query", "description": "Minimum fuzziness level to be used. Default: 1, minimum: 1 and maximum: 4\n\n* Level 1 has no spell checking.\n\n* Level 2 uses normal n-gram spell checking. For example, query \"restrant\" can be matched to \"restaurant.\"\n\n* Level 3 uses sound-like spell checking, and shingle spell checking. Sound-like spell checking is for \"rstrnt\" to \"restaurant\" matching. Shingle spell checking is for \"mountainview\" to \"mountain view\" matching.\n\n* Level 4 doesn’t add any more spell checking functions.\n\n\n\nThe search engine will start looking for a match on the level defined by minFuzzyLevel, and will stop searching at the level specified by maxFuzzyLevel.", - "required": false, "type": "integer", - "default": 1, "minimum": 1, "maximum": 4 }, @@ -535,9 +512,7 @@ "name": "maxFuzzyLevel", "in": "query", "description": "Maximum fuzziness level to be used. Default: 2, minimum: 1 and maximum: 4\n\n* Level 1 has no spell checking.\n\n* Level 2 uses normal n-gram spell checking. For example, query \"restrant\" can be matched to \"restaurant.\"\n\n* Level 3 uses sound-like spell checking, and shingle spell checking. Sound-like spell checking is for \"rstrnt\" to \"restaurant\" matching. Shingle spell checking is for \"mountainview\" to \"mountain view\" matching.\n\n* Level 4 doesn’t add any more spell checking functions.\n\n\n\nThe search engine will start looking for a match on the level defined by minFuzzyLevel, and will stop searching at the level specified by maxFuzzyLevel.", - "required": false, "type": "integer", - "default": 2, "minimum": 1, "maximum": 4 }, @@ -729,7 +704,6 @@ "name": "radius", "in": "query", "description": "The radius in meters to for the results to be constrained to the defined area, Min value is 1, Max Value is 50000.", - "required": false, "type": "number" }, { @@ -902,7 +876,6 @@ "name": "language", "in": "query", "description": "Language in which search results should be returned. Should be one of supported IETF language tags, except NGT and NGT-Latn. Language tag is case insensitive. When data in specified language is not available for a specific field, default language is used (English).\n\nPlease refer to [Supported Languages](https://docs.microsoft.com/azure/azure-maps/supported-languages) for details.", - "required": false, "type": "string" } ], @@ -1054,15 +1027,12 @@ "name": "returnSpeedLimit", "in": "query", "description": "Boolean. To enable return of the posted speed limit", - "required": false, - "type": "boolean", - "default": false + "type": "boolean" }, { "name": "heading", "in": "query", "description": "The directional heading of the vehicle in degrees, for travel along a segment of roadway. 0 is North, 90 is East and so on, values range from -360 to 360. The precision can include upto one decimal place", - "required": false, "type": "number", "minimum": -360, "maximum": 360 @@ -1074,43 +1044,36 @@ "name": "number", "in": "query", "description": "If a number is sent in along with the request, the response may include the side of the street (Left/Right) and also an offset position for that number", - "required": false, "type": "string" }, { "name": "returnRoadUse", "in": "query", "description": "Boolean. To enable return of the road use array for reverse geocodes at street level", - "required": false, - "type": "boolean", - "default": false + "type": "boolean" }, { "name": "roadUse", "in": "query", "description": "To restrict reverse geocodes to a certain type of road use. The road use array for reverse geocodes can be one or more of LimitedAccess, Arterial, Terminal, Ramp, Rotary, LocalStreet", - "required": false, "type": "string" }, { "name": "allowFreeformNewline", "in": "query", "description": "Format of newlines in the formatted address.\n\nIf true, the address will contain newlines.\nIf false, newlines will be converted to commas.", - "required": false, "type": "boolean" }, { "name": "returnMatchType", "in": "query", "description": "Include information on the type of match the geocoder achieved in the response.", - "required": false, "type": "boolean" }, { "name": "entityType", "in": "query", "description": "Specifies the level of filtering performed on geographies. Narrows the search for specified geography entity types, e.g. return only municipality. The resulting response will contain the geography ID as well as the entity type matched. If you provide more than one entity as a comma separated list, endpoint will return the 'smallest entity available'. Returned Geometry ID can be used to get the geometry of that geography via [Get Search Polygon](https://docs.microsoft.com/rest/api/maps/search/getsearchpolygon) API. The following parameters are ignored when entityType is set:\n\n* heading\n* number\n* returnRoadUse\n* returnSpeedLimit\n* roadUse\n* returnMatchType", - "required": false, "type": "string", "enum": [ "Country", @@ -1222,7 +1185,6 @@ "name": "heading", "in": "query", "description": "The directional heading of the vehicle in degrees, for travel along a segment of roadway. 0 is North, 90 is East and so on, values range from -360 to 360. The precision can include upto one decimal place", - "required": false, "type": "number", "minimum": -360, "maximum": 360 @@ -1305,63 +1267,54 @@ "name": "streetNumber", "in": "query", "description": "The street number portion of an address", - "required": false, "type": "string" }, { "name": "streetName", "in": "query", "description": "The street name portion of an address", - "required": false, "type": "string" }, { "name": "crossStreet", "in": "query", "description": "The cross street name for the structured address", - "required": false, "type": "string" }, { "name": "municipality", "in": "query", "description": "The municipality portion of an address", - "required": false, "type": "string" }, { "name": "municipalitySubdivision", "in": "query", "description": "The municipality subdivision (sub/super city) for the structured address", - "required": false, "type": "string" }, { "name": "countryTertiarySubdivision", "in": "query", "description": "The named area for the structured address", - "required": false, "type": "string" }, { "name": "countrySecondarySubdivision", "in": "query", "description": "The county for the structured address", - "required": false, "type": "string" }, { "name": "countrySubdivision", "in": "query", "description": "The country subdivision portion of an address", - "required": false, "type": "string" }, { "name": "postalCode", "in": "query", "description": "The postal code portion of an address", - "required": false, "type": "string" }, { @@ -1522,10 +1475,8 @@ { "name": "limit", "description": "Maximum number of responses that will be returned. Default value is 10. Max value is 20", - "required": false, "type": "integer", "in": "query", - "default": 10, "maximum": 20 }, { @@ -2813,4 +2764,4 @@ } } } -} +} \ No newline at end of file diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json index 5c1ed7e6605c..af1c47a402b9 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json @@ -73,7 +73,6 @@ "name": "mode", "in": "query", "description": "Mode of the geofencing async event mechanism.", - "required": false, "type": "string", "enum": [ "All", @@ -180,33 +179,27 @@ "name": "z", "in": "query", "description": "The sea level in meter of the location being passed. If this parameter is presented, 2D extrusion is used. Example: 200.", - "required": false, "type": "number" }, { "name": "userTime", "in": "query", "description": "The user request time. If not presented in the request, the default value is DateTime.Now.", - "required": false, "type": "string" }, { "name": "searchBuffer", "in": "query", "description": "The radius of the buffer around the geofence in meters that defines how far to search inside and outside the border of the fence against the coordinate that was provided when calculating the result. The minimum value is 0, and the maximum is 500. The default value is 50.", - "required": false, "type": "number", "minimum": 0, - "maximum": 500, - "default": 50 + "maximum": 500 }, { "name": "isAsync", "in": "query", "description": "If true, the request will use async event mechanism; if false, the request will be synchronized and do not trigger any event. The default value is false.", - "required": false, - "type": "boolean", - "default": false + "type": "boolean" }, { "$ref": "#/parameters/Mode" @@ -291,33 +284,27 @@ "name": "z", "in": "query", "description": "The sea level in meter of the location being passed. If this parameter is presented, 2D extrusion geofencing is applied. Example: 200.", - "required": false, "type": "number" }, { "name": "userTime", "in": "query", "description": "The user request time. If not presented in the request, the default value is DateTime.UtcNow.", - "required": false, "type": "string" }, { "name": "searchBuffer", "in": "query", "description": "The radius of the buffer around the geofence in meters that defines how far to search inside and outside the border of the fence against the coordinate that was provided when calculating the result. The minimum value is 0, and the maximum is 500. The default value is 50.", - "required": false, "type": "number", "minimum": 0, - "maximum": 500, - "default": 50 + "maximum": 500 }, { "name": "isAsync", "in": "query", "description": "If true, the request will use async event mechanism; if false, the request will be synchronized and do not trigger any event. The default value is false.", - "required": false, - "type": "boolean", - "default": false + "type": "boolean" }, { "$ref": "#/parameters/Mode" @@ -525,7 +512,6 @@ "name": "numberOfClosestPoints", "in": "query", "description": "The number of closest points expected from response. Default: 1, minimum: 1 and maximum: 50", - "required": false, "type": "integer" }, { @@ -607,7 +593,6 @@ "name": "numberOfClosestPoints", "in": "query", "description": "The number of closest points expected from response. Default: 1, minimum: 1 and maximum: 50", - "required": false, "type": "integer" } ], @@ -1249,4 +1234,4 @@ } } } -} +} \ No newline at end of file diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json index 20c92d7292fa..fa50717a9e4e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json @@ -97,7 +97,6 @@ "description": "User provided description of the tileset.", "type": "string", "in": "query", - "required": false, "x-ms-parameter-location": "method" } }, @@ -313,4 +312,4 @@ "type": "object" } } -} +} \ No newline at end of file diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json index 1a7d405ff7a4..a93691780615 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json @@ -97,7 +97,6 @@ "description": "User provided description of the tileset.", "type": "string", "in": "query", - "required": false, "x-ms-parameter-location": "method" }, "TilesetOperationId": { @@ -400,4 +399,4 @@ } } } -} +} \ No newline at end of file diff --git a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json index 13de9a9bbc8e..95a791397a9f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json +++ b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json @@ -47,7 +47,6 @@ "name": "Accept-Language", "in": "header", "description": "Specifies the language code in which the timezone names should be returned. If no language code is provided, the response will be in \"EN\". Please refer to [Supported Languages](https://docs.microsoft.com/en-us/azure/azure-maps/supported-languages) for details.", - "required": false, "type": "string", "x-ms-parameter-location": "method" }, @@ -55,7 +54,6 @@ "name": "options", "in": "query", "description": "Alternatively, use alias \"o\". Options available for types of information returned in the result.", - "required": false, "type": "string", "enum": [ "none", @@ -91,7 +89,6 @@ "name": "timeStamp", "in": "query", "description": "Alternatively, use alias \"stamp\", or \"s\". Reference time, if omitted, the API will use the machine time serving the request.", - "required": false, "type": "string", "x-ms-parameter-location": "method", "format": "date-time" @@ -100,7 +97,6 @@ "name": "transitionsFrom", "in": "query", "description": "Alternatively, use alias \"tf\". The start date from which daylight savings time (DST) transitions are requested, only applies when \"options\" = all or \"options\" = transitions.", - "required": false, "type": "string", "x-ms-parameter-location": "method", "format": "date-time" @@ -109,7 +105,6 @@ "name": "transitionsYears", "in": "query", "description": "Alternatively, use alias \"ty\". The number of years from \"transitionsFrom\" for which DST transitions are requested, only applies when \"options\" = all or \"options\" = transitions.", - "required": false, "type": "integer", "x-ms-parameter-location": "method" } @@ -447,7 +442,6 @@ "name": "territory", "in": "query", "description": "Windows Time Zone territory code.", - "required": false, "type": "string" } ], @@ -882,4 +876,4 @@ } } } -} +} \ No newline at end of file diff --git a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json index 0f8765f06938..b0c35a6117d5 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json +++ b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json @@ -206,12 +206,10 @@ "name": "thickness", "in": "query", "description": "The value of the width of the line representing traffic. This value is a multiplier and the accepted values range from 1 - 20. The default value is 10. This parameter is not valid when format is pbf.", - "required": false, "type": "integer", "format": "int32", "minimum": 1, - "maximum": 20, - "default": 10 + "maximum": 20 } ], "responses": { @@ -294,9 +292,7 @@ "name": "unit", "in": "query", "description": "Unit of speed in KMPH or MPH", - "required": false, "type": "string", - "default": "KMPH", "enum": [ "KMPH", "MPH" @@ -320,10 +316,8 @@ "name": "thickness", "in": "query", "description": "The value of the width of the line representing traffic. This value is a multiplier and the accepted values range from 1 - 20. The default value is 10.", - "required": false, "type": "integer", "format": "int32", - "default": 10, "minimum": 1, "maximum": 20 }, @@ -331,9 +325,7 @@ "name": "openLr", "in": "query", "description": "Boolean on whether the response should include OpenLR code", - "required": false, - "type": "boolean", - "default": false + "type": "boolean" } ], "responses": { @@ -432,9 +424,7 @@ "x-ms-client-name": "trafficState", "in": "query", "description": "Reference value for the state of traffic at a particular time, obtained from the Viewport API call, trafficModelId attribute in trafficState field. It is updated every minute, and is valid for two minutes before it times out. Use -1 to get the most recent traffic information. Default: most recent traffic information.", - "required": false, - "type": "string", - "default": "-1" + "type": "string" } ], "responses": { @@ -550,14 +540,12 @@ "name": "language", "in": "query", "description": "[ISO 639-1 code](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) for the output language. Supported languages are ar, ca, cs, da, de, el, en, en-GB, en-US, es, et, fi, fr, he, hu, id, in*, it, lt, lv, nb, nl, no, pl, pt, ro, ru, sk, sv, th, tr, zh.\n\nPlease refer to [Supported Languages](https://docs.microsoft.com/en-us/azure/azure-maps/supported-languages) for details. When invalid language code is provided response is returned in English. When incident cause or description does not have translation, English description is returned.", - "required": false, "type": "string" }, { "name": "projection", "in": "query", "description": "The projection used to specify the coordinates in the request and response. [EPSG900913](http://docs.openlayers.org/library/spherical_mercator.html) (default) or [EPSG4326](http://spatialreference.org/ref/epsg/4326/)", - "required": false, "type": "string", "enum": [ "EPSG900913", @@ -582,7 +570,6 @@ "name": "geometries", "in": "query", "description": "The type of vector geometry added to incidents (returned in the element of the response).", - "required": false, "type": "string", "enum": [ "original", @@ -607,17 +594,13 @@ "name": "expandCluster", "in": "query", "description": "Boolean to indicate whether to list all traffic incidents in a cluster separately", - "required": false, - "type": "boolean", - "default": false + "type": "boolean" }, { "name": "originalPosition", "in": "query", "description": "Boolean on whether to return the original position of the incident () as well as the one shifted to the beginning of the traffic tube ()", - "required": false, - "type": "boolean", - "default": false + "type": "boolean" } ], "responses": { @@ -1015,4 +998,4 @@ } } } -} +} \ No newline at end of file diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetCollectionDefinition.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetCollectionDefinition.json index c46a541b876b..ab87316453c8 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetCollectionDefinition.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetCollectionDefinition.json @@ -194,4 +194,4 @@ } } } -} +} \ No newline at end of file diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json index 924aaad65e61..14d54c995a15 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json @@ -56,7 +56,6 @@ "type": "number", "minimum": 1, "maximum": 50, - "default": 10, "description": "The optional limit parameter limits the number of features that are presented in the response document.\nOnly features that are on the first level of the collection in the response document are counted. Nested objects contained within the explicitly requested features shall not be counted.\n* Minimum = 1 * Maximum = 50 * Default = 10", "x-ms-parameter-location": "method" }, @@ -72,7 +71,6 @@ "in": "query", "type": "string", "description": "Only features that have a geometry that intersects the supplied bounding box are selected.\n* Lower left corner, coordinate axis 1 * Lower left corner, coordinate axis 2 * Upper right corner, coordinate axis 1 * Upper right corner, coordinate axis 2\nThe coordinate reference system of the values is WGS84 longitude/latitude (http://www.opengis.net/def/crs/OGC/1.3/CRS84) unless a different coordinate reference system is specified in the parameter `bbox-crs`.\nFor WGS84 longitude/latitude the values are in most cases the sequence of minimum longitude, minimum latitude, maximum longitude and maximum latitude. However, in cases where the box spans the antimeridian the first value (west-most box edge) is larger than the third value (east-most box edge).", - "required": false, "x-ms-parameter-location": "method" }, "CollectionId": { @@ -878,4 +876,4 @@ } } } -} +} \ No newline at end of file diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json index ec52d1769b44..8ab65f712f73 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json @@ -83,7 +83,6 @@ "type": "number", "minimum": 1, "maximum": 50, - "default": 10, "description": "The optional limit parameter limits the number of features that are presented in the response document.\nOnly features that are on the first level of the collection in the response document are counted. Nested objects contained within the explicitly requested features shall not be counted.\n* Minimum = 1 * Maximum = 50 * Default = 10", "x-ms-parameter-location": "method" }, @@ -99,7 +98,6 @@ "in": "query", "type": "string", "description": "Only features that have a geometry that intersects the supplied bounding box are selected.\n* Lower left corner, coordinate axis 1 * Lower left corner, coordinate axis 2 * Upper right corner, coordinate axis 1 * Upper right corner, coordinate axis 2\nThe coordinate reference system of the values is WGS84 longitude/latitude (http://www.opengis.net/def/crs/OGC/1.3/CRS84) unless a different coordinate reference system is specified in the parameter `bbox-crs`.\nFor WGS84 longitude/latitude the values are in most cases the sequence of minimum longitude, minimum latitude, maximum longitude and maximum latitude. However, in cases where the box spans the antimeridian the first value (west-most box edge) is larger than the third value (east-most box edge).", - "required": false, "x-ms-parameter-location": "method" }, "CollectionId": { @@ -827,4 +825,4 @@ } } } -} +} \ No newline at end of file diff --git a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json index 18b77e0b6636..1d73bea7d9ac 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json +++ b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json @@ -46,16 +46,13 @@ "description": "Language in which search results should be returned. Should be one of supported IETF language tags, case insensitive. When data in specified language is not available for a specific field, default language is used. Default value is en-us. \n\nPlease refer to [Supported languages](https://docs.microsoft.com/azure/azure-maps/supported-languages) for details.", "type": "string", "in": "query", - "required": false, "x-ms-parameter-location": "method" }, "WeatherDataUnit": { "name": "unit", "description": "Specifies to return the data in either metric units or imperial units. Default value is metric.", - "default": "metric", "in": "query", "type": "string", - "required": false, "enum": [ "metric", "imperial" @@ -113,7 +110,6 @@ { "name": "duration", "description": "Time frame of the returned weather forecast. By default, the forecast data for next hour will be returned. Available values are\n * `1` - Return forecast data for the next hour. Default value.\n * `12` - Return hourly forecast for next 12 hours.\n * `24` - Return hourly forecast for next 24 hours.\n * `72` - Return hourly forecast for next 72 hours (3 days).\n * `120` - Return hourly forecast for next 120 hours (5 days). Only available in S1 SKU. \n * `240` - Return hourly forecast for next 240 hours (10 days). Only available in S1 SKU.", - "default": 1, "in": "query", "type": "integer" }, @@ -178,7 +174,6 @@ { "name": "interval", "description": "Specifies time interval in minutes for the returned weather forecast. Supported values are\n * `1` - Retrieve forecast for 1-minute intervals. Returned by default.\n * `5` - Retrieve forecasts for 5-minute intervals.\n * `15` - Retrieve forecasts for 15-minute intervals.", - "default": 1, "in": "query", "type": "integer" }, @@ -246,7 +241,6 @@ { "name": "duration", "description": "Specifies for how many days the quester-day forecast responses are returned. Supported values are:\n * `1` - Return forecast data for the next day. Returned by default.\n * `5` - Return forecast data for the next 5 days.\n * `10` - Return forecast data for next 10 days.\n * `15` - Return forecast data for the next 15 days.", - "default": 1, "in": "query", "type": "integer" }, @@ -314,14 +308,12 @@ { "name": "details", "description": "Return full details for the current conditions. Available values are\n * `true` - Returns full details. By default all details are returned.\n * `false` - Returns a truncated version of the current condition data, which includes observation date time, weather phrase, icon code, precipitation indicator flag, and temperature.", - "default": "true", "in": "query", "type": "string" }, { "name": "duration", "description": "Time frame of the returned weather conditions. By default, the most current weather conditions will be returned. Default value is 0. Supported values are:\n * `0` - Return the most current weather conditions.\n * `6` - Return weather conditions from past 6 hours.\n * `24` - Return weather conditions from past 24 hours.", - "default": 0, "in": "query", "type": "integer" }, @@ -389,7 +381,6 @@ { "name": "duration", "description": "Specifies for how many days the daily forecast responses are returned. Available values are\n * `1` - Return forecast data for the next day. Returned by default.\n * `5` - Return forecast data for the next 5 days.\n * `10` - Return forecast data for the next 10 days.\n * `25` - Return forecast data for the next 25 days. Only available in S1 SKU.\n * `45` - Return forecast data for the next 45 days. Only available in S1 SKU.", - "default": 1, "in": "query", "type": "integer" }, @@ -515,7 +506,6 @@ { "name": "details", "description": "Return full details for the severe weather alerts. Available values are\n * `true` - Returns full details. By default all details are returned.\n * `false` - Returns a truncated version of the alerts data, which excludes the area-specific full description of alert details (`alertDetails`).", - "default": "true", "in": "query", "type": "string" } @@ -580,7 +570,6 @@ { "name": "duration", "description": "Specifies for how many days the daily indices are returned. By default, the indices data for the current day will be returned. When requesting future indices data, the current day is included in the response as day 1. Available values are\n * `1` - Return daily index data for the current day. Default value.\n * `5` - Return 5 days of daily index data starting from the current day.\n * `10` - Return 10 days of daily index data starting from the current day.\n * `15` - Return 15 days of daily index data starting from the current day.", - "default": 1, "in": "query", "type": "integer" }, @@ -2276,4 +2265,4 @@ } } } -} +} \ No newline at end of file From ed4511591c079e4ed1a634422116168adafe9348 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Tue, 11 May 2021 13:54:48 +0200 Subject: [PATCH 112/210] run prettier. --- .../data-plane/Microsoft.Maps/Search/preview/1.0/search.json | 2 +- .../data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json | 2 +- .../data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json | 2 +- .../data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json | 2 +- .../Microsoft.Maps/Timezone/preview/1.0/timezone.json | 2 +- .../data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json | 2 +- .../WFS/preview/1.0/examples/GetCollectionDefinition.json | 2 +- .../maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json | 2 +- .../maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json | 2 +- .../data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json index e89e3b5b3b45..3df0f4dfa8b3 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json @@ -2764,4 +2764,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json index af1c47a402b9..cb12ca90fdac 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json @@ -1234,4 +1234,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json index fa50717a9e4e..22d68160ce0e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json @@ -312,4 +312,4 @@ "type": "object" } } -} \ No newline at end of file +} diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json index a93691780615..63e15c616679 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json @@ -399,4 +399,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json index 95a791397a9f..a1056d80fe2f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json +++ b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json @@ -876,4 +876,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json index b0c35a6117d5..8cb6519b3993 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json +++ b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json @@ -998,4 +998,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetCollectionDefinition.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetCollectionDefinition.json index ab87316453c8..c46a541b876b 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetCollectionDefinition.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetCollectionDefinition.json @@ -194,4 +194,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json index 14d54c995a15..d9641c896de0 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json @@ -876,4 +876,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json index 8ab65f712f73..8cf613f8013b 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json @@ -825,4 +825,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json index 1d73bea7d9ac..0fa73fba409e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json +++ b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json @@ -2265,4 +2265,4 @@ } } } -} \ No newline at end of file +} From 9dea6bd2ec02164674b1978d50b3580aa16036bb Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Tue, 11 May 2021 15:47:17 +0200 Subject: [PATCH 113/210] Add onbe error-response individually to see if it fixes alias error. --- .../data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json index 9d99db84bbec..c2b609f1c1d5 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json @@ -148,7 +148,8 @@ "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "../../../Common/preview/2.0/common.json#/responses/500", + "x-ms-error-response": true } } }, From 9e112776cf222538a0791e9e1cc0295c05f07c6a Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Tue, 11 May 2021 05:47:58 -0700 Subject: [PATCH 114/210] Revert experimental WFS changes --- .../WFS/preview/2.0/examples/DeleteItem.json | 47 ++++++- .../preview/2.0/examples/GetCollection.json | 45 ++++++ .../2.0/examples/GetCollectionDefinition.json | 45 ++++++ .../preview/2.0/examples/GetCollections.json | 45 ++++++ .../preview/2.0/examples/GetConformance.json | 45 ++++++ .../WFS/preview/2.0/examples/GetItem.json | 45 ++++++ .../WFS/preview/2.0/examples/GetItems.json | 45 ++++++ .../preview/2.0/examples/GetLandingPage.json | 45 ++++++ .../Microsoft.Maps/WFS/preview/2.0/wfs.json | 128 +++++++++++++++--- specification/maps/data-plane/readme.md | 56 ++++---- 10 files changed, 501 insertions(+), 45 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/DeleteItem.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/DeleteItem.json index 6fa2fe3a6197..cfa32ddaba74 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/DeleteItem.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/DeleteItem.json @@ -8,6 +8,51 @@ "featureId": "FCL39" }, "responses": { - "204": {} + "204": {}, + "400": { + "headers": {}, + "body": { + "error": { + "code": "400 BadRequest", + "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." + } + } + }, + "401": { + "headers": {}, + "body": { + "error": { + "code": "401 Unauthorized", + "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." + } + } + }, + "403": { + "headers": {}, + "body": { + "error": { + "code": "403 Forbidden", + "message": "Permission, capacity, or authentication issues." + } + } + }, + "404": { + "headers": {}, + "body": { + "error": { + "code": "404 NotFound", + "message": "Not Found: the requested resource could not be found, but it may be available again in the future." + } + } + }, + "500": { + "headers": {}, + "body": { + "error": { + "code": "500 InternalServerError", + "message": "An error occurred while processing the request. Please try again later." + } + } + } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollection.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollection.json index 83c9da7d1110..ac23caa02a0b 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollection.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollection.json @@ -30,6 +30,51 @@ } ] } + }, + "400": { + "headers": {}, + "body": { + "error": { + "code": "400 BadRequest", + "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." + } + } + }, + "401": { + "headers": {}, + "body": { + "error": { + "code": "401 Unauthorized", + "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." + } + } + }, + "403": { + "headers": {}, + "body": { + "error": { + "code": "403 Forbidden", + "message": "Permission, capacity, or authentication issues." + } + } + }, + "404": { + "headers": {}, + "body": { + "error": { + "code": "404 NotFound", + "message": "Not Found: the requested resource could not be found, but it may be available again in the future." + } + } + }, + "500": { + "headers": {}, + "body": { + "error": { + "code": "500 InternalServerError", + "message": "An error occurred while processing the request. Please try again later." + } + } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollectionDefinition.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollectionDefinition.json index 79edecb4c626..74d7b6a02c4a 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollectionDefinition.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollectionDefinition.json @@ -148,6 +148,51 @@ } ] } + }, + "400": { + "headers": {}, + "body": { + "error": { + "code": "400 BadRequest", + "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." + } + } + }, + "401": { + "headers": {}, + "body": { + "error": { + "code": "401 Unauthorized", + "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." + } + } + }, + "403": { + "headers": {}, + "body": { + "error": { + "code": "403 Forbidden", + "message": "Permission, capacity, or authentication issues." + } + } + }, + "404": { + "headers": {}, + "body": { + "error": { + "code": "404 NotFound", + "message": "Not Found: the requested resource could not be found, but it may be available again in the future." + } + } + }, + "500": { + "headers": {}, + "body": { + "error": { + "code": "500 InternalServerError", + "message": "An error occurred while processing the request. Please try again later." + } + } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollections.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollections.json index 59cb7a763a4e..6351d0956005 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollections.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollections.json @@ -249,6 +249,51 @@ } ] } + }, + "400": { + "headers": {}, + "body": { + "error": { + "code": "400 BadRequest", + "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." + } + } + }, + "401": { + "headers": {}, + "body": { + "error": { + "code": "401 Unauthorized", + "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." + } + } + }, + "403": { + "headers": {}, + "body": { + "error": { + "code": "403 Forbidden", + "message": "Permission, capacity, or authentication issues." + } + } + }, + "404": { + "headers": {}, + "body": { + "error": { + "code": "404 NotFound", + "message": "Not Found: the requested resource could not be found, but it may be available again in the future." + } + } + }, + "500": { + "headers": {}, + "body": { + "error": { + "code": "500 InternalServerError", + "message": "An error occurred while processing the request. Please try again later." + } + } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetConformance.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetConformance.json index 73bebb748240..47407a822eb0 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetConformance.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetConformance.json @@ -15,6 +15,51 @@ "http://tempuri.org/wfs/3.0/edit" ] } + }, + "400": { + "headers": {}, + "body": { + "error": { + "code": "400 BadRequest", + "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." + } + } + }, + "401": { + "headers": {}, + "body": { + "error": { + "code": "401 Unauthorized", + "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." + } + } + }, + "403": { + "headers": {}, + "body": { + "error": { + "code": "403 Forbidden", + "message": "Permission, capacity, or authentication issues." + } + } + }, + "404": { + "headers": {}, + "body": { + "error": { + "code": "404 NotFound", + "message": "Not Found: the requested resource could not be found, but it may be available again in the future." + } + } + }, + "500": { + "headers": {}, + "body": { + "error": { + "code": "500 InternalServerError", + "message": "An error occurred while processing the request. Please try again later." + } + } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetItem.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetItem.json index 29b978981a5f..d01b2229ec86 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetItem.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetItem.json @@ -80,6 +80,51 @@ } ] } + }, + "400": { + "headers": {}, + "body": { + "error": { + "code": "400 BadRequest", + "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." + } + } + }, + "401": { + "headers": {}, + "body": { + "error": { + "code": "401 Unauthorized", + "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." + } + } + }, + "403": { + "headers": {}, + "body": { + "error": { + "code": "403 Forbidden", + "message": "Permission, capacity, or authentication issues." + } + } + }, + "404": { + "headers": {}, + "body": { + "error": { + "code": "404 NotFound", + "message": "Not Found: the requested resource could not be found, but it may be available again in the future." + } + } + }, + "500": { + "headers": {}, + "body": { + "error": { + "code": "500 InternalServerError", + "message": "An error occurred while processing the request. Please try again later." + } + } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetItems.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetItems.json index 2a97007d664f..867aa5709635 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetItems.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetItems.json @@ -89,6 +89,51 @@ } ] } + }, + "400": { + "headers": {}, + "body": { + "error": { + "code": "400 BadRequest", + "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." + } + } + }, + "401": { + "headers": {}, + "body": { + "error": { + "code": "401 Unauthorized", + "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." + } + } + }, + "403": { + "headers": {}, + "body": { + "error": { + "code": "403 Forbidden", + "message": "Permission, capacity, or authentication issues." + } + } + }, + "404": { + "headers": {}, + "body": { + "error": { + "code": "404 NotFound", + "message": "Not Found: the requested resource could not be found, but it may be available again in the future." + } + } + }, + "500": { + "headers": {}, + "body": { + "error": { + "code": "500 InternalServerError", + "message": "An error occurred while processing the request. Please try again later." + } + } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetLandingPage.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetLandingPage.json index 3c2143a02635..b85b94b2dc1c 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetLandingPage.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetLandingPage.json @@ -37,6 +37,51 @@ } ] } + }, + "400": { + "headers": {}, + "body": { + "error": { + "code": "400 BadRequest", + "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." + } + } + }, + "401": { + "headers": {}, + "body": { + "error": { + "code": "401 Unauthorized", + "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." + } + } + }, + "403": { + "headers": {}, + "body": { + "error": { + "code": "403 Forbidden", + "message": "Permission, capacity, or authentication issues." + } + } + }, + "404": { + "headers": {}, + "body": { + "error": { + "code": "404 NotFound", + "message": "Not Found: the requested resource could not be found, but it may be available again in the future." + } + } + }, + "500": { + "headers": {}, + "body": { + "error": { + "code": "500 InternalServerError", + "message": "An error occurred while processing the request. Please try again later." + } + } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json index 8cf613f8013b..21c335de865c 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json @@ -148,8 +148,20 @@ "$ref": "#/definitions/LandingPage" } }, - "default": { - "description": "asdf" + "400": { + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + }, + "401": { + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + }, + "403": { + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + }, + "404": { + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + }, + "500": { + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } } @@ -184,8 +196,20 @@ "$ref": "#/definitions/ReqClasses" } }, - "default": { - "description": "Default response description." + "400": { + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + }, + "401": { + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + }, + "403": { + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + }, + "404": { + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + }, + "500": { + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } } @@ -220,8 +244,20 @@ "$ref": "#/definitions/CollectionsResponse" } }, - "default": { - "description": "Default response description." + "400": { + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + }, + "401": { + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + }, + "403": { + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + }, + "404": { + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + }, + "500": { + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } } @@ -259,8 +295,20 @@ "$ref": "#/definitions/CollectionInfo" } }, - "default": { - "description": "Default response description." + "400": { + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + }, + "401": { + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + }, + "403": { + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + }, + "404": { + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + }, + "500": { + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } } @@ -298,8 +346,20 @@ "$ref": "#/definitions/CollectionDefinition" } }, - "default": { - "description": "Default response description." + "400": { + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + }, + "401": { + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + }, + "403": { + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + }, + "404": { + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + }, + "500": { + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } } @@ -346,8 +406,20 @@ "$ref": "#/definitions/ExtendedGeoJsonFeatureCollection" } }, - "default": { - "description": "Default response description." + "400": { + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + }, + "401": { + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + }, + "403": { + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + }, + "404": { + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + }, + "500": { + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } } @@ -385,8 +457,20 @@ "$ref": "#/definitions/FeatureResponse" } }, - "default": { - "description": "Default response description." + "400": { + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + }, + "401": { + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + }, + "403": { + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + }, + "404": { + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + }, + "500": { + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } }, @@ -419,8 +503,20 @@ "204": { "description": "Feature Deleted." }, - "default": { - "description": "Default response description." + "400": { + "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + }, + "401": { + "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + }, + "403": { + "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + }, + "404": { + "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + }, + "500": { + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } } diff --git a/specification/maps/data-plane/readme.md b/specification/maps/data-plane/readme.md index 76332f4aee2b..f9f032c70bc0 100644 --- a/specification/maps/data-plane/readme.md +++ b/specification/maps/data-plane/readme.md @@ -45,7 +45,7 @@ directive: These settings apply only when `--tag=package-preview-2.0` is specified on the command line. -```yaml $(tag) == 'package-preview-2.0' +``` yaml $(tag) == 'package-preview-2.0' input-file: - Microsoft.Maps/Alias/preview/2.0/alias.json - Microsoft.Maps/Data/preview/2.0/data.json @@ -129,7 +129,7 @@ See configuration in [readme.csharp.md](./readme.csharp.md) See configuration in [readme.go.md](./readme.go.md) -## Multi-API/Profile support for AutoRest v3 generators +## Multi-API/Profile support for AutoRest v3 generators AutoRest V3 generators require the use of `--tag=all-api-versions` to select api files. @@ -140,32 +140,32 @@ This block is updated by an automatic script. Edits may be lost! require: $(this-folder)/../../../profiles/readme.md # all the input files across all versions -input-file: - - $(this-folder)/Microsoft.Maps/Alias/preview/1.0/alias.json - - $(this-folder)/Microsoft.Maps/Data/preview/1.0/data.json - - $(this-folder)/Microsoft.Maps/Dataset/preview/1.0/dataset.json - - $(this-folder)/Microsoft.Maps/Alias/preview/2.0/alias.json - - $(this-folder)/Microsoft.Maps/Data/preview/2.0/data.json - - $(this-folder)/Microsoft.Maps/Dataset/preview/2.0/dataset.json - - $(this-folder)/Microsoft.Maps/DEM/preview/1.0/elevation.json - - $(this-folder)/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json - - $(this-folder)/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json - - $(this-folder)/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json - - $(this-folder)/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json - - $(this-folder)/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json - - $(this-folder)/Microsoft.Maps/Mobility/preview/1.0/mobility.json - - $(this-folder)/Microsoft.Maps/Render/preview/1.0/render.json - - $(this-folder)/Microsoft.Maps/Render/preview/2.0/render.json - - $(this-folder)/Microsoft.Maps/Route/preview/1.0/route.json - - $(this-folder)/Microsoft.Maps/Search/preview/1.0/search.json - - $(this-folder)/Microsoft.Maps/Spatial/preview/1.0/spatial.json - - $(this-folder)/Microsoft.Maps/Tileset/preview/1.0/tileset.json - - $(this-folder)/Microsoft.Maps/Tileset/preview/2.0/tileset.json - - $(this-folder)/Microsoft.Maps/Timezone/preview/1.0/timezone.json - - $(this-folder)/Microsoft.Maps/Traffic/preview/1.0/traffic.json - - $(this-folder)/Microsoft.Maps/Weather/preview/1.0/weather.json - - $(this-folder)/Microsoft.Maps/WFS/preview/1.0/wfs.json - - $(this-folder)/Microsoft.Maps/WFS/preview/2.0/wfs.json +input-file: + - $(this-folder)/Microsoft.Maps/Alias/preview/1.0/alias.json + - $(this-folder)/Microsoft.Maps/Alias/preview/2.0/alias.json + - $(this-folder)/Microsoft.Maps/Data/preview/1.0/data.json + - $(this-folder)/Microsoft.Maps/Data/preview/2.0/data.json + - $(this-folder)/Microsoft.Maps/Dataset/preview/1.0/dataset.json + - $(this-folder)/Microsoft.Maps/Dataset/preview/2.0/dataset.json + - $(this-folder)/Microsoft.Maps/DEM/preview/1.0/elevation.json + - $(this-folder)/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json + - $(this-folder)/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json + - $(this-folder)/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json + - $(this-folder)/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json + - $(this-folder)/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json + - $(this-folder)/Microsoft.Maps/Mobility/preview/1.0/mobility.json + - $(this-folder)/Microsoft.Maps/Render/preview/1.0/render.json + - $(this-folder)/Microsoft.Maps/Render/preview/2.0/render.json + - $(this-folder)/Microsoft.Maps/Route/preview/1.0/route.json + - $(this-folder)/Microsoft.Maps/Search/preview/1.0/search.json + - $(this-folder)/Microsoft.Maps/Spatial/preview/1.0/spatial.json + - $(this-folder)/Microsoft.Maps/Tileset/preview/1.0/tileset.json + - $(this-folder)/Microsoft.Maps/Tileset/preview/2.0/tileset.json + - $(this-folder)/Microsoft.Maps/Timezone/preview/1.0/timezone.json + - $(this-folder)/Microsoft.Maps/Traffic/preview/1.0/traffic.json + - $(this-folder)/Microsoft.Maps/Weather/preview/1.0/weather.json + - $(this-folder)/Microsoft.Maps/WFS/preview/1.0/wfs.json + - $(this-folder)/Microsoft.Maps/WFS/preview/2.0/wfs.json ``` From 339d6c55eff73101ac3077826e0e331880ea315d Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Tue, 11 May 2021 17:12:07 +0200 Subject: [PATCH 115/210] Remove unused error. --- .../data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json index c2b609f1c1d5..9d99db84bbec 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json @@ -148,8 +148,7 @@ "$ref": "../../../Common/preview/2.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500", - "x-ms-error-response": true + "$ref": "../../../Common/preview/2.0/common.json#/responses/500" } } }, From d9b7a614bf4242af46abed16da57f278da609225 Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Tue, 11 May 2021 08:58:51 -0700 Subject: [PATCH 116/210] Remove duplicated common file for 2.0 --- .../Alias/preview/2.0/alias.json | 70 +- .../Common/preview/2.0/common.json | 719 ------------------ .../Microsoft.Maps/Data/preview/2.0/data.json | 86 +-- .../Dataset/preview/2.0/dataset.json | 68 +- .../preview/2.0/dwgconversion.json | 76 +- .../preview/2.0/featurestate.json | 114 +-- .../Render/preview/2.0/render.json | 16 +- .../Tileset/preview/2.0/tileset.json | 76 +- .../Microsoft.Maps/WFS/preview/2.0/wfs.json | 140 ++-- 9 files changed, 323 insertions(+), 1042 deletions(-) delete mode 100644 specification/maps/data-plane/Microsoft.Maps/Common/preview/2.0/common.json diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json index 9d99db84bbec..0882bb57e0db 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json @@ -113,10 +113,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/CreateCreatorDataItemId" @@ -136,19 +136,19 @@ } }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -162,10 +162,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" } ], "responses": { @@ -176,19 +176,19 @@ } }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -207,10 +207,10 @@ "$ref": "#/parameters/AliasId" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/AssignCreatorDataItemId" @@ -224,19 +224,19 @@ } }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -253,10 +253,10 @@ "$ref": "#/parameters/AliasId" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" } ], "responses": { @@ -264,19 +264,19 @@ "description": "Alias delete request completed successfully. The content for `aliasId` was deleted on the server." }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -293,10 +293,10 @@ "$ref": "#/parameters/AliasId" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" } ], "responses": { @@ -307,19 +307,19 @@ } }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/2.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/2.0/common.json deleted file mode 100644 index 5f4d7428195f..000000000000 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/2.0/common.json +++ /dev/null @@ -1,719 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Azure Maps Common Types", - "version": "2.0" - }, - "host": "atlas.microsoft.com", - "schemes": [ - "https" - ], - "consumes": [], - "produces": [ - "application/json", - "application/xml" - ], - "paths": {}, - "definitions": { - "LongRunningOperationResult": { - "description": "The response model for a Long-Running Operations API.", - "type": "object", - "properties": { - "operationId": { - "description": "The Id for this long-running operation.", - "type": "string" - }, - "status": { - "description": "The status state of the request.", - "type": "string", - "enum": [ - "NotStarted", - "Running", - "Failed", - "Succeeded" - ], - "x-ms-enum": { - "name": "LroStatus", - "modelAsString": true, - "values": [ - { - "value": "NotStarted", - "description": "The request has not started processing yet." - }, - { - "value": "Running", - "description": "The request has started processing." - }, - { - "value": "Failed", - "description": "The request has one or more failures." - }, - { - "value": "Succeeded", - "description": "The request has successfully completed." - } - ] - }, - "readOnly": true - }, - "created": { - "description": "The created timestamp.", - "type": "string", - "readOnly": true - }, - "resourceLocation": { - "description": "The location URI for details about the created resource. This is only provided when the request was successfully completed.", - "type": "string", - "readOnly": true - }, - "error": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" - }, - "warning": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" - } - } - }, - "BatchRequestBody": { - "description": "This type represents the request body for the Batch service.", - "type": "object", - "properties": { - "batchItems": { - "description": "The list of queries to process.", - "type": "array", - "items": { - "description": "Batch Query object", - "type": "object", - "properties": { - "query": { - "description": "Partial query string.", - "type": "string", - "example": "?query=One, Microsoft Way, Redmond, WA 98052&limit=3" - } - } - } - } - } - }, - "BatchResponse": { - "description": "This object is returned from a successful Batch service call. Extend with 'batchItems' property.", - "type": "object", - "properties": { - "summary": { - "description": "Summary for the batch request", - "type": "object", - "readOnly": true, - "properties": { - "successfulRequests": { - "description": "Number of successful requests in the batch", - "type": "integer", - "readOnly": true - }, - "totalRequests": { - "description": "Total number of requests in the batch", - "type": "integer", - "readOnly": true - } - } - } - } - }, - "BatchItem": { - "description": "An item returned from Batch API. Extend with 'response' property.", - "type": "object", - "properties": { - "statusCode": { - "description": "HTTP request status code.", - "type": "number", - "readOnly": true, - "example": 200 - } - } - }, - "CoordinatesPair": { - "description": "A location represented as a latitude and longitude.", - "type": "object", - "properties": { - "latitude": { - "description": "Latitude property", - "type": "number", - "format": "double" - }, - "longitude": { - "description": "Longitude property", - "type": "number", - "format": "double" - } - } - }, - "CoordinatesPairAbbreviated": { - "description": "A location represented as a latitude and longitude using short names 'lat' & 'lon'.", - "type": "object", - "properties": { - "lat": { - "description": "Latitude property", - "type": "number", - "format": "double" - }, - "lon": { - "description": "Longitude property", - "type": "number", - "format": "double" - } - } - }, - "GeoJsonPosition": { - "description": "A `Position` is an array of numbers with two or more elements. The first two elements are _longitude_ and _latitude_, precisely in that order. _Altitude/Elevation_ is an optional third element. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.1) for details.", - "type": "array", - "items": { - "type": "number", - "format": "double" - } - }, - "GeoJsonLinearRing": { - "description": "Though a linear ring is not explicitly represented as a GeoJSON geometry type, it helps in defining the polygon as an array of linear rings. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.6) for details.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonPosition" - } - }, - "GeoJsonObject": { - "description": "A valid `GeoJSON` object. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3) for details.", - "type": "object", - "discriminator": "type", - "required": [ - "type" - ], - "properties": { - "type": { - "description": "Specifies the `GeoJSON` type. Must be one of the nine valid GeoJSON object types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon, GeometryCollection, Feature and FeatureCollection.", - "type": "string", - "enum": [ - "Point", - "MultiPoint", - "LineString", - "MultiLineString", - "Polygon", - "MultiPolygon", - "GeometryCollection", - "Feature", - "FeatureCollection" - ], - "x-ms-enum": { - "name": "GeoJsonObjectType", - "modelAsString": true, - "values": [ - { - "value": "Point", - "description": "`GeoJSON Point` geometry.", - "name": "GeoJsonPoint" - }, - { - "value": "MultiPoint", - "description": "`GeoJSON MultiPoint` geometry.", - "name": "GeoJsonMultiPoint" - }, - { - "value": "LineString", - "description": "`GeoJSON LineString` geometry.", - "name": "GeoJsonLineString" - }, - { - "value": "MultiLineString", - "description": "`GeoJSON MultiLineString` geometry.", - "name": "GeoJsonMultiLineString" - }, - { - "value": "Polygon", - "description": "`GeoJSON Polygon` geometry.", - "name": "GeoJsonPolygon" - }, - { - "value": "MultiPolygon", - "description": "`GeoJSON MultiPolygon` geometry.", - "name": "GeoJsonMultiPolygon" - }, - { - "value": "GeometryCollection", - "description": "`GeoJSON GeometryCollection` geometry.", - "name": "GeoJsonGeometryCollection" - }, - { - "value": "Feature", - "description": "`GeoJSON Feature` object.", - "name": "GeoJsonFeature" - }, - { - "value": "FeatureCollection", - "description": "`GeoJSON FeatureCollection` object.", - "name": "GeoJsonFeatureCollection" - } - ] - } - } - } - }, - "GeoJsonGeometry": { - "description": "A valid `GeoJSON` geometry object. The type must be one of the seven valid GeoJSON geometry types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon and GeometryCollection. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1) for details.", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonObject" - } - ] - }, - "GeoJsonPoint": { - "description": "A valid `GeoJSON Point` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.2) for details.", - "x-ms-discriminator-value": "Point", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonPointData" - } - ] - }, - "GeoJsonPointData": { - "description": "Data contained by a `GeoJson Point`.", - "type": "object", - "properties": { - "coordinates": { - "$ref": "#/definitions/GeoJsonPosition" - } - }, - "required": [ - "coordinates" - ] - }, - "GeoJsonMultiPoint": { - "description": "A valid `GeoJSON MultiPoint` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.3) for details.", - "x-ms-discriminator-value": "MultiPoint", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonMultiPointData" - } - ] - }, - "GeoJsonMultiPointData": { - "type": "object", - "description": "Data contained by a `GeoJson MultiPoint`.", - "properties": { - "coordinates": { - "description": "Coordinates for the `GeoJson MultiPoint` geometry.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonPosition" - } - } - }, - "required": [ - "coordinates" - ] - }, - "GeoJsonLineString": { - "description": "A valid `GeoJSON LineString` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.4) for details.", - "x-ms-discriminator-value": "LineString", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonLineStringData" - } - ] - }, - "GeoJsonLineStringData": { - "type": "object", - "properties": { - "coordinates": { - "description": "Coordinates for the `GeoJson LineString` geometry.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonPosition" - } - } - }, - "required": [ - "coordinates" - ] - }, - "GeoJsonMultiLineString": { - "description": "A valid `GeoJSON MultiLineString` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.5) for details.", - "x-ms-discriminator-value": "MultiLineString", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonMultiLineStringData" - } - ] - }, - "GeoJsonMultiLineStringData": { - "type": "object", - "properties": { - "coordinates": { - "description": "Coordinates for the `GeoJson MultiLineString` geometry.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonLinearRing" - } - } - }, - "required": [ - "coordinates" - ] - }, - "GeoJsonPolygon": { - "description": "A valid `GeoJSON Polygon` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.6) for details.", - "x-ms-discriminator-value": "Polygon", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonPolygonData" - } - ] - }, - "GeoJsonPolygonData": { - "type": "object", - "properties": { - "coordinates": { - "description": "Coordinates for the `GeoJson Polygon` geometry type.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonLinearRing" - } - } - }, - "required": [ - "coordinates" - ] - }, - "GeoJsonMultiPolygon": { - "description": "A valid `GeoJSON MultiPolygon` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.7) for details.", - "x-ms-discriminator-value": "MultiPolygon", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonMultiPolygonData" - } - ] - }, - "GeoJsonMultiPolygonData": { - "type": "object", - "properties": { - "coordinates": { - "description": "Contains a list of valid `GeoJSON Polygon` objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude).", - "type": "array", - "items": { - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonLinearRing" - } - } - } - }, - "required": [ - "coordinates" - ] - }, - "GeoJsonGeometryCollection": { - "description": "A valid `GeoJSON GeometryCollection` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.8) for details.", - "x-ms-discriminator-value": "GeometryCollection", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonGeometry" - }, - { - "$ref": "#/definitions/GeoJsonGeometryCollectionData" - } - ] - }, - "GeoJsonGeometryCollectionData": { - "type": "object", - "properties": { - "geometries": { - "description": "Contains a list of valid `GeoJSON` geometry objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude).", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonGeometry" - } - } - }, - "required": [ - "geometries" - ] - }, - "GeoJsonFeature": { - "description": "A valid `GeoJSON Feature` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.2) for details.", - "x-ms-discriminator-value": "Feature", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonObject" - }, - { - "$ref": "#/definitions/GeoJsonFeatureData" - } - ] - }, - "GeoJsonFeatureData": { - "type": "object", - "properties": { - "geometry": { - "$ref": "#/definitions/GeoJsonGeometry" - }, - "properties": { - "description": "Properties can contain any additional metadata about the `Feature`. Value can be any JSON object or a JSON null value", - "type": "object" - }, - "id": { - "description": "Identifier for the feature.", - "type": "string" - }, - "featureType": { - "description": "The type of the feature. The value depends on the data model the current feature is part of. Some data models may have an empty value.", - "type": "string" - } - }, - "required": [ - "geometry" - ] - }, - "GeoJsonFeatureCollection": { - "description": "A valid `GeoJSON FeatureCollection` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.3) for details.", - "x-ms-discriminator-value": "FeatureCollection", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/GeoJsonObject" - }, - { - "$ref": "#/definitions/GeoJsonFeatureCollectionData" - } - ] - }, - "GeoJsonFeatureCollectionData": { - "type": "object", - "properties": { - "features": { - "description": "Contains a list of valid `GeoJSON Feature` objects.", - "type": "array", - "items": { - "$ref": "#/definitions/GeoJsonFeature" - } - } - }, - "required": [ - "features" - ] - }, - "Ontology": { - "type": "string", - "description": "The ontology version of this dataset.", - "readOnly": true - } - }, - "parameters": { - "SubscriptionKey": { - "name": "subscription-key", - "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", - "type": "string", - "in": "query", - "x-ms-parameter-location": "client" - }, - "ApiVersion": { - "name": "api-version", - "description": "Version number of Azure Maps API.", - "type": "string", - "in": "query", - "required": true, - "default": "1.0", - "x-ms-parameter-location": "client" - }, - "ApiVersionV2": { - "name": "api-version", - "description": "Version number of Azure Maps API.", - "type": "string", - "in": "query", - "required": true, - "default": "2.0", - "x-ms-parameter-location": "client" - }, - "ClientId": { - "name": "x-ms-client-id", - "description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.", - "type": "string", - "in": "header", - "x-ms-parameter-location": "client" - }, - "JsonFormat": { - "name": "format", - "description": "Desired format of the response. Only `json` format is supported.", - "type": "string", - "in": "path", - "required": true, - "enum": [ - "json" - ], - "x-ms-enum": { - "name": "JsonFormat", - "modelAsString": true, - "values": [ - { - "value": "json", - "description": "[The JavaScript Object Notation Data Interchange Format](https://tools.ietf.org/html/rfc8259)" - } - ] - }, - "x-ms-parameter-location": "method" - } - }, - "responses": { - "200Async": { - "description": "The operation's status response.", - "schema": { - "$ref": "#/definitions/LongRunningOperationResult" - } - }, - "200AsyncV2": { - "description": "The operation is running or complete. If the operation was successful, use the Resource-Location header to obtain the path to the result.", - "schema": { - "$ref": "#/definitions/LongRunningOperationResult" - }, - "headers": { - "Resource-Location": { - "type": "string", - "description": "If successful, a URI where details on the newly created resource can be found." - } - } - }, - "201Async": { - "description": "The resource has been created successfully.", - "schema": { - "$ref": "#/definitions/LongRunningOperationResult" - }, - "headers": { - "Location": { - "type": "string", - "description": "A URI where details on the newly created resource can be found." - } - } - }, - "202Async": { - "description": "**Supported only for async request.**\nRequest Accepted: The request has been accepted for processing. Please use the URL in the Location Header to retry or access the results.", - "headers": { - "Location": { - "type": "string", - "description": "New URL to check for the results of the long running process." - } - } - }, - "202AsyncV2": { - "description": "Request Accepted: The request has been accepted for processing. Please use the URL in the Operation-Location Header to obtain status.", - "headers": { - "Operation-Location": { - "type": "string", - "description": "New URL to check for the results of the long running process." - } - } - }, - "400": { - "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "401": { - "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "headers": { - "WWW-Authenticate": { - "type": "string", - "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" - } - }, - "x-ms-error-response": true - }, - "403": { - "description": "Permission, capacity, or authentication issues.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "404": { - "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "409": { - "description": "The request could not be completed due to a conflict with the current state of the resource. Likely caused by a parallel update to the same resource.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "409StorageLimit": { - "description": "The [data storage limit](https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/azure-subscription-service-limits#azure-maps-limits) is reached on the Azure Maps account. You can always use the [Data Delete API](https://docs.microsoft.com/en-us/rest/api/maps/data/deletepreview) to delete old/unused content and create space for new uploads.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "500": { - "description": "An error occurred while processing the request. Please try again later.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - } - }, - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", - "scopes": { - "user_impersonation": "Impersonates a user's Azure Active Directory account." - } - }, - "apiKeyQuery": { - "type": "apiKey", - "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", - "name": "subscription-key", - "in": "query" - } - }, - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - }, - { - "apiKeyQuery": [] - } - ] -} diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json index 2b3df21e5f6e..88e201483b71 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json @@ -153,13 +153,13 @@ ], "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/UploadDataDescription" @@ -184,25 +184,25 @@ "x-ms-error-response": true }, "202": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/202AsyncV2" + "$ref": "../../../Common/preview/1.0/common.json#/responses/202AsyncV2" }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "409": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/409StorageLimit" + "$ref": "../../../Common/preview/1.0/common.json#/responses/409StorageLimit" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -216,13 +216,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" } ], "responses": { @@ -233,19 +233,19 @@ } }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -268,13 +268,13 @@ ], "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/UniqueDataId" @@ -299,25 +299,25 @@ "x-ms-error-response": true }, "202": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/202AsyncV2" + "$ref": "../../../Common/preview/1.0/common.json#/responses/202AsyncV2" }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "409": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/409StorageLimit" + "$ref": "../../../Common/preview/1.0/common.json#/responses/409StorageLimit" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -336,13 +336,13 @@ ], "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/UniqueDataId" @@ -380,13 +380,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/UniqueDataId" @@ -397,19 +397,19 @@ "description": "Data delete request completed successfully. The content for `udid` was deleted on the server." }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -428,10 +428,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/DataUploadOperationId" @@ -439,10 +439,10 @@ ], "responses": { "200": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/200AsyncV2" + "$ref": "../../../Common/preview/1.0/common.json#/responses/200AsyncV2" }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json index dbc437c20b5c..613002aa040f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json @@ -133,10 +133,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/ConversionIdQuery" @@ -157,22 +157,22 @@ "x-ms-error-response": true }, "202": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/202AsyncV2" + "$ref": "../../../Common/preview/1.0/common.json#/responses/202AsyncV2" }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -186,10 +186,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" } ], "responses": { @@ -200,19 +200,19 @@ } }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -231,10 +231,10 @@ "$ref": "#/parameters/DatasetId" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" } ], "responses": { @@ -245,19 +245,19 @@ } }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -271,10 +271,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/DatasetId" @@ -285,19 +285,19 @@ "description": "The dataset delete request completed successfully. The resource referenced by the `datasetId` was deleted from the server." }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -316,10 +316,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/DatasetOperationId" @@ -327,10 +327,10 @@ ], "responses": { "200": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/200AsyncV2" + "$ref": "../../../Common/preview/1.0/common.json#/responses/200AsyncV2" }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" } } } @@ -371,7 +371,7 @@ "readOnly": true }, "ontology": { - "$ref": "../../../Common/preview/2.0/common.json#/definitions/Ontology" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/Ontology" }, "description": { "description": "The description for the dataset.", diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json index 40858281abad..853c96754024 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json @@ -132,13 +132,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/UdidQuery" @@ -159,22 +159,22 @@ "x-ms-error-response": true }, "202": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/202AsyncV2" + "$ref": "../../../Common/preview/1.0/common.json#/responses/202AsyncV2" }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -188,13 +188,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" } ], "responses": { @@ -205,19 +205,19 @@ } }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -233,13 +233,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/ConversionId" @@ -253,19 +253,19 @@ } }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -279,13 +279,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/ConversionId" @@ -296,19 +296,19 @@ "description": "Conversion delete request completed successfully. The content for `conversionId` was deleted on the server." }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -327,10 +327,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/ConversionOperationId" @@ -338,10 +338,10 @@ ], "responses": { "200": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/200AsyncV2" + "$ref": "../../../Common/preview/1.0/common.json#/responses/200AsyncV2" }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" } } } @@ -377,7 +377,7 @@ "readOnly": true }, "ontology": { - "$ref": "../../../Common/preview/2.0/common.json#/definitions/Ontology" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/Ontology" }, "udid": { "description": "The unique id of the content provided to create this conversion.", diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json index 63bba830c94e..9fdb2c50d876 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json @@ -145,10 +145,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/DatasetIdForCreate" @@ -174,19 +174,19 @@ } }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -200,10 +200,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" } ], "responses": { @@ -214,19 +214,19 @@ } }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -242,10 +242,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -265,19 +265,19 @@ "description": "Stateset styles are updated successfully." }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -291,10 +291,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -305,19 +305,19 @@ "description": "Stateset Deleted." }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -331,10 +331,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -348,19 +348,19 @@ } }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -376,10 +376,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -402,19 +402,19 @@ "description": "Feature states are updated successfully." }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -428,10 +428,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -448,22 +448,22 @@ "description": "Feature states deleted successfully." }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "409": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/409" + "$ref": "../../../Common/preview/1.0/common.json#/responses/409" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -477,10 +477,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -497,19 +497,19 @@ } }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json index ec288e18fdc5..f7950e71df81 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json @@ -166,13 +166,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/TilesetId_rv2" @@ -234,19 +234,19 @@ } }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json index 63e15c616679..52bb57710e73 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json @@ -124,13 +124,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/DatasetIdQuery" @@ -148,22 +148,22 @@ "x-ms-error-response": true }, "202": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/202AsyncV2" + "$ref": "../../../Common/preview/1.0/common.json#/responses/202AsyncV2" }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -177,13 +177,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" } ], "responses": { @@ -194,19 +194,19 @@ } }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -222,13 +222,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/TilesetId" @@ -242,19 +242,19 @@ } }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -268,13 +268,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/TilesetId" @@ -285,19 +285,19 @@ "description": "Tileset delete request completed successfully." }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -316,10 +316,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/TilesetOperationId" @@ -327,10 +327,10 @@ ], "responses": { "200": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/200AsyncV2" + "$ref": "../../../Common/preview/1.0/common.json#/responses/200AsyncV2" }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" } } } @@ -366,7 +366,7 @@ "readOnly": true }, "ontology": { - "$ref": "../../../Common/preview/2.0/common.json#/definitions/Ontology" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/Ontology" }, "datasetId": { "description": "The unique dataset Id used to create the tileset.", diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json index 21c335de865c..98439ae0563a 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json @@ -129,13 +129,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" @@ -149,19 +149,19 @@ } }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -177,13 +177,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" @@ -197,19 +197,19 @@ } }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -225,13 +225,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" @@ -245,19 +245,19 @@ } }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -273,13 +273,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" @@ -296,19 +296,19 @@ } }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -324,13 +324,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" @@ -347,19 +347,19 @@ } }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -375,13 +375,13 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ClientId" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" @@ -407,19 +407,19 @@ } }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -435,10 +435,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" @@ -458,19 +458,19 @@ } }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } }, @@ -484,10 +484,10 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/SubscriptionKey" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" }, { - "$ref": "../../../Common/preview/2.0/common.json#/parameters/ApiVersionV2" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, { "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" @@ -504,19 +504,19 @@ "description": "Feature Deleted." }, "400": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/400" + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, "401": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/401" + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" }, "403": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/403" + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" }, "404": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/404" + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, "500": { - "$ref": "../../../Common/preview/2.0/common.json#/responses/500" + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } } @@ -530,7 +530,7 @@ ], "properties": { "ontology": { - "$ref": "../../../Common/preview/2.0/common.json#/definitions/Ontology" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/Ontology" }, "links": { "description": "Links to other WFS endpoints.", @@ -602,7 +602,7 @@ ], "properties": { "ontology": { - "$ref": "../../../Common/preview/2.0/common.json#/definitions/Ontology" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/Ontology" }, "links": { "description": "Links to other WFS endpoints.", @@ -705,7 +705,7 @@ "example": "Buildings" }, "ontology": { - "$ref": "../../../Common/preview/2.0/common.json#/definitions/Ontology" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/Ontology" }, "description": { "description": "a description of the features in the collection", @@ -765,7 +765,7 @@ "example": "Feature Class buildings" }, "ontology": { - "$ref": "../../../Common/preview/2.0/common.json#/definitions/Ontology" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/Ontology" }, "geometryType": { "description": "type of geometry returned", @@ -873,7 +873,7 @@ "type": "object", "allOf": [ { - "$ref": "../../../Common/preview/2.0/common.json#/definitions/GeoJsonFeatureCollection" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonFeatureCollection" }, { "$ref": "#/definitions/ExtendedGeoJsonFeatureCollectionData" @@ -884,7 +884,7 @@ "type": "object", "properties": { "ontology": { - "$ref": "../../../Common/preview/2.0/common.json#/definitions/Ontology" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/Ontology" }, "numberReturned": { "description": "Number of returned features.", @@ -906,10 +906,10 @@ ], "properties": { "ontology": { - "$ref": "../../../Common/preview/2.0/common.json#/definitions/Ontology" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/Ontology" }, "feature": { - "$ref": "../../../Common/preview/2.0/common.json#/definitions/GeoJsonFeature" + "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonFeature" }, "links": { "description": "Links to other WFS endpoints.", From bf948897b8a95447188b16485ea7fa5334ec7c64 Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Tue, 11 May 2021 10:21:05 -0700 Subject: [PATCH 117/210] Use ResponseFormat as a name for JsonFormat as one of the values is Json --- .../Common/preview/1.0/common.json | 4 ++-- .../DEM/preview/1.0/elevation.json | 10 +++++----- .../Geolocation/preview/1.0/geolocation.json | 2 +- .../Mobility/preview/1.0/mobility.json | 16 ++++++++-------- .../Route/preview/1.0/route.json | 4 ++-- .../Search/preview/1.0/search.json | 10 +++++----- .../Spatial/preview/1.0/spatial.json | 18 +++++++++--------- .../Timezone/preview/1.0/timezone.json | 12 ++++++------ .../Weather/preview/1.0/weather.json | 16 ++++++++-------- 9 files changed, 46 insertions(+), 46 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index 1081e2f90f2f..327a7539232b 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -562,7 +562,7 @@ "in": "header", "x-ms-parameter-location": "client" }, - "JsonFormat": { + "ResponseFormat": { "name": "format", "description": "Desired format of the response. Only `json` format is supported.", "type": "string", @@ -572,7 +572,7 @@ "json" ], "x-ms-enum": { - "name": "JsonFormat", + "name": "ResponseFormat", "modelAsString": true, "values": [ { diff --git a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json index 742693072ac6..d351718f4414 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json +++ b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json @@ -64,7 +64,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" }, { "name": "points", @@ -127,7 +127,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" }, { "name": "pointsRequestBody", @@ -193,7 +193,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" }, { "name": "lines", @@ -268,7 +268,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" }, { "name": "linesRequestBody", @@ -342,7 +342,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" }, { "name": "bounds", diff --git a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json index 1c26e49f1cb6..31d08aecf0dd 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json +++ b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json @@ -62,7 +62,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" }, { "name": "ip", diff --git a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json index b3dccbaa293a..43d11a298692 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json +++ b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json @@ -78,7 +78,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" }, { "name": "query", @@ -160,7 +160,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" }, { "name": "query", @@ -257,7 +257,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" }, { "$ref": "#/parameters/MetroId" @@ -338,7 +338,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" }, { "$ref": "#/parameters/MetroId" @@ -446,7 +446,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" }, { "$ref": "#/parameters/MetroId" @@ -568,7 +568,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" }, { "$ref": "#/parameters/MetroId" @@ -891,7 +891,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" }, { "name": "query", @@ -976,7 +976,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" }, { "$ref": "#/parameters/MetroId" diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json index 04b370f2f936..72434f5bcdae 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json @@ -771,7 +771,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" }, { "name": "waitForResults", @@ -1453,7 +1453,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" }, { "name": "routeDirectionsBatchRequestBody", diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json index 3df0f4dfa8b3..33e49b96ca68 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json @@ -397,7 +397,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" }, { "name": "geometries", @@ -870,7 +870,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" }, { "name": "language", @@ -1550,7 +1550,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" }, { "name": "searchFuzzyBatchRequestBody", @@ -1617,7 +1617,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" }, { "name": "searchAddressBatchRequestBody", @@ -1684,7 +1684,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" }, { "name": "searchAddressReverseBatchRequestBody", diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json index cb12ca90fdac..5ba84bb7a9db 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json @@ -145,7 +145,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" }, { "name": "deviceId", @@ -257,7 +257,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" }, { "name": "deviceId", @@ -373,7 +373,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" }, { "name": "bufferRequestBody", @@ -431,7 +431,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" }, { "$ref": "#/parameters/UdidSpatial" @@ -492,7 +492,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" }, { "name": "lat", @@ -570,7 +570,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" }, { "$ref": "#/parameters/UdidSpatial" @@ -644,7 +644,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" }, { "name": "lat", @@ -716,7 +716,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" }, { "$ref": "#/parameters/UdidSpatial" @@ -784,7 +784,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" }, { "name": "query", diff --git a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json index a1056d80fe2f..4ffd91040078 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json +++ b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json @@ -145,7 +145,7 @@ "$ref": "#/parameters/TimezoneTransitionsYears" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" }, { "name": "query", @@ -218,7 +218,7 @@ "$ref": "#/parameters/TimezoneTransitionsYears" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" }, { "name": "query", @@ -276,7 +276,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" } ], "responses": { @@ -327,7 +327,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" } ], "responses": { @@ -378,7 +378,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" } ], "responses": { @@ -429,7 +429,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" }, { "name": "query", diff --git a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json index 0fa73fba409e..1e3c01998680 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json +++ b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json @@ -95,7 +95,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" }, { "name": "query", @@ -162,7 +162,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" }, { "name": "query", @@ -226,7 +226,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" }, { "name": "query", @@ -293,7 +293,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" }, { "name": "query", @@ -366,7 +366,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" }, { "name": "query", @@ -433,7 +433,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" }, { "name": "query", @@ -491,7 +491,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" }, { "name": "query", @@ -555,7 +555,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" }, { "name": "query", From 073382325f5366bd31f88d103c4bc338ca22d23a Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Wed, 12 May 2021 03:28:20 -0700 Subject: [PATCH 118/210] Mobility & Render - fix response types, remove unnecessary definitions --- .../Mobility/preview/1.0/mobility.json | 66 +++++----- .../1.0/examples/GetMapImageryTile.json | 6 +- .../preview/1.0/examples/GetMapStateTile.json | 2 +- ...etMapImage.json => GetMapStaticImage.json} | 6 +- .../preview/1.0/examples/GetMapTile.json | 6 +- .../Render/preview/1.0/render.json | 124 ++++++++++-------- .../preview/2.0/examples/GetMapTileV2.json | 6 +- .../Render/preview/2.0/render.json | 51 +++---- 8 files changed, 133 insertions(+), 134 deletions(-) rename specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/{GetMapImage.json => GetMapStaticImage.json} (94%) diff --git a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json index 43d11a298692..d9ce2e05cd6d 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json +++ b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json @@ -818,7 +818,7 @@ "leastTransfers" ], "x-ms-enum": { - "name": "TransitRouteType", + "name": "RouteType", "modelAsString": true, "values": [ { @@ -1254,6 +1254,38 @@ } } }, + "TransitLineInfoResponse": { + "description": "This object is returned from a successful Transit Line Info call.", + "type": "object", + "properties": { + "lineGroup": { + "description": "Groups together all lines that are logically part of the same group. Typically contains 2 lines having the same agency and line, one going from A to B, and the other from B to A.", + "$ref": "#/definitions/ItineraryLineGroup" + }, + "lines": { + "description": "The line group’s basic info and list of the lines.", + "$ref": "#/definitions/ItineraryLines" + }, + "stops": { + "description": "List of stops the line group goes through.", + "type": "array", + "items": { + "$ref": "#/definitions/LegStop" + } + }, + "patterns": { + "description": "List of patterns this group is comprised of. A pattern consists of a stop sequence and shape per a line in GeoJSON format.", + "type": "array", + "items": { + "$ref": "#/definitions/ItineraryPattern" + } + }, + "schedule": { + "description": "Line schedule for the current 24h. May be null in case no schedule exists for the current time.", + "$ref": "#/definitions/LineArrival" + } + } + }, "TransitStopInfoResponse": { "description": "This object is returned from a successful Get Transit Stop Info call", "type": "object", @@ -1306,38 +1338,6 @@ } } }, - "TransitLineInfoResponse": { - "description": "This object is returned from a successful Transit Line Info call.", - "type": "object", - "properties": { - "lineGroup": { - "description": "Groups together all lines that are logically part of the same group. Typically contains 2 lines having the same agency and line, one going from A to B, and the other from B to A.", - "$ref": "#/definitions/ItineraryLineGroup" - }, - "lines": { - "description": "The line group’s basic info and list of the lines.", - "$ref": "#/definitions/ItineraryLines" - }, - "stops": { - "description": "List of stops the line group goes through.", - "type": "array", - "items": { - "$ref": "#/definitions/LegStop" - } - }, - "patterns": { - "description": "List of patterns this group is comprised of. A pattern consists of a stop sequence and shape per a line in GeoJSON format.", - "type": "array", - "items": { - "$ref": "#/definitions/ItineraryPattern" - } - }, - "schedule": { - "description": "Line schedule for the current 24h. May be null in case no schedule exists for the current time.", - "$ref": "#/definitions/LineArrival" - } - } - }, "RealTimeArrivalsResponse": { "description": "This object is returned from a successful Get Real Time Arrival Info call.", "type": "object", diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapImageryTile.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapImageryTile.json index e3f6cda8376f..830a7dc82d73 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapImageryTile.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapImageryTile.json @@ -10,8 +10,10 @@ }, "responses": { "200": { - "headers": {}, - "body": "binary string image" + "headers": { + "Content-Type": "image/png" + }, + "body": "{file}" }, "400": { "headers": {}, diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapStateTile.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapStateTile.json index 997c25929649..b22dc1179f52 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapStateTile.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapStateTile.json @@ -12,7 +12,7 @@ "headers": { "Content-Type": "application/vnd.mapbox-vector-tile" }, - "body": "state tile vector graphic content" + "body": "{file}" }, "400": { "headers": {}, diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapImage.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapStaticImage.json similarity index 94% rename from specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapImage.json rename to specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapStaticImage.json index b316545d0ef1..148cd88bc1a2 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapImage.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapStaticImage.json @@ -10,8 +10,10 @@ }, "responses": { "200": { - "headers": {}, - "body": "binary string image" + "headers": { + "Content-Type": "image/png" + }, + "body": "{file}" }, "400": { "headers": {}, diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapTile.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapTile.json index b24399f4e996..42e832c7f939 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapTile.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapTile.json @@ -12,8 +12,10 @@ }, "responses": { "200": { - "headers": {}, - "body": "binary string image" + "headers": { + "Content-Type": "image/png" + }, + "body": "{file}" }, "400": { "headers": {}, diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json index dd9533e59ce8..c8b69e3fdf24 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json @@ -172,7 +172,7 @@ "format": "int32", "x-ms-parameter-location": "method" }, - "Text": { + "IncludeText": { "name": "text", "in": "query", "description": "Yes/no value to exclude textual data from response. Only images and country names will be in response.", @@ -202,10 +202,10 @@ "/map/static/{format}": { "get": { "description": "**Applies to**: S0 and S1 pricing tiers.\n\n\nThe static image service renders a user-defined, rectangular image containing a map section using a zoom level from 0 to 20. The static image service renders a user-defined, rectangular image containing a map section using a zoom level from 0 to 20. The supported resolution range for the map image is from 1x1 to 8192x8192. If you are deciding when to use the static image service over the map tile service, you may want to consider how you would like to interact with the rendered map. If the map contents will be relatively unchanging, a static map is a good choice. If you want to support a lot of zooming, panning and changing of the map content, the map tile service would be a better choice. \n\nService also provides Image Composition functionality to get a static image back with additional data like; pushpins and geometry overlays with following S0 and S1 capabilities. \n\nIn S0 you can:\n- Render up to 5 pushpins specified in the request\n- Provide one custom image for the pins referenced in the request\n- Add labels to the pushpins\n\nIn S1 you can:\n- Render pushpins through [Azure Maps Data Service](https://aka.ms/AzureMapsMapDataService)\n- Specify multiple pushpin styles\n- Provide custom pushpin images stored in [Azure Maps Data Service](https://aka.ms/AzureMapsMapDataService)\n- Render circle, polyline and polygon geometry types.\n- Render of supported GeoJSON geometry types uploaded through [Azure Maps Data Service](https://aka.ms/AzureMapsMapDataService)\n\nPlease see [How-to-Guide](https://aka.ms/AzureMapsHowToGuideImageCompositor) for detailed examples.\n\n_Note_ : Either **center** or **bbox** parameter must be supplied to the\nAPI.\n

\nThe supported Lat and Lon ranges when using the **bbox** parameter, are as follows:\n

\n\n |Zoom Level | Max Lon Range | Max Lat Range|\n |:----------|:----------------|:-------------|\n |0 | 360.0 | 170.0 | \n |1 | 360.0 | 170.0 |\n |2 | 360.0 | 170.0 |\n |3 | 360.0 | 170.0 |\n |4 | 360.0 | 170.0 |\n |5 | 180.0 | 85.0 |\n |6 | 90.0 | 42.5 |\n |7 | 45.0 | 21.25 |\n |8 | 22.5 | 10.625 |\n |9 | 11.25 | 5.3125 |\n |10 | 5.625 | 2.62625 |\n |11 | 2.8125 | 1.328125 |\n |12 | 1.40625 | 0.6640625 |\n |13 | 0.703125 | 0.33203125 |\n |14 | 0.3515625 | 0.166015625 |\n |15 | 0.17578125 | 0.0830078125 | \n |16 | 0.087890625 | 0.0415039063 | \n |17 | 0.0439453125 | 0.0207519531 |\n |18 | 0.0219726563 | 0.0103759766 |\n |19 | 0.0109863281 | 0.0051879883 |\n |20 | 0.0054931641 | 0.0025939941 |", - "operationId": "Render_GetMapImage", + "operationId": "Render_GetMapStaticImage", "x-ms-examples": { "GetMapStaticImage": { - "$ref": "./examples/GetMapImage.json" + "$ref": "./examples/GetMapStaticImage.json" } }, "parameters": [ @@ -343,13 +343,23 @@ "produces": [ "application/json", "image/jpeg", - "image/png" + "image/png", + "image/pbf", + "application/vnd.mapbox-vector-tile" ], "responses": { "200": { - "description": "OK", + "description": "This image is returned from a successful Get Map Static Image call", "schema": { - "$ref": "#/definitions/MapStaticResult" + "type": "object", + "format": "file", + "readOnly": true + }, + "headers": { + "Content-Type": { + "type": "string", + "description": "The content-type for the response." + } } }, "400": { @@ -500,13 +510,23 @@ "produces": [ "application/json", "image/jpeg", - "image/png" + "image/png", + "image/pbf", + "application/vnd.mapbox-vector-tile" ], "responses": { "200": { - "description": "OK", + "description": "This image is returned from a successful Get Map Tile call", "schema": { - "$ref": "#/definitions/MapTileResult" + "type": "object", + "format": "file", + "readOnly": true + }, + "headers": { + "Content-Type": { + "type": "string", + "description": "The content-type for the response." + } } }, "400": { @@ -569,9 +589,17 @@ ], "responses": { "200": { - "description": "OK", + "description": "This tile is returned from a successful Get Map State Tile call", "schema": { - "$ref": "#/definitions/MapStateTileResult" + "type": "object", + "format": "file", + "readOnly": true + }, + "headers": { + "Content-Type": { + "type": "string", + "description": "The content-type for the response." + } } }, "400": { @@ -619,7 +647,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/CopyrightCaptionResult" + "$ref": "#/definitions/GetCopyrightCaptionResult" } }, "400": { @@ -645,7 +673,7 @@ "description": "**Applies to:** S1 pricing tier.\n\n\nThis service returns a map image tile with size 256x256, given the x and y coordinates and zoom\nlevel. Zoom level ranges from 1 to 19. The current available style value is 'satellite' which provides satellite\nimagery alone.\n\n\n**Note**: We recommend to start to use the new [Get Map Tile V2 API](https://aka.ms/GetMapTileV2).", "operationId": "Render_GetMapImageryTile", "x-ms-examples": { - "GetMapImagery": { + "GetMapImageryTile": { "$ref": "./examples/GetMapImageryTile.json" } }, @@ -699,9 +727,17 @@ ], "responses": { "200": { - "description": "OK", + "description": "This image is returned from a successful Get Map Imagery Tile call", "schema": { - "$ref": "#/definitions/MapImageryResult" + "type": "object", + "format": "file", + "readOnly": true + }, + "headers": { + "Content-Type": { + "type": "string", + "description": "The content-type for the response." + } } }, "400": { @@ -727,7 +763,7 @@ "description": "**Applies to**: S0 and S1 pricing tiers.\n\n\nReturns copyright information for a given bounding box. Bounding-box requests should specify the minimum and maximum longitude and latitude (EPSG-3857) coordinates", "operationId": "Render_GetCopyrightFromBoundingBox", "x-ms-examples": { - "GetCopyrightBounding": { + "GetCopyrightFromBoundingBox": { "$ref": "./examples/GetCopyrightFromBoundingBox.json" } }, @@ -759,14 +795,14 @@ "type": "string" }, { - "$ref": "#/parameters/Text" + "$ref": "#/parameters/IncludeText" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/CopyrightBoundingResult" + "$ref": "#/definitions/GetCopyrightFromBoundingBoxResult" } }, "400": { @@ -792,7 +828,7 @@ "description": "**Applies to**: S0 and S1 pricing tiers.\n\n\n\nCopyrights API is designed to serve copyright information for Render Tile service. In addition to basic copyright for the whole map, API is serving specific groups of copyrights for some countries.\nReturns the copyright information for a given tile. To obtain the copyright information for a particular tile, the request should specify the tile's zoom level and x and y coordinates (see: Zoom Levels and Tile Grid).", "operationId": "Render_GetCopyrightForTile", "x-ms-examples": { - "GetCopyrightTile": { + "GetCopyrightForTile": { "$ref": "./examples/GetCopyrightForTile.json" } }, @@ -819,14 +855,14 @@ "$ref": "#/parameters/yTileIndex" }, { - "$ref": "#/parameters/Text" + "$ref": "#/parameters/IncludeText" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/CopyrightTileResult" + "$ref": "#/definitions/GetCopyrightForTileResult" } }, "400": { @@ -852,7 +888,7 @@ "description": "**Applies to**: S0 and S1 pricing tiers.\n\n\nCopyrights API is designed to serve copyright information for Render Tile service. In addition to basic copyright for the whole map, API is serving specific groups of copyrights for some countries.\nReturns the copyright information for the world. To obtain the default copyright information for the whole world, do not specify a tile or bounding box.", "operationId": "Render_GetCopyrightForWorld", "x-ms-examples": { - "GetCopyrightWorld": { + "GetCopyrightForWorld": { "$ref": "./examples/GetCopyrightForWorld.json" } }, @@ -870,14 +906,14 @@ "$ref": "#/parameters/TextFormat" }, { - "$ref": "#/parameters/Text" + "$ref": "#/parameters/IncludeText" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/CopyrightWorldResult" + "$ref": "#/definitions/GetCopyrightForWorldResult" } }, "400": { @@ -900,8 +936,8 @@ } }, "definitions": { - "CopyrightBoundingResult": { - "description": "This object is returned from a successful Copyright Bounding call", + "GetCopyrightFromBoundingBoxResult": { + "description": "This object is returned from a successful Get Copyright From Bounding Box call", "type": "object", "properties": { "formatVersion": { @@ -959,8 +995,8 @@ } } }, - "CopyrightCaptionResult": { - "description": "This object is returned from a successful Copyright Caption call", + "GetCopyrightCaptionResult": { + "description": "This object is returned from a successful Get Copyright Caption call", "type": "object", "properties": { "formatVersion": { @@ -975,8 +1011,8 @@ } } }, - "CopyrightWorldResult": { - "description": "This object is returned from a successful Copyright World call", + "GetCopyrightForWorldResult": { + "description": "This object is returned from a successful Get Copyright For World call", "type": "object", "properties": { "formatVersion": { @@ -1003,8 +1039,8 @@ } } }, - "CopyrightTileResult": { - "description": "This object is returned from a successful Copyright Tile call", + "GetCopyrightForTileResult": { + "description": "This object is returned from a successful Get Copyright For Tile call", "type": "object", "properties": { "formatVersion": { @@ -1030,30 +1066,6 @@ } } } - }, - "MapStaticResult": { - "description": "This image is returned from a successful Map Static call", - "type": "object", - "format": "file", - "readOnly": true - }, - "MapTileResult": { - "description": "This image is returned from a successful Map Tile call", - "type": "object", - "format": "file", - "readOnly": true - }, - "MapStateTileResult": { - "description": "This tile is returned from a successful Map State Tile call", - "type": "object", - "format": "file", - "readOnly": true - }, - "MapImageryResult": { - "description": "This image is returned from a successful Map Imagery call", - "type": "object", - "format": "file", - "readOnly": true } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/examples/GetMapTileV2.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/examples/GetMapTileV2.json index a7f739006589..d9b37cc37dca 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/examples/GetMapTileV2.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/examples/GetMapTileV2.json @@ -9,8 +9,10 @@ }, "responses": { "200": { - "headers": {}, - "body": "binary string image" + "headers": { + "Content-Type": "application/vnd.mapbox-vector-tile" + }, + "body": "{file}" }, "400": { "headers": {}, diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json index f7950e71df81..a0bd31a8916d 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json @@ -127,31 +127,6 @@ "type": "integer", "format": "int32", "x-ms-parameter-location": "method" - }, - "Text": { - "name": "text", - "in": "query", - "description": "Yes/no value to exclude textual data from response. Only images and country names will be in response.", - "type": "string", - "enum": [ - "yes", - "no" - ], - "x-ms-enum": { - "name": "IncludeText", - "modelAsString": true, - "values": [ - { - "value": "yes", - "description": "Include all textual data in response." - }, - { - "value": "no", - "description": "Exclude textual data from response. Only images and country names will be in response." - } - ] - }, - "x-ms-parameter-location": "method" } }, "paths": { @@ -224,13 +199,25 @@ } ], "produces": [ - "application/json" + "application/json", + "image/jpeg", + "image/png", + "image/pbf", + "application/vnd.mapbox-vector-tile" ], "responses": { "200": { - "description": "OK", + "description": "The tile returned from a successful API call.", "schema": { - "$ref": "#/definitions/MapTileResultv2" + "type": "object", + "format": "file", + "readOnly": true + }, + "headers": { + "Content-Type": { + "type": "string", + "description": "The content-type for the response." + } } }, "400": { @@ -251,13 +238,5 @@ } } } - }, - "definitions": { - "MapTileResultv2": { - "description": "The tile returned from a successful API call.", - "type": "string", - "format": "binary", - "readOnly": true - } } } From 2bf8280203365f01cba5fd4a9a53cf08b61161bc Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Wed, 12 May 2021 04:05:25 -0700 Subject: [PATCH 119/210] Revert renaming TransitRouteType --- .../Microsoft.Maps/Mobility/preview/1.0/mobility.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json index d9ce2e05cd6d..56999f5f8ea0 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json +++ b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json @@ -818,7 +818,7 @@ "leastTransfers" ], "x-ms-enum": { - "name": "RouteType", + "name": "TransitRouteType", "modelAsString": true, "values": [ { From f56bd07fb07dc082f52718910fe2d9df9a32d668 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Wed, 12 May 2021 13:50:30 +0200 Subject: [PATCH 120/210] revert data.json to consume the correct type --- .../maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json index 88e201483b71..9feed560c211 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json @@ -149,7 +149,9 @@ } }, "consumes": [ - "multipart/form-data" + "application/json", + "application/vnd.geo+json", + "application/octet-stream" ], "parameters": [ { From f81548637525d6bdd41e322e92020c9feb15b699 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Wed, 12 May 2021 14:10:40 +0200 Subject: [PATCH 121/210] Only put at consumes application/json --- .../maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json index 9feed560c211..c3651251105e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json @@ -149,9 +149,7 @@ } }, "consumes": [ - "application/json", - "application/vnd.geo+json", - "application/octet-stream" + "application/json" ], "parameters": [ { From 90d6a9fd66fa3d190f974a9d5bfc1955febdf095 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Wed, 12 May 2021 16:03:47 +0200 Subject: [PATCH 122/210] Update consumes for data. --- .../data-plane/Microsoft.Maps/Data/preview/1.0/data.json | 8 +++++--- .../data-plane/Microsoft.Maps/Data/preview/2.0/data.json | 6 ++++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json index 85aa3bebee4d..ebff11ca649a 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json @@ -16,7 +16,9 @@ "schemes": [ "https" ], - "consumes": [], + "consumes": [ + "application/json" + ], "produces": [ "application/json" ], @@ -102,7 +104,7 @@ } }, "consumes": [ - "multipart/form-data" + "application/json" ], "parameters": [ { @@ -170,7 +172,7 @@ } }, "consumes": [ - "multipart/form-data" + "application/json" ], "parameters": [ { diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json index c3651251105e..4b23e964c881 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json @@ -16,7 +16,9 @@ "schemes": [ "https" ], - "consumes": [], + "consumes": [ + "application/json" + ], "produces": [ "application/json" ], @@ -264,7 +266,7 @@ } }, "consumes": [ - "multipart/form-data" + "application/json" ], "parameters": [ { From e84de32b771e117391e4976309d6766b014ded31 Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Wed, 12 May 2021 06:38:37 -0700 Subject: [PATCH 123/210] Render - rename operations to have common names with examples --- .../1.0/examples/PostRouteDirections.json | 2 +- .../examples/PostRouteDirectionsBatch.json | 2 +- ...uteCalculate.json => PostRouteMatrix.json} | 2 +- .../Route/preview/1.0/route.json | 40 ++++++++----------- 4 files changed, 20 insertions(+), 26 deletions(-) rename specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/{PostMatrixRouteCalculate.json => PostRouteMatrix.json} (99%) diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteDirections.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteDirections.json index 898a94a17dd5..56d738719173 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteDirections.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteDirections.json @@ -4,7 +4,7 @@ "api-version": "1.0", "query": "52.50931,13.42936:52.50274,13.43872", "subscription-key": "[subscription-key]", - "routeDirectionsRequestBody": { + "postRouteDirectionsRequestBody": { "supportingPoints": { "type": "GeometryCollection", "geometries": [ diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteDirectionsBatch.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteDirectionsBatch.json index 185d11981d0a..79aa3822a4eb 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteDirectionsBatch.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteDirectionsBatch.json @@ -3,7 +3,7 @@ "format": "json", "api-version": "1.0", "subscription-key": "[subscription-key]", - "routeDirectionsBatchRequestBody": { + "postRouteDirectionsBatchRequestBody": { "batchItems": [ { "query": "?query=47.639987,-122.128384:47.621252,-122.184408:47.596437,-122.332000&routeType=fastest&travelMode=car&maxAlternatives=99" diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostMatrixRouteCalculate.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteMatrix.json similarity index 99% rename from specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostMatrixRouteCalculate.json rename to specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteMatrix.json index 7457cd7329dd..a8e38e334488 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostMatrixRouteCalculate.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteMatrix.json @@ -4,7 +4,7 @@ "api-version": "1.0", "subscription-key": "[subscription-key]", "routeType": "shortest", - "routeMatrixBody": { + "postRouteMatrixRequestBody": { "origins": { "type": "MultiPoint", "coordinates": [ diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json index 72434f5bcdae..15e9d134e595 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json @@ -756,8 +756,8 @@ "final-state-via": "location" }, "x-ms-examples": { - "MatrixRoute": { - "$ref": "./examples/PostMatrixRouteCalculate.json" + "PostRouteMatrix": { + "$ref": "./examples/PostRouteMatrix.json" } }, "parameters": [ @@ -831,12 +831,12 @@ "$ref": "#/parameters/VehicleLoadType" }, { - "name": "routeMatrixBody", + "name": "postRouteMatrixRequestBody", "description": "The matrix of origin and destination coordinates to compute the route distance, travel time and other summary for each cell of the matrix based on the input parameters. The minimum and the maximum cell count supported are 1 and **700** for async and **100** for sync respectively. For example, it can be 35 origins and 20 destinations or 25 origins and 25 destinations for async API.", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/RouteMatrixRequestBody" + "$ref": "#/definitions/PostRouteMatrixRequestBody" } } ], @@ -844,7 +844,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/RouteMatrixResponse" + "$ref": "#/definitions/PostRouteMatrixResponse" } }, "202": { @@ -865,10 +865,7 @@ "500": { "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } - }, - "produces": [ - "application/json" - ] + } } }, "/route/directions/{format}": { @@ -1228,12 +1225,12 @@ "$ref": "#/parameters/AuxiliaryPowerInkW" }, { - "name": "routeDirectionsRequestBody", + "name": "postRouteDirectionsRequestBody", "description": "Used for reconstructing a route and for calculating zero or more alternative routes to this reference route. The provided sequence of coordinates is used as input for route reconstruction. The alternative routes are calculated between the origin and destination points specified in the base path parameter locations. If both minDeviationDistance and minDeviationTime are set to zero, then these origin and destination points are expected to be at (or very near) the beginning and end of the reference route, respectively. Intermediate locations (waypoints) are not supported when using supportingPoints.\n\nSetting at least one of minDeviationDistance or minDeviationTime to a value greater than zero has the following consequences:\n\n* The origin point of the calculateRoute request must be on (or very near) the input reference route. If this is not the case, an error is returned. However, the origin point does not need to be at the beginning of the input reference route (it can be thought of as the current vehicle position on the reference route).\n* The reference route, returned as the first route in the calculateRoute response, will start at the origin point specified in the calculateRoute request. The initial part of the input reference route up until the origin point will be excluded from the response.\n* The values of minDeviationDistance and minDeviationTime determine how far alternative routes will be guaranteed to follow the reference route from the origin point onwards.\n* The route must use departAt.\n* The vehicleHeading is ignored.", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/RouteDirectionsRequestBody" + "$ref": "#/definitions/PostRouteDirectionsRequestBody" } } ], @@ -1408,7 +1405,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/RouteRangeResponse" + "$ref": "#/definitions/GetRouteRangeResponse" } }, "400": { @@ -1456,7 +1453,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" }, { - "name": "routeDirectionsBatchRequestBody", + "name": "postRouteDirectionsBatchRequestBody", "in": "body", "description": "The list of route directions queries/requests to process. The list can contain a max of 700 queries for async and 100 queries for sync version and must contain at least 1 query.", "required": true, @@ -1469,7 +1466,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/RouteDirectionsBatchResponse" + "$ref": "#/definitions/PostRouteDirectionsBatchResponse" } }, "202": { @@ -1490,15 +1487,12 @@ "500": { "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } - }, - "produces": [ - "application/json" - ] + } } } }, "definitions": { - "RouteDirectionsRequestBody": { + "PostRouteDirectionsRequestBody": { "type": "object", "description": "Post body parameters for Route directions.", "properties": { @@ -2224,7 +2218,7 @@ } } }, - "RouteRangeResponse": { + "GetRouteRangeResponse": { "description": "This object is returned from a successful Route Reachable Range call", "type": "object", "properties": { @@ -2289,7 +2283,7 @@ } } }, - "RouteMatrixResponse": { + "PostRouteMatrixResponse": { "description": "This object is returned from a successful Route Matrix call. For ex, if 2 origins and 3 destinations are provided, there are going to 2 arrays with 3 elements in each. Each element's content depends on the options provided in the query.", "type": "object", "properties": { @@ -2357,7 +2351,7 @@ } } }, - "RouteMatrixRequestBody": { + "PostRouteMatrixRequestBody": { "description": "An object with a matrix of coordinates.", "type": "object", "properties": { @@ -2369,7 +2363,7 @@ } } }, - "RouteDirectionsBatchResponse": { + "PostRouteDirectionsBatchResponse": { "description": "This object is returned from a successful Route Directions Batch service call.", "type": "object", "allOf": [ From 95fc7db2ae80a3136e507bd99d12e7168b73d1fc Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Wed, 12 May 2021 17:07:33 +0200 Subject: [PATCH 124/210] update python codegen to use track2 correctly --- .../maps/data-plane/readme.python.md | 28 +++++++++++-------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/specification/maps/data-plane/readme.python.md b/specification/maps/data-plane/readme.python.md index 5f6bee5402ff..5cd6f9f95876 100644 --- a/specification/maps/data-plane/readme.python.md +++ b/specification/maps/data-plane/readme.python.md @@ -4,38 +4,44 @@ These settings apply only when `--python` is specified on the command line. Please also specify `--python-sdks-folder=`. Use `--python-mode=update` if you already have a setup.py and just want to update the code itself. -``` yaml $(python) && !$(track2) +```yaml $(python) && !$(track2) python-mode: create python: + azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION + payload-flattening-threshold: 2 namespace: azure.maps.service package-name: azure-maps-service - package-version: preview-2.0 + package-version: 1.0.0 clear-output-folder: true ``` -``` yaml $(python) && $(track2) +```yaml $(python) && $(track2) python-mode: create +azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION namespace: azure.maps.service package-name: azure-maps-service -package-version: preview-2.0 +package-version: 1.0.0 clear-output-folder: true ``` -``` yaml $(python) && $(python-mode) == 'asdf' && !$(track2) + +``` yaml $(python) && $(python-mode) == 'update' && !$(track2) python: no-namespace-folders: true - output-folder: $(python-sdks-folder)/maps/azure-maps-service/azure/maps/_generated + output-folder: $(python-sdks-folder)/maps/azure-maps-service ``` -``` yaml $(python) && !$(track2) + +``` yaml $(python) && $(python-mode) == 'create' && !$(track2) python: basic-setup-py: true output-folder: $(python-sdks-folder)/maps/azure-maps-service ``` -``` yaml $(python) && $(python-mode) == 'asdf' && $(track2) +``` yaml $(python) && $(python-mode) == 'update' && $(track2) no-namespace-folders: true -output-folder: $(python-sdks-folder)/maps/azure-maps-service/azure/maps/_generated +output-folder: $(python-sdks-folder)/maps/azure-maps-service ``` -``` yaml $(python) && $(track2) + +``` yaml $(python) && $(python-mode) == 'create' && $(track2) basic-setup-py: true output-folder: $(python-sdks-folder)/maps/azure-maps-service -``` +``` \ No newline at end of file From 768430f0b34387489d09e28aa62da96a9a85562f Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Wed, 12 May 2021 17:48:51 +0200 Subject: [PATCH 125/210] Also change track2 from readme.md --- specification/maps/data-plane/readme.md | 2 +- .../maps/data-plane/readme.python.md | 25 +------------------ 2 files changed, 2 insertions(+), 25 deletions(-) diff --git a/specification/maps/data-plane/readme.md b/specification/maps/data-plane/readme.md index f9f032c70bc0..ab30bf6afe30 100644 --- a/specification/maps/data-plane/readme.md +++ b/specification/maps/data-plane/readme.md @@ -101,7 +101,7 @@ This is not used by Autorest itself. ```yaml $(swagger-to-sdk) swagger-to-sdk: - - repo: azure-sdk-for-python + - repo: azure-sdk-for-python-track2 - repo: azure-sdk-for-java - repo: azure-sdk-for-js - repo: azure-sdk-for-net diff --git a/specification/maps/data-plane/readme.python.md b/specification/maps/data-plane/readme.python.md index 5cd6f9f95876..6c3247cafc14 100644 --- a/specification/maps/data-plane/readme.python.md +++ b/specification/maps/data-plane/readme.python.md @@ -4,38 +4,15 @@ These settings apply only when `--python` is specified on the command line. Please also specify `--python-sdks-folder=`. Use `--python-mode=update` if you already have a setup.py and just want to update the code itself. -```yaml $(python) && !$(track2) -python-mode: create -python: - azure-arm: true - license-header: MICROSOFT_MIT_NO_VERSION - payload-flattening-threshold: 2 - namespace: azure.maps.service - package-name: azure-maps-service - package-version: 1.0.0 - clear-output-folder: true -``` ```yaml $(python) && $(track2) python-mode: create -azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION namespace: azure.maps.service package-name: azure-maps-service -package-version: 1.0.0 +package-version: preview-2.0 clear-output-folder: true ``` -``` yaml $(python) && $(python-mode) == 'update' && !$(track2) -python: - no-namespace-folders: true - output-folder: $(python-sdks-folder)/maps/azure-maps-service -``` - -``` yaml $(python) && $(python-mode) == 'create' && !$(track2) -python: - basic-setup-py: true - output-folder: $(python-sdks-folder)/maps/azure-maps-service -``` ``` yaml $(python) && $(python-mode) == 'update' && $(track2) no-namespace-folders: true output-folder: $(python-sdks-folder)/maps/azure-maps-service From bcd33516045f1852c826e6d31aef4afeade37281 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Wed, 12 May 2021 18:06:33 +0200 Subject: [PATCH 126/210] Add track2 and track1 --- specification/maps/data-plane/readme.md | 1 + .../maps/data-plane/readme.python.md | 30 +++++++++++++++---- 2 files changed, 26 insertions(+), 5 deletions(-) diff --git a/specification/maps/data-plane/readme.md b/specification/maps/data-plane/readme.md index ab30bf6afe30..293579a911ba 100644 --- a/specification/maps/data-plane/readme.md +++ b/specification/maps/data-plane/readme.md @@ -101,6 +101,7 @@ This is not used by Autorest itself. ```yaml $(swagger-to-sdk) swagger-to-sdk: + - repo: azure-sdk-for-python - repo: azure-sdk-for-python-track2 - repo: azure-sdk-for-java - repo: azure-sdk-for-js diff --git a/specification/maps/data-plane/readme.python.md b/specification/maps/data-plane/readme.python.md index 6c3247cafc14..35c3847b4060 100644 --- a/specification/maps/data-plane/readme.python.md +++ b/specification/maps/data-plane/readme.python.md @@ -4,21 +4,41 @@ These settings apply only when `--python` is specified on the command line. Please also specify `--python-sdks-folder=`. Use `--python-mode=update` if you already have a setup.py and just want to update the code itself. -```yaml $(python) && $(track2) +``` yaml $(python) && !$(track2) python-mode: create +python: + azure-arm: true + license-header: MICROSOFT_MIT_NO_VERSION + payload-flattening-threshold: 2 + namespace: azure.maps.service + package-name: azure-maps-service + package-version: preview-2.0 + clear-output-folder: true +``` +``` yaml $(python) && $(track2) +python-mode: create +azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION namespace: azure.maps.service package-name: azure-maps-service package-version: preview-2.0 clear-output-folder: true ``` - +``` yaml $(python) && $(python-mode) == 'update' && !$(track2) +python: + no-namespace-folders: true + output-folder: $(python-sdks-folder)/maps/azure-maps-service/azure/maps/service +``` +``` yaml $(python) && $(python-mode) == 'create' && !$(track2) +python: + basic-setup-py: true + output-folder: $(python-sdks-folder)/maps/azure-maps-service +``` ``` yaml $(python) && $(python-mode) == 'update' && $(track2) no-namespace-folders: true -output-folder: $(python-sdks-folder)/maps/azure-maps-service +output-folder: $(python-sdks-folder)/maps/azure-maps-service/azure/maps/service ``` - ``` yaml $(python) && $(python-mode) == 'create' && $(track2) basic-setup-py: true output-folder: $(python-sdks-folder)/maps/azure-maps-service -``` \ No newline at end of file +``` From 46f85d3f7fabd0fd659e25a4329a3ec788cdafa3 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Wed, 12 May 2021 21:08:24 +0200 Subject: [PATCH 127/210] Don't generate the sdk for arm. --- specification/maps/data-plane/readme.python.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/specification/maps/data-plane/readme.python.md b/specification/maps/data-plane/readme.python.md index 35c3847b4060..277c12c8899e 100644 --- a/specification/maps/data-plane/readme.python.md +++ b/specification/maps/data-plane/readme.python.md @@ -7,7 +7,6 @@ Use `--python-mode=update` if you already have a setup.py and just want to updat ``` yaml $(python) && !$(track2) python-mode: create python: - azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION payload-flattening-threshold: 2 namespace: azure.maps.service @@ -17,7 +16,6 @@ python: ``` ``` yaml $(python) && $(track2) python-mode: create -azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION namespace: azure.maps.service package-name: azure-maps-service From bf04622578098a379eac9d5a3ac69b15d2251610 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Thu, 13 May 2021 10:28:00 +0200 Subject: [PATCH 128/210] Remove python track1 and add net track2. --- specification/maps/data-plane/readme.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/specification/maps/data-plane/readme.md b/specification/maps/data-plane/readme.md index 293579a911ba..4d9eac147c2f 100644 --- a/specification/maps/data-plane/readme.md +++ b/specification/maps/data-plane/readme.md @@ -101,11 +101,10 @@ This is not used by Autorest itself. ```yaml $(swagger-to-sdk) swagger-to-sdk: - - repo: azure-sdk-for-python - repo: azure-sdk-for-python-track2 - repo: azure-sdk-for-java - repo: azure-sdk-for-js - - repo: azure-sdk-for-net + - repo: azure-sdk-for-net-track2 - repo: azure-sdk-for-go after_scripts: - bundle install From b075813e937f55179bf1e289009c41f5f4be8228 Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Wed, 12 May 2021 10:09:50 -0700 Subject: [PATCH 129/210] Search - reduce number of responses for common cases --- .../DEM/preview/1.0/elevation.json | 2 - ...ree.json => GetSearchPOICategoryTree.json} | 0 .../Search/preview/1.0/search.json | 284 ++++-------------- 3 files changed, 66 insertions(+), 220 deletions(-) rename specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/{GetPOICategoryTree.json => GetSearchPOICategoryTree.json} (100%) diff --git a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json index d351718f4414..1a0c2b23ec5c 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json +++ b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json @@ -204,7 +204,6 @@ "collectionFormat": "pipes", "items": { "type": "array", - "collectionFormat": "csv", "items": { "type": "string", "pattern": "\\s*[-]?\\d+[.]\\d+\\s*[,]\\s*[-]?\\d+[.]\\d+\\s*" @@ -350,7 +349,6 @@ "description": "The string that represents the rectangular area of a bounding box. The bounds parameter is defined by the 4 bounding box coordinates, with WGS84 longitude and latitude of the southwest corner followed by WGS84 longitude and latitude of the northeast corner. The string is presented in the following format: `[SouthwestCorner_Longitude, SouthwestCorner_Latitude, NortheastCorner_Longitude, NortheastCorner_Latitude]`.", "required": true, "type": "array", - "collectionFormat": "csv", "items": { "type": "string" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetPOICategoryTree.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchPOICategoryTree.json similarity index 100% rename from specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetPOICategoryTree.json rename to specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchPOICategoryTree.json diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json index 33e49b96ca68..e297eb68691e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json @@ -209,7 +209,6 @@ ] } }, - "collectionFormat": "csv", "x-ms-parameter-location": "method" }, "ExtendedPostalCodesFor": { @@ -241,7 +240,6 @@ "items": { "type": "integer" }, - "collectionFormat": "csv", "x-ms-parameter-location": "method" }, "CountrySet": { @@ -252,7 +250,6 @@ "items": { "type": "string" }, - "collectionFormat": "csv", "x-ms-parameter-location": "method" }, "Radius": { @@ -278,7 +275,6 @@ "items": { "type": "string" }, - "collectionFormat": "csv", "x-ms-parameter-location": "method" }, "ConnectorSet": { @@ -352,7 +348,6 @@ ] } }, - "collectionFormat": "csv", "x-ms-parameter-location": "method" }, "OpeningHours": { @@ -536,7 +531,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/SearchFuzzyResponse" + "$ref": "#/definitions/SearchCommonResponse" } }, "400": { @@ -639,7 +634,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/SearchPoiResponse" + "$ref": "#/definitions/SearchCommonResponse" } }, "400": { @@ -726,7 +721,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/SearchNearbyResponse" + "$ref": "#/definitions/SearchCommonResponse" } }, "400": { @@ -829,7 +824,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/SearchPoiCategoryResponse" + "$ref": "#/definitions/SearchCommonResponse" } }, "400": { @@ -856,7 +851,7 @@ "operationId": "Search_GetSearchPOICategoryTreePreview", "x-ms-examples": { "Get the POI Category Tree (only partial response shown below)": { - "$ref": "./examples/GetPOICategoryTree.json" + "$ref": "./examples/GetSearchPOICategoryTree.json" } }, "parameters": [ @@ -883,7 +878,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/PoiCategoryResponse" + "$ref": "#/definitions/SearchPoiCategoryTreeResponse" } }, "400": { @@ -974,7 +969,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/SearchAddressResponse" + "$ref": "#/definitions/SearchCommonResponse" } }, "400": { @@ -1328,7 +1323,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/SearchAddressStructuredResponse" + "$ref": "#/definitions/SearchCommonResponse" } }, "400": { @@ -1415,7 +1410,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/SearchGeometryResponse" + "$ref": "#/definitions/SearchCommonResponse" } }, "400": { @@ -1505,7 +1500,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/SearchAlongRouteResponse" + "$ref": "#/definitions/SearchCommonResponse" } }, "400": { @@ -1528,7 +1523,7 @@ }, "/search/fuzzy/batch/{format}": { "post": { - "description": "**Search Fuzzy Batch API**\n\n\n**Applies to**: S1 pricing tier.\n\n\n\nThe Search Address Batch API sends batches of queries to [Search Fuzzy API](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchfuzzy) using just a single API call. You can call Search Address Fuzzy Batch API to run either asynchronously (async) or synchronously (sync). The async API allows caller to batch up to **10,000** queries and sync API up to **100** queries.\n### Submit Synchronous Batch Request\nThe Synchronous API is recommended for lightweight batch requests. When the service receives a request, it will respond as soon as the batch items are calculated and there will be no possibility to retrieve the results later. The Synchronous API will return a timeout error (a 408 response) if the request takes longer than 60 seconds. The number of batch items is limited to **100** for this API.\n```\nPOST https://atlas.microsoft.com/search/fuzzy/batch/sync/json?api-version=1.0&subscription-key={subscription-key}\n```\n### Submit Asynchronous Batch Request\nThe Asynchronous API is appropriate for processing big volumes of relatively complex search requests\n- It allows the retrieval of results in a separate call (multiple downloads are possible).\n- The asynchronous API is optimized for reliability and is not expected to run into a timeout.\n- The number of batch items is limited to **10,000** for this API.\n\nWhen you make a request by using async request, by default the service returns a 202 response code along a redirect URL in the Location field of the response header. This URL should be checked periodically until the response data or error information is available.\nThe asynchronous responses are stored for **14** days. The redirect URL returns a 404 response if used after the expiration period.\n\nPlease note that asynchronous batch request is a long-running request. Here's a typical sequence of operations:\n1. Client sends a Search Address Batch `POST` request to Azure Maps\n2. The server will respond with one of the following:\n\n > HTTP `202 Accepted` - Batch request has been accepted.\n\n > HTTP `Error` - There was an error processing your Batch request. This could either be a `400 Bad Request` or any other `Error` status code.\n\n3. If the batch request was accepted successfully, the `Location` header in the response contains the URL to download the results of the batch request.\n This status URI looks like following:\n\n```\n GET https://atlas.microsoft.com/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\n4. Client issues a `GET` request on the _download URL_ obtained in Step 3 to download the batch results.\n\n### POST Body for Batch Request\nTo send the _search fuzzy_ queries you will use a `POST` request where the request body will contain the `batchItems` array in `json` format and the `Content-Type` header will be set to `application/json`. Here's a sample request body containing 5 _search fuzzy_ queries:\n\n\n```json\n{\n \"batchItems\": [\n {\"query\": \"?query=atm&lat=47.639769&lon=-122.128362&radius=5000&limit=5\"},\n {\"query\": \"?query=Statue Of Liberty&limit=2\"},\n {\"query\": \"?query=Starbucks&lat=47.639769&lon=-122.128362&radius=5000\"},\n {\"query\": \"?query=Space Needle\"},\n {\"query\": \"?query=pizza&limit=10\"}\n ]\n}\n```\n\nA _search fuzzy_ query in a batch is just a partial URL _without_ the protocol, base URL, path, api-version and subscription-key. It can accept any of the supported _search fuzzy_ [URI parameters](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchfuzzy#uri-parameters). The string values in the _search fuzzy_ query must be properly escaped (e.g. \" character should be escaped with \\\\ ) and it should also be properly URL-encoded.\n\n\nThe async API allows caller to batch up to **10,000** queries and sync API up to **100** queries, and the batch should contain at least **1** query.\n\n\n### Download Asynchronous Batch Results\nTo download the async batch results you will issue a `GET` request to the batch download endpoint. This _download URL_ can be obtained from the `Location` header of a successful `POST` batch request and looks like the following:\n\n```\nhttps://atlas.microsoft.com/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\nHere's the typical sequence of operations for downloading the batch results:\n1. Client sends a `GET` request using the _download URL_.\n2. The server will respond with one of the following:\n\n > HTTP `202 Accepted` - Batch request was accepted but is still being processed. Please try again in some time.\n\n > HTTP `200 OK` - Batch request successfully processed. The response body contains all the batch results.\n\n\n\n### Batch Response Model\nThe returned data content is similar for async and sync requests. When downloading the results of an async batch request, if the batch has finished processing, the response body contains the batch response. This batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests`i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item in `batchItems` contains `statusCode` and `response` fields. Each `response` in `batchItems` is of one of the following types:\n\n - [`SearchFuzzyResponse`](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchfuzzy#searchfuzzyresponse) - If the query completed successfully.\n\n - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.\n\n\nHere's a sample Batch Response with 2 _successful_ and 1 _failed_ result:\n\n\n```json\n{\n \"summary\": {\n \"successfulRequests\": 2,\n \"totalRequests\": 3\n },\n \"batchItems\": [\n {\n \"statusCode\": 200,\n \"response\":\n {\n \"summary\": {\n \"query\": \"atm\"\n },\n \"results\": [\n {\n \"type\": \"POI\",\n \"poi\": {\n \"name\": \"ATM at Wells Fargo\"\n },\n \"address\": {\n \"country\": \"United States Of America\",\n \"freeformAddress\": \"3240 157th Ave NE, Redmond, WA 98052\"\n }\n }\n ]\n }\n },\n {\n \"statusCode\": 200,\n \"response\":\n {\n \"summary\": {\n \"query\": \"statue of liberty\"\n },\n \"results\": [\n {\n \"type\": \"POI\",\n \"poi\": {\n \"name\": \"Statue of Liberty\"\n },\n \"address\": {\n \"country\": \"United States Of America\",\n \"freeformAddress\": \"New York, NY 10004\"\n }\n }\n ]\n }\n },\n {\n \"statusCode\": 400,\n \"response\":\n {\n \"error\":\n {\n \"code\": \"400 BadRequest\",\n \"message\": \"Bad request: one or more parameters were incorrectly specified or are mutually exclusive.\"\n }\n }\n }\n ]\n}\n```", + "description": "**Search Fuzzy Batch API**\n\n\n**Applies to**: S1 pricing tier.\n\n\n\nThe Search Address Batch API sends batches of queries to [Search Fuzzy API](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchfuzzy) using just a single API call. You can call Search Address Fuzzy Batch API to run either asynchronously (async) or synchronously (sync). The async API allows caller to batch up to **10,000** queries and sync API up to **100** queries.\n### Submit Synchronous Batch Request\nThe Synchronous API is recommended for lightweight batch requests. When the service receives a request, it will respond as soon as the batch items are calculated and there will be no possibility to retrieve the results later. The Synchronous API will return a timeout error (a 408 response) if the request takes longer than 60 seconds. The number of batch items is limited to **100** for this API.\n```\nPOST https://atlas.microsoft.com/search/fuzzy/batch/sync/json?api-version=1.0&subscription-key={subscription-key}\n```\n### Submit Asynchronous Batch Request\nThe Asynchronous API is appropriate for processing big volumes of relatively complex search requests\n- It allows the retrieval of results in a separate call (multiple downloads are possible).\n- The asynchronous API is optimized for reliability and is not expected to run into a timeout.\n- The number of batch items is limited to **10,000** for this API.\n\nWhen you make a request by using async request, by default the service returns a 202 response code along a redirect URL in the Location field of the response header. This URL should be checked periodically until the response data or error information is available.\nThe asynchronous responses are stored for **14** days. The redirect URL returns a 404 response if used after the expiration period.\n\nPlease note that asynchronous batch request is a long-running request. Here's a typical sequence of operations:\n1. Client sends a Search Address Batch `POST` request to Azure Maps\n2. The server will respond with one of the following:\n\n > HTTP `202 Accepted` - Batch request has been accepted.\n\n > HTTP `Error` - There was an error processing your Batch request. This could either be a `400 Bad Request` or any other `Error` status code.\n\n3. If the batch request was accepted successfully, the `Location` header in the response contains the URL to download the results of the batch request.\n This status URI looks like following:\n\n```\n GET https://atlas.microsoft.com/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\n4. Client issues a `GET` request on the _download URL_ obtained in Step 3 to download the batch results.\n\n### POST Body for Batch Request\nTo send the _search fuzzy_ queries you will use a `POST` request where the request body will contain the `batchItems` array in `json` format and the `Content-Type` header will be set to `application/json`. Here's a sample request body containing 5 _search fuzzy_ queries:\n\n\n```json\n{\n \"batchItems\": [\n {\"query\": \"?query=atm&lat=47.639769&lon=-122.128362&radius=5000&limit=5\"},\n {\"query\": \"?query=Statue Of Liberty&limit=2\"},\n {\"query\": \"?query=Starbucks&lat=47.639769&lon=-122.128362&radius=5000\"},\n {\"query\": \"?query=Space Needle\"},\n {\"query\": \"?query=pizza&limit=10\"}\n ]\n}\n```\n\nA _search fuzzy_ query in a batch is just a partial URL _without_ the protocol, base URL, path, api-version and subscription-key. It can accept any of the supported _search fuzzy_ [URI parameters](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchfuzzy#uri-parameters). The string values in the _search fuzzy_ query must be properly escaped (e.g. \" character should be escaped with \\\\ ) and it should also be properly URL-encoded.\n\n\nThe async API allows caller to batch up to **10,000** queries and sync API up to **100** queries, and the batch should contain at least **1** query.\n\n\n### Download Asynchronous Batch Results\nTo download the async batch results you will issue a `GET` request to the batch download endpoint. This _download URL_ can be obtained from the `Location` header of a successful `POST` batch request and looks like the following:\n\n```\nhttps://atlas.microsoft.com/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\nHere's the typical sequence of operations for downloading the batch results:\n1. Client sends a `GET` request using the _download URL_.\n2. The server will respond with one of the following:\n\n > HTTP `202 Accepted` - Batch request was accepted but is still being processed. Please try again in some time.\n\n > HTTP `200 OK` - Batch request successfully processed. The response body contains all the batch results.\n\n\n\n### Batch Response Model\nThe returned data content is similar for async and sync requests. When downloading the results of an async batch request, if the batch has finished processing, the response body contains the batch response. This batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests`i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item in `batchItems` contains `statusCode` and `response` fields. Each `response` in `batchItems` is of one of the following types:\n\n - [`SearchCommonResponse`](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchfuzzy#searchcommonresponse) - If the query completed successfully.\n\n - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.\n\n\nHere's a sample Batch Response with 2 _successful_ and 1 _failed_ result:\n\n\n```json\n{\n \"summary\": {\n \"successfulRequests\": 2,\n \"totalRequests\": 3\n },\n \"batchItems\": [\n {\n \"statusCode\": 200,\n \"response\":\n {\n \"summary\": {\n \"query\": \"atm\"\n },\n \"results\": [\n {\n \"type\": \"POI\",\n \"poi\": {\n \"name\": \"ATM at Wells Fargo\"\n },\n \"address\": {\n \"country\": \"United States Of America\",\n \"freeformAddress\": \"3240 157th Ave NE, Redmond, WA 98052\"\n }\n }\n ]\n }\n },\n {\n \"statusCode\": 200,\n \"response\":\n {\n \"summary\": {\n \"query\": \"statue of liberty\"\n },\n \"results\": [\n {\n \"type\": \"POI\",\n \"poi\": {\n \"name\": \"Statue of Liberty\"\n },\n \"address\": {\n \"country\": \"United States Of America\",\n \"freeformAddress\": \"New York, NY 10004\"\n }\n }\n ]\n }\n },\n {\n \"statusCode\": 400,\n \"response\":\n {\n \"error\":\n {\n \"code\": \"400 BadRequest\",\n \"message\": \"Bad request: one or more parameters were incorrectly specified or are mutually exclusive.\"\n }\n }\n }\n ]\n}\n```", "operationId": "Search_PostSearchFuzzyBatch", "x-ms-long-running-operation": true, "x-ms-long-running-operation-options": { @@ -1595,7 +1590,7 @@ }, "/search/address/batch/{format}": { "post": { - "description": "**Search Address Batch API**\n\n\n**Applies to**: S1 pricing tier.\n\n\n\nThe Search Address Batch API sends batches of queries to [Search Address API](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchaddress) using just a single API call. You can call Search Address Batch API to run either asynchronously (async) or synchronously (sync). The async API allows caller to batch up to **10,000** queries and sync API up to **100** queries.\n### Submit Synchronous Batch Request\nThe Synchronous API is recommended for lightweight batch requests. When the service receives a request, it will respond as soon as the batch items are calculated and there will be no possibility to retrieve the results later. The Synchronous API will return a timeout error (a 408 response) if the request takes longer than 60 seconds. The number of batch items is limited to **100** for this API.\n```\nPOST https://atlas.microsoft.com/search/address/batch/sync/json?api-version=1.0&subscription-key={subscription-key}\n```\n### Submit Asynchronous Batch Request\nThe Asynchronous API is appropriate for processing big volumes of relatively complex search requests\n- It allows the retrieval of results in a separate call (multiple downloads are possible).\n- The asynchronous API is optimized for reliability and is not expected to run into a timeout.\n- The number of batch items is limited to **10,000** for this API.\n\nWhen you make a request by using async request, by default the service returns a 202 response code along a redirect URL in the Location field of the response header. This URL should be checked periodically until the response data or error information is available.\nThe asynchronous responses are stored for **14** days. The redirect URL returns a 404 response if used after the expiration period.\n\nPlease note that asynchronous batch request is a long-running request. Here's a typical sequence of operations:\n1. Client sends a Search Address Batch `POST` request to Azure Maps\n2. The server will respond with one of the following:\n\n > HTTP `202 Accepted` - Batch request has been accepted.\n\n > HTTP `Error` - There was an error processing your Batch request. This could either be a `400 Bad Request` or any other `Error` status code.\n\n3. If the batch request was accepted successfully, the `Location` header in the response contains the URL to download the results of the batch request.\n This status URI looks like following:\n\n```\n GET https://atlas.microsoft.com/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\n4. Client issues a `GET` request on the _download URL_ obtained in Step 3 to download the batch results.\n\n### POST Body for Batch Request\nTo send the _search address_ queries you will use a `POST` request where the request body will contain the `batchItems` array in `json` format and the `Content-Type` header will be set to `application/json`. Here's a sample request body containing 5 _search address_ queries:\n\n\n```json\n{\n \"batchItems\": [\n {\"query\": \"?query=400 Broad St, Seattle, WA 98109&limit=3\"},\n {\"query\": \"?query=One, Microsoft Way, Redmond, WA 98052&limit=3\"},\n {\"query\": \"?query=350 5th Ave, New York, NY 10118&limit=1\"},\n {\"query\": \"?query=Pike Pl, Seattle, WA 98101&lat=47.610970&lon=-122.342469&radius=1000\"},\n {\"query\": \"?query=Champ de Mars, 5 Avenue Anatole France, 75007 Paris, France&limit=1\"}\n ]\n}\n```\n\nA _search address_ query in a batch is just a partial URL _without_ the protocol, base URL, path, api-version and subscription-key. It can accept any of the supported _search address_ [URI parameters](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchaddress#uri-parameters). The string values in the _search address_ query must be properly escaped (e.g. \" character should be escaped with \\\\ ) and it should also be properly URL-encoded.\n\n\nThe async API allows caller to batch up to **10,000** queries and sync API up to **100** queries, and the batch should contain at least **1** query.\n\n\n### Download Asynchronous Batch Results\nTo download the async batch results you will issue a `GET` request to the batch download endpoint. This _download URL_ can be obtained from the `Location` header of a successful `POST` batch request and looks like the following:\n\n```\nhttps://atlas.microsoft.com/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\nHere's the typical sequence of operations for downloading the batch results:\n1. Client sends a `GET` request using the _download URL_.\n2. The server will respond with one of the following:\n\n > HTTP `202 Accepted` - Batch request was accepted but is still being processed. Please try again in some time.\n\n > HTTP `200 OK` - Batch request successfully processed. The response body contains all the batch results.\n\n\n\n### Batch Response Model\nThe returned data content is similar for async and sync requests. When downloading the results of an async batch request, if the batch has finished processing, the response body contains the batch response. This batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests`i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item in `batchItems` contains `statusCode` and `response` fields. Each `response` in `batchItems` is of one of the following types:\n\n - [`SearchAddressResponse`](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchaddress#searchaddressresponse) - If the query completed successfully.\n\n - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.\n\n\nHere's a sample Batch Response with 2 _successful_ and 1 _failed_ result:\n\n\n```json\n{\n \"summary\": {\n \"successfulRequests\": 2,\n \"totalRequests\": 3\n },\n \"batchItems\": [\n {\n \"statusCode\": 200,\n \"response\":\n {\n \"summary\": {\n \"query\": \"one microsoft way redmond wa 98052\"\n },\n \"results\": [\n {\n \"position\": {\n \"lat\": 47.63989,\n \"lon\": -122.12509\n }\n }\n ]\n }\n },\n {\n \"statusCode\": 200,\n \"response\":\n {\n \"summary\": {\n \"query\": \"pike pl seattle wa 98101\"\n },\n \"results\": [\n {\n \"position\": {\n \"lat\": 47.60963,\n \"lon\": -122.34215\n }\n }\n ]\n }\n },\n {\n \"statusCode\": 400,\n \"response\":\n {\n \"error\":\n {\n \"code\": \"400 BadRequest\",\n \"message\": \"Bad request: one or more parameters were incorrectly specified or are mutually exclusive.\"\n }\n }\n }\n ]\n}\n```", + "description": "**Search Address Batch API**\n\n\n**Applies to**: S1 pricing tier.\n\n\n\nThe Search Address Batch API sends batches of queries to [Search Address API](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchaddress) using just a single API call. You can call Search Address Batch API to run either asynchronously (async) or synchronously (sync). The async API allows caller to batch up to **10,000** queries and sync API up to **100** queries.\n### Submit Synchronous Batch Request\nThe Synchronous API is recommended for lightweight batch requests. When the service receives a request, it will respond as soon as the batch items are calculated and there will be no possibility to retrieve the results later. The Synchronous API will return a timeout error (a 408 response) if the request takes longer than 60 seconds. The number of batch items is limited to **100** for this API.\n```\nPOST https://atlas.microsoft.com/search/address/batch/sync/json?api-version=1.0&subscription-key={subscription-key}\n```\n### Submit Asynchronous Batch Request\nThe Asynchronous API is appropriate for processing big volumes of relatively complex search requests\n- It allows the retrieval of results in a separate call (multiple downloads are possible).\n- The asynchronous API is optimized for reliability and is not expected to run into a timeout.\n- The number of batch items is limited to **10,000** for this API.\n\nWhen you make a request by using async request, by default the service returns a 202 response code along a redirect URL in the Location field of the response header. This URL should be checked periodically until the response data or error information is available.\nThe asynchronous responses are stored for **14** days. The redirect URL returns a 404 response if used after the expiration period.\n\nPlease note that asynchronous batch request is a long-running request. Here's a typical sequence of operations:\n1. Client sends a Search Address Batch `POST` request to Azure Maps\n2. The server will respond with one of the following:\n\n > HTTP `202 Accepted` - Batch request has been accepted.\n\n > HTTP `Error` - There was an error processing your Batch request. This could either be a `400 Bad Request` or any other `Error` status code.\n\n3. If the batch request was accepted successfully, the `Location` header in the response contains the URL to download the results of the batch request.\n This status URI looks like following:\n\n```\n GET https://atlas.microsoft.com/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\n4. Client issues a `GET` request on the _download URL_ obtained in Step 3 to download the batch results.\n\n### POST Body for Batch Request\nTo send the _search address_ queries you will use a `POST` request where the request body will contain the `batchItems` array in `json` format and the `Content-Type` header will be set to `application/json`. Here's a sample request body containing 5 _search address_ queries:\n\n\n```json\n{\n \"batchItems\": [\n {\"query\": \"?query=400 Broad St, Seattle, WA 98109&limit=3\"},\n {\"query\": \"?query=One, Microsoft Way, Redmond, WA 98052&limit=3\"},\n {\"query\": \"?query=350 5th Ave, New York, NY 10118&limit=1\"},\n {\"query\": \"?query=Pike Pl, Seattle, WA 98101&lat=47.610970&lon=-122.342469&radius=1000\"},\n {\"query\": \"?query=Champ de Mars, 5 Avenue Anatole France, 75007 Paris, France&limit=1\"}\n ]\n}\n```\n\nA _search address_ query in a batch is just a partial URL _without_ the protocol, base URL, path, api-version and subscription-key. It can accept any of the supported _search address_ [URI parameters](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchaddress#uri-parameters). The string values in the _search address_ query must be properly escaped (e.g. \" character should be escaped with \\\\ ) and it should also be properly URL-encoded.\n\n\nThe async API allows caller to batch up to **10,000** queries and sync API up to **100** queries, and the batch should contain at least **1** query.\n\n\n### Download Asynchronous Batch Results\nTo download the async batch results you will issue a `GET` request to the batch download endpoint. This _download URL_ can be obtained from the `Location` header of a successful `POST` batch request and looks like the following:\n\n```\nhttps://atlas.microsoft.com/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\nHere's the typical sequence of operations for downloading the batch results:\n1. Client sends a `GET` request using the _download URL_.\n2. The server will respond with one of the following:\n\n > HTTP `202 Accepted` - Batch request was accepted but is still being processed. Please try again in some time.\n\n > HTTP `200 OK` - Batch request successfully processed. The response body contains all the batch results.\n\n\n\n### Batch Response Model\nThe returned data content is similar for async and sync requests. When downloading the results of an async batch request, if the batch has finished processing, the response body contains the batch response. This batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests`i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item in `batchItems` contains `statusCode` and `response` fields. Each `response` in `batchItems` is of one of the following types:\n\n - [`SearchCommonResponse`](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchaddress#SearchCommonResponse) - If the query completed successfully.\n\n - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.\n\n\nHere's a sample Batch Response with 2 _successful_ and 1 _failed_ result:\n\n\n```json\n{\n \"summary\": {\n \"successfulRequests\": 2,\n \"totalRequests\": 3\n },\n \"batchItems\": [\n {\n \"statusCode\": 200,\n \"response\":\n {\n \"summary\": {\n \"query\": \"one microsoft way redmond wa 98052\"\n },\n \"results\": [\n {\n \"position\": {\n \"lat\": 47.63989,\n \"lon\": -122.12509\n }\n }\n ]\n }\n },\n {\n \"statusCode\": 200,\n \"response\":\n {\n \"summary\": {\n \"query\": \"pike pl seattle wa 98101\"\n },\n \"results\": [\n {\n \"position\": {\n \"lat\": 47.60963,\n \"lon\": -122.34215\n }\n }\n ]\n }\n },\n {\n \"statusCode\": 400,\n \"response\":\n {\n \"error\":\n {\n \"code\": \"400 BadRequest\",\n \"message\": \"Bad request: one or more parameters were incorrectly specified or are mutually exclusive.\"\n }\n }\n }\n ]\n}\n```", "operationId": "Search_PostSearchAddressBatch", "x-ms-long-running-operation": true, "x-ms-long-running-operation-options": { @@ -1729,54 +1724,6 @@ } }, "definitions": { - "PoiCategoryResponse": { - "description": "This object is returned from a successful POI Category Tree call", - "type": "object", - "properties": { - "poiCategories": { - "description": "Categories array", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/PoiCategoryResult" - } - } - } - }, - "PoiCategoryResult": { - "description": "POI category result", - "type": "object", - "properties": { - "id": { - "description": "Unique ID for the category. ID can be used to restrict search results to specific categories through other Search Service APIs, like [Get Search POI](https://docs.microsoft.com/rest/api/maps/search/getsearchpoi).", - "type": "integer", - "readOnly": true - }, - "name": { - "description": "Name of the category", - "type": "string", - "readOnly": true - }, - "childCategoryIds": { - "description": "Array of child category ids", - "type": "array", - "items": { - "type": "integer", - "readOnly": true - }, - "readOnly": true - }, - "synonyms": { - "description": "Array of alternative names of the category", - "type": "array", - "items": { - "type": "string", - "readOnly": true - }, - "readOnly": true - } - } - }, "SearchPolygonResponse": { "description": "This object is returned from a successful Search Polygon call", "type": "object", @@ -1810,8 +1757,29 @@ } } }, + "SearchCommonResponse": { + "description": "This object is returned from a successful Search calls.", + "type": "object", + "properties": { + "summary": { + "description": "Summary object for a Search API response", + "readOnly": true, + "$ref": "#/definitions/SearchCommonSummary" + }, + "results": { + "description": "A list of Search API results.", + "type": "array", + "readOnly": true, + "items": { + "description": "This type represents the Search API result object.", + "readOnly": true, + "$ref": "#/definitions/SearchCommonResult" + } + } + } + }, "SearchCommonSummary": { - "description": "Summary object for all Search API responses.", + "description": "Summary object for a Search API response.", "type": "object", "readOnly": true, "properties": { @@ -1868,7 +1836,7 @@ } }, "SearchCommonResult": { - "description": "Result object for all Search API responses.", + "description": "Result object for a Search API response.", "type": "object", "readOnly": true, "properties": { @@ -1934,108 +1902,51 @@ } } }, - "SearchFuzzyResponse": { - "description": "This object is returned from a successful Search Fuzzy call", - "type": "object", - "properties": { - "summary": { - "description": "Summary object for a Search Fuzzy response", - "readOnly": true, - "$ref": "#/definitions/SearchCommonSummary" - }, - "results": { - "description": "Results array", - "type": "array", - "readOnly": true, - "items": { - "description": "Result object for a Search Fuzzy response", - "readOnly": true, - "$ref": "#/definitions/SearchCommonResult" - } - } - } - }, - "SearchPoiResponse": { - "description": "This object is returned from a successful Search POI call", + "SearchPoiCategoryTreeResponse": { + "description": "This object is returned from a successful POI Category Tree call", "type": "object", "properties": { - "summary": { - "description": "Summary object for a Search POI response", - "readOnly": true, - "$ref": "#/definitions/SearchCommonSummary" - }, - "results": { - "description": "Results array", + "poiCategories": { + "description": "Categories array", "type": "array", "readOnly": true, "items": { - "description": "Result object for a Search POI response", - "readOnly": true, - "$ref": "#/definitions/SearchCommonResult" + "$ref": "#/definitions/PoiCategoryResult" } } } }, - "SearchNearbyResponse": { - "description": "This object is returned from a successful Search Nearby call", + "PoiCategoryResult": { + "description": "POI category result", "type": "object", "properties": { - "summary": { - "description": "Summary object for a Search Nearby response", - "readOnly": true, - "$ref": "#/definitions/SearchCommonSummary" + "id": { + "description": "Unique ID for the category. ID can be used to restrict search results to specific categories through other Search Service APIs, like [Get Search POI](https://docs.microsoft.com/rest/api/maps/search/getsearchpoi).", + "type": "integer", + "readOnly": true }, - "results": { - "description": "Results array", - "type": "array", - "readOnly": true, - "items": { - "description": "Result object for a Search Nearby response", - "readOnly": true, - "$ref": "#/definitions/SearchCommonResult" - } - } - } - }, - "SearchPoiCategoryResponse": { - "description": "This object is returned from a successful Search POI Category call", - "type": "object", - "properties": { - "summary": { - "description": "Summary object for a Search POI Category response", - "readOnly": true, - "$ref": "#/definitions/SearchCommonSummary" + "name": { + "description": "Name of the category", + "type": "string", + "readOnly": true }, - "results": { - "description": "Results array", + "childCategoryIds": { + "description": "Array of child category ids", "type": "array", - "readOnly": true, "items": { - "description": "Result object for a Search POI Category response", - "readOnly": true, - "$ref": "#/definitions/SearchCommonResult" - } - } - } - }, - "SearchAddressResponse": { - "description": "This object is returned from a successful Search Address call", - "type": "object", - "properties": { - "summary": { - "description": "Summary object for a Search Address response", - "readOnly": true, - "$ref": "#/definitions/SearchCommonSummary" + "type": "integer", + "readOnly": true + }, + "readOnly": true }, - "results": { - "description": "Results array", + "synonyms": { + "description": "Array of alternative names of the category", "type": "array", - "readOnly": true, "items": { - "description": "Result object for a Search Address response", - "readOnly": true, - "$ref": "#/definitions/SearchCommonResult" - } + "type": "string", + "readOnly": true + }, + "readOnly": true } } }, @@ -2110,69 +2021,6 @@ } } }, - "SearchAddressStructuredResponse": { - "description": "This object is returned from a successful Search Address Structured call", - "type": "object", - "properties": { - "summary": { - "description": "Summary object for a Search Address Structured response", - "readOnly": true, - "$ref": "#/definitions/SearchCommonSummary" - }, - "results": { - "description": "Results array", - "type": "array", - "readOnly": true, - "items": { - "description": "Result object for a Search Address Structured response", - "readOnly": true, - "$ref": "#/definitions/SearchCommonResult" - } - } - } - }, - "SearchGeometryResponse": { - "description": "This object is returned from a successful Search By Geometry call", - "type": "object", - "properties": { - "summary": { - "description": "Summary object for a Search Geometry response", - "readOnly": true, - "$ref": "#/definitions/SearchCommonSummary" - }, - "results": { - "description": "A list of Search Inside Geometry results.", - "type": "array", - "readOnly": true, - "items": { - "description": "This type represents the Search Inside Geometry result object.", - "readOnly": true, - "$ref": "#/definitions/SearchCommonResult" - } - } - } - }, - "SearchAlongRouteResponse": { - "description": "This object is returned from a successful Search Along Route call.", - "type": "object", - "properties": { - "summary": { - "description": "Summary object for a Search Along Route response", - "readOnly": true, - "$ref": "#/definitions/SearchCommonSummary" - }, - "results": { - "description": "A list of Search Along Route results.", - "type": "array", - "readOnly": true, - "items": { - "description": "This type represents the Search Along Route result object.", - "readOnly": true, - "$ref": "#/definitions/SearchCommonResult" - } - } - } - }, "SearchInsideGeometryRequestBody": { "description": "This type represents the request body for the Search Inside Geometry service.", "type": "object", @@ -2663,12 +2511,12 @@ ], "properties": { "response": { - "description": "The result of the query. SearchFuzzyResponse if the query completed successfully, ErrorResponse otherwise.", + "description": "The result of the query. SearchCommonResponse if the query completed successfully, ErrorResponse otherwise.", "type": "object", "readOnly": true, "allOf": [ { - "$ref": "#/definitions/SearchFuzzyResponse" + "$ref": "#/definitions/SearchCommonResponse" }, { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" @@ -2706,12 +2554,12 @@ ], "properties": { "response": { - "description": "The result of the query. SearchAddressResponse if the query completed successfully, ErrorResponse otherwise.", + "description": "The result of the query. SearchCommonResponse if the query completed successfully, ErrorResponse otherwise.", "type": "object", "readOnly": true, "allOf": [ { - "$ref": "#/definitions/SearchAddressResponse" + "$ref": "#/definitions/SearchCommonResponse" }, { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" From 77ac3f9266f459088c12bbc58475764f6872a8f0 Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Thu, 13 May 2021 00:14:45 -0700 Subject: [PATCH 130/210] Elevation - fix input param for GetDataForPolyLine --- .../Microsoft.Maps/DEM/preview/1.0/elevation.json | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json index 1a0c2b23ec5c..ab51a06e93cc 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json +++ b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json @@ -203,11 +203,8 @@ "type": "array", "collectionFormat": "pipes", "items": { - "type": "array", - "items": { - "type": "string", - "pattern": "\\s*[-]?\\d+[.]\\d+\\s*[,]\\s*[-]?\\d+[.]\\d+\\s*" - } + "type": "string", + "pattern": "\\s*[-]?\\d+[.]\\d+\\s*[,]\\s*[-]?\\d+[.]\\d+\\s*" } }, { From 3b6e4da185366043e24d00006248f10a36a165df Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Thu, 13 May 2021 00:53:04 -0700 Subject: [PATCH 131/210] Spatial - remove duplicated & unused definitions --- .../Spatial/preview/1.0/spatial.json | 317 +++--------------- 1 file changed, 54 insertions(+), 263 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json index 5ba84bb7a9db..f1f4fb5f9514 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json @@ -11,8 +11,7 @@ ], "consumes": [], "produces": [ - "application/json", - "application/xml" + "application/json" ], "securityDefinitions": { "azure_auth": { @@ -43,33 +42,7 @@ ], "responses": {}, "parameters": { - "TextFormat": { - "name": "format", - "description": "Desired format of the response. Value can be either _json_ or _xml_.", - "type": "string", - "in": "path", - "required": true, - "enum": [ - "json", - "xml" - ], - "x-ms-enum": { - "name": "TextFormat", - "modelAsString": true, - "values": [ - { - "value": "json", - "description": "[The JavaScript Object Notation Data Interchange Format](https://tools.ietf.org/html/rfc8259)" - }, - { - "value": "xml", - "description": "[The Extensible Markup Language](https://www.w3.org/TR/xml/)" - } - ] - }, - "x-ms-parameter-location": "method" - }, - "Mode": { + "GeofenceMode": { "name": "mode", "in": "query", "description": "Mode of the geofencing async event mechanism.", @@ -94,7 +67,7 @@ }, "x-ms-parameter-location": "method" }, - "UdidSpatial": { + "SpatialUploadUdid": { "name": "udid", "in": "query", "description": "The unique id returned from [Data Upload API](https://docs.microsoft.com/en-us/rest/api/maps/data/uploadPreview) after uploading a valid GeoJSON FeatureCollection object. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.3) for details. All the feature's properties should contain `geometryId`, which is used for identifying the geometry and is case-sensitive.", @@ -102,7 +75,7 @@ "type": "string", "x-ms-parameter-location": "method" }, - "SpatialDataUploadFormat": { + "SpatialUploadDataFormat": { "name": "dataFormat", "description": "Data format of the content being uploaded. Currently, only `geojson` format is supported.", "type": "string", @@ -112,7 +85,7 @@ "geojson" ], "x-ms-enum": { - "name": "SpatialDataUploadFormat", + "name": "SpatialUploadDataFormat", "modelAsString": true, "values": [ { @@ -122,6 +95,24 @@ ] }, "x-ms-parameter-location": "method" + }, + "SpatialLatitude": { + "name": "lat", + "x-ms-client-name": "Latitude", + "description": "The latitude of the location being passed. Example: 48.36.", + "type": "number", + "in": "query", + "required": true, + "x-ms-parameter-location": "method" + }, + "SpatialLongitude": { + "name": "lon", + "x-ms-client-name": "Longitude", + "description": "The longitude of the location being passed. Example: -124.63.", + "type": "number", + "in": "query", + "required": true, + "x-ms-parameter-location": "method" } }, "paths": { @@ -130,7 +121,7 @@ "description": "**Search Geofence Get API**\n\n**Applies to:** S1 Pricing tier.\n\nThe Geofence Get API allows you to retrieve the proximity of a coordinate to a \ngeofence that has been uploaded to the Data service. You can use the \n[Data Upload API](https://docs.microsoft.com/en-us/rest/api/maps/data/uploadPreview) to upload \na geofence or set of fences. See [Geofencing GeoJSON data](https://docs.microsoft.com/en-us/azure/azure-maps/geofence-geojson) \nfor more details on the geofence data format. To query the proximity of a coordinate, you supply the location of the object you are tracking as well\nas the ID for the fence or set of fences, and the response will contain information about\nthe distance from the outer edge of the geofence. A negative value signifies that the \ncoordinate is inside of the fence while a positive value means that it is outside of the\nfence.

This API can be used for a variety of scenarios that include things like asset \ntracking, fleet management, or setting up alerts for moving objects.\n\nThe API supports [integration with Event Grid](https://docs.microsoft.com/azure/azure-maps/azure-maps-event-grid-integration). The isAsync parameter is used to enable integration with Event Grid (disabled by default).\nTo test this API, you can upload the sample data from Post Geofence API examples(Request Body) via Data Upload API and replace the [udid] from the sample request below with the udid returned by Data Upload API.\n\n\n### Geofencing InnerError code\n\nIn geofencing response error contract, `innererror` is an object containing service specific information about the error. `code` is a property in `innererror` which can map to a specific geofencing error type. The table belows shows the code mapping between all the known client error type to the corresponding geofencing error `message`.\n\ninnererror.code | error.message\n---------------------------- | -------------------------------------- \nNullDeviceId | Device Id should not be null.\nNullUdid\t | Udid should not be null.\nUdidWrongFormat| Udid should be acquired from user data ingestion API.\nInvalidUserTime| Usertime is invalid.\nInvalidSearchBuffer| Searchbuffer is invalid.\nInvalidSearchRange| The value range of searchbuffer should be from 0 to 500 meters.\nInvalidLatLon| Lat and/or lon parameters are invalid.\nInvalidIsAsyncValue| The IsAsync parameter is invalid.\nInvalidModeValue| The mode parameter invalid.\nInvalidJson| Geofencing data is not a valid json file.\nNotSupportedGeoJson| Geofencing data can't be read as a Feature or FeatureCollections.\nInvalidGeoJson| Geofencing data is invalid.\nNoUserDataWithAccountOrSubscription| Can't find user geofencing data with provided account-id and/or subscription-id.\nNoUserDataWithUdid|\tCan't find user geofencing data with provided udId.", "operationId": "Spatial_GetGeofence", "x-ms-examples": { - "Geofence": { + "GetGeofence": { "$ref": "./examples/GetGeofence.json" } }, @@ -162,18 +153,10 @@ "type": "string" }, { - "name": "lat", - "in": "query", - "description": "The latitude of the location being passed. Example: 48.36.", - "required": true, - "type": "number" + "$ref": "#/parameters/SpatialLatitude" }, { - "name": "lon", - "in": "query", - "description": "The longitude of the location being passed. Example: -124.63.", - "required": true, - "type": "number" + "$ref": "#/parameters/SpatialLongitude" }, { "name": "z", @@ -202,12 +185,9 @@ "type": "boolean" }, { - "$ref": "#/parameters/Mode" + "$ref": "#/parameters/GeofenceMode" } ], - "produces": [ - "application/json" - ], "responses": { "200": { "description": "OK The X-Correlation-id header value is present in an async call's response and the Event Grid event data. It helps correlate the async call’s response with the corresponding Event Grid event.", @@ -242,7 +222,7 @@ "description": "**Search Geofence Post API**\n**Applies to:** S1 Pricing tier.\nThe Geofence Post API allows you to retrieve the proximity of a coordinate to a provided geofence or set of fences. With POST call, you do not have to upload the fence data in advance, instead you supply the location of the object you are tracking in query parameters as well as the fence or set of fences data in post request body. See [Geofencing GeoJSON data](https://docs.microsoft.com/en-us/azure/azure-maps/geofence-geojson) for more details on the geofence data format. The response will contain information about the distance from the outer edge of the geofence. A negative value signifies that the coordinate is inside of the fence while a positive value means that it is outside of the fence.

This API can be used for a variety of scenarios that include things like asset tracking, fleet management, or setting up alerts for moving objects.\n\nThe API supports [integration with Event Grid](https://docs.microsoft.com/azure/azure-maps/azure-maps-event-grid-integration). The isAsync parameter is used to enable integration with Event Grid (disabled by default).", "operationId": "Spatial_PostGeofence", "x-ms-examples": { - "Geofence": { + "PostGeofence": { "$ref": "./examples/PostGeofence.json" } }, @@ -267,18 +247,10 @@ "type": "string" }, { - "name": "lat", - "in": "query", - "description": "The latitude of the location being passed. Example: 48.36.", - "required": true, - "type": "number" + "$ref": "#/parameters/SpatialLatitude" }, { - "name": "lon", - "in": "query", - "description": "The longitude of the location being passed. Example: -124.63.", - "required": true, - "type": "number" + "$ref": "#/parameters/SpatialLongitude" }, { "name": "z", @@ -307,7 +279,7 @@ "type": "boolean" }, { - "$ref": "#/parameters/Mode" + "$ref": "#/parameters/GeofenceMode" }, { "name": "searchGeofenceRequestBody", @@ -319,9 +291,6 @@ } } ], - "produces": [ - "application/json" - ], "responses": { "200": { "description": "OK The X-Correlation-id header value is present in an async call's response and the Event Grid event data. It helps correlate the async call’s response with the corresponding Event Grid event.", @@ -385,9 +354,6 @@ } } ], - "produces": [ - "application/json" - ], "responses": { "200": { "description": "OK", @@ -434,7 +400,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" }, { - "$ref": "#/parameters/UdidSpatial" + "$ref": "#/parameters/SpatialUploadUdid" }, { "name": "distances", @@ -444,9 +410,6 @@ "type": "string" } ], - "produces": [ - "application/json" - ], "responses": { "200": { "description": "OK", @@ -495,18 +458,10 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" }, { - "name": "lat", - "in": "query", - "description": "The base point latitude of the location being passed. Example: 47.622942.", - "required": true, - "type": "number" + "$ref": "#/parameters/SpatialLatitude" }, { - "name": "lon", - "in": "query", - "description": "The base point longitude of the location being passed. Example: -122.316456.", - "required": true, - "type": "number" + "$ref": "#/parameters/SpatialLongitude" }, { "name": "numberOfClosestPoints", @@ -524,14 +479,11 @@ } } ], - "produces": [ - "application/json" - ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/PostClosestPointResponse" + "$ref": "#/definitions/ClosestPointResponse" } }, "400": { @@ -573,21 +525,13 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" }, { - "$ref": "#/parameters/UdidSpatial" + "$ref": "#/parameters/SpatialUploadUdid" }, { - "name": "lat", - "in": "query", - "description": "The base point latitude of the location being passed. Example: 47.622942.", - "required": true, - "type": "number" + "$ref": "#/parameters/SpatialLatitude" }, { - "name": "lon", - "in": "query", - "description": "The base point longitude of the location being passed. Example: -122.316456.", - "required": true, - "type": "number" + "$ref": "#/parameters/SpatialLongitude" }, { "name": "numberOfClosestPoints", @@ -596,14 +540,11 @@ "type": "integer" } ], - "produces": [ - "application/json" - ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/GetClosestPointResponse" + "$ref": "#/definitions/ClosestPointResponse" } }, "400": { @@ -647,18 +588,10 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" }, { - "name": "lat", - "in": "query", - "description": "The base point latitude of the location being passed. Example: 47.622942.", - "required": true, - "type": "number" + "$ref": "#/parameters/SpatialLatitude" }, { - "name": "lon", - "in": "query", - "description": "The base point longitude of the location being passed. Example: -122.316456.", - "required": true, - "type": "number" + "$ref": "#/parameters/SpatialLongitude" }, { "name": "pointInPolygonRequestBody", @@ -670,14 +603,11 @@ } } ], - "produces": [ - "application/json" - ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/PostPointInPolygonResponse" + "$ref": "#/definitions/PointInPolygonResponse" } }, "400": { @@ -719,31 +649,20 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" }, { - "$ref": "#/parameters/UdidSpatial" + "$ref": "#/parameters/SpatialUploadUdid" }, { - "name": "lat", - "in": "query", - "description": "The base point latitude of the location being passed. Example: 47.622942.", - "required": true, - "type": "number" + "$ref": "#/parameters/SpatialLatitude" }, { - "name": "lon", - "in": "query", - "description": "The base point longitude of the location being passed. Example: -122.316456.", - "required": true, - "type": "number" + "$ref": "#/parameters/SpatialLongitude" } ], - "produces": [ - "application/json" - ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/GetPointInPolygonResponse" + "$ref": "#/definitions/PointInPolygonResponse" } }, "400": { @@ -794,9 +713,6 @@ "type": "string" } ], - "produces": [ - "application/json" - ], "responses": { "200": { "description": "OK", @@ -962,67 +878,20 @@ } } }, - "BoundingBoxResponse": { - "description": "This object is returned from a successful Spatial BoundingBox call.", + "ClosestPointResponse": { + "description": "This object is returned from a successful Spatial Closest Point call", "type": "object", "properties": { "summary": { - "description": "Summary of the call.", - "type": "object", - "readOnly": true, - "properties": { - "udid": { - "description": "The udid for the user data if one exists", - "type": "string", - "readOnly": true - }, - "information": { - "description": "The information about what happened during the call.", - "type": "string", - "readOnly": true - } - } - }, - "result": { - "description": "The bounding box of the input feature collection.", - "type": "object", - "readOnly": true, - "properties": { - "feature": { - "description": "The resulting feature with bounding box geometry", - "type": "object", - "readOnly": true - } - } - } - } - }, - "GetClosestPointResponse": { - "description": "This object is returned from a successful Get Spatial Closest Point call", - "type": "object", - "properties": { - "summary": { - "$ref": "#/definitions/GetClosestPointSummary" - }, - "result": { - "$ref": "#/definitions/ClosestPointResult" - } - } - }, - "PostClosestPointResponse": { - "description": "This object is returned from a successful Post Spatial Closest Point call", - "type": "object", - "properties": { - "summary": { - "$ref": "#/definitions/PostClosestPointSummary" + "$ref": "#/definitions/ClosestPointSummary" }, "result": { "$ref": "#/definitions/ClosestPointResult" } } }, - "GetClosestPointSummary": { - "description": "Get Closest Point Summary object", + "ClosestPointSummary": { + "description": "Closest Point Summary object", "type": "object", "readOnly": true, "properties": { @@ -1041,26 +910,6 @@ } } }, - "PostClosestPointSummary": { - "description": "Post Closest Point Summary object", - "type": "object", - "readOnly": true, - "properties": { - "sourcePoint": { - "$ref": "#/definitions/SpatialCoordinate" - }, - "udid": { - "description": "A unique data id (udid) for the uploaded content. Udid is not applicable for POST spatial operations(set to null)", - "type": "string", - "readOnly": true - }, - "information": { - "description": "Processing information", - "type": "string", - "readOnly": true - } - } - }, "ClosestPointResult": { "description": "Closest Point Result Array", "type": "array", @@ -1088,51 +937,19 @@ } } }, - "GetPointInPolygonResponse": { - "description": "Returns true if point is within the polygon, false otherwise", - "type": "object", - "properties": { - "summary": { - "$ref": "#/definitions/GetPointInPolygonSummary" - }, - "result": { - "$ref": "#/definitions/PointInPolygonResult" - } - } - }, - "PostPointInPolygonResponse": { + "PointInPolygonResponse": { "description": "Returns true if point is within the polygon, false otherwise", "type": "object", "properties": { "summary": { - "$ref": "#/definitions/PostPointInPolygonSummary" + "$ref": "#/definitions/PointInPolygonSummary" }, "result": { "$ref": "#/definitions/PointInPolygonResult" } } }, - "GetPointInPolygonSummary": { - "description": "Point In Polygon Summary object", - "type": "object", - "readOnly": true, - "properties": { - "sourcePoint": { - "$ref": "#/definitions/SpatialCoordinate" - }, - "udid": { - "description": "A unique data id (udid) for the uploaded content", - "type": "string", - "readOnly": true - }, - "information": { - "description": "Processing information", - "type": "string", - "readOnly": true - } - } - }, - "PostPointInPolygonSummary": { + "PointInPolygonSummary": { "description": "Point In Polygon Summary object", "type": "object", "readOnly": true, @@ -1206,32 +1023,6 @@ } } } - }, - "UploadDataRequestBody": { - "description": "This type represents the request body for Spatial Data Upload.", - "type": "object" - }, - "UploadDataResponse": { - "description": "The response model for the spatial data upload API. Returns a unique data id (udid) for the uploaded content.", - "type": "object", - "properties": { - "udid": { - "description": "A unique data id (udid) for the uploaded content.", - "type": "string", - "readOnly": true - } - } - }, - "UploadDataAcceptedResponse": { - "description": "The response model for the spatial data upload API. Returns the current status and a status URI.", - "type": "object", - "properties": { - "status": { - "description": "Current status of the long running upload operation.", - "type": "string", - "readOnly": true - } - } } } } From 89c1bbe93f8fb0ab34cf3e42ea289129a59b1c64 Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Thu, 13 May 2021 04:34:31 -0700 Subject: [PATCH 132/210] Data - fix model validation --- .../Microsoft.Maps/Data/preview/1.0/data.json | 26 ++++++++----------- .../Microsoft.Maps/Data/preview/2.0/data.json | 26 ++++++++----------- 2 files changed, 22 insertions(+), 30 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json index ebff11ca649a..466aa6a8e778 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json @@ -16,9 +16,7 @@ "schemes": [ "https" ], - "consumes": [ - "application/json" - ], + "consumes": [], "produces": [ "application/json" ], @@ -103,9 +101,6 @@ "$ref": "./examples/Upload.json" } }, - "consumes": [ - "application/json" - ], "parameters": [ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" @@ -121,10 +116,12 @@ }, { "name": "UploadContent", + "in": "body", "description": "The content to upload.", - "type": "file", - "in": "formData", - "required": true + "required": true, + "schema": { + "type": "object" + } } ], "responses": { @@ -171,9 +168,6 @@ "$ref": "./examples/Update.json" } }, - "consumes": [ - "application/json" - ], "parameters": [ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" @@ -189,10 +183,12 @@ }, { "name": "UpdateContent", + "in": "body", "description": "The new content that will update/replace the previously uploaded content.", - "type": "file", - "in": "formData", - "required": true + "required": true, + "schema": { + "type": "object" + } } ], "responses": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json index 4b23e964c881..90dd5326d38b 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json @@ -16,9 +16,7 @@ "schemes": [ "https" ], - "consumes": [ - "application/json" - ], + "consumes": [], "produces": [ "application/json" ], @@ -150,9 +148,6 @@ "$ref": "./examples/Upload.json" } }, - "consumes": [ - "application/json" - ], "parameters": [ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" @@ -171,10 +166,12 @@ }, { "name": "UploadContent", + "in": "body", "description": "The content to upload.", - "type": "file", - "in": "formData", - "required": true + "required": true, + "schema": { + "type": "object" + } } ], "responses": { @@ -265,9 +262,6 @@ "$ref": "./examples/Update.json" } }, - "consumes": [ - "application/json" - ], "parameters": [ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" @@ -286,10 +280,12 @@ }, { "name": "UpdateContent", + "in": "body", "description": "The new content that will update/replace the previously uploaded content.", - "type": "file", - "in": "formData", - "required": true + "required": true, + "schema": { + "type": "object" + } } ], "responses": { From b6629e48451be97fc591506a757bcd0846cd8a0e Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Fri, 14 May 2021 02:12:20 -0700 Subject: [PATCH 133/210] Tileset - remove 204 body Add x-ms-pageable to where it suits --- .../Microsoft.Maps/Alias/preview/2.0/alias.json | 4 ++++ .../Microsoft.Maps/Dataset/preview/2.0/dataset.json | 4 ++++ .../DwgConversion/preview/2.0/dwgconversion.json | 4 ++++ .../FeatureState/preview/2.0/featurestate.json | 4 ++++ .../Microsoft.Maps/Tileset/preview/1.0/tileset.json | 9 +-------- .../Microsoft.Maps/Tileset/preview/2.0/tileset.json | 4 ++++ 6 files changed, 21 insertions(+), 8 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json index 0882bb57e0db..9adaa29dd109 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json @@ -168,6 +168,10 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" } ], + "x-ms-pageable": { + "itemName": "aliases", + "nextLinkName": "nextLink" + }, "responses": { "200": { "description": "List alias request completed successfully. The response body contains a list of all the previously created aliases.", diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json index 613002aa040f..f35d495fac6b 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json @@ -192,6 +192,10 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" } ], + "x-ms-pageable": { + "itemName": "datasets", + "nextLinkName": "nextLink" + }, "responses": { "200": { "description": "The dataset request completed successfully. The response body contains the previously created dataset.", diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json index 853c96754024..f88c597791e1 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json @@ -197,6 +197,10 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" } ], + "x-ms-pageable": { + "itemName": "conversions", + "nextLinkName": "nextLink" + }, "responses": { "200": { "description": "List request completed successfully.", diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json index 9fdb2c50d876..b8fc380281e9 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json @@ -206,6 +206,10 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" } ], + "x-ms-pageable": { + "itemName": "statesetDetailList", + "nextLinkName": "nextLink" + }, "responses": { "200": { "description": "The list stateset request completed successfully. The response body contains a list of all the previously created statesets.", diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json index 22d68160ce0e..f902d2036cec 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json @@ -229,10 +229,7 @@ ], "responses": { "204": { - "description": "Tileset delete request completed successfully.", - "schema": { - "$ref": "#/definitions/TilesetDeleteResponse" - } + "description": "Tileset delete request completed successfully." }, "400": { "$ref": "../../../Common/preview/1.0/common.json#/responses/400" @@ -306,10 +303,6 @@ } } } - }, - "TilesetDeleteResponse": { - "description": "The response model for the Delete API. The response body will be empty signifying there's no content available for the `tilesetId` anymore.", - "type": "object" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json index 52bb57710e73..85c8363290dc 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json @@ -186,6 +186,10 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" } ], + "x-ms-pageable": { + "itemName": "tilesets", + "nextLinkName": "nextLink" + }, "responses": { "200": { "description": "List tileset request completed successfully. The response body contains a list of all tilesets.", From 623a564631448c17cac5415f8c718b319f2c147d Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Fri, 14 May 2021 04:08:07 -0700 Subject: [PATCH 134/210] Timezone & Traffic - fix "produces" fields and Traffic file responses --- .../Timezone/preview/1.0/timezone.json | 37 ++------ .../Traffic/preview/1.0/traffic.json | 89 ++++++++----------- 2 files changed, 46 insertions(+), 80 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json index 4ffd91040078..7f6d3417dab4 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json +++ b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json @@ -11,8 +11,7 @@ ], "consumes": [], "produces": [ - "application/json", - "application/xml" + "application/json" ], "securityDefinitions": { "azure_auth": { @@ -177,10 +176,7 @@ "500": { "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } - }, - "produces": [ - "application/json" - ] + } } }, "/timezone/byCoordinates/{format}": { @@ -250,10 +246,7 @@ "500": { "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } - }, - "produces": [ - "application/json" - ] + } } }, "/timezone/enumWindows/{format}": { @@ -301,10 +294,7 @@ "500": { "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } - }, - "produces": [ - "application/json" - ] + } } }, "/timezone/enumIana/{format}": { @@ -352,10 +342,7 @@ "500": { "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } - }, - "produces": [ - "application/json" - ] + } } }, "/timezone/ianaVersion/{format}": { @@ -403,10 +390,7 @@ "500": { "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } - }, - "produces": [ - "application/json" - ] + } } }, "/timezone/windowsToIana/{format}": { @@ -449,7 +433,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/TimezoneWindowToIanaResult" + "$ref": "#/definitions/TimezoneWindowsToIanaResult" } }, "400": { @@ -467,10 +451,7 @@ "500": { "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } - }, - "produces": [ - "application/json" - ] + } } } }, @@ -612,7 +593,7 @@ } } }, - "TimezoneWindowToIanaResult": { + "TimezoneWindowsToIanaResult": { "description": "This object is returned from a successful Timezone Windows To IANA call", "type": "array", "items": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json index 8cb6519b3993..d23ae61b481b 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json +++ b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json @@ -11,8 +11,7 @@ ], "consumes": [], "produces": [ - "application/json", - "application/xml" + "application/json" ], "securityDefinitions": { "azure_auth": { @@ -69,27 +68,6 @@ }, "x-ms-parameter-location": "method" }, - "RasterTileFormat": { - "name": "format", - "description": "Desired format of the response. Possible value: png.", - "type": "string", - "in": "path", - "required": true, - "enum": [ - "png" - ], - "x-ms-enum": { - "name": "RasterTileFormat", - "modelAsString": true, - "values": [ - { - "value": "png", - "description": "An image in the png format. Supports zoom levels 0 through 18." - } - ] - }, - "x-ms-parameter-location": "method" - }, "TileFormat": { "name": "format", "description": "Desired format of the response. Possible values are png & pbf.", @@ -212,11 +190,26 @@ "maximum": 20 } ], + "produces": [ + "application/json", + "image/jpeg", + "image/png", + "image/pbf", + "application/vnd.mapbox-vector-tile" + ], "responses": { "200": { - "description": "OK", + "description": "This image is returned from a successful Traffic Flow Tile call", "schema": { - "$ref": "#/definitions/TrafficFlowTileResult" + "type": "object", + "format": "file", + "readOnly": true + }, + "headers": { + "Content-Type": { + "type": "string", + "description": "The content-type for the response." + } } }, "400": { @@ -234,10 +227,7 @@ "500": { "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } - }, - "produces": [ - "application/json" - ] + } } }, "/traffic/flow/segment/{format}": { @@ -427,11 +417,26 @@ "type": "string" } ], + "produces": [ + "application/json", + "image/jpeg", + "image/png", + "image/pbf", + "application/vnd.mapbox-vector-tile" + ], "responses": { "200": { - "description": "OK", + "description": "This object is returned from a successful Traffic Incident Tile call", "schema": { - "$ref": "#/definitions/TrafficIncidentTileResult" + "type": "object", + "format": "file", + "readOnly": true + }, + "headers": { + "Content-Type": { + "type": "string", + "description": "The content-type for the response." + } } }, "400": { @@ -449,10 +454,7 @@ "500": { "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } - }, - "produces": [ - "application/json" - ] + } } }, "/traffic/incident/detail/{format}": { @@ -720,12 +722,6 @@ } }, "definitions": { - "TrafficFlowTileResult": { - "description": "This image is returned from a successful Traffic Flow Tile call", - "type": "string", - "format": "binary", - "readOnly": true - }, "TrafficFlowSegmentResult": { "description": "This object is returned from a successful Traffic Flow Segment call", "type": "object", @@ -797,17 +793,6 @@ } } }, - "TrafficIncidentTileResult": { - "description": "This object is returned from a successful Traffic Incident Tile call", - "type": "object", - "properties": { - "image": { - "description": "Image property", - "type": "string", - "readOnly": true - } - } - }, "TrafficIncidentDetailResult": { "description": "This object is returned from a successful Traffic incident Detail call", "type": "object", From 8fbad7248a763a4e6c87ea5faa43720542649d15 Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Fri, 14 May 2021 04:40:48 -0700 Subject: [PATCH 135/210] Add azure-sdk-for-net-track2 references to the -pr repo --- specificationRepositoryConfiguration.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/specificationRepositoryConfiguration.json b/specificationRepositoryConfiguration.json index 7a501283b316..6d176f075f69 100644 --- a/specificationRepositoryConfiguration.json +++ b/specificationRepositoryConfiguration.json @@ -66,6 +66,11 @@ "integrationRepository": "azure-sdk/azure-sdk-for-net-pr", "mainRepository": "Azure/azure-sdk-for-net-pr" }, + "azure-sdk-for-net-track2": { + "integrationRepository": "azure-sdk/azure-sdk-for-net-pr", + "mainRepository": "Azure/azure-sdk-for-net-pr", + "configFilePath": "eng/swagger_to_sdk_config.json" + }, "azure-sdk-for-python": { "integrationRepository": "azure-sdk/azure-sdk-for-python-pr", "mainRepository": "Azure/azure-sdk-for-python-pr", From 4c2e51bf17187a669ebe4cd4748d17482e82ccb1 Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Fri, 14 May 2021 07:10:11 -0700 Subject: [PATCH 136/210] Use azure-sdk-for-net without track2 since it's not enabled in the CI yet. --- .../Microsoft.Maps/FeatureState/preview/2.0/featurestate.json | 2 +- .../Microsoft.Maps/Tileset/preview/1.0/examples/Delete.json | 4 +--- specification/maps/data-plane/readme.md | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json index b8fc380281e9..f54aa7377944 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json @@ -207,7 +207,7 @@ } ], "x-ms-pageable": { - "itemName": "statesetDetailList", + "itemName": "statesets", "nextLinkName": "nextLink" }, "responses": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/examples/Delete.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/examples/Delete.json index 645e0fcb102b..6862a224a928 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/examples/Delete.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/examples/Delete.json @@ -6,9 +6,7 @@ "tilesetId": "25084fb7-307a-4720-8f91-7952a0b91012" }, "responses": { - "204": { - "body": {} - }, + "204": {}, "400": { "headers": {}, "body": { diff --git a/specification/maps/data-plane/readme.md b/specification/maps/data-plane/readme.md index 4d9eac147c2f..ab30bf6afe30 100644 --- a/specification/maps/data-plane/readme.md +++ b/specification/maps/data-plane/readme.md @@ -104,7 +104,7 @@ swagger-to-sdk: - repo: azure-sdk-for-python-track2 - repo: azure-sdk-for-java - repo: azure-sdk-for-js - - repo: azure-sdk-for-net-track2 + - repo: azure-sdk-for-net - repo: azure-sdk-for-go after_scripts: - bundle install From 05f95a40e6856de1422c085f6e6b161902ef7f5a Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Fri, 14 May 2021 09:31:47 -0700 Subject: [PATCH 137/210] Weather - remove unused definitions --- .../Weather/preview/1.0/weather.json | 265 +----------------- 1 file changed, 8 insertions(+), 257 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json index 1e3c01998680..fba3505d09e5 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json +++ b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json @@ -80,7 +80,7 @@ "description": "**Get Hourly Forecast**\n\n**Applies to**: S0 and S1 pricing tiers.\n\n\nRequest detailed weather forecast by the hour for the next 1, 12, 24 (1 day), 72 (3 days), 120 (5 days), and 240 hours (10 days) for the given the given coordinate location. The API returns details such as temperature, humidity, wind, precipitation, and ultraviolet (UV) index.\n\nIn S0 you can request hourly forecast for the next 1, 12, 24 hours (1 day), and 72 hours (3 days). In S1 you can also request hourly forecast for the next 120 (5 days) and 240 hours (10 days).", "operationId": "Weather_GetHourlyForecast", "x-ms-examples": { - "HourlyForecast": { + "GetHourlyForecast": { "$ref": "./examples/GetHourlyForecast.json" } }, @@ -147,7 +147,7 @@ "description": "**Get Minute Forecast**\n \n \n**Applies to**: S1 pricing tier.\n\n\nGet Minute Forecast service returns minute-by-minute forecasts for a given location for the next 120 minutes. Users can request weather forecasts in the interval of 1, 5 and 15 minutes. The response will include details such as the type of precipitation (including rain, snow, or a mixture of both), start time, and precipitation intensity value (dBZ).", "operationId": "Weather_GetMinuteForecast", "x-ms-examples": { - "MinuteForecast": { + "GetMinuteForecast": { "$ref": "./examples/GetMinuteForecast.json" } }, @@ -211,7 +211,7 @@ "description": "**Get Quarter-Day Forecast**\n \n \n**Applies to**: S0 and S1 pricing tiers.\n\n\nService returns detailed weather forecast by quarter-day for the next 1, 5, 10, or 15 days for a given location. Response data is presented by quarters of the day - morning, afternoon, evening, and overnight. Details such as temperature, humidity, wind, precipitation, and UV index are returned.", "operationId": "Weather_GetQuarterDayForecast", "x-ms-examples": { - "QuarterDayForecast": { + "GetQuarterDayForecast": { "$ref": "./examples/GetQuarterDayForecast.json" } }, @@ -278,7 +278,7 @@ "description": "**Get Current Conditions**\n \n \n**Applies to**: S0 and S1 pricing tiers.\n\n\nGet Current Conditions service returns detailed current weather conditions such as precipitation, temperature and wind for a given coordinate location. Also, observations from the past 6 or 24 hours for a particular location can be retrieved. The basic information returned with the response include details such as observation date and time, brief description of the weather conditions, weather icon, precipitation indicator flags, and temperature. Additional details such as RealFeel™ Temperature and UV index are also returned.", "operationId": "Weather_GetCurrentConditions", "x-ms-examples": { - "CurrentConditions": { + "GetCurrentConditions": { "$ref": "./examples/GetCurrentConditions.json" } }, @@ -351,7 +351,7 @@ "description": "**Get Daily Forecast**\n \n \n**Applies to**: S0 and S1 pricing tiers.\n\n\nThe service returns detailed weather forecast such as temperature and wind by day for the next 1, 5, 10, 15, 25, or 45 days for a given coordinate location. The response include details such as temperature, wind, precipitation, air quality, and UV index.\n\nIn S0 you can request daily forecast for the next 1, 5, 10, and 15 days. In S1 you can also request daily forecast for the next 25 days, and 45 days.", "operationId": "Weather_GetDailyForecast", "x-ms-examples": { - "DailyForecast": { + "GetDailyForecast": { "$ref": "./examples/GetDailyForecast.json" } }, @@ -418,7 +418,7 @@ "description": "**Get Weather along route**\n \n \n **Applies to**: S1 pricing tier.\n\n Weather along a route API returns hyper local (one kilometer or less), up-to-the-minute weather nowcasts, weather hazard assessments, and notifications along a route described as a sequence of waypoints. \n This includes a list of weather hazards affecting the waypoint or route, and the aggregated hazard index for each waypoint might be used to paint each portion of a route according to how safe it is for the driver. When submitting the waypoints, it is recommended to stay within, or close to, the distance that can be traveled within 120-mins or shortly after. Data is updated every five minutes. \n \n The service supplements Azure Maps [Route Service](https://docs.microsoft.com/rest/api/maps/route) that allows you to first request a route between an origin and a destination and use that as an input for Weather Along Route endpoint.\n \n In addition, the service supports scenarios to generate weather notifications for waypoints that experience an increase in intensity of a weather hazard. For example, if the vehicle is expected to begin experiencing heavy rain as it reaches a waypoint, a weather notification for heavy rain will be generated for that waypoint allowing the end product to display a heavy rain notification before the driver reaches that waypoint. \n The trigger for when to display the notification for a waypoint could be based, for example, on a [geofence](https://docs.microsoft.com/azure/azure-maps/tutorial-iot-hub-maps), or selectable distance to the waypoint.\n\n The API covers all regions of the planet except latitudes above Greenland and Antarctica.", "operationId": "Weather_GetWeatherAlongRoute", "x-ms-examples": { - "WeatherAlongRoute": { + "GetWeatherAlongRoute": { "$ref": "./examples/GetWeatherAlongRoute.json" } }, @@ -476,7 +476,7 @@ "description": "**Get Severe Weather Alerts**\n\n**Applies to**: S0 and S1 pricing tiers.\n\nSevere weather phenomenon can significantly impact our everyday life and business operations. For example, severe weather conditions such as tropical storms, high winds or flooding can close roads and force logistics companies to reroute their fleet causing delays in reaching destinations and breaking the cold chain of refrigerated food products.  Azure Maps Severe Weather Alerts API returns the severe weather alerts that are available worldwide from both official Government Meteorological Agencies and leading global to regional weather alert providers. The service can return details such as alert type, category, level and detailed description about the active severe alerts for the requested location, like hurricanes, thunderstorms, lightning, heat waves or forest fires.", "operationId": "Weather_GetSevereWeatherAlerts", "x-ms-examples": { - "SevereWeatherAlert": { + "GetSevereWeatherAlerts": { "$ref": "./examples/GetSevereWeatherAlerts.json" } }, @@ -540,7 +540,7 @@ "description": "**Get Daily Indices**\n\n**Applies to**: S0 and S1 pricing tiers.\n\nThere may be times when you want to know if the weather conditions are optimal for a specific activity, for example, for outdoor construction, indoor activities, running or farming including soil moisture information. Azure Maps Indices API returns index values that will guide end users to plan future activities. For example, a health mobile application can notify users that today is good weather for running or for other outdoors activities like for playing golf, and retail stores can optimize their digital marketing campaigns based on predicted index values. The service returns in daily indices values for current and next 5, 10 and 15 days starting from current day.", "operationId": "Weather_GetDailyIndices", "x-ms-examples": { - "DailyIndices": { + "GetDailyIndices": { "$ref": "./examples/GetDailyIndices.json" } }, @@ -2014,255 +2014,6 @@ "description": "A textual explanation that can be used for display purposes to summarize the index value and category. For example, when the index value for Flight Delays is very good, the description will be \"Conditions are excellent for flying!\"." } } - }, - "CurrentAirQualityResponse": { - "type": "object", - "description": "This object is returned from a successful Get Current Air Quality call.", - "properties": { - "results": { - "type": "array", - "items": { - "$ref": "#/definitions/AirQuality" - }, - "description": "A list of all air quality results for the queried location." - } - } - }, - "HourlyAirQualityForecastResponse": { - "type": "object", - "description": "This object is returned from a successful Get Hourly Air Quality Forecast call.", - "properties": { - "forecasts": { - "type": "array", - "items": { - "$ref": "#/definitions/AirQuality" - }, - "description": "A list of all hourly air quality forecasts for the queried location." - } - } - }, - "DailyAirQualityForecastResponse": { - "type": "object", - "description": "This object is returned from a successful Get Daily Air Quality Forecast call.", - "properties": { - "forecasts": { - "type": "array", - "items": { - "$ref": "#/definitions/DailyAirQuality" - }, - "description": "A list of all daily air quality forecasts for the queried location." - } - } - }, - "AirQuality": { - "type": "object", - "description": "Information about the air quality in a specific location at a specific time.", - "properties": { - "dateTime": { - "type": "string", - "description": "Date and time of the current observation displayed in ISO 8601 format, for example, 2019-10-27T19:39:57-08:00." - }, - "index": { - "type": "number", - "format": "float", - "description": "Air quality rating on a scale set by local regulating bodies. Scales can vary widely based on location. See [Wikipedia](https://en.wikipedia.org/wiki/Air_quality_index) for more information." - }, - "globalIndex": { - "type": "number", - "format": "float", - "description": "Internationally normalized air quality rating on a scale from 0 to 300 and up, with higher numbers representing worse air quality." - }, - "dominantPollutant": { - "type": "string", - "description": "The pollutant with the highest concentration." - }, - "category": { - "type": "string", - "description": "One-word description of the air quality in the requested language. For example, \"Excellent\"." - }, - "categoryColor": { - "type": "string", - "description": "A unique color corresponding to the category of this air quality result." - }, - "description": { - "type": "string", - "description": "A textual explanation of this air quality result in the requested language." - }, - "pollutants": { - "type": "array", - "items": { - "$ref": "#/definitions/Pollutant" - }, - "description": "Information about individual pollutants." - } - } - }, - "DailyAirQuality": { - "type": "object", - "description": "Information about the air quality in a specific location at a specific time.", - "properties": { - "dateTime": { - "type": "string", - "description": "Date and time of the current observation displayed in ISO 8601 format, for example, 2019-10-27T19:39:57-08:00." - }, - "index": { - "type": "number", - "format": "float", - "description": "Air quality rating on a scale set by local regulating bodies. Scales can vary widely based on location. See [Wikipedia](https://en.wikipedia.org/wiki/Air_quality_index) for more information." - }, - "globalIndex": { - "type": "number", - "format": "float", - "description": "Internationally normalized air quality rating on a scale from 0 to 300 and up, with higher numbers representing worse air quality." - }, - "dominantPollutant": { - "$ref": "#/definitions/DominantPollutant", - "description": "The pollutant with the highest concentration." - }, - "category": { - "type": "string", - "description": "One-word description of the air quality in the requested language. For example, \"Excellent\"." - }, - "categoryColor": { - "type": "string", - "description": "A unique color corresponding to the category of this air quality result." - }, - "description": { - "type": "string", - "description": "A textual explanation of this air quality result in the requested language." - } - } - }, - "Pollutant": { - "type": "object", - "description": "Detailed information about an individual pollutant. Not returned if `pollutants`=false.", - "properties": { - "type": { - "$ref": "#/definitions/PollutantType", - "description": "Type of pollutant. Please note that more may be added at any time." - }, - "name": { - "type": "string", - "description": "The name of the pollutant in English." - }, - "index": { - "type": "number", - "format": "float", - "description": "Air quality rating on a scale set by local regulating bodies. Scales can vary widely based on location. See [Wikipedia](https://en.wikipedia.org/wiki/Air_quality_index) for more information." - }, - "globalIndex": { - "type": "number", - "format": "float", - "description": "Internationally normalized air quality rating on a scale from 0 to 300 and up, with higher numbers representing worse air quality." - }, - "concentration": { - "$ref": "#/definitions/Concentration", - "description": "An object containing the number of pollutant particles per volume of air." - } - } - }, - "PollutantType": { - "type": "string", - "description": "Type of pollutant. Please note that more may be added at any time.", - "enum": [ - "CO", - "NO2", - "O3", - "PM2.5", - "PM10", - "SO2" - ], - "x-ms-enum": { - "name": "PollutantType", - "modelAsString": true, - "values": [ - { - "value": "CO", - "description": "Carbon monoxide (\"CO\")" - }, - { - "value": "NO2", - "description": "Nitrogen dioxide (\"NO2\")" - }, - { - "value": "O3", - "description": "Ozone (\"O3\")" - }, - { - "value": "PM2.5", - "description": "Particulate matter 2.5 (\"PM2.5\")" - }, - { - "value": "PM10", - "description": "Particulate matter 10 (\"PM10\")" - }, - { - "value": "SO2", - "description": "Sulfur dioxide (\"SO2\")" - } - ] - } - }, - "Concentration": { - "type": "object", - "description": "An object containing the number of pollutant particles per volume of air.", - "properties": { - "value": { - "type": "number", - "format": "float", - "description": "The numerical value indicating the concentration of the corresponding pollutant." - }, - "unit": { - "type": "string", - "description": "Type of unit for the concentration of the pollutant." - }, - "unitType": { - "type": "integer", - "description": "Numeric ID value associated with the type of unit being displayed. Can be used for unit translation. Please refer to [Weather Service Concepts](https://aka.ms/AzureMapsWeatherConcepts) for details." - } - } - }, - "DominantPollutant": { - "type": "string", - "description": "Type of pollutant. Please note that more may be added at any time.", - "enum": [ - "Carbon Monoxide", - "Nitrogen Dioxide", - "Ozone", - "Particulate Matter 2.5", - "Particulate Matter 10", - "Sulfur Dioxide" - ], - "x-ms-enum": { - "name": "DominantPollutant", - "modelAsString": true, - "values": [ - { - "value": "Carbon Monoxide", - "description": "Carbon monoxide (\"CO\")" - }, - { - "value": "Nitrogen Dioxide", - "description": "Nitrogen dioxide (\"NO2\")" - }, - { - "value": "Ozone", - "description": "Ozone (\"O3\")" - }, - { - "value": "Particulate Matter 2.5", - "description": "Particulate matter 2.5 (\"PM2.5\")" - }, - { - "value": "Particulate Matter 10", - "description": "Particulate matter 10 (\"PM10\")" - }, - { - "value": "Sulfur Dioxide", - "description": "Sulfur dioxide (\"SO2\")" - } - ] - } } } } From d9b6a9b8fb9a0442775814dfdda8bb85258690ec Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Fri, 14 May 2021 11:09:54 -0700 Subject: [PATCH 138/210] WFS 1.0 - remove unused definition and standardize naming --- .../Search/preview/1.0/search.json | 5 ++ .../{DeleteItem.json => DeleteFeature.json} | 0 .../{GetItem.json => GetFeature.json} | 0 .../{GetItems.json => GetFeatures.json} | 0 .../Microsoft.Maps/WFS/preview/1.0/wfs.json | 77 ++++--------------- 5 files changed, 20 insertions(+), 62 deletions(-) rename specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/{DeleteItem.json => DeleteFeature.json} (100%) rename specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/{GetItem.json => GetFeature.json} (100%) rename specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/{GetItems.json => GetFeatures.json} (100%) diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json index e297eb68691e..c0d7627d574a 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json @@ -209,6 +209,7 @@ ] } }, + "collectionFormat": "csv", "x-ms-parameter-location": "method" }, "ExtendedPostalCodesFor": { @@ -240,6 +241,7 @@ "items": { "type": "integer" }, + "collectionFormat": "csv", "x-ms-parameter-location": "method" }, "CountrySet": { @@ -250,6 +252,7 @@ "items": { "type": "string" }, + "collectionFormat": "csv", "x-ms-parameter-location": "method" }, "Radius": { @@ -275,6 +278,7 @@ "items": { "type": "string" }, + "collectionFormat": "csv", "x-ms-parameter-location": "method" }, "ConnectorSet": { @@ -348,6 +352,7 @@ ] } }, + "collectionFormat": "csv", "x-ms-parameter-location": "method" }, "OpeningHours": { diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/DeleteItem.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/DeleteFeature.json similarity index 100% rename from specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/DeleteItem.json rename to specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/DeleteFeature.json diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetItem.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetFeature.json similarity index 100% rename from specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetItem.json rename to specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetFeature.json diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetItems.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetFeatures.json similarity index 100% rename from specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetItems.json rename to specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetFeatures.json diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json index d9641c896de0..ac72c17b6065 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json @@ -118,7 +118,7 @@ "200": { "description": "Ok", "schema": { - "$ref": "#/definitions/LandingPage" + "$ref": "#/definitions/LandingPageResponse" } }, "400": { @@ -142,7 +142,7 @@ "/wfs/datasets/{datasetId}/conformance": { "get": { "description": "Creator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. The Web Feature Service (WFS) API is part of Creator. WFS API follows the [Open Geospatial Consortium API standard for Features](http://docs.opengeospatial.org/is/17-069r3/17-069r3.html) to query [Datasets](https://docs.microsoft.com/en-us/rest/api/maps/dataset/createpreview). \nA dataset consists of multiple feature collections. A feature collection is a collection of features of a similar type, based on a common schema.\nThe Get Requirements Classes lists all requirements classes specified in the standard that the server conforms to.", - "operationId": "WFS_GetRequirementsClassesPreview", + "operationId": "WFS_GetConformancePreview", "x-ms-examples": { "GetConformance": { "$ref": "./examples/GetConformance.json" @@ -166,7 +166,7 @@ "200": { "description": "Ok", "schema": { - "$ref": "#/definitions/ReqClasses" + "$ref": "#/definitions/ConformanceResponse" } }, "400": { @@ -190,7 +190,7 @@ "/wfs/datasets/{datasetId}/collections": { "get": { "description": "Creator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. The Web Feature Service (WFS) API is part of Creator. WFS API follows the [Open Geospatial Consortium API standard for Features](http://docs.opengeospatial.org/is/17-069r3/17-069r3.html) to query [Datasets](https://docs.microsoft.com/en-us/rest/api/maps/dataset/createpreview). \nA dataset consists of multiple feature collections. A feature collection is a collection of features of a similar type, based on a common schema.\nThe Collections Description API provides descriptions of all the collections in a given dataset.", - "operationId": "WFS_CollectionsDescriptionPreview", + "operationId": "WFS_GetCollectionsPreview", "x-ms-examples": { "GetCollections": { "$ref": "./examples/GetCollections.json" @@ -238,7 +238,7 @@ "/wfs/datasets/{datasetId}/collections/{collectionId}": { "get": { "description": "Creator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. The Web Feature Service (WFS) API is part of Creator. WFS API follows the [Open Geospatial Consortium API standard for Features](http://docs.opengeospatial.org/is/17-069r3/17-069r3.html) to query [Datasets](https://docs.microsoft.com/en-us/rest/api/maps/dataset/createpreview). \nA dataset consists of multiple feature collections. A feature collection is a collection of features of a similar type, based on a common schema.\n \nThe Collection Description API provides the description of a given collection. It includes the links to the operations that can be performed on the collection.", - "operationId": "WFS_CollectionDescriptionPreview", + "operationId": "WFS_GetCollectionPreview", "x-ms-examples": { "GetCollection": { "$ref": "./examples/GetCollection.json" @@ -289,7 +289,7 @@ "/wfs/datasets/{datasetId}/collections/{collectionId}/definition": { "get": { "description": "Creator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. The Web Feature Service (WFS) API is part of Creator. WFS API follows the [Open Geospatial Consortium API standard for Features](http://docs.opengeospatial.org/is/17-069r3/17-069r3.html) to query [Datasets](https://docs.microsoft.com/en-us/rest/api/maps/dataset/createpreview). \nA dataset consists of multiple feature collections. A feature collection is a collection of features of a similar type, based on a common schema.\n \nThe Collection Definition API provides the detailed data model of a given collection.", - "operationId": "WFS_CollectionDefinitionPreview", + "operationId": "WFS_GetCollectionDefinitionPreview", "x-ms-examples": { "GetCollectionDefinition": { "$ref": "./examples/GetCollectionDefinition.json" @@ -316,7 +316,7 @@ "200": { "description": "Ok", "schema": { - "$ref": "#/definitions/CollectionDefinition" + "$ref": "#/definitions/CollectionDefinitionResponse" } }, "400": { @@ -342,8 +342,8 @@ "description": "Creator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. The Web Feature Service (WFS) API is part of Creator. WFS API follows the [Open Geospatial Consortium API standard for Features](http://docs.opengeospatial.org/is/17-069r3/17-069r3.html) to query [Datasets](https://docs.microsoft.com/en-us/rest/api/maps/dataset/createpreview). \nA dataset consists of multiple feature collections. A feature collection is a collection of features of a similar type, based on a common schema.\nThe Get Features API returns the list of features in the given collection.", "operationId": "WFS_GetFeaturesPreview", "x-ms-examples": { - "Getitems": { - "$ref": "./examples/GetItems.json" + "GetFeatures": { + "$ref": "./examples/GetFeatures.json" } }, "parameters": [ @@ -403,7 +403,7 @@ "operationId": "WFS_GetFeaturePreview", "x-ms-examples": { "GetFeature": { - "$ref": "./examples/GetItem.json" + "$ref": "./examples/GetFeature.json" } }, "parameters": [ @@ -451,8 +451,8 @@ "description": "Creator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. The Web Feature Service (WFS) API is part of Creator. WFS API follows the [Open Geospatial Consortium API standard for Features](http://docs.opengeospatial.org/is/17-069r3/17-069r3.html) to query [Datasets](https://docs.microsoft.com/en-us/rest/api/maps/dataset/createpreview). \nA dataset consists of multiple feature collections. A feature collection is a collection of features of a similar type, based on a common schema.\nThe Delete Feature API deletes the feature identified by the provided id in the given collection. At this point this API supports only facility features. Deleting a facility feature deletes all the child features of that facility recursively.", "operationId": "WFS_DeleteFeaturePreview", "x-ms-examples": { - "GetFeature": { - "$ref": "./examples/DeleteItem.json" + "DeleteFeature": { + "$ref": "./examples/DeleteFeature.json" } }, "parameters": [ @@ -496,7 +496,7 @@ } }, "definitions": { - "LandingPage": { + "LandingPageResponse": { "type": "object", "required": [ "links" @@ -511,7 +511,7 @@ } } }, - "ReqClasses": { + "ConformanceResponse": { "type": "object", "required": [ "conformsTo" @@ -607,53 +607,6 @@ } } }, - "Version": { - "type": "object", - "required": [ - "version", - "revisionTimestamp", - "links" - ], - "properties": { - "version": { - "description": "version number of the dataset", - "type": "string", - "example": "1.0.0" - }, - "revisionTimestamp": { - "description": "timestamp of the revision", - "type": "string", - "example": "2020-01-02T03:04:05" - }, - "links": { - "description": "Links to other WFS endpoints.", - "type": "array", - "items": { - "$ref": "#/definitions/WfsEndpointLink" - }, - "example": [ - { - "href": "http://data.example.org/collections.json", - "rel": "self", - "type": "application/json", - "title": "this document" - }, - { - "href": "http://data.example.org/collections.html", - "rel": "alternate", - "type": "text/html", - "title": "this document as HTML" - }, - { - "href": "http://schemas.example.org/1.0/foobar.xsd", - "rel": "describedBy", - "type": "application/xml", - "title": "XML schema for Acme Corporation data" - } - ] - } - } - }, "CollectionInfo": { "type": "object", "required": [ @@ -699,7 +652,7 @@ } } }, - "CollectionDefinition": { + "CollectionDefinitionResponse": { "description": "collection of GeoJSON features", "type": "object", "required": [ From c2371a0116e8052ce9a18c63d5bb4a0e57fecc3b Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Fri, 14 May 2021 15:06:16 -0700 Subject: [PATCH 139/210] WFS 2.0 - remove unused definition and standardize naming --- .../{DeleteItem.json => DeleteFeature.json} | 0 .../{GetItem.json => GetFeature.json} | 0 .../{GetItems.json => GetFeatures.json} | 0 .../Microsoft.Maps/WFS/preview/2.0/wfs.json | 77 ++++--------------- 4 files changed, 15 insertions(+), 62 deletions(-) rename specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/{DeleteItem.json => DeleteFeature.json} (100%) rename specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/{GetItem.json => GetFeature.json} (100%) rename specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/{GetItems.json => GetFeatures.json} (100%) diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/DeleteItem.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/DeleteFeature.json similarity index 100% rename from specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/DeleteItem.json rename to specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/DeleteFeature.json diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetItem.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetFeature.json similarity index 100% rename from specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetItem.json rename to specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetFeature.json diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetItems.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetFeatures.json similarity index 100% rename from specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetItems.json rename to specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetFeatures.json diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json index 98439ae0563a..82b1ec6d841c 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json @@ -145,7 +145,7 @@ "200": { "description": "Ok", "schema": { - "$ref": "#/definitions/LandingPage" + "$ref": "#/definitions/LandingPageResponse" } }, "400": { @@ -169,7 +169,7 @@ "/wfs/datasets/{datasetId}/conformance": { "get": { "description": "**Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. [This](https://docs.microsoft.com/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.\n\nThe Web Feature Service (WFS) API is part of Creator. WFS API follows the [Open Geospatial Consortium API standard for Features](http://docs.opengeospatial.org/is/17-069r3/17-069r3.html) to query [Datasets](https://docs.microsoft.com/en-us/rest/api/maps/dataset/createpreview). \nA dataset consists of multiple feature collections. A feature collection is a collection of features of a similar type, based on a common schema.\nThe Get Requirements Classes lists all requirements classes specified in the standard that the server conforms to.", - "operationId": "WFS_GetRequirementsClasses", + "operationId": "WFS_GetConformance", "x-ms-examples": { "GetConformance": { "$ref": "./examples/GetConformance.json" @@ -193,7 +193,7 @@ "200": { "description": "Ok", "schema": { - "$ref": "#/definitions/ReqClasses" + "$ref": "#/definitions/ConformanceResponse" } }, "400": { @@ -217,7 +217,7 @@ "/wfs/datasets/{datasetId}/collections": { "get": { "description": "**Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. [This](https://docs.microsoft.com/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.\n\n The Web Feature Service (WFS) API is part of Creator. WFS API follows the [Open Geospatial Consortium API standard for Features](http://docs.opengeospatial.org/is/17-069r3/17-069r3.html) to query [Datasets](https://docs.microsoft.com/en-us/rest/api/maps/dataset/createpreview). \nA dataset consists of multiple feature collections. A feature collection is a collection of features of a similar type, based on a common schema.\nThe Collections Description API provides descriptions of all the collections in a given dataset.", - "operationId": "WFS_CollectionsDescription", + "operationId": "WFS_GetCollections", "x-ms-examples": { "GetCollections": { "$ref": "./examples/GetCollections.json" @@ -265,7 +265,7 @@ "/wfs/datasets/{datasetId}/collections/{collectionId}": { "get": { "description": "**Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. [This](https://docs.microsoft.com/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.\n\n The Web Feature Service (WFS) API is part of Creator. WFS API follows the [Open Geospatial Consortium API standard for Features](http://docs.opengeospatial.org/is/17-069r3/17-069r3.html) to query [Datasets](https://docs.microsoft.com/en-us/rest/api/maps/dataset/createpreview). \nA dataset consists of multiple feature collections. A feature collection is a collection of features of a similar type, based on a common schema.\n \nThe Collection Description API provides the description of a given collection. It includes the links to the operations that can be performed on the collection.", - "operationId": "WFS_CollectionDescription", + "operationId": "WFS_GetCollection", "x-ms-examples": { "GetCollection": { "$ref": "./examples/GetCollection.json" @@ -316,7 +316,7 @@ "/wfs/datasets/{datasetId}/collections/{collectionId}/definition": { "get": { "description": "**Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. [This](https://docs.microsoft.com/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.\n\n [This](https://docs.microsoft.com/en-us/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator. WFS API follows the [Open Geospatial Consortium API standard for Features](http://docs.opengeospatial.org/is/17-069r3/17-069r3.html) to query [Datasets](https://docs.microsoft.com/en-us/rest/api/maps/dataset/createpreview). \nA dataset consists of multiple feature collections. A feature collection is a collection of features of a similar type, based on a common schema.\n \nThe Collection Definition API provides the detailed data model of a given collection.", - "operationId": "WFS_CollectionDefinition", + "operationId": "WFS_GetCollectionDefinition", "x-ms-examples": { "GetCollectionDefinition": { "$ref": "./examples/GetCollectionDefinition.json" @@ -343,7 +343,7 @@ "200": { "description": "Ok", "schema": { - "$ref": "#/definitions/CollectionDefinition" + "$ref": "#/definitions/CollectionDefinitionResponse" } }, "400": { @@ -369,8 +369,8 @@ "description": "**Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. [This](https://docs.microsoft.com/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.\n\n The Web Feature Service (WFS) API is part of Creator. WFS API follows the [Open Geospatial Consortium API standard for Features](http://docs.opengeospatial.org/is/17-069r3/17-069r3.html) to query [Datasets](https://docs.microsoft.com/en-us/rest/api/maps/dataset/createpreview). \nA dataset consists of multiple feature collections. A feature collection is a collection of features of a similar type, based on a common schema.\nThe Get Features API returns the list of features in the given collection.", "operationId": "WFS_GetFeatures", "x-ms-examples": { - "Getitems": { - "$ref": "./examples/GetItems.json" + "GetFeatures": { + "$ref": "./examples/GetFeatures.json" } }, "parameters": [ @@ -430,7 +430,7 @@ "operationId": "WFS_GetFeature", "x-ms-examples": { "GetFeature": { - "$ref": "./examples/GetItem.json" + "$ref": "./examples/GetFeature.json" } }, "parameters": [ @@ -478,8 +478,8 @@ "description": "**Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. [This](https://docs.microsoft.com/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.\n\n The Web Feature Service (WFS) API is part of Creator. WFS API follows the [Open Geospatial Consortium API standard for Features](http://docs.opengeospatial.org/is/17-069r3/17-069r3.html) to query [Datasets](https://docs.microsoft.com/en-us/rest/api/maps/dataset/createpreview). \nA dataset consists of multiple feature collections. A feature collection is a collection of features of a similar type, based on a common schema.\nThe Delete Feature API deletes the feature identified by the provided id in the given collection. At this point this API supports only facility features. Deleting a facility feature deletes all the child features of that facility recursively.", "operationId": "WFS_DeleteFeature", "x-ms-examples": { - "GetFeature": { - "$ref": "./examples/DeleteItem.json" + "DeleteFeature": { + "$ref": "./examples/DeleteFeature.json" } }, "parameters": [ @@ -523,7 +523,7 @@ } }, "definitions": { - "LandingPage": { + "LandingPageResponse": { "type": "object", "required": [ "links" @@ -541,7 +541,7 @@ } } }, - "ReqClasses": { + "ConformanceResponse": { "type": "object", "required": [ "conformsTo" @@ -640,53 +640,6 @@ } } }, - "Version": { - "type": "object", - "required": [ - "version", - "revisionTimestamp", - "links" - ], - "properties": { - "version": { - "description": "version number of the dataset", - "type": "string", - "example": "1.0.0" - }, - "revisionTimestamp": { - "description": "timestamp of the revision", - "type": "string", - "example": "2020-01-02T03:04:05" - }, - "links": { - "description": "Links to other WFS endpoints.", - "type": "array", - "items": { - "$ref": "#/definitions/WfsEndpointLink" - }, - "example": [ - { - "href": "http://data.example.org/collections.json", - "rel": "self", - "type": "application/json", - "title": "this document" - }, - { - "href": "http://data.example.org/collections.html", - "rel": "alternate", - "type": "text/html", - "title": "this document as HTML" - }, - { - "href": "http://schemas.example.org/1.0/foobar.xsd", - "rel": "describedBy", - "type": "application/xml", - "title": "XML schema for Acme Corporation data" - } - ] - } - } - }, "CollectionInfo": { "type": "object", "required": [ @@ -735,7 +688,7 @@ } } }, - "CollectionDefinition": { + "CollectionDefinitionResponse": { "description": "collection of GeoJSON features", "type": "object", "required": [ From 48c047f4eeac6240ef10a128c9f33a893cadea44 Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Fri, 14 May 2021 15:07:13 -0700 Subject: [PATCH 140/210] Put TextFormat & GeographicResourceLocation to a common file --- .../Alias/preview/2.0/alias.json | 29 +--------- .../Common/preview/1.0/common.json | 53 +++++++++++++++++++ .../Microsoft.Maps/Data/preview/2.0/data.json | 29 +--------- .../Dataset/preview/2.0/dataset.json | 29 +--------- .../preview/2.0/dwgconversion.json | 29 +--------- .../preview/2.0/featurestate.json | 29 +--------- .../Render/preview/1.0/render.json | 34 ++---------- .../Route/preview/1.0/route.json | 32 ++--------- .../Search/preview/1.0/search.json | 46 ++++------------ .../Tileset/preview/2.0/tileset.json | 29 +--------- .../Traffic/preview/1.0/traffic.json | 32 ++--------- .../Microsoft.Maps/WFS/preview/2.0/wfs.json | 29 +--------- 12 files changed, 80 insertions(+), 320 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json index 9adaa29dd109..d77872007124 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json @@ -12,7 +12,7 @@ "hostTemplate": "{geography}.atlas.microsoft.com", "parameters": [ { - "$ref": "#/parameters/GeographicResourceLocation" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/GeographicResourceLocation" } ] }, @@ -50,33 +50,6 @@ ], "responses": {}, "parameters": { - "GeographicResourceLocation": { - "name": "geography", - "description": "This parameter specifies where the Azure Maps Creator resource is located. Valid values are us and eu.", - "in": "path", - "required": true, - "type": "string", - "default": "us", - "enum": [ - "us", - "eu" - ], - "x-ms-enum": { - "name": "GeographicResourceLocation", - "modelAsString": true, - "values": [ - { - "value": "us", - "description": "Used to access an Azure Maps Creator resource in the United States" - }, - { - "value": "eu", - "description": "Used to access an Azure Maps Creator resource in Europe" - } - ] - }, - "x-ms-parameter-location": "client" - }, "CreateCreatorDataItemId": { "name": "creatorDataItemId", "description": "The unique id that references a creator data item to be aliased.", diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index 327a7539232b..90ab779fc19d 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -582,6 +582,59 @@ ] }, "x-ms-parameter-location": "method" + }, + "TextFormat": { + "name": "format", + "description": "Desired format of the response. Value can be either _json_ or _xml_.", + "type": "string", + "in": "path", + "required": true, + "enum": [ + "json", + "xml" + ], + "x-ms-enum": { + "name": "TextFormat", + "modelAsString": true, + "values": [ + { + "value": "json", + "description": "[The JavaScript Object Notation Data Interchange Format](https://tools.ietf.org/html/rfc8259)" + }, + { + "value": "xml", + "description": "[The Extensible Markup Language](https://www.w3.org/TR/xml/)" + } + ] + }, + "x-ms-parameter-location": "method" + }, + "GeographicResourceLocation": { + "name": "geography", + "description": "This parameter specifies where the Azure Maps Creator resource is located. Valid values are us and eu.", + "in": "path", + "required": true, + "type": "string", + "default": "us", + "enum": [ + "us", + "eu" + ], + "x-ms-enum": { + "name": "GeographicResourceLocation", + "modelAsString": true, + "values": [ + { + "value": "us", + "description": "Used to access an Azure Maps Creator resource in the United States" + }, + { + "value": "eu", + "description": "Used to access an Azure Maps Creator resource in Europe" + } + ] + }, + "x-ms-parameter-location": "client" } }, "responses": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json index 90dd5326d38b..8c6903e39f41 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json @@ -9,7 +9,7 @@ "hostTemplate": "{geography}.atlas.microsoft.com", "parameters": [ { - "$ref": "#/parameters/GeographicResourceLocation" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/GeographicResourceLocation" } ] }, @@ -49,33 +49,6 @@ ], "responses": {}, "parameters": { - "GeographicResourceLocation": { - "name": "geography", - "description": "This parameter specifies where the Azure Maps Creator resource is located. Valid values are us and eu.", - "in": "path", - "required": true, - "type": "string", - "default": "us", - "enum": [ - "us", - "eu" - ], - "x-ms-enum": { - "name": "GeographicResourceLocation", - "modelAsString": true, - "values": [ - { - "value": "us", - "description": "Used to access an Azure Maps Creator resource in the United States" - }, - { - "value": "eu", - "description": "Used to access an Azure Maps Creator resource in Europe" - } - ] - }, - "x-ms-parameter-location": "client" - }, "UploadDataFormat": { "name": "dataFormat", "x-ms-client-name": "UploadDataFormat", diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json index f35d495fac6b..73af1caddb34 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json @@ -9,7 +9,7 @@ "hostTemplate": "{geography}.atlas.microsoft.com", "parameters": [ { - "$ref": "#/parameters/GeographicResourceLocation" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/GeographicResourceLocation" } ] }, @@ -50,33 +50,6 @@ ], "responses": {}, "parameters": { - "GeographicResourceLocation": { - "name": "geography", - "description": "This parameter specifies where the Azure Maps Creator resource is located. Valid values are us and eu.", - "in": "path", - "required": true, - "type": "string", - "default": "us", - "enum": [ - "us", - "eu" - ], - "x-ms-enum": { - "name": "GeographicResourceLocation", - "modelAsString": true, - "values": [ - { - "value": "us", - "description": "Used to access an Azure Maps Creator resource in the United States" - }, - { - "value": "eu", - "description": "Used to access an Azure Maps Creator resource in Europe" - } - ] - }, - "x-ms-parameter-location": "client" - }, "ConversionIdQuery": { "name": "conversionId", "description": "The unique ID used to create the dataset. The `conversionId` must have been obtained from a successful call to the Conversion Service Convert API and may be provided with multiple query parameters with same name (if more than one is provided).", diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json index f88c597791e1..b6d97f075c39 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json @@ -9,7 +9,7 @@ "hostTemplate": "{geography}.atlas.microsoft.com", "parameters": [ { - "$ref": "#/parameters/GeographicResourceLocation" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/GeographicResourceLocation" } ] }, @@ -49,33 +49,6 @@ ], "responses": {}, "parameters": { - "GeographicResourceLocation": { - "name": "geography", - "description": "This parameter specifies where the Azure Maps Creator resource is located. Valid values are us and eu.", - "in": "path", - "required": true, - "type": "string", - "default": "us", - "enum": [ - "us", - "eu" - ], - "x-ms-enum": { - "name": "GeographicResourceLocation", - "modelAsString": true, - "values": [ - { - "value": "us", - "description": "Used to access an Azure Maps Creator resource in the United States" - }, - { - "value": "eu", - "description": "Used to access an Azure Maps Creator resource in Europe" - } - ] - }, - "x-ms-parameter-location": "client" - }, "UdidQuery": { "name": "udid", "description": "The unique data id for the content. The `udid` must have been obtained from a successful [Data Upload API](https://docs.microsoft.com/en-us/rest/api/maps/data%20v2/uploadpreview) call.", diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json index f54aa7377944..ee4222e8058c 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json @@ -9,7 +9,7 @@ "hostTemplate": "{geography}.atlas.microsoft.com", "parameters": [ { - "$ref": "#/parameters/GeographicResourceLocation" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/GeographicResourceLocation" } ] }, @@ -49,33 +49,6 @@ ], "responses": {}, "parameters": { - "GeographicResourceLocation": { - "name": "geography", - "description": "This parameter specifies where the Azure Maps Creator resource is located. Valid values are us and eu.", - "in": "path", - "required": true, - "type": "string", - "default": "us", - "enum": [ - "us", - "eu" - ], - "x-ms-enum": { - "name": "GeographicResourceLocation", - "modelAsString": true, - "values": [ - { - "value": "us", - "description": "Used to access an Azure Maps Creator resource in the United States" - }, - { - "value": "eu", - "description": "Used to access an Azure Maps Creator resource in Europe" - } - ] - }, - "x-ms-parameter-location": "client" - }, "FeatureStateSetDescription": { "name": "description", "description": "Description for the stateset. Max length allowed is 1000.", diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json index c8b69e3fdf24..d6ba83b66abb 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json @@ -110,32 +110,6 @@ "format": "int32", "x-ms-parameter-location": "method" }, - "TextFormat": { - "name": "format", - "description": "Desired format of the response. Value can be either _json_ or _xml_.", - "type": "string", - "in": "path", - "required": true, - "enum": [ - "json", - "xml" - ], - "x-ms-enum": { - "name": "TextFormat", - "modelAsString": true, - "values": [ - { - "value": "json", - "description": "[The JavaScript Object Notation Data Interchange Format](https://tools.ietf.org/html/rfc8259)" - }, - { - "value": "xml", - "description": "[The Extensible Markup Language](https://www.w3.org/TR/xml/)" - } - ] - }, - "x-ms-parameter-location": "method" - }, "RasterZoom18": { "name": "zoom", "in": "query", @@ -640,7 +614,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/TextFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" } ], "responses": { @@ -778,7 +752,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/TextFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" }, { "name": "mincoordinates", @@ -843,7 +817,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/TextFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" }, { "$ref": "#/parameters/RasterZoom18" @@ -903,7 +877,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/TextFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" }, { "$ref": "#/parameters/IncludeText" diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json index 15e9d134e595..a9d867c27368 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json @@ -43,32 +43,6 @@ ], "responses": {}, "parameters": { - "TextFormat": { - "name": "format", - "description": "Desired format of the response. Value can be either _json_ or _xml_.", - "type": "string", - "in": "path", - "required": true, - "enum": [ - "json", - "xml" - ], - "x-ms-enum": { - "name": "TextFormat", - "modelAsString": true, - "values": [ - { - "value": "json", - "description": "[The JavaScript Object Notation Data Interchange Format](https://tools.ietf.org/html/rfc8259)" - }, - { - "value": "xml", - "description": "[The Extensible Markup Language](https://www.w3.org/TR/xml/)" - } - ] - }, - "x-ms-parameter-location": "method" - }, "VehicleLoadType": { "name": "vehicleLoadType", "in": "query", @@ -888,7 +862,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/TextFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" }, { "name": "query", @@ -1078,7 +1052,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/TextFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" }, { "name": "query", @@ -1279,7 +1253,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/TextFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" }, { "name": "query", diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json index c0d7627d574a..58161b41ec2a 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json @@ -43,32 +43,6 @@ ], "responses": {}, "parameters": { - "TextFormat": { - "name": "format", - "description": "Desired format of the response. Value can be either _json_ or _xml_.", - "type": "string", - "in": "path", - "required": true, - "enum": [ - "json", - "xml" - ], - "x-ms-enum": { - "name": "TextFormat", - "modelAsString": true, - "values": [ - { - "value": "json", - "description": "[The JavaScript Object Notation Data Interchange Format](https://tools.ietf.org/html/rfc8259)" - }, - { - "value": "xml", - "description": "[The Extensible Markup Language](https://www.w3.org/TR/xml/)" - } - ] - }, - "x-ms-parameter-location": "method" - }, "LimitSearch": { "name": "limit", "in": "query", @@ -455,7 +429,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/TextFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" }, { "name": "query", @@ -577,7 +551,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/TextFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" }, { "name": "query", @@ -680,7 +654,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/TextFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" }, { "$ref": "#/parameters/RequiredBiasLat" @@ -767,7 +741,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/TextFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" }, { "name": "query", @@ -924,7 +898,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/TextFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" }, { "name": "query", @@ -1015,7 +989,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/TextFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" }, { "$ref": "#/parameters/Position" @@ -1173,7 +1147,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/TextFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" }, { "$ref": "#/parameters/Position" @@ -1244,7 +1218,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/TextFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" }, { "$ref": "#/parameters/Language" @@ -1378,7 +1352,7 @@ "$ref": "#/parameters/PoiQuery" }, { - "$ref": "#/parameters/TextFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" }, { "$ref": "#/parameters/LimitSearch" @@ -1462,7 +1436,7 @@ "$ref": "#/parameters/PoiQuery" }, { - "$ref": "#/parameters/TextFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" }, { "name": "maxDetourTime", diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json index 85c8363290dc..9166240f8192 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json @@ -9,7 +9,7 @@ "hostTemplate": "{geography}.atlas.microsoft.com", "parameters": [ { - "$ref": "#/parameters/GeographicResourceLocation" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/GeographicResourceLocation" } ] }, @@ -49,33 +49,6 @@ ], "responses": {}, "parameters": { - "GeographicResourceLocation": { - "name": "geography", - "description": "This parameter specifies where the Azure Maps Creator resource is located. Valid values are us and eu.", - "in": "path", - "required": true, - "type": "string", - "default": "us", - "enum": [ - "us", - "eu" - ], - "x-ms-enum": { - "name": "GeographicResourceLocation", - "modelAsString": true, - "values": [ - { - "value": "us", - "description": "Used to access an Azure Maps Creator resource in the United States" - }, - { - "value": "eu", - "description": "Used to access an Azure Maps Creator resource in Europe" - } - ] - }, - "x-ms-parameter-location": "client" - }, "DatasetIdQuery": { "name": "datasetId", "description": "The unique `datasetId` that the tileset create API uses to retrieve features to generate tiles. The `datasetId` must have been obtained from a successful [Dataset Create API](/en-us/rest/api/maps/dataset/createpreview) call.", diff --git a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json index d23ae61b481b..25a5ff5a63be 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json +++ b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json @@ -42,32 +42,6 @@ ], "responses": {}, "parameters": { - "TextFormat": { - "name": "format", - "description": "Desired format of the response. Value can be either _json_ or _xml_.", - "type": "string", - "in": "path", - "required": true, - "enum": [ - "json", - "xml" - ], - "x-ms-enum": { - "name": "TextFormat", - "modelAsString": true, - "values": [ - { - "value": "json", - "description": "[The JavaScript Object Notation Data Interchange Format](https://tools.ietf.org/html/rfc8259)" - }, - { - "value": "xml", - "description": "[The Extensible Markup Language](https://www.w3.org/TR/xml/)" - } - ] - }, - "x-ms-parameter-location": "method" - }, "TileFormat": { "name": "format", "description": "Desired format of the response. Possible values are png & pbf.", @@ -250,7 +224,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/TextFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" }, { "name": "style", @@ -477,7 +451,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/TextFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" }, { "name": "style", @@ -650,7 +624,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/TextFormat" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" }, { "name": "boundingbox", diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json index 82b1ec6d841c..e0764e28df38 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json @@ -9,7 +9,7 @@ "hostTemplate": "{geography}.atlas.microsoft.com", "parameters": [ { - "$ref": "#/parameters/GeographicResourceLocation" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/GeographicResourceLocation" } ] }, @@ -50,33 +50,6 @@ ], "responses": {}, "parameters": { - "GeographicResourceLocation": { - "name": "geography", - "description": "This parameter specifies where the Azure Maps Creator resource is located. Valid values are us and eu.", - "in": "path", - "required": true, - "type": "string", - "default": "us", - "enum": [ - "us", - "eu" - ], - "x-ms-enum": { - "name": "GeographicResourceLocation", - "modelAsString": true, - "values": [ - { - "value": "us", - "description": "Used to access an Azure Maps Creator resource in the United States" - }, - { - "value": "eu", - "description": "Used to access an Azure Maps Creator resource in Europe" - } - ] - }, - "x-ms-parameter-location": "client" - }, "LimitWfs": { "name": "limit", "in": "query", From eacd5263410538b906e96b7edb832f156732a504 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Mon, 17 May 2021 13:43:08 +0200 Subject: [PATCH 141/210] Fix double to integer so that calls work. --- .../Microsoft.Maps/DEM/preview/1.0/elevation.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json index ab51a06e93cc..2c0fde50f39c 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json +++ b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json @@ -211,7 +211,7 @@ "name": "samples", "in": "query", "description": "The samples parameter specifies the number of equally spaced points at which elevation values should be provided along a polyline path. The number of samples should range from 2 to 2,000. Default value is 10.", - "type": "number", + "type": "integer", "minimum": 2, "maximum": 2000 } @@ -283,7 +283,7 @@ "name": "samples", "in": "query", "description": "The samples parameter specifies the number of equally spaced points at which elevation values should be provided along a polyline path. The number of samples should range from 2 to 2,000. Default value is 10.", - "type": "number", + "type": "integer", "minimum": 2, "maximum": 2000 } @@ -354,7 +354,7 @@ "name": "rows", "in": "query", "description": "Specifies the number of rows to use to divide the bounding box area into a grid. The number of vertices in the grid should be less than 2,000. ", - "type": "number", + "type": "integer", "minimum": 2, "maximum": 1000, "required": true @@ -363,7 +363,7 @@ "name": "columns", "in": "query", "description": "Specifies the number of columns to use to divide the bounding box area into a grid. The number of vertices in the grid should be less than 2,000. ", - "type": "number", + "type": "integer", "minimum": 2, "maximum": 1000, "required": true From 030c73015be739791349a5426486f22348f741c2 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Mon, 17 May 2021 13:57:10 +0200 Subject: [PATCH 142/210] Skip url encoding for elevation input parameters. --- .../data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json index 2c0fde50f39c..0bcf19b30fa4 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json +++ b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json @@ -75,6 +75,7 @@ "collectionFormat": "pipes", "items": { "type": "string", + "x-ms-skip-url-encoding": true, "pattern": "\\s*[-]?\\d+[.]\\d+\\s*[,]\\s*[-]?\\d+[.]\\d+\\s*" } } @@ -204,6 +205,7 @@ "collectionFormat": "pipes", "items": { "type": "string", + "x-ms-skip-url-encoding": true, "pattern": "\\s*[-]?\\d+[.]\\d+\\s*[,]\\s*[-]?\\d+[.]\\d+\\s*" } }, From 3e62afbe0c514665fbe95461e77eb42388289a0d Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Mon, 17 May 2021 14:15:50 +0200 Subject: [PATCH 143/210] Put url ecoding to correct spot. --- .../data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json index 0bcf19b30fa4..6fbcb199d60e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json +++ b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json @@ -73,9 +73,9 @@ "required": true, "type": "array", "collectionFormat": "pipes", + "x-ms-skip-url-encoding": true, "items": { "type": "string", - "x-ms-skip-url-encoding": true, "pattern": "\\s*[-]?\\d+[.]\\d+\\s*[,]\\s*[-]?\\d+[.]\\d+\\s*" } } @@ -203,9 +203,9 @@ "required": true, "type": "array", "collectionFormat": "pipes", + "x-ms-skip-url-encoding": true, "items": { "type": "string", - "x-ms-skip-url-encoding": true, "pattern": "\\s*[-]?\\d+[.]\\d+\\s*[,]\\s*[-]?\\d+[.]\\d+\\s*" } }, From af516355ff7edf4576b7dc1053414a7d58903169 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Wed, 19 May 2021 13:18:03 +0200 Subject: [PATCH 144/210] update geoemtries to be comma separated array. --- .../data-plane/Microsoft.Maps/Search/preview/1.0/search.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json index 58161b41ec2a..c6dfa09f1587 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json @@ -378,7 +378,10 @@ "in": "query", "description": "Comma separated list of geometry UUIDs, previously retrieved from an Online Search request.", "required": true, - "type": "string" + "type": "array", + "items": { + "type": "string" + } } ], "responses": { From f36d232d64079a46cf50817ee6843119944c9d06 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Wed, 19 May 2021 13:37:11 +0200 Subject: [PATCH 145/210] Change search parameter order so that textFormat is always first. --- .../Microsoft.Maps/Search/preview/1.0/search.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json index c6dfa09f1587..f76ebe509bee 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json @@ -1352,10 +1352,10 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/PoiQuery" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" + "$ref": "#/parameters/PoiQuery" }, { "$ref": "#/parameters/LimitSearch" @@ -1433,13 +1433,13 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/CategorySet" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" }, { "$ref": "#/parameters/PoiQuery" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" + "$ref": "#/parameters/CategorySet" }, { "name": "maxDetourTime", From bafdbdd5e8b322b77a3062f0ee1d62593cf0d0ae Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Wed, 19 May 2021 14:16:34 +0200 Subject: [PATCH 146/210] Change parameter to udid from udId to be consistent --- .../Microsoft.Maps/Spatial/preview/1.0/spatial.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json index f1f4fb5f9514..4959538fd75b 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json @@ -118,7 +118,7 @@ "paths": { "/spatial/geofence/{format}": { "get": { - "description": "**Search Geofence Get API**\n\n**Applies to:** S1 Pricing tier.\n\nThe Geofence Get API allows you to retrieve the proximity of a coordinate to a \ngeofence that has been uploaded to the Data service. You can use the \n[Data Upload API](https://docs.microsoft.com/en-us/rest/api/maps/data/uploadPreview) to upload \na geofence or set of fences. See [Geofencing GeoJSON data](https://docs.microsoft.com/en-us/azure/azure-maps/geofence-geojson) \nfor more details on the geofence data format. To query the proximity of a coordinate, you supply the location of the object you are tracking as well\nas the ID for the fence or set of fences, and the response will contain information about\nthe distance from the outer edge of the geofence. A negative value signifies that the \ncoordinate is inside of the fence while a positive value means that it is outside of the\nfence.

This API can be used for a variety of scenarios that include things like asset \ntracking, fleet management, or setting up alerts for moving objects.\n\nThe API supports [integration with Event Grid](https://docs.microsoft.com/azure/azure-maps/azure-maps-event-grid-integration). The isAsync parameter is used to enable integration with Event Grid (disabled by default).\nTo test this API, you can upload the sample data from Post Geofence API examples(Request Body) via Data Upload API and replace the [udid] from the sample request below with the udid returned by Data Upload API.\n\n\n### Geofencing InnerError code\n\nIn geofencing response error contract, `innererror` is an object containing service specific information about the error. `code` is a property in `innererror` which can map to a specific geofencing error type. The table belows shows the code mapping between all the known client error type to the corresponding geofencing error `message`.\n\ninnererror.code | error.message\n---------------------------- | -------------------------------------- \nNullDeviceId | Device Id should not be null.\nNullUdid\t | Udid should not be null.\nUdidWrongFormat| Udid should be acquired from user data ingestion API.\nInvalidUserTime| Usertime is invalid.\nInvalidSearchBuffer| Searchbuffer is invalid.\nInvalidSearchRange| The value range of searchbuffer should be from 0 to 500 meters.\nInvalidLatLon| Lat and/or lon parameters are invalid.\nInvalidIsAsyncValue| The IsAsync parameter is invalid.\nInvalidModeValue| The mode parameter invalid.\nInvalidJson| Geofencing data is not a valid json file.\nNotSupportedGeoJson| Geofencing data can't be read as a Feature or FeatureCollections.\nInvalidGeoJson| Geofencing data is invalid.\nNoUserDataWithAccountOrSubscription| Can't find user geofencing data with provided account-id and/or subscription-id.\nNoUserDataWithUdid|\tCan't find user geofencing data with provided udId.", + "description": "**Search Geofence Get API**\n\n**Applies to:** S1 Pricing tier.\n\nThe Geofence Get API allows you to retrieve the proximity of a coordinate to a \ngeofence that has been uploaded to the Data service. You can use the \n[Data Upload API](https://docs.microsoft.com/en-us/rest/api/maps/data/uploadPreview) to upload \na geofence or set of fences. See [Geofencing GeoJSON data](https://docs.microsoft.com/en-us/azure/azure-maps/geofence-geojson) \nfor more details on the geofence data format. To query the proximity of a coordinate, you supply the location of the object you are tracking as well\nas the ID for the fence or set of fences, and the response will contain information about\nthe distance from the outer edge of the geofence. A negative value signifies that the \ncoordinate is inside of the fence while a positive value means that it is outside of the\nfence.

This API can be used for a variety of scenarios that include things like asset \ntracking, fleet management, or setting up alerts for moving objects.\n\nThe API supports [integration with Event Grid](https://docs.microsoft.com/azure/azure-maps/azure-maps-event-grid-integration). The isAsync parameter is used to enable integration with Event Grid (disabled by default).\nTo test this API, you can upload the sample data from Post Geofence API examples(Request Body) via Data Upload API and replace the [udid] from the sample request below with the udid returned by Data Upload API.\n\n\n### Geofencing InnerError code\n\nIn geofencing response error contract, `innererror` is an object containing service specific information about the error. `code` is a property in `innererror` which can map to a specific geofencing error type. The table belows shows the code mapping between all the known client error type to the corresponding geofencing error `message`.\n\ninnererror.code | error.message\n---------------------------- | -------------------------------------- \nNullDeviceId | Device Id should not be null.\nNullUdid\t | Udid should not be null.\nUdidWrongFormat| Udid should be acquired from user data ingestion API.\nInvalidUserTime| Usertime is invalid.\nInvalidSearchBuffer| Searchbuffer is invalid.\nInvalidSearchRange| The value range of searchbuffer should be from 0 to 500 meters.\nInvalidLatLon| Lat and/or lon parameters are invalid.\nInvalidIsAsyncValue| The IsAsync parameter is invalid.\nInvalidModeValue| The mode parameter invalid.\nInvalidJson| Geofencing data is not a valid json file.\nNotSupportedGeoJson| Geofencing data can't be read as a Feature or FeatureCollections.\nInvalidGeoJson| Geofencing data is invalid.\nNoUserDataWithAccountOrSubscription| Can't find user geofencing data with provided account-id and/or subscription-id.\nNoUserDataWithUdid|\tCan't find user geofencing data with provided udid.", "operationId": "Spatial_GetGeofence", "x-ms-examples": { "GetGeofence": { @@ -146,7 +146,7 @@ "type": "string" }, { - "name": "udId", + "name": "udid", "in": "query", "description": "The unique id returned from [Data Upload API](https://docs.microsoft.com/en-us/rest/api/maps/data/uploadPreview) after uploading a valid GeoJSON FeatureCollection object. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.3) for details. All the feature's properties should contain `geometryId`, which is used for identifying the geometry and is case-sensitive.", "required": true, From 4ad161921af93c3846bddb551b2ac4828d9e1550 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Thu, 20 May 2021 13:48:10 +0200 Subject: [PATCH 147/210] update wfs limit from float to int --- .../maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json index e0764e28df38..a053dd152266 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json @@ -53,7 +53,7 @@ "LimitWfs": { "name": "limit", "in": "query", - "type": "number", + "type": "integer", "minimum": 1, "maximum": 50, "description": "The optional limit parameter limits the number of features that are presented in the response document.\nOnly features that are on the first level of the collection in the response document are counted. Nested objects contained within the explicitly requested features shall not be counted.\n* Minimum = 1 * Maximum = 50 * Default = 10", From 949fb1af9f6d6bc03236f7b5490d03915302b02b Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Thu, 20 May 2021 13:48:25 +0200 Subject: [PATCH 148/210] update from string to datetime --- .../data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json index 4959538fd75b..2a922b7fded8 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json @@ -167,6 +167,7 @@ { "name": "userTime", "in": "query", + "format": "date-time", "description": "The user request time. If not presented in the request, the default value is DateTime.Now.", "type": "string" }, @@ -261,6 +262,7 @@ { "name": "userTime", "in": "query", + "format": "date-time", "description": "The user request time. If not presented in the request, the default value is DateTime.UtcNow.", "type": "string" }, From 1d5ae896b4702dbc8f5ed910c20728245b02dec1 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Thu, 20 May 2021 14:15:03 +0200 Subject: [PATCH 149/210] Refix elevation. --- .../Common/preview/1.0/common.json | 4 +- .../DEM/preview/1.0/elevation.json | 99 +++++++++++++------ 2 files changed, 69 insertions(+), 34 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index 90ab779fc19d..4b495ba56e76 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -557,7 +557,7 @@ }, "ClientId": { "name": "x-ms-client-id", - "description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.", + "description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from the Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.", "type": "string", "in": "header", "x-ms-parameter-location": "client" @@ -694,7 +694,7 @@ "x-ms-error-response": true }, "401": { - "description": "Access denied due to invalid subscription key or invalid Azure Active Directory bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided AAD bearer token.", + "description": "Access denied due to invalid subscription key or invalid Azure Active Directory (Azure AD) bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided Azure AD bearer token.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" }, diff --git a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json index 6fbcb199d60e..8f4477e180a6 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json +++ b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json @@ -87,8 +87,7 @@ "200": { "description": "OK", "schema": { - "description": "The response from a successful Elevation Points request.", - "$ref": "#/definitions/ElevationResult" + "$ref": "#/definitions/PointsResult" } }, "400": { @@ -136,11 +135,7 @@ "description": "The string representation of a list of points. A point is defined in lon/lat WGS84 coordinate reference system format. Each points in a list should be separated by the pipe ('|') character. The number of points that can be requested in a POST request ranges from 2 to 2,000. The resolution of the elevation data will be the highest for a single point and will decrease if multiple points are spread further apart. ", "required": true, "schema": { - "description": "The post elevation points array request body. The length of the array ranges from 2 to 2000.", - "type": "array", - "items": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPairAbbreviated" - } + "$ref": "#/definitions/PointsInRequestBody" } } ], @@ -151,8 +146,7 @@ "200": { "description": "OK", "schema": { - "description": "The response from a successful Elevation Points request.", - "$ref": "#/definitions/ElevationResult" + "$ref": "#/definitions/PointsResult" } }, "400": { @@ -225,8 +219,7 @@ "200": { "description": "OK", "schema": { - "description": "The response from a successful Elevation Polyline request.", - "$ref": "#/definitions/ElevationResult" + "$ref": "#/definitions/LinesResult" } }, "400": { @@ -274,11 +267,7 @@ "description": "The string representation of a polyline path. A polyline is defined by endpoint coordinates, with each endpoint separated by a pipe ('|') character. The polyline should be defined in the following format: `[longitude_point1, latitude_point1 | longitude_point2, latitude_point2, ..., longitude_pointN, latitude_pointN]`. The longitude and latitude values refer to the World Geodetic System (WGS84) coordinate reference system. The resolution of the data used to compute the elevation will depend on the distance between the endpoints.", "required": true, "schema": { - "description": "The post elevation lines request body.", - "type": "array", - "items": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPairAbbreviated" - } + "$ref": "#/definitions/LinesInRequestBody" } }, { @@ -297,8 +286,7 @@ "200": { "description": "OK", "schema": { - "description": "The response from a successful Elevation Polyline request.", - "$ref": "#/definitions/ElevationResult" + "$ref": "#/definitions/LinesResult" } }, "400": { @@ -378,8 +366,7 @@ "200": { "description": "OK", "schema": { - "description": "The response from a successful Get Data for Bounding Box API.", - "$ref": "#/definitions/ElevationResult" + "$ref": "#/definitions/BoundingBoxResult" } }, "400": { @@ -402,10 +389,17 @@ } }, "definitions": { + "ElevationPointResponse": { + "description": "The response for point/points elevation API. The result will be in same sequence of points listed in request.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/PointElevationResult" + } + }, "PointElevationResult": { - "description": "The elevation data.", "type": "object", - "readOnly": true, + "description": "The elevation data.", "properties": { "coordinate": { "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPair" @@ -413,25 +407,66 @@ "elevationInMeter": { "description": "The elevation value in meters.", "type": "number", - "format": "double", "readOnly": true } } }, - "ElevationResult": { + "ElevationLineResponse": { + "description": "The response from the Get Data for Polyline API. The results will be listed in the direction from the first endpoint towards the last endpoint.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/PointElevationResult" + } + }, + "ElevationLatticeResponse": { + "description": "The response from the Get Data for Bounding Box API. The results are ordered starting with the southwest corner, and then proceed west to east and south to north.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/PointElevationResult" + } + }, + "PointsResult": { + "type": "object", "description": "The response from a successful Elevation Points request.", + "properties": { + "data": { + "$ref": "#/definitions/ElevationPointResponse" + } + } + }, + "LinesResult": { "type": "object", - "readOnly": true, + "description": "The response from a successful Elevation Polyline request.", "properties": { "data": { - "description": "The response for point/points elevation API. The result will be in same sequence of points listed in request.", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/PointElevationResult" - } + "$ref": "#/definitions/ElevationLineResponse" } } + }, + "BoundingBoxResult": { + "type": "object", + "description": "The response from a successful Get Data for Bounding Box API.", + "properties": { + "data": { + "$ref": "#/definitions/ElevationLatticeResponse" + } + } + }, + "PointsInRequestBody": { + "type": "array", + "description": "The post elevation points array request body. The length of the array ranges from 2 to 2000.", + "items": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPairAbbreviated" + } + }, + "LinesInRequestBody": { + "type": "array", + "description": "The post elevation lines request body.", + "items": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/CoordinatesPairAbbreviated" + } } } -} +} \ No newline at end of file From 3333ba31c487d687c9ccc62d321618edaf058606 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Thu, 20 May 2021 14:31:20 +0200 Subject: [PATCH 150/210] Fix elevation prettier. --- .../data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json index 8f4477e180a6..2de83931ba71 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json +++ b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json @@ -469,4 +469,4 @@ } } } -} \ No newline at end of file +} From 60de9889b4b4e2d0ad66ce8359cca9815e6e45a3 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Thu, 20 May 2021 14:33:11 +0200 Subject: [PATCH 151/210] correctly update parameter to udid. --- .../Spatial/preview/1.0/examples/GetGeofence.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetGeofence.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetGeofence.json index 6d01b0c8a0ca..cab01f340994 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetGeofence.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetGeofence.json @@ -3,7 +3,7 @@ "format": "json", "api-version": "1.0", "deviceId": "unique_device_name_under_account", - "udId": "[udId]", + "udid": "[udId]", "lat": 48.36, "lon": -124.63, "searchBuffer": 50, From bc68f0e4ca7802f8b89fa75f5410e8369d7d674f Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Fri, 21 May 2021 13:53:09 +0200 Subject: [PATCH 152/210] Add geography to all services. --- .../Microsoft.Maps/Alias/preview/1.0/alias.json | 2 +- .../Microsoft.Maps/Common/preview/1.0/common.json | 9 ++++++++- .../Microsoft.Maps/DEM/preview/1.0/elevation.json | 9 ++++++++- .../data-plane/Microsoft.Maps/Data/preview/1.0/data.json | 2 +- .../Microsoft.Maps/Dataset/preview/1.0/dataset.json | 4 ++-- .../DwgConversion/preview/1.0/dwgconversion.json | 4 ++-- .../FeatureState/preview/1.0/featurestate.json | 4 ++-- .../Geolocation/preview/1.0/geolocation.json | 9 ++++++++- .../Microsoft.Maps/Mobility/preview/1.0/mobility.json | 9 ++++++++- .../Microsoft.Maps/Render/preview/1.0/render.json | 9 ++++++++- .../Microsoft.Maps/Render/preview/2.0/render.json | 9 ++++++++- .../Microsoft.Maps/Route/preview/1.0/route.json | 9 ++++++++- .../Microsoft.Maps/Search/preview/1.0/search.json | 9 ++++++++- .../Microsoft.Maps/Spatial/preview/1.0/spatial.json | 9 ++++++++- .../Microsoft.Maps/Tileset/preview/1.0/tileset.json | 4 ++-- .../Microsoft.Maps/Timezone/preview/1.0/timezone.json | 9 ++++++++- .../Microsoft.Maps/Traffic/preview/1.0/traffic.json | 9 ++++++++- .../data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json | 4 ++-- .../Microsoft.Maps/Weather/preview/1.0/weather.json | 9 ++++++++- 19 files changed, 108 insertions(+), 24 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json index 1fa91066a504..188b7de6ed23 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json @@ -9,7 +9,7 @@ "hostTemplate": "{geography}.atlas.microsoft.com", "parameters": [ { - "$ref": "#/parameters/GeographicResourceLocation" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/GeographicResourceLocation" } ] }, diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index 4b495ba56e76..f53828669c0f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -4,7 +4,14 @@ "title": "Azure Maps Common Types", "version": "1.0" }, - "host": "atlas.microsoft.com", + "x-ms-parameterized-host": { + "hostTemplate": "{geography}.atlas.microsoft.com", + "parameters": [ + { + "$ref": "../../../Common/preview/1.0/common.json#/parameters/GeographicResourceLocation" + } + ] + }, "schemes": [ "https" ], diff --git a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json index 2de83931ba71..7d2858e3da6b 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json +++ b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json @@ -5,7 +5,14 @@ "version": "1.0", "description": "The Azure Maps Elevation API provides an HTTP interface to query elevation data on the surface of the Earth. Elevation data can be retrieved at specific locations by sending lat/lon coordinates, by defining an ordered set of vertices that form a Polyline and a number of sample points along the length of a Polyline, or by defining a bounding box that consists of equally spaced vertices as rows and columns. The vertical datum is EPSG:3855. This datum uses the EGM2008 geoid model applied to the WGS84 ellipsoid as its zero height reference surface. The vertical unit is measured in meters, the spatial resolution of the elevation data is 0.8 arc-second for global coverage (~24 meters)." }, - "host": "atlas.microsoft.com", + "x-ms-parameterized-host": { + "hostTemplate": "{geography}.atlas.microsoft.com", + "parameters": [ + { + "$ref": "../../../Common/preview/1.0/common.json#/parameters/GeographicResourceLocation" + } + ] + }, "schemes": [ "https" ], diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json index 466aa6a8e778..cc236d7de2f4 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json @@ -9,7 +9,7 @@ "hostTemplate": "{geography}.atlas.microsoft.com", "parameters": [ { - "$ref": "#/parameters/GeographicResourceLocation" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/GeographicResourceLocation" } ] }, diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json index 36e6d7a54338..4242a821ee26 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json @@ -5,11 +5,11 @@ "version": "1.0", "description": "APIs for managing datasets from uploaded data in Azure Maps." }, - "x-ms-parameterized-host": { + "x-ms-parameterized-host": { "hostTemplate": "{geography}.atlas.microsoft.com", "parameters": [ { - "$ref": "#/parameters/GeographicResourceLocation" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/GeographicResourceLocation" } ] }, diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json index 3f7a6eb0b17f..1a0d9150de1d 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json @@ -5,11 +5,11 @@ "version": "1.0", "description": "APIs for converting DWG Packages in Azure Maps." }, - "x-ms-parameterized-host": { + "x-ms-parameterized-host": { "hostTemplate": "{geography}.atlas.microsoft.com", "parameters": [ { - "$ref": "#/parameters/GeographicResourceLocation" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/GeographicResourceLocation" } ] }, diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json index 1665ccfdc688..fee913f12405 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json @@ -5,11 +5,11 @@ "version": "1.0", "description": "APIs for managing the dynamic feature states in Azure Maps." }, - "x-ms-parameterized-host": { + "x-ms-parameterized-host": { "hostTemplate": "{geography}.atlas.microsoft.com", "parameters": [ { - "$ref": "#/parameters/GeographicResourceLocation" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/GeographicResourceLocation" } ] }, diff --git a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json index 31d08aecf0dd..327544f2efff 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json +++ b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json @@ -5,7 +5,14 @@ "version": "1.0", "description": "Azure Maps Geolocation REST APIs" }, - "host": "atlas.microsoft.com", + "x-ms-parameterized-host": { + "hostTemplate": "{geography}.atlas.microsoft.com", + "parameters": [ + { + "$ref": "../../../Common/preview/1.0/common.json#/parameters/GeographicResourceLocation" + } + ] + }, "schemes": [ "https" ], diff --git a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json index 56999f5f8ea0..d6f3a09f3543 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json +++ b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json @@ -4,7 +4,14 @@ "title": "Azure Maps Mobility Service", "version": "1.0" }, - "host": "atlas.microsoft.com", + "x-ms-parameterized-host": { + "hostTemplate": "{geography}.atlas.microsoft.com", + "parameters": [ + { + "$ref": "../../../Common/preview/1.0/common.json#/parameters/GeographicResourceLocation" + } + ] + }, "schemes": [ "https" ], diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json index d6ba83b66abb..849cc804b2c0 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json @@ -5,7 +5,14 @@ "version": "1.0", "description": "Azure Maps Render REST APIs" }, - "host": "atlas.microsoft.com", + "x-ms-parameterized-host": { + "hostTemplate": "{geography}.atlas.microsoft.com", + "parameters": [ + { + "$ref": "../../../Common/preview/1.0/common.json#/parameters/GeographicResourceLocation" + } + ] + }, "schemes": [ "https" ], diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json index a0bd31a8916d..a216f9e47561 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json @@ -5,7 +5,14 @@ "version": "2.0", "description": "Azure Maps Render REST APIs" }, - "host": "atlas.microsoft.com", + "x-ms-parameterized-host": { + "hostTemplate": "{geography}.atlas.microsoft.com", + "parameters": [ + { + "$ref": "../../../Common/preview/1.0/common.json#/parameters/GeographicResourceLocation" + } + ] + }, "schemes": [ "https" ], diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json index a9d867c27368..e3aef11e97f8 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json @@ -5,7 +5,14 @@ "version": "1.0", "description": "Azure Maps Route REST APIs" }, - "host": "atlas.microsoft.com", + "x-ms-parameterized-host": { + "hostTemplate": "{geography}.atlas.microsoft.com", + "parameters": [ + { + "$ref": "../../../Common/preview/1.0/common.json#/parameters/GeographicResourceLocation" + } + ] + }, "schemes": [ "https" ], diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json index f76ebe509bee..6d2f8b62e6f2 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json @@ -5,7 +5,14 @@ "version": "1.0", "description": "Azure Maps Search REST APIs" }, - "host": "atlas.microsoft.com", + "x-ms-parameterized-host": { + "hostTemplate": "{geography}.atlas.microsoft.com", + "parameters": [ + { + "$ref": "../../../Common/preview/1.0/common.json#/parameters/GeographicResourceLocation" + } + ] + }, "schemes": [ "https" ], diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json index 2a922b7fded8..c57ba2da26d1 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json @@ -5,7 +5,14 @@ "version": "1.0", "description": "Azure Maps Spatial REST APIs" }, - "host": "atlas.microsoft.com", + "x-ms-parameterized-host": { + "hostTemplate": "{geography}.atlas.microsoft.com", + "parameters": [ + { + "$ref": "../../../Common/preview/1.0/common.json#/parameters/GeographicResourceLocation" + } + ] + }, "schemes": [ "https" ], diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json index f902d2036cec..1f821898d62f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json @@ -5,11 +5,11 @@ "version": "1.0", "description": "APIs for managing Tilesets." }, - "x-ms-parameterized-host": { + "x-ms-parameterized-host": { "hostTemplate": "{geography}.atlas.microsoft.com", "parameters": [ { - "$ref": "#/parameters/GeographicResourceLocation" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/GeographicResourceLocation" } ] }, diff --git a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json index 7f6d3417dab4..f28c65de94f5 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json +++ b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json @@ -5,7 +5,14 @@ "version": "1.0", "description": "Azure Maps Time Zone REST APIs" }, - "host": "atlas.microsoft.com", + "x-ms-parameterized-host": { + "hostTemplate": "{geography}.atlas.microsoft.com", + "parameters": [ + { + "$ref": "../../../Common/preview/1.0/common.json#/parameters/GeographicResourceLocation" + } + ] + }, "schemes": [ "https" ], diff --git a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json index 25a5ff5a63be..42f6ff9dd40d 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json +++ b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json @@ -5,7 +5,14 @@ "version": "1.0", "description": "Azure Maps Traffic REST APIs" }, - "host": "atlas.microsoft.com", + "x-ms-parameterized-host": { + "hostTemplate": "{geography}.atlas.microsoft.com", + "parameters": [ + { + "$ref": "../../../Common/preview/1.0/common.json#/parameters/GeographicResourceLocation" + } + ] + }, "schemes": [ "https" ], diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json index ac72c17b6065..874a5f32d2d1 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json @@ -5,11 +5,11 @@ "version": "1.0", "description": "Azure Maps Web Feature REST APIs" }, - "x-ms-parameterized-host": { + "x-ms-parameterized-host": { "hostTemplate": "{geography}.atlas.microsoft.com", "parameters": [ { - "$ref": "#/parameters/GeographicResourceLocation" + "$ref": "../../../Common/preview/1.0/common.json#/parameters/GeographicResourceLocation" } ] }, diff --git a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json index fba3505d09e5..945c5ad25ea2 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json +++ b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json @@ -4,7 +4,14 @@ "title": "Azure Maps Weather Service", "version": "1.0" }, - "host": "atlas.microsoft.com", + "x-ms-parameterized-host": { + "hostTemplate": "{geography}.atlas.microsoft.com", + "parameters": [ + { + "$ref": "../../../Common/preview/1.0/common.json#/parameters/GeographicResourceLocation" + } + ] + }, "schemes": [ "https" ], From 9b37804d975711ecf4a085e9d2dc02e582d21107 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Fri, 21 May 2021 13:58:43 +0200 Subject: [PATCH 153/210] update date-time --- .../Spatial/preview/1.0/examples/GetGeofence.json | 2 +- .../Spatial/preview/1.0/examples/PostGeofence.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetGeofence.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetGeofence.json index cab01f340994..6dab6f4a168a 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetGeofence.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetGeofence.json @@ -7,7 +7,7 @@ "lat": 48.36, "lon": -124.63, "searchBuffer": 50, - "userTime": "2018-09-10T10:00:00", + "userTime": "2017-07-21T17:32:28Z", "isAsync": true, "mode": "EnterAndExit", "subscription-key": "[subscription-key]" diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/PostGeofence.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/PostGeofence.json index d638ff7b7c6f..2f3a9a24b7db 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/PostGeofence.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/PostGeofence.json @@ -6,7 +6,7 @@ "lat": 48.36, "lon": -124.63, "searchBuffer": 50, - "usertime": "2018-09-10T10:00:00", + "usertime": "2017-07-21T17:32:28Z", "isAsync": true, "mode": "EnterAndExit", "subscription-key": "[subscription-key]", From b7fab5f3c574281bc667b206b14ee4cf7ff7d04c Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Fri, 21 May 2021 14:01:47 +0200 Subject: [PATCH 154/210] Add description to data --- .../maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json index 8c6903e39f41..e46f6192e6a0 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json @@ -464,12 +464,12 @@ "readOnly": true }, "dataFormat": { - "description": "", + "description": "The current data format.", "type": "string", "readOnly": true }, "description": { - "description": "", + "description": "The current description.", "type": "string", "readOnly": true } From 6f1836df4aed33901624df81c0cb341c8661d43b Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Fri, 21 May 2021 14:11:57 +0200 Subject: [PATCH 155/210] Add client flatten --- .../data-plane/Microsoft.Maps/Common/preview/1.0/common.json | 1 + .../maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json | 1 + .../maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json | 1 + 3 files changed, 3 insertions(+) diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index f53828669c0f..ada2155db3e8 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -486,6 +486,7 @@ "$ref": "#/definitions/GeoJsonGeometry" }, "properties": { + "x-ms-client-flatten": true, "description": "Properties can contain any additional metadata about the `Feature`. Value can be any JSON object or a JSON null value", "type": "object" }, diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json index 874a5f32d2d1..c61de1753b1c 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json @@ -743,6 +743,7 @@ } }, "properties": { + "x-ms-client-flatten": true, "description": "attributes of the collection used", "type": "array", "items": { diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json index a053dd152266..0d16d117c161 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json @@ -755,6 +755,7 @@ } }, "properties": { + "x-ms-client-flatten": true, "description": "attributes of the collection used", "type": "array", "items": { From 169022c38b8e22c8462ef741357f86345b24ebcb Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Mon, 24 May 2021 11:19:22 +0200 Subject: [PATCH 156/210] Run prettier --- .../data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json | 2 +- .../data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json | 2 +- .../Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json | 2 +- .../Microsoft.Maps/FeatureState/preview/1.0/featurestate.json | 2 +- .../Microsoft.Maps/Geolocation/preview/1.0/geolocation.json | 2 +- .../Microsoft.Maps/Mobility/preview/1.0/mobility.json | 2 +- .../data-plane/Microsoft.Maps/Render/preview/1.0/render.json | 2 +- .../data-plane/Microsoft.Maps/Render/preview/2.0/render.json | 2 +- .../maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json | 2 +- .../data-plane/Microsoft.Maps/Search/preview/1.0/search.json | 2 +- .../data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json | 2 +- .../data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json | 2 +- .../Microsoft.Maps/Timezone/preview/1.0/timezone.json | 2 +- .../data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json | 2 +- .../maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json | 2 +- .../data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json | 2 +- 16 files changed, 16 insertions(+), 16 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json index 7d2858e3da6b..241634b5303c 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json +++ b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json @@ -5,7 +5,7 @@ "version": "1.0", "description": "The Azure Maps Elevation API provides an HTTP interface to query elevation data on the surface of the Earth. Elevation data can be retrieved at specific locations by sending lat/lon coordinates, by defining an ordered set of vertices that form a Polyline and a number of sample points along the length of a Polyline, or by defining a bounding box that consists of equally spaced vertices as rows and columns. The vertical datum is EPSG:3855. This datum uses the EGM2008 geoid model applied to the WGS84 ellipsoid as its zero height reference surface. The vertical unit is measured in meters, the spatial resolution of the elevation data is 0.8 arc-second for global coverage (~24 meters)." }, - "x-ms-parameterized-host": { + "x-ms-parameterized-host": { "hostTemplate": "{geography}.atlas.microsoft.com", "parameters": [ { diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json index 4242a821ee26..0551ac051f50 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json @@ -5,7 +5,7 @@ "version": "1.0", "description": "APIs for managing datasets from uploaded data in Azure Maps." }, - "x-ms-parameterized-host": { + "x-ms-parameterized-host": { "hostTemplate": "{geography}.atlas.microsoft.com", "parameters": [ { diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json index 1a0d9150de1d..355e6f5fae04 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json @@ -5,7 +5,7 @@ "version": "1.0", "description": "APIs for converting DWG Packages in Azure Maps." }, - "x-ms-parameterized-host": { + "x-ms-parameterized-host": { "hostTemplate": "{geography}.atlas.microsoft.com", "parameters": [ { diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json index fee913f12405..7ca3673deb8c 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json @@ -5,7 +5,7 @@ "version": "1.0", "description": "APIs for managing the dynamic feature states in Azure Maps." }, - "x-ms-parameterized-host": { + "x-ms-parameterized-host": { "hostTemplate": "{geography}.atlas.microsoft.com", "parameters": [ { diff --git a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json index 327544f2efff..012857a379fc 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json +++ b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json @@ -5,7 +5,7 @@ "version": "1.0", "description": "Azure Maps Geolocation REST APIs" }, - "x-ms-parameterized-host": { + "x-ms-parameterized-host": { "hostTemplate": "{geography}.atlas.microsoft.com", "parameters": [ { diff --git a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json index d6f3a09f3543..516a4134a412 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json +++ b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json @@ -4,7 +4,7 @@ "title": "Azure Maps Mobility Service", "version": "1.0" }, - "x-ms-parameterized-host": { + "x-ms-parameterized-host": { "hostTemplate": "{geography}.atlas.microsoft.com", "parameters": [ { diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json index 849cc804b2c0..b20ab4df9536 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json @@ -5,7 +5,7 @@ "version": "1.0", "description": "Azure Maps Render REST APIs" }, - "x-ms-parameterized-host": { + "x-ms-parameterized-host": { "hostTemplate": "{geography}.atlas.microsoft.com", "parameters": [ { diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json index a216f9e47561..bac05317e80d 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json @@ -5,7 +5,7 @@ "version": "2.0", "description": "Azure Maps Render REST APIs" }, - "x-ms-parameterized-host": { + "x-ms-parameterized-host": { "hostTemplate": "{geography}.atlas.microsoft.com", "parameters": [ { diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json index e3aef11e97f8..010d030c2240 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json @@ -5,7 +5,7 @@ "version": "1.0", "description": "Azure Maps Route REST APIs" }, - "x-ms-parameterized-host": { + "x-ms-parameterized-host": { "hostTemplate": "{geography}.atlas.microsoft.com", "parameters": [ { diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json index 6d2f8b62e6f2..d9d2cafbed27 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json @@ -5,7 +5,7 @@ "version": "1.0", "description": "Azure Maps Search REST APIs" }, - "x-ms-parameterized-host": { + "x-ms-parameterized-host": { "hostTemplate": "{geography}.atlas.microsoft.com", "parameters": [ { diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json index c57ba2da26d1..08f5157347f1 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json @@ -5,7 +5,7 @@ "version": "1.0", "description": "Azure Maps Spatial REST APIs" }, - "x-ms-parameterized-host": { + "x-ms-parameterized-host": { "hostTemplate": "{geography}.atlas.microsoft.com", "parameters": [ { diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json index 1f821898d62f..35c547e6d34f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json @@ -5,7 +5,7 @@ "version": "1.0", "description": "APIs for managing Tilesets." }, - "x-ms-parameterized-host": { + "x-ms-parameterized-host": { "hostTemplate": "{geography}.atlas.microsoft.com", "parameters": [ { diff --git a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json index f28c65de94f5..dc535e5cdccb 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json +++ b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json @@ -5,7 +5,7 @@ "version": "1.0", "description": "Azure Maps Time Zone REST APIs" }, - "x-ms-parameterized-host": { + "x-ms-parameterized-host": { "hostTemplate": "{geography}.atlas.microsoft.com", "parameters": [ { diff --git a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json index 42f6ff9dd40d..0628592717da 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json +++ b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json @@ -5,7 +5,7 @@ "version": "1.0", "description": "Azure Maps Traffic REST APIs" }, - "x-ms-parameterized-host": { + "x-ms-parameterized-host": { "hostTemplate": "{geography}.atlas.microsoft.com", "parameters": [ { diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json index c61de1753b1c..49a51580177f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json @@ -5,7 +5,7 @@ "version": "1.0", "description": "Azure Maps Web Feature REST APIs" }, - "x-ms-parameterized-host": { + "x-ms-parameterized-host": { "hostTemplate": "{geography}.atlas.microsoft.com", "parameters": [ { diff --git a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json index 945c5ad25ea2..f14c8d156c44 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json +++ b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json @@ -4,7 +4,7 @@ "title": "Azure Maps Weather Service", "version": "1.0" }, - "x-ms-parameterized-host": { + "x-ms-parameterized-host": { "hostTemplate": "{geography}.atlas.microsoft.com", "parameters": [ { From 8cd1c5a20d6b0cd5bc2307e2a5b41c8c9d9139df Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Mon, 24 May 2021 11:34:42 +0200 Subject: [PATCH 157/210] Add geometry to examples. --- .../DEM/preview/1.0/examples/GetDataForBoundingBox.json | 1 + .../DEM/preview/1.0/examples/GetDataForPoints.json | 1 + .../DEM/preview/1.0/examples/GetDataForPolyline.json | 1 + .../DEM/preview/1.0/examples/PostDataForPoints.json | 1 + .../DEM/preview/1.0/examples/PostDataForPolyline.json | 1 + .../DwgConversion/preview/2.0/examples/Conversion.json | 1 - .../Geolocation/preview/1.0/examples/GetLocationByIpAddress.json | 1 + .../Mobility/preview/1.0/examples/GetMetroArea.json | 1 + .../Mobility/preview/1.0/examples/GetMetroAreaInfo.json | 1 + .../Mobility/preview/1.0/examples/GetNearbyTransit.json | 1 + .../Mobility/preview/1.0/examples/GetRealTimeArrivals.json | 1 + .../Mobility/preview/1.0/examples/GetTransitItinerary.json | 1 + .../Mobility/preview/1.0/examples/GetTransitLineInfo.json | 1 + .../Mobility/preview/1.0/examples/GetTransitRoute.json | 1 + .../Mobility/preview/1.0/examples/GetTransitStopInfo.json | 1 + .../Render/preview/1.0/examples/GetCopyrightCaption.json | 1 + .../Render/preview/1.0/examples/GetCopyrightForTile.json | 1 + .../Render/preview/1.0/examples/GetCopyrightForWorld.json | 1 + .../Render/preview/1.0/examples/GetCopyrightFromBoundingBox.json | 1 + .../Render/preview/1.0/examples/GetMapImageryTile.json | 1 + .../Render/preview/1.0/examples/GetMapStateTile.json | 1 + .../Render/preview/1.0/examples/GetMapStaticImage.json | 1 + .../Microsoft.Maps/Render/preview/1.0/examples/GetMapTile.json | 1 + .../Microsoft.Maps/Render/preview/2.0/examples/GetMapTileV2.json | 1 + .../Route/preview/1.0/examples/GetRouteDirections.json | 1 + .../Microsoft.Maps/Route/preview/1.0/examples/GetRouteRange.json | 1 + .../Route/preview/1.0/examples/PostRouteDirections.json | 1 + .../Route/preview/1.0/examples/PostRouteDirectionsBatch.json | 1 + .../Route/preview/1.0/examples/PostRouteMatrix.json | 1 + .../Search/preview/1.0/examples/GetSearchAddress.json | 1 + .../Search/preview/1.0/examples/GetSearchAddressReverse.json | 1 + .../preview/1.0/examples/GetSearchAddressReverseCrossStreet.json | 1 + .../Search/preview/1.0/examples/GetSearchAddressStructured.json | 1 + .../Search/preview/1.0/examples/GetSearchFuzzy.json | 1 + .../Search/preview/1.0/examples/GetSearchNearby.json | 1 + .../Microsoft.Maps/Search/preview/1.0/examples/GetSearchPOI.json | 1 + .../Search/preview/1.0/examples/GetSearchPOICategory.json | 1 + .../Search/preview/1.0/examples/GetSearchPOICategoryTree.json | 1 + .../Search/preview/1.0/examples/GetSearchPolygon.json | 1 + .../Search/preview/1.0/examples/PostSearchAddressBatch.json | 1 + .../preview/1.0/examples/PostSearchAddressReverseBatch.json | 1 + .../Search/preview/1.0/examples/PostSearchAlongRoute.json | 1 + .../Search/preview/1.0/examples/PostSearchFuzzyBatch.json | 1 + .../preview/1.0/examples/PostSearchInsideFeatureCollection.json | 1 + .../Search/preview/1.0/examples/PostSearchInsideGeometry.json | 1 + .../preview/1.0/examples/PostSearchInsideGeometryCollection.json | 1 + .../Microsoft.Maps/Spatial/preview/1.0/examples/GetBuffer.json | 1 + .../Spatial/preview/1.0/examples/GetClosestPoint.json | 1 + .../Microsoft.Maps/Spatial/preview/1.0/examples/GetGeofence.json | 1 + .../Spatial/preview/1.0/examples/GetGreatCircleDistance.json | 1 + .../Spatial/preview/1.0/examples/GetPointInPolygon.json | 1 + .../Microsoft.Maps/Spatial/preview/1.0/examples/PostBuffer.json | 1 + .../Spatial/preview/1.0/examples/PostClosestPoint.json | 1 + .../Spatial/preview/1.0/examples/PostGeofence.json | 1 + .../Spatial/preview/1.0/examples/PostPointInPolygon.json | 1 + .../Timezone/preview/1.0/examples/GetTimezoneByCoordinates.json | 1 + .../Timezone/preview/1.0/examples/GetTimezoneByID.json | 1 + .../Timezone/preview/1.0/examples/GetTimezoneEnumIANA.json | 1 + .../Timezone/preview/1.0/examples/GetTimezoneEnumWindows.json | 1 + .../Timezone/preview/1.0/examples/GetTimezoneIANAVersion.json | 1 + .../Timezone/preview/1.0/examples/GetTimezoneWindowsToIANA.json | 1 + .../Traffic/preview/1.0/examples/GetTrafficFlowSegment.json | 1 + .../Traffic/preview/1.0/examples/GetTrafficFlowTile.json | 1 + .../Traffic/preview/1.0/examples/GetTrafficIncidentDetail.json | 1 + .../Traffic/preview/1.0/examples/GetTrafficIncidentTile.json | 1 + .../Traffic/preview/1.0/examples/GetTrafficIncidentViewport.json | 1 + .../Weather/preview/1.0/examples/GetCurrentConditions.json | 1 + .../Weather/preview/1.0/examples/GetDailyForecast.json | 1 + .../Weather/preview/1.0/examples/GetDailyIndices.json | 1 + .../Weather/preview/1.0/examples/GetHourlyForecast.json | 1 + .../Weather/preview/1.0/examples/GetMinuteForecast.json | 1 + .../Weather/preview/1.0/examples/GetQuarterDayForecast.json | 1 + .../Weather/preview/1.0/examples/GetSevereWeatherAlerts.json | 1 + .../Weather/preview/1.0/examples/GetWeatherAlongRoute.json | 1 + 74 files changed, 73 insertions(+), 1 deletion(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/examples/GetDataForBoundingBox.json b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/examples/GetDataForBoundingBox.json index 71f1f2f6115b..a7c618231a70 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/examples/GetDataForBoundingBox.json +++ b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/examples/GetDataForBoundingBox.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "format": "json", "api-version": "1.0", "bounds": "-121.66853362143818, 46.84646479863713,-121.65853362143818, 46.85646479863713", diff --git a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/examples/GetDataForPoints.json b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/examples/GetDataForPoints.json index 05ceee407a70..22e6210e054a 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/examples/GetDataForPoints.json +++ b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/examples/GetDataForPoints.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "format": "json", "api-version": "1.0", "points": "-121.66853362143818, 46.84646479863713|-121.68853362143818, 46.856464798637127", diff --git a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/examples/GetDataForPolyline.json b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/examples/GetDataForPolyline.json index 06df7292796a..e733339d611a 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/examples/GetDataForPolyline.json +++ b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/examples/GetDataForPolyline.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "format": "json", "api-version": "1.0", "lines": "-121.66853362143818, 46.84646479863713|-121.67853362143818, 46.85646479863713", diff --git a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/examples/PostDataForPoints.json b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/examples/PostDataForPoints.json index fe40a6045efd..ddfd51fd8f91 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/examples/PostDataForPoints.json +++ b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/examples/PostDataForPoints.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "format": "json", "api-version": "1.0", "pointsRequestBody": [ diff --git a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/examples/PostDataForPolyline.json b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/examples/PostDataForPolyline.json index 1ca08132ac95..79f0c4587949 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/examples/PostDataForPolyline.json +++ b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/examples/PostDataForPolyline.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "format": "json", "api-version": "1.0", "linesRequestBody": [ diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/Conversion.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/Conversion.json index b822825789d8..1e600aacaa2e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/Conversion.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/Conversion.json @@ -4,7 +4,6 @@ "api-version": "2.0", "subscription-key": "[subscription-key]", "udid": "25084fb7-307a-4720-8f91-7952a0b91012", - "inputType": "DWG", "outputOntology": "facility-2.0" }, "responses": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/examples/GetLocationByIpAddress.json b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/examples/GetLocationByIpAddress.json index 4723a73f3579..4c24a6070f5f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/examples/GetLocationByIpAddress.json +++ b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/examples/GetLocationByIpAddress.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "subscription-key": "[subscription-key]", "api-version": "1.0", "format": "json", diff --git a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetMetroArea.json b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetMetroArea.json index 82d62473f11d..367fbb20f6d8 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetMetroArea.json +++ b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetMetroArea.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "api-version": "1.0", "format": "json", "query": "40.648677,-74.010535", diff --git a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetMetroAreaInfo.json b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetMetroAreaInfo.json index 34064024fa0d..60b068f2944f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetMetroAreaInfo.json +++ b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetMetroAreaInfo.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "api-version": "1.0", "format": "json", "query": "121", diff --git a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetNearbyTransit.json b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetNearbyTransit.json index 963d9675101b..5854de009cfe 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetNearbyTransit.json +++ b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetNearbyTransit.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "api-version": "1.0", "format": "json", "query": "40.693393,-73.988310", diff --git a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetRealTimeArrivals.json b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetRealTimeArrivals.json index 60933fce0b9f..9d7097f36828 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetRealTimeArrivals.json +++ b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetRealTimeArrivals.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "api-version": "1.0", "format": "json", "query": "121---19919516" diff --git a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetTransitItinerary.json b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetTransitItinerary.json index 91f2c104f189..df91fc18b3c1 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetTransitItinerary.json +++ b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetTransitItinerary.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "api-version": "1.0", "format": "json", "query": "6f1eb44e-255f-4d06-9491-a35ee7864e19---20200929FF43D18907D24B35A1A7454DE7231C89:0---81", diff --git a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetTransitLineInfo.json b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetTransitLineInfo.json index ea4d8d7bf140..40d33e140985 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetTransitLineInfo.json +++ b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetTransitLineInfo.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "api-version": "1.0", "format": "json", "query": "121---373227", diff --git a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetTransitRoute.json b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetTransitRoute.json index 280920327153..167d066bca36 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetTransitRoute.json +++ b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetTransitRoute.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "api-version": "1.0", "format": "json", "origin": "41.948437, -87.655334", diff --git a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetTransitStopInfo.json b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetTransitStopInfo.json index 1f7fc7684b6d..0e3383b9661a 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetTransitStopInfo.json +++ b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetTransitStopInfo.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "api-version": "1.0", "format": "json", "query": "121---14013676", diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetCopyrightCaption.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetCopyrightCaption.json index d6e9b47100f2..3aa2c33e4206 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetCopyrightCaption.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetCopyrightCaption.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "api-version": "1.0", "format": "json", "subscription-key": "[subscription-key]" diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetCopyrightForTile.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetCopyrightForTile.json index ebbf26fccc88..744610813e23 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetCopyrightForTile.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetCopyrightForTile.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "api-version": "1.0", "format": "json", "zoom": 6, diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetCopyrightForWorld.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetCopyrightForWorld.json index ab7e51c902d4..4eacfad8e911 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetCopyrightForWorld.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetCopyrightForWorld.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "api-version": "1.0", "format": "json", "subscription-key": "[subscription-key]" diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetCopyrightFromBoundingBox.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetCopyrightFromBoundingBox.json index 0f73246575f9..d52e8fbdbe1b 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetCopyrightFromBoundingBox.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetCopyrightFromBoundingBox.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "api-version": "1.0", "format": "json", "mincoordinates": "52.41064,4.84228", diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapImageryTile.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapImageryTile.json index 830a7dc82d73..f9266126eda8 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapImageryTile.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapImageryTile.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "api-version": "1.0", "format": "png", "style": "satellite", diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapStateTile.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapStateTile.json index b22dc1179f52..dee831819cbd 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapStateTile.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapStateTile.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "api-version": "1.0", "statesetId": "[statesetId]", "zoom": 6, diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapStaticImage.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapStaticImage.json index 148cd88bc1a2..64a8a9d062ea 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapStaticImage.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapStaticImage.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "api-version": "1.0", "format": "png", "zoom": 2, diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapTile.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapTile.json index 42e832c7f939..6ae598096705 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapTile.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapTile.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "api-version": "1.0", "format": "png", "layer": "basic", diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/examples/GetMapTileV2.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/examples/GetMapTileV2.json index d9b37cc37dca..ede99d3cfc57 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/examples/GetMapTileV2.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/examples/GetMapTileV2.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "api-version": "2.0", "tilesetId": "microsoft.base", "zoom": 6, diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/GetRouteDirections.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/GetRouteDirections.json index a5937068ffe5..af37c2023854 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/GetRouteDirections.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/GetRouteDirections.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "format": "json", "api-version": "1.0", "query": "52.50931,13.42936:52.50274,13.43872", diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/GetRouteRange.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/GetRouteRange.json index a013418cbf93..0506bd57fd25 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/GetRouteRange.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/GetRouteRange.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "format": "json", "api-version": "1.0", "query": "50.97452,5.86605", diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteDirections.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteDirections.json index 56d738719173..a409940d5798 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteDirections.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteDirections.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "format": "json", "api-version": "1.0", "query": "52.50931,13.42936:52.50274,13.43872", diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteDirectionsBatch.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteDirectionsBatch.json index 79aa3822a4eb..c4d008878488 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteDirectionsBatch.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteDirectionsBatch.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "format": "json", "api-version": "1.0", "subscription-key": "[subscription-key]", diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteMatrix.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteMatrix.json index a8e38e334488..964313e41d7e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteMatrix.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteMatrix.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "format": "json", "api-version": "1.0", "subscription-key": "[subscription-key]", diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddress.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddress.json index 25f04a4c64ec..eb546d66ed6e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddress.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddress.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "format": "json", "api-version": "1.0", "query": "15127 NE 24th Street, Redmond, WA 98052", diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddressReverse.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddressReverse.json index 097316bfd647..45918af54a49 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddressReverse.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddressReverse.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "format": "json", "api-version": "1.0", "query": "37.337,-121.89", diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddressReverseCrossStreet.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddressReverseCrossStreet.json index 762140c8db64..29ddbaa72a17 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddressReverseCrossStreet.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddressReverseCrossStreet.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "format": "json", "api-version": "1.0", "query": "37.337,-121.89", diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddressStructured.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddressStructured.json index 666e45fb7327..cae633673bcb 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddressStructured.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddressStructured.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "format": "json", "api-version": "1.0", "countryCode": "US", diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchFuzzy.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchFuzzy.json index 1fbb11c89ff5..41d89b558bff 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchFuzzy.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchFuzzy.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "format": "json", "api-version": "1.0", "query": "seattle", diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchNearby.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchNearby.json index ceae81b5d908..7faa6beb5fb4 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchNearby.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchNearby.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "format": "json", "api-version": "1.0", "lat": 40.706270, diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchPOI.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchPOI.json index 308853a33a68..bbdfa40a604a 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchPOI.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchPOI.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "format": "json", "api-version": "1.0", "query": "juice bars", diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchPOICategory.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchPOICategory.json index a54650c2539c..171316e34179 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchPOICategory.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchPOICategory.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "format": "json", "api-version": "1.0", "query": "atm", diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchPOICategoryTree.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchPOICategoryTree.json index 1a1114c83bc7..1113239130a3 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchPOICategoryTree.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchPOICategoryTree.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "format": "json", "api-version": "1.0", "subscription-key": "[subscription-key]" diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchPolygon.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchPolygon.json index 46186f7c933a..5c534d1f63c0 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchPolygon.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchPolygon.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "format": "json", "api-version": "1.0", "geometries": "[geometry-ids]", diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchAddressBatch.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchAddressBatch.json index 6db886460bff..3b0a20a86dbe 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchAddressBatch.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchAddressBatch.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "format": "json", "api-version": "1.0", "subscription-key": "[subscription-key]", diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchAddressReverseBatch.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchAddressReverseBatch.json index 91a8a6bcd46b..a9fb16b9edef 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchAddressReverseBatch.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchAddressReverseBatch.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "format": "json", "api-version": "1.0", "subscription-key": "[subscription-key]", diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchAlongRoute.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchAlongRoute.json index dd9fdb3a7301..b9f58d7d073b 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchAlongRoute.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchAlongRoute.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "format": "json", "api-version": "1.0", "query": "burger", diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchFuzzyBatch.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchFuzzyBatch.json index c9aa1bd64ebe..00caacfa28bb 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchFuzzyBatch.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchFuzzyBatch.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "format": "json", "api-version": "1.0", "subscription-key": "[subscription-key]", diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchInsideFeatureCollection.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchInsideFeatureCollection.json index 16beafcf6e8b..f87869a9a7cf 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchInsideFeatureCollection.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchInsideFeatureCollection.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "format": "json", "api-version": "1.0", "query": "pizza", diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchInsideGeometry.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchInsideGeometry.json index 91505d07f5db..688fd05ef5ee 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchInsideGeometry.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchInsideGeometry.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "format": "json", "api-version": "1.0", "query": "burger", diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchInsideGeometryCollection.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchInsideGeometryCollection.json index d7b8f93a7da9..eb3743ebc0e9 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchInsideGeometryCollection.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchInsideGeometryCollection.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "format": "json", "api-version": "1.0", "query": "pizza", diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetBuffer.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetBuffer.json index 43e7e0727837..6c3348488598 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetBuffer.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetBuffer.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "format": "json", "api-version": "1.0", "subscription-key": "[subscription-key]", diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetClosestPoint.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetClosestPoint.json index 556e7a33ae6e..f176b6b24193 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetClosestPoint.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetClosestPoint.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "format": "json", "api-version": "1.0", "subscription-key": "[subscription-key]", diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetGeofence.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetGeofence.json index 6dab6f4a168a..a3dbf69abe24 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetGeofence.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetGeofence.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "format": "json", "api-version": "1.0", "deviceId": "unique_device_name_under_account", diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetGreatCircleDistance.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetGreatCircleDistance.json index e309dad87a26..5f9c2e1dd2af 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetGreatCircleDistance.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetGreatCircleDistance.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "format": "json", "api-version": "1.0", "subscription-key": "[subscription-key]", diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetPointInPolygon.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetPointInPolygon.json index 88c4357c221c..55007ded16a9 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetPointInPolygon.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetPointInPolygon.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "format": "json", "api-version": "1.0", "subscription-key": "[subscription-key]", diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/PostBuffer.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/PostBuffer.json index 00d7798d1c99..98584c6f7557 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/PostBuffer.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/PostBuffer.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "format": "json", "api-version": "1.0", "subscription-key": "[subscription-key]", diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/PostClosestPoint.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/PostClosestPoint.json index 2d9b965497f2..fa84100344dd 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/PostClosestPoint.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/PostClosestPoint.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "format": "json", "api-version": "1.0", "subscription-key": "[subscription-key]", diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/PostGeofence.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/PostGeofence.json index 2f3a9a24b7db..0ed72deae2a9 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/PostGeofence.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/PostGeofence.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "format": "json", "api-version": "1.0", "deviceId": "unique_device_name_under_account", diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/PostPointInPolygon.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/PostPointInPolygon.json index 5677897e923c..2e8c946aaa5f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/PostPointInPolygon.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/PostPointInPolygon.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "format": "json", "api-version": "1.0", "subscription-key": "[subscription-key]", diff --git a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneByCoordinates.json b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneByCoordinates.json index da8cab2ca4b5..2b1c4eae34cf 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneByCoordinates.json +++ b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneByCoordinates.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "format": "json", "api-version": "1.0", "query": "47.0,-122", diff --git a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneByID.json b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneByID.json index e3b6480a99cb..b042dd021ae9 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneByID.json +++ b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneByID.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "format": "json", "api-version": "1.0", "query": "Asia/Bahrain", diff --git a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneEnumIANA.json b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneEnumIANA.json index ff08c465adf7..442be172d463 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneEnumIANA.json +++ b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneEnumIANA.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "format": "json", "api-version": "1.0", "subscription-key": "[subscription-key]" diff --git a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneEnumWindows.json b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneEnumWindows.json index e6d21bab33b3..34fa8338a140 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneEnumWindows.json +++ b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneEnumWindows.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "format": "json", "api-version": "1.0", "subscription-key": "[subscription-key]" diff --git a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneIANAVersion.json b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneIANAVersion.json index 9c1d1d21cd58..6b7cc2373646 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneIANAVersion.json +++ b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneIANAVersion.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "format": "json", "api-version": "1.0", "subscription-key": "[subscription-key]" diff --git a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneWindowsToIANA.json b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneWindowsToIANA.json index 7bdd480909fb..aeeaaa00377f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneWindowsToIANA.json +++ b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneWindowsToIANA.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "format": "json", "api-version": "1.0", "query": "pacific standard time", diff --git a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/examples/GetTrafficFlowSegment.json b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/examples/GetTrafficFlowSegment.json index 260df3e59fd3..e1ff8436265b 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/examples/GetTrafficFlowSegment.json +++ b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/examples/GetTrafficFlowSegment.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "api-version": "1.0", "format": "json", "style": "absolute", diff --git a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/examples/GetTrafficFlowTile.json b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/examples/GetTrafficFlowTile.json index db22b3435096..b36909ae763b 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/examples/GetTrafficFlowTile.json +++ b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/examples/GetTrafficFlowTile.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "api-version": "1.0", "format": "png", "style": "absolute", diff --git a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/examples/GetTrafficIncidentDetail.json b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/examples/GetTrafficIncidentDetail.json index 69024b136001..79576600a09f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/examples/GetTrafficIncidentDetail.json +++ b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/examples/GetTrafficIncidentDetail.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "api-version": "1.0", "format": "json", "style": "s3", diff --git a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/examples/GetTrafficIncidentTile.json b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/examples/GetTrafficIncidentTile.json index d191b8fedcb3..af321b80deb5 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/examples/GetTrafficIncidentTile.json +++ b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/examples/GetTrafficIncidentTile.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "api-version": "1.0", "format": "png", "style": "night", diff --git a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/examples/GetTrafficIncidentViewport.json b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/examples/GetTrafficIncidentViewport.json index 42994892b5dd..8b4c68b52a3e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/examples/GetTrafficIncidentViewport.json +++ b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/examples/GetTrafficIncidentViewport.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "api-version": "1.0", "format": "json", "boundingbox": "-939584.4813015489,-23954526.723651607,14675583.153020501,25043442.895825107", diff --git a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetCurrentConditions.json b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetCurrentConditions.json index 7a176b6faf64..7f7254ebf995 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetCurrentConditions.json +++ b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetCurrentConditions.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "api-version": "1.0", "format": "json", "query": "47.641268,-122.125679" diff --git a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetDailyForecast.json b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetDailyForecast.json index 01c9363275db..fdb87d576b24 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetDailyForecast.json +++ b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetDailyForecast.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "api-version": "1.0", "format": "json", "query": "62.6490341,30.0734812", diff --git a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetDailyIndices.json b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetDailyIndices.json index 660e58e670ca..34d8df5ba6c8 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetDailyIndices.json +++ b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetDailyIndices.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "api-version": "1.0", "format": "json", "query": "43.84745,-79.37849", diff --git a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetHourlyForecast.json b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetHourlyForecast.json index f3ea02454b5d..5be1aeff39f6 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetHourlyForecast.json +++ b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetHourlyForecast.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "api-version": "1.0", "format": "json", "query": "47.632346,-122.138874", diff --git a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetMinuteForecast.json b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetMinuteForecast.json index d122f2685328..b1c8fb300e81 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetMinuteForecast.json +++ b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetMinuteForecast.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "api-version": "1.0", "format": "json", "query": "47.632346,-122.138874", diff --git a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetQuarterDayForecast.json b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetQuarterDayForecast.json index add8661be976..d12d4a217ed5 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetQuarterDayForecast.json +++ b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetQuarterDayForecast.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "api-version": "1.0", "format": "json", "query": "47.632346,-122.138874", diff --git a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetSevereWeatherAlerts.json b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetSevereWeatherAlerts.json index 3974b02f3a3a..3485a2a27e80 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetSevereWeatherAlerts.json +++ b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetSevereWeatherAlerts.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "api-version": "1.0", "format": "json", "query": "48.057,-81.091" diff --git a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetWeatherAlongRoute.json b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetWeatherAlongRoute.json index 8e2d64d78d09..a3039dbf7e65 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetWeatherAlongRoute.json +++ b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetWeatherAlongRoute.json @@ -1,5 +1,6 @@ { "parameters": { + "geography": "us", "api-version": "1.0", "format": "json", "query": "38.907,-77.037,0:38.907,-77.009,10:38.926,-76.928,20:39.033,-76.852,30:39.168,-76.732,40:39.269,-76.634,50:39.287,-76.612,60" From 8643845552b9c0998d3bf03fdf8ca4d23e880915 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Tue, 25 May 2021 10:48:11 +0200 Subject: [PATCH 158/210] Update missing routes. --- .../Common/preview/1.0/common.json | 7 + .../1.0/examples/GetRouteDirectionsBatch.json | 211 +++++++++++++++++ .../preview/1.0/examples/GetRouteMatrix.json | 122 ++++++++++ .../PostRouteDirectionsBatchSync.json | 218 ++++++++++++++++++ .../Route/preview/1.0/route.json | 193 ++++++++++++++++ 5 files changed, 751 insertions(+) create mode 100644 specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/GetRouteDirectionsBatch.json create mode 100644 specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/GetRouteMatrix.json create mode 100644 specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteDirectionsBatchSync.json diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index ada2155db3e8..c8f55eb379f8 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -728,6 +728,13 @@ }, "x-ms-error-response": true }, + "408": { + "description": "Timeout: The request took longer to finish than the maximum amount of time defined in the api.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + }, "409": { "description": "The request could not be completed due to a conflict with the current state of the resource. Likely caused by a parallel update to the same resource.", "schema": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/GetRouteDirectionsBatch.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/GetRouteDirectionsBatch.json new file mode 100644 index 000000000000..b2824d60ab4c --- /dev/null +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/GetRouteDirectionsBatch.json @@ -0,0 +1,211 @@ +{ + "parameters": { + "geography": "us", + "batchId": "11111111-2222-3333-4444-555555555555", + "api-version": "1.0", + "subscription-key": "[subscription-key]", + "postRouteDirectionsBatchRequestBody": { + "batchItems": [ + { + "query": "?query=47.639987,-122.128384:47.621252,-122.184408:47.596437,-122.332000&routeType=fastest&travelMode=car&maxAlternatives=99" + }, + { + "query": "?query=47.620659,-122.348934:47.610101,-122.342015&travelMode=bicycle&routeType=eco&traffic=false" + }, + { + "query": "?query=40.759856,-73.985108:40.771136,-73.973506&travelMode=pedestrian&routeType=shortest" + } + ] + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "batchItems": [ + { + "statusCode": 400, + "response": { + "error": { + "code": "400 BadRequest", + "message": "maxAlternatives parameter value should be between 0 and 5 inclusive" + } + } + }, + { + "statusCode": 200, + "response": { + "formatVersion": "0.0.12", + "routes": [ + { + "summary": { + "lengthInMeters": 1754, + "travelTimeInSeconds": 386, + "trafficDelayInSeconds": 0, + "departureTime": "2019-06-21T22:56:23+00:00", + "arrivalTime": "2019-06-21T23:02:49+00:00" + }, + "legs": [ + { + "summary": { + "lengthInMeters": 1754, + "travelTimeInSeconds": 386, + "trafficDelayInSeconds": 0, + "departureTime": "2019-06-21T22:56:23+00:00", + "arrivalTime": "2019-06-21T23:02:49+00:00" + }, + "points": [ + { + "latitude": 47.62094, + "longitude": -122.34892 + }, + { + "latitude": 47.62094, + "longitude": -122.3485 + }, + { + "latitude": 47.62095, + "longitude": -122.3476 + }, + { + "latitude": 47.60995, + "longitude": -122.34174 + }, + { + "latitude": 47.61011, + "longitude": -122.342 + } + ] + } + ], + "sections": [ + { + "startPointIndex": 0, + "endPointIndex": 44, + "sectionType": "TRAVEL_MODE", + "travelMode": "bicycle" + } + ] + } + ] + } + }, + { + "statusCode": 200, + "response": { + "formatVersion": "0.0.12", + "routes": [ + { + "summary": { + "lengthInMeters": 1772, + "travelTimeInSeconds": 1276, + "trafficDelayInSeconds": 0, + "departureTime": "2019-06-21T22:56:23+00:00", + "arrivalTime": "2019-06-21T23:17:38+00:00" + }, + "legs": [ + { + "summary": { + "lengthInMeters": 1772, + "travelTimeInSeconds": 1276, + "trafficDelayInSeconds": 0, + "departureTime": "2019-06-21T22:56:23+00:00", + "arrivalTime": "2019-06-21T23:17:38+00:00" + }, + "points": [ + { + "latitude": 40.75982, + "longitude": -73.98493 + }, + { + "latitude": 40.7601, + "longitude": -73.98483 + }, + { + "latitude": 40.75984, + "longitude": -73.98417 + }, + { + "latitude": 40.76047, + "longitude": -73.9837 + }, + { + "latitude": 40.77095, + "longitude": -73.9736 + }, + { + "latitude": 40.77114, + "longitude": -73.97356 + } + ] + } + ], + "sections": [ + { + "startPointIndex": 0, + "endPointIndex": 47, + "sectionType": "TRAVEL_MODE", + "travelMode": "pedestrian" + } + ] + } + ] + } + } + ], + "summary": { + "successfulRequests": 2, + "totalRequests": 3 + } + } + }, + "202": { + "headers": {} + }, + "400": { + "headers": {}, + "body": { + "error": { + "code": "400 BadRequest", + "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." + } + } + }, + "401": { + "headers": {}, + "body": { + "error": { + "code": "401 Unauthorized", + "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." + } + } + }, + "403": { + "headers": {}, + "body": { + "error": { + "code": "403 Forbidden", + "message": "Permission, capacity, or authentication issues." + } + } + }, + "404": { + "headers": {}, + "body": { + "error": { + "code": "404 NotFound", + "message": "Not Found: the requested resource could not be found, but it may be available again in the future." + } + } + }, + "500": { + "headers": {}, + "body": { + "error": { + "code": "500 InternalServerError", + "message": "An error occurred while processing the request. Please try again later." + } + } + } + } +} diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/GetRouteMatrix.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/GetRouteMatrix.json new file mode 100644 index 000000000000..6fe970cc17ed --- /dev/null +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/GetRouteMatrix.json @@ -0,0 +1,122 @@ +{ + "parameters": { + "geography": "us", + "matrixId": "11111111-2222-3333-4444-555555555555", + "api-version": "1.0", + "subscription-key": "[subscription-key]" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "formatVersion": "0.0.1", + "matrix": [ + [ + { + "statusCode": 200, + "response": { + "routeSummary": { + "lengthInMeters": 495, + "travelTimeInSeconds": 134, + "trafficDelayInSeconds": 0, + "departureTime": "2018-07-27T22:55:29+00:00", + "arrivalTime": "2018-07-27T22:57:43+00:00" + } + } + }, + { + "statusCode": 200, + "response": { + "routeSummary": { + "lengthInMeters": 647651, + "travelTimeInSeconds": 26835, + "trafficDelayInSeconds": 489, + "departureTime": "2018-07-27T22:55:29+00:00", + "arrivalTime": "2018-07-28T06:22:44+00:00" + } + } + } + ], + [ + { + "statusCode": 200, + "response": { + "routeSummary": { + "lengthInMeters": 338, + "travelTimeInSeconds": 104, + "trafficDelayInSeconds": 0, + "departureTime": "2018-07-27T22:55:29+00:00", + "arrivalTime": "2018-07-27T22:57:13+00:00" + } + } + }, + { + "statusCode": 200, + "response": { + "routeSummary": { + "lengthInMeters": 647494, + "travelTimeInSeconds": 26763, + "trafficDelayInSeconds": 469, + "departureTime": "2018-07-27T22:55:29+00:00", + "arrivalTime": "2018-07-28T06:21:32+00:00" + } + } + } + ] + ], + "summary": { + "successfulRoutes": 4, + "totalRoutes": 4 + } + } + }, + "202": { + "headers": {} + }, + "400": { + "headers": {}, + "body": { + "error": { + "code": "400 BadRequest", + "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." + } + } + }, + "401": { + "headers": {}, + "body": { + "error": { + "code": "401 Unauthorized", + "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." + } + } + }, + "403": { + "headers": {}, + "body": { + "error": { + "code": "403 Forbidden", + "message": "Permission, capacity, or authentication issues." + } + } + }, + "404": { + "headers": {}, + "body": { + "error": { + "code": "404 NotFound", + "message": "Not Found: the requested resource could not be found, but it may be available again in the future." + } + } + }, + "500": { + "headers": {}, + "body": { + "error": { + "code": "500 InternalServerError", + "message": "An error occurred while processing the request. Please try again later." + } + } + } + } +} diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteDirectionsBatchSync.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteDirectionsBatchSync.json new file mode 100644 index 000000000000..a0f7088e442c --- /dev/null +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteDirectionsBatchSync.json @@ -0,0 +1,218 @@ +{ + "parameters": { + "geography": "us", + "format": "json", + "api-version": "1.0", + "subscription-key": "[subscription-key]", + "postRouteDirectionsBatchRequestBody": { + "batchItems": [ + { + "query": "?query=47.639987,-122.128384:47.621252,-122.184408:47.596437,-122.332000&routeType=fastest&travelMode=car&maxAlternatives=99" + }, + { + "query": "?query=47.620659,-122.348934:47.610101,-122.342015&travelMode=bicycle&routeType=eco&traffic=false" + }, + { + "query": "?query=40.759856,-73.985108:40.771136,-73.973506&travelMode=pedestrian&routeType=shortest" + } + ] + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "batchItems": [ + { + "statusCode": 400, + "response": { + "error": { + "code": "400 BadRequest", + "message": "maxAlternatives parameter value should be between 0 and 5 inclusive" + } + } + }, + { + "statusCode": 200, + "response": { + "formatVersion": "0.0.12", + "routes": [ + { + "summary": { + "lengthInMeters": 1754, + "travelTimeInSeconds": 386, + "trafficDelayInSeconds": 0, + "departureTime": "2019-06-21T22:56:23+00:00", + "arrivalTime": "2019-06-21T23:02:49+00:00" + }, + "legs": [ + { + "summary": { + "lengthInMeters": 1754, + "travelTimeInSeconds": 386, + "trafficDelayInSeconds": 0, + "departureTime": "2019-06-21T22:56:23+00:00", + "arrivalTime": "2019-06-21T23:02:49+00:00" + }, + "points": [ + { + "latitude": 47.62094, + "longitude": -122.34892 + }, + { + "latitude": 47.62094, + "longitude": -122.3485 + }, + { + "latitude": 47.62095, + "longitude": -122.3476 + }, + { + "latitude": 47.60995, + "longitude": -122.34174 + }, + { + "latitude": 47.61011, + "longitude": -122.342 + } + ] + } + ], + "sections": [ + { + "startPointIndex": 0, + "endPointIndex": 44, + "sectionType": "TRAVEL_MODE", + "travelMode": "bicycle" + } + ] + } + ] + } + }, + { + "statusCode": 200, + "response": { + "formatVersion": "0.0.12", + "routes": [ + { + "summary": { + "lengthInMeters": 1772, + "travelTimeInSeconds": 1276, + "trafficDelayInSeconds": 0, + "departureTime": "2019-06-21T22:56:23+00:00", + "arrivalTime": "2019-06-21T23:17:38+00:00" + }, + "legs": [ + { + "summary": { + "lengthInMeters": 1772, + "travelTimeInSeconds": 1276, + "trafficDelayInSeconds": 0, + "departureTime": "2019-06-21T22:56:23+00:00", + "arrivalTime": "2019-06-21T23:17:38+00:00" + }, + "points": [ + { + "latitude": 40.75982, + "longitude": -73.98493 + }, + { + "latitude": 40.7601, + "longitude": -73.98483 + }, + { + "latitude": 40.75984, + "longitude": -73.98417 + }, + { + "latitude": 40.76047, + "longitude": -73.9837 + }, + { + "latitude": 40.77095, + "longitude": -73.9736 + }, + { + "latitude": 40.77114, + "longitude": -73.97356 + } + ] + } + ], + "sections": [ + { + "startPointIndex": 0, + "endPointIndex": 47, + "sectionType": "TRAVEL_MODE", + "travelMode": "pedestrian" + } + ] + } + ] + } + } + ], + "summary": { + "successfulRequests": 2, + "totalRequests": 3 + } + } + }, + "400": { + "headers": {}, + "body": { + "error": { + "code": "400 BadRequest", + "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." + } + } + }, + "401": { + "headers": {}, + "body": { + "error": { + "code": "401 Unauthorized", + "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." + } + } + }, + "403": { + "headers": {}, + "body": { + "error": { + "code": "403 Forbidden", + "message": "Permission, capacity, or authentication issues." + } + } + }, + "404": { + "headers": {}, + "body": { + "error": { + "code": "404 NotFound", + "message": "Not Found: the requested resource could not be found, but it may be available again in the future." + } + } + }, + "408": { + "headers": {}, + "body": { + "error": { + "code": "408 Timeout", + "message": "Timeout: The request took longer to finish than the maximum amount of time defined in the api." + } + } + }, + "500": { + "headers": {}, + "body": { + "error": { + "code": "500 InternalServerError", + "message": "An error occurred while processing the request. Please try again later." + } + } + } + } + } + \ No newline at end of file diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json index 010d030c2240..6fd366a43a55 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json @@ -725,6 +725,22 @@ ] }, "x-ms-parameter-location": "method" + }, + "MatrixId": { + "name": "matrixId", + "description": "Matrix id received after the Matrix Route request was accepted successfully.", + "type": "string", + "in": "path", + "required": true, + "x-ms-parameter-location": "method" + }, + "BatchId": { + "name": "batchId", + "description": "Batch id received after using the Matrix Route request was accepted successfully.", + "type": "string", + "in": "path", + "required": true, + "x-ms-parameter-location": "method" } }, "paths": { @@ -849,6 +865,57 @@ } } }, + "/route/matrix/{matrixId}": { + "get": { + "description": "If the Matrix Route request was accepted successfully, the Location header in the response contains the URL to download the results of the request. This status URI looks like the following:\n\n ```\n GET https://atlas.microsoft.com/route/matrix/{matrixId}?api-version=1.0?subscription-key={subscription-key}\n ```\n\n\n4. Client issues a GET request on the download URL obtained in Step 3 to download the results\n\n### Download Sync Results\nWhen you make a POST request for Route Matrix Sync API, the service returns 200 response code for successful request and a response array. The response body will contain the data and there will be no possibility to retrieve the results later.\n\n### Download Async Results\nWhen a request issues a `202 Accepted` response, the request is being processed using our async pipeline. You will be given a URL to check the progress of your async request in the location header of the response. This status URI looks like the following:\n```\n GET https://atlas.microsoft.com/route/matrix/{matrixId}?api-version=1.0?subscription-key={subscription-key}\n```\n\nThe URL provided by the location header will return the following responses when a `GET` request is issued.\n\n > HTTP `202 Accepted` - Matrix request was accepted but is still being processed. Please try again in some time.\n\n > HTTP `200 OK` - Matrix request successfully processed. The response body contains all of the results.", + "operationId": "Route_GetRouteMatrix", + "x-ms-examples": { + "GetRouteMatrix": { + "$ref": "./examples/GetRouteMatrix.json" + } + }, + "parameters": [ + { + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + }, + { + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + }, + { + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/MatrixId" + } + ], + "responses": { + "200": { + "description": "Matrix request successfully processed. The response body contains all of the results.", + "schema": { + "$ref": "#/definitions/PostRouteMatrixResponse" + } + }, + "202": { + "description": "OK" + }, + "400": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + }, + "401": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + }, + "403": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + }, + "404": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + }, + "500": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + } + } + } + }, "/route/directions/{format}": { "get": { "description": "**Applies to**: S0 and S1 pricing tiers.\n\n\nReturns a route between an origin and a destination, passing through waypoints if they are specified. The route will take into account factors such as current traffic and the typical road speeds on the requested day of the week and time of day.\n\nInformation returned includes the distance, estimated travel time, and a representation of the route geometry. Additional routing information such as optimized waypoint order or turn by turn instructions is also available, depending on the options selected.\n\nRouting service provides a set of parameters for a detailed description of vehicle-specific Consumption Model. Please check [Consumption Model](https://docs.microsoft.com/azure/azure-maps/consumption-model) for detailed explanation of the concepts and parameters involved.", @@ -1443,6 +1510,132 @@ } } ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/PostRouteDirectionsBatchResponse" + } + }, + "202": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" + }, + "400": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + }, + "401": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + }, + "403": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + }, + "404": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + }, + "408": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/408" + }, + "500": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + } + } + } + }, + "/route/directions/batch/{batchId}": { + "get": { + "description": "### Download Asynchronous Batch Results\nTo download the async batch results you will issue a `GET` request to the batch download endpoint. This _download URL_ can be obtained from the `Location` header of a successful `POST` batch request and looks like the following:\n\n```\nhttps://atlas.microsoft.com/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\nHere's the typical sequence of operations for downloading the batch results:\n1. Client sends a `GET` request using the _download URL_.\n2. The server will respond with one of the following:\n \n > HTTP `202 Accepted` - Batch request was accepted but is still being processed. Please try again in some time.\n\n > HTTP `200 OK` - Batch request successfully processed. The response body contains all the batch results.\n\n\n\n### Batch Response Model\nThe returned data content is similar for async and sync requests. When downloading the results of an async batch request, if the batch has finished processing, the response body contains the batch response. This batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests`i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item in `batchItems` contains `statusCode` and `response` fields. Each `response` in `batchItems` is of one of the following types:\n\n - [`RouteDirectionsResponse`](https://docs.microsoft.com/en-us/rest/api/maps/route/getroutedirections#routedirectionsresponse) - If the query completed successfully.\n\n - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.\n\n\nHere's a sample Batch Response with 1 _successful_ and 1 _failed_ result:\n\n\n```json\n{\n \"summary\": {\n \"successfulRequests\": 1,\n \"totalRequests\": 2\n },\n \"batchItems\": [\n {\n \"statusCode\": 200,\n \"response\": {\n \"routes\": [\n {\n \"summary\": {\n \"lengthInMeters\": 1758,\n \"travelTimeInSeconds\": 387,\n \"trafficDelayInSeconds\": 0,\n \"departureTime\": \"2018-07-17T00:49:56+00:00\",\n \"arrivalTime\": \"2018-07-17T00:56:22+00:00\"\n },\n \"legs\": [\n {\n \"summary\": {\n \"lengthInMeters\": 1758,\n \"travelTimeInSeconds\": 387,\n \"trafficDelayInSeconds\": 0,\n \"departureTime\": \"2018-07-17T00:49:56+00:00\",\n \"arrivalTime\": \"2018-07-17T00:56:22+00:00\"\n },\n \"points\": [\n {\n \"latitude\": 47.62094,\n \"longitude\": -122.34892\n },\n {\n \"latitude\": 47.62094,\n \"longitude\": -122.3485\n },\n {\n \"latitude\": 47.62095,\n \"longitude\": -122.3476\n }\n ]\n }\n ],\n \"sections\": [\n {\n \"startPointIndex\": 0,\n \"endPointIndex\": 40,\n \"sectionType\": \"TRAVEL_MODE\",\n \"travelMode\": \"bicycle\"\n }\n ]\n }\n ]\n }\n },\n {\n \"statusCode\": 400,\n \"response\":\n {\n \"error\":\n {\n \"code\": \"400 BadRequest\",\n \"message\": \"Bad request: one or more parameters were incorrectly specified or are mutually exclusive.\"\n }\n }\n }\n ]\n}\n```", + "operationId": "Route_GetRouteDirectionsBatch", + "x-ms-examples": { + "A Get Route Directions Batch API call containing 3 Route Directions API queries": { + "$ref": "./examples/Route_GetRouteDirectionsBatch.json" + } + }, + "parameters": [ + { + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + }, + { + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + }, + { + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/BatchId" + }, + { + "name": "postRouteDirectionsBatchRequestBody", + "in": "body", + "description": "The list of route directions queries/requests to process. The list can contain a max of 700 queries for async and 100 queries for sync version and must contain at least 1 query.", + "required": true, + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/BatchRequestBody" + } + } + ], + "responses": { + "200": { + "description": "Batch request successfully processed. The response body contains all the batch results.", + "schema": { + "$ref": "#/definitions/PostRouteDirectionsBatchResponse" + } + }, + "202": { + "description": "Batch request was accepted but is still being processed. Please try again in some time." + }, + "400": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + }, + "401": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/401" + }, + "403": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/403" + }, + "404": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/404" + }, + "408": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/408" + }, + "500": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + } + } + } + }, + "/route/directions/batch/sync/{format}": { + "post": { + "description": "**Route Directions Batch API**\n\n\n**Applies to**: S1 pricing tier.\n\n\n\nThe Route Directions Batch API sends batches of queries to [Route Directions API](https://docs.microsoft.com/en-us/rest/api/maps/route/getroutedirections) using just a single API call. You can call Route Directions Batch API to run either asynchronously (async) or synchronously (sync). The async API allows caller to batch up to **700** queries and sync API up to **100** queries.\n### Submit Synchronous Batch Request\nThe Synchronous API is recommended for lightweight batch requests. When the service receives a request, it will respond as soon as the batch items are calculated and there will be no possibility to retrieve the results later. The Synchronous API will return a timeout error (a 408 response) if the request takes longer than 60 seconds. The number of batch items is limited to **100** for this API.\n```\n", + "operationId": "Route_PostRouteDirectionsBatchSync", + "x-ms-examples": { + "A Route Directions Batch Synchronous API call containing 3 Route Directions API queries": { + "$ref": "./examples/PostRouteDirectionsBatchSync.json" + } + }, + "parameters": [ + { + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + }, + { + "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" + }, + { + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + }, + { + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" + }, + { + "name": "postRouteDirectionsBatchRequestBody", + "in": "body", + "description": "The list of route directions queries/requests to process. The list can contain a max of 700 queries for async and 100 queries for sync version and must contain at least 1 query.", + "required": true, + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/BatchRequestBody" + } + } + ], "responses": { "200": { "description": "OK", From 9ea5cbc50cf38a9bd66f20ea8c036cb0f91bc340 Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Tue, 25 May 2021 15:28:28 +0200 Subject: [PATCH 159/210] Route - fix added endpoints for missing API --- .../Route/preview/1.0/route.json | 24 +++---------------- 1 file changed, 3 insertions(+), 21 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json index 6fd366a43a55..c92b278ed237 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json @@ -895,9 +895,6 @@ "$ref": "#/definitions/PostRouteMatrixResponse" } }, - "202": { - "description": "OK" - }, "400": { "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, @@ -1546,8 +1543,8 @@ "description": "### Download Asynchronous Batch Results\nTo download the async batch results you will issue a `GET` request to the batch download endpoint. This _download URL_ can be obtained from the `Location` header of a successful `POST` batch request and looks like the following:\n\n```\nhttps://atlas.microsoft.com/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\nHere's the typical sequence of operations for downloading the batch results:\n1. Client sends a `GET` request using the _download URL_.\n2. The server will respond with one of the following:\n \n > HTTP `202 Accepted` - Batch request was accepted but is still being processed. Please try again in some time.\n\n > HTTP `200 OK` - Batch request successfully processed. The response body contains all the batch results.\n\n\n\n### Batch Response Model\nThe returned data content is similar for async and sync requests. When downloading the results of an async batch request, if the batch has finished processing, the response body contains the batch response. This batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests`i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item in `batchItems` contains `statusCode` and `response` fields. Each `response` in `batchItems` is of one of the following types:\n\n - [`RouteDirectionsResponse`](https://docs.microsoft.com/en-us/rest/api/maps/route/getroutedirections#routedirectionsresponse) - If the query completed successfully.\n\n - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.\n\n\nHere's a sample Batch Response with 1 _successful_ and 1 _failed_ result:\n\n\n```json\n{\n \"summary\": {\n \"successfulRequests\": 1,\n \"totalRequests\": 2\n },\n \"batchItems\": [\n {\n \"statusCode\": 200,\n \"response\": {\n \"routes\": [\n {\n \"summary\": {\n \"lengthInMeters\": 1758,\n \"travelTimeInSeconds\": 387,\n \"trafficDelayInSeconds\": 0,\n \"departureTime\": \"2018-07-17T00:49:56+00:00\",\n \"arrivalTime\": \"2018-07-17T00:56:22+00:00\"\n },\n \"legs\": [\n {\n \"summary\": {\n \"lengthInMeters\": 1758,\n \"travelTimeInSeconds\": 387,\n \"trafficDelayInSeconds\": 0,\n \"departureTime\": \"2018-07-17T00:49:56+00:00\",\n \"arrivalTime\": \"2018-07-17T00:56:22+00:00\"\n },\n \"points\": [\n {\n \"latitude\": 47.62094,\n \"longitude\": -122.34892\n },\n {\n \"latitude\": 47.62094,\n \"longitude\": -122.3485\n },\n {\n \"latitude\": 47.62095,\n \"longitude\": -122.3476\n }\n ]\n }\n ],\n \"sections\": [\n {\n \"startPointIndex\": 0,\n \"endPointIndex\": 40,\n \"sectionType\": \"TRAVEL_MODE\",\n \"travelMode\": \"bicycle\"\n }\n ]\n }\n ]\n }\n },\n {\n \"statusCode\": 400,\n \"response\":\n {\n \"error\":\n {\n \"code\": \"400 BadRequest\",\n \"message\": \"Bad request: one or more parameters were incorrectly specified or are mutually exclusive.\"\n }\n }\n }\n ]\n}\n```", "operationId": "Route_GetRouteDirectionsBatch", "x-ms-examples": { - "A Get Route Directions Batch API call containing 3 Route Directions API queries": { - "$ref": "./examples/Route_GetRouteDirectionsBatch.json" + "GetRouteDirectionsBatch": { + "$ref": "./examples/GetRouteDirectionsBatch.json" } }, "parameters": [ @@ -1562,15 +1559,6 @@ }, { "$ref": "#/parameters/BatchId" - }, - { - "name": "postRouteDirectionsBatchRequestBody", - "in": "body", - "description": "The list of route directions queries/requests to process. The list can contain a max of 700 queries for async and 100 queries for sync version and must contain at least 1 query.", - "required": true, - "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/BatchRequestBody" - } } ], "responses": { @@ -1580,9 +1568,6 @@ "$ref": "#/definitions/PostRouteDirectionsBatchResponse" } }, - "202": { - "description": "Batch request was accepted but is still being processed. Please try again in some time." - }, "400": { "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, @@ -1609,7 +1594,7 @@ "description": "**Route Directions Batch API**\n\n\n**Applies to**: S1 pricing tier.\n\n\n\nThe Route Directions Batch API sends batches of queries to [Route Directions API](https://docs.microsoft.com/en-us/rest/api/maps/route/getroutedirections) using just a single API call. You can call Route Directions Batch API to run either asynchronously (async) or synchronously (sync). The async API allows caller to batch up to **700** queries and sync API up to **100** queries.\n### Submit Synchronous Batch Request\nThe Synchronous API is recommended for lightweight batch requests. When the service receives a request, it will respond as soon as the batch items are calculated and there will be no possibility to retrieve the results later. The Synchronous API will return a timeout error (a 408 response) if the request takes longer than 60 seconds. The number of batch items is limited to **100** for this API.\n```\n", "operationId": "Route_PostRouteDirectionsBatchSync", "x-ms-examples": { - "A Route Directions Batch Synchronous API call containing 3 Route Directions API queries": { + "PostRouteDirectionsBatchSync": { "$ref": "./examples/PostRouteDirectionsBatchSync.json" } }, @@ -1643,9 +1628,6 @@ "$ref": "#/definitions/PostRouteDirectionsBatchResponse" } }, - "202": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" - }, "400": { "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, From f63179c172082f26f46050c17d9c5bb0d26ce216 Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Tue, 25 May 2021 15:29:15 +0200 Subject: [PATCH 160/210] Use autorest v3 for TypeScript code gen --- specification/maps/data-plane/readme.typescript.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/specification/maps/data-plane/readme.typescript.md b/specification/maps/data-plane/readme.typescript.md index 84f3d47cac18..f0ad3875f95d 100644 --- a/specification/maps/data-plane/readme.typescript.md +++ b/specification/maps/data-plane/readme.typescript.md @@ -4,11 +4,11 @@ These settings apply only when `--typescript` is specified on the command line. Please also specify `--typescript-sdks-folder=`. ``` yaml $(typescript) -typescript: - package-name: "azure-maps-rest" - output-folder: "$(typescript-sdks-folder)/sdk/maps/azure-maps-rest" - namespace: "atlas.service" - payload-flattening-threshold: 1 - clear-output-folder: true - generate-metadata: true +azure-arm: false +package-name: "@azure/maps-service" +license-header: MICROSOFT_MIT_NO_VERSION +output-folder: "$(typescript-sdks-folder)/sdk/maps/maps-service" +clear-output-folder: true +generate-metadata: true +v3: true ``` From 7b993254c808af096f3ae683600cae4ee904ac9a Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Tue, 25 May 2021 16:12:42 +0200 Subject: [PATCH 161/210] Add arm to python sdk in order to have aad auth. --- specification/maps/data-plane/readme.python.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/specification/maps/data-plane/readme.python.md b/specification/maps/data-plane/readme.python.md index 277c12c8899e..6d83465f9dd2 100644 --- a/specification/maps/data-plane/readme.python.md +++ b/specification/maps/data-plane/readme.python.md @@ -7,6 +7,7 @@ Use `--python-mode=update` if you already have a setup.py and just want to updat ``` yaml $(python) && !$(track2) python-mode: create python: + azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION payload-flattening-threshold: 2 namespace: azure.maps.service @@ -15,6 +16,7 @@ python: clear-output-folder: true ``` ``` yaml $(python) && $(track2) +azure-arm: true python-mode: create license-header: MICROSOFT_MIT_NO_VERSION namespace: azure.maps.service From a46858a70b27524df5d964969d41a6a8d478479c Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Tue, 25 May 2021 16:13:28 +0200 Subject: [PATCH 162/210] Run prettier on route. --- .../PostRouteDirectionsBatchSync.json | 393 +++++++++--------- 1 file changed, 196 insertions(+), 197 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteDirectionsBatchSync.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteDirectionsBatchSync.json index a0f7088e442c..780e457e31f8 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteDirectionsBatchSync.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteDirectionsBatchSync.json @@ -1,218 +1,217 @@ { - "parameters": { - "geography": "us", - "format": "json", - "api-version": "1.0", - "subscription-key": "[subscription-key]", - "postRouteDirectionsBatchRequestBody": { + "parameters": { + "geography": "us", + "format": "json", + "api-version": "1.0", + "subscription-key": "[subscription-key]", + "postRouteDirectionsBatchRequestBody": { + "batchItems": [ + { + "query": "?query=47.639987,-122.128384:47.621252,-122.184408:47.596437,-122.332000&routeType=fastest&travelMode=car&maxAlternatives=99" + }, + { + "query": "?query=47.620659,-122.348934:47.610101,-122.342015&travelMode=bicycle&routeType=eco&traffic=false" + }, + { + "query": "?query=40.759856,-73.985108:40.771136,-73.973506&travelMode=pedestrian&routeType=shortest" + } + ] + } + }, + "responses": { + "200": { + "headers": {}, + "body": { "batchItems": [ { - "query": "?query=47.639987,-122.128384:47.621252,-122.184408:47.596437,-122.332000&routeType=fastest&travelMode=car&maxAlternatives=99" + "statusCode": 400, + "response": { + "error": { + "code": "400 BadRequest", + "message": "maxAlternatives parameter value should be between 0 and 5 inclusive" + } + } }, { - "query": "?query=47.620659,-122.348934:47.610101,-122.342015&travelMode=bicycle&routeType=eco&traffic=false" + "statusCode": 200, + "response": { + "formatVersion": "0.0.12", + "routes": [ + { + "summary": { + "lengthInMeters": 1754, + "travelTimeInSeconds": 386, + "trafficDelayInSeconds": 0, + "departureTime": "2019-06-21T22:56:23+00:00", + "arrivalTime": "2019-06-21T23:02:49+00:00" + }, + "legs": [ + { + "summary": { + "lengthInMeters": 1754, + "travelTimeInSeconds": 386, + "trafficDelayInSeconds": 0, + "departureTime": "2019-06-21T22:56:23+00:00", + "arrivalTime": "2019-06-21T23:02:49+00:00" + }, + "points": [ + { + "latitude": 47.62094, + "longitude": -122.34892 + }, + { + "latitude": 47.62094, + "longitude": -122.3485 + }, + { + "latitude": 47.62095, + "longitude": -122.3476 + }, + { + "latitude": 47.60995, + "longitude": -122.34174 + }, + { + "latitude": 47.61011, + "longitude": -122.342 + } + ] + } + ], + "sections": [ + { + "startPointIndex": 0, + "endPointIndex": 44, + "sectionType": "TRAVEL_MODE", + "travelMode": "bicycle" + } + ] + } + ] + } }, { - "query": "?query=40.759856,-73.985108:40.771136,-73.973506&travelMode=pedestrian&routeType=shortest" - } - ] - } - }, - "responses": { - "200": { - "headers": {}, - "body": { - "batchItems": [ - { - "statusCode": 400, - "response": { - "error": { - "code": "400 BadRequest", - "message": "maxAlternatives parameter value should be between 0 and 5 inclusive" - } - } - }, - { - "statusCode": 200, - "response": { - "formatVersion": "0.0.12", - "routes": [ - { - "summary": { - "lengthInMeters": 1754, - "travelTimeInSeconds": 386, - "trafficDelayInSeconds": 0, - "departureTime": "2019-06-21T22:56:23+00:00", - "arrivalTime": "2019-06-21T23:02:49+00:00" - }, - "legs": [ - { - "summary": { - "lengthInMeters": 1754, - "travelTimeInSeconds": 386, - "trafficDelayInSeconds": 0, - "departureTime": "2019-06-21T22:56:23+00:00", - "arrivalTime": "2019-06-21T23:02:49+00:00" + "statusCode": 200, + "response": { + "formatVersion": "0.0.12", + "routes": [ + { + "summary": { + "lengthInMeters": 1772, + "travelTimeInSeconds": 1276, + "trafficDelayInSeconds": 0, + "departureTime": "2019-06-21T22:56:23+00:00", + "arrivalTime": "2019-06-21T23:17:38+00:00" + }, + "legs": [ + { + "summary": { + "lengthInMeters": 1772, + "travelTimeInSeconds": 1276, + "trafficDelayInSeconds": 0, + "departureTime": "2019-06-21T22:56:23+00:00", + "arrivalTime": "2019-06-21T23:17:38+00:00" + }, + "points": [ + { + "latitude": 40.75982, + "longitude": -73.98493 }, - "points": [ - { - "latitude": 47.62094, - "longitude": -122.34892 - }, - { - "latitude": 47.62094, - "longitude": -122.3485 - }, - { - "latitude": 47.62095, - "longitude": -122.3476 - }, - { - "latitude": 47.60995, - "longitude": -122.34174 - }, - { - "latitude": 47.61011, - "longitude": -122.342 - } - ] - } - ], - "sections": [ - { - "startPointIndex": 0, - "endPointIndex": 44, - "sectionType": "TRAVEL_MODE", - "travelMode": "bicycle" - } - ] - } - ] - } - }, - { - "statusCode": 200, - "response": { - "formatVersion": "0.0.12", - "routes": [ - { - "summary": { - "lengthInMeters": 1772, - "travelTimeInSeconds": 1276, - "trafficDelayInSeconds": 0, - "departureTime": "2019-06-21T22:56:23+00:00", - "arrivalTime": "2019-06-21T23:17:38+00:00" - }, - "legs": [ - { - "summary": { - "lengthInMeters": 1772, - "travelTimeInSeconds": 1276, - "trafficDelayInSeconds": 0, - "departureTime": "2019-06-21T22:56:23+00:00", - "arrivalTime": "2019-06-21T23:17:38+00:00" + { + "latitude": 40.7601, + "longitude": -73.98483 }, - "points": [ - { - "latitude": 40.75982, - "longitude": -73.98493 - }, - { - "latitude": 40.7601, - "longitude": -73.98483 - }, - { - "latitude": 40.75984, - "longitude": -73.98417 - }, - { - "latitude": 40.76047, - "longitude": -73.9837 - }, - { - "latitude": 40.77095, - "longitude": -73.9736 - }, - { - "latitude": 40.77114, - "longitude": -73.97356 - } - ] - } - ], - "sections": [ - { - "startPointIndex": 0, - "endPointIndex": 47, - "sectionType": "TRAVEL_MODE", - "travelMode": "pedestrian" - } - ] - } - ] - } + { + "latitude": 40.75984, + "longitude": -73.98417 + }, + { + "latitude": 40.76047, + "longitude": -73.9837 + }, + { + "latitude": 40.77095, + "longitude": -73.9736 + }, + { + "latitude": 40.77114, + "longitude": -73.97356 + } + ] + } + ], + "sections": [ + { + "startPointIndex": 0, + "endPointIndex": 47, + "sectionType": "TRAVEL_MODE", + "travelMode": "pedestrian" + } + ] + } + ] } - ], - "summary": { - "successfulRequests": 2, - "totalRequests": 3 } + ], + "summary": { + "successfulRequests": 2, + "totalRequests": 3 } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } + } + }, + "400": { + "headers": {}, + "body": { + "error": { + "code": "400 BadRequest", + "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } + } + }, + "401": { + "headers": {}, + "body": { + "error": { + "code": "401 Unauthorized", + "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } + } + }, + "403": { + "headers": {}, + "body": { + "error": { + "code": "403 Forbidden", + "message": "Permission, capacity, or authentication issues." } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } + } + }, + "404": { + "headers": {}, + "body": { + "error": { + "code": "404 NotFound", + "message": "Not Found: the requested resource could not be found, but it may be available again in the future." } - }, - "408": { - "headers": {}, - "body": { - "error": { - "code": "408 Timeout", - "message": "Timeout: The request took longer to finish than the maximum amount of time defined in the api." - } + } + }, + "408": { + "headers": {}, + "body": { + "error": { + "code": "408 Timeout", + "message": "Timeout: The request took longer to finish than the maximum amount of time defined in the api." } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } + } + }, + "500": { + "headers": {}, + "body": { + "error": { + "code": "500 InternalServerError", + "message": "An error occurred while processing the request. Please try again later." } } } } - \ No newline at end of file +} From 1579f68881f6269e5aae1035b35a18088eb36315 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Tue, 25 May 2021 16:15:01 +0200 Subject: [PATCH 163/210] update get routes fixes. --- .../Route/preview/1.0/route.json | 41 +++++++++++-------- 1 file changed, 23 insertions(+), 18 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json index c92b278ed237..ab483ce83405 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json @@ -727,7 +727,7 @@ "x-ms-parameter-location": "method" }, "MatrixId": { - "name": "matrixId", + "name": "format", "description": "Matrix id received after the Matrix Route request was accepted successfully.", "type": "string", "in": "path", @@ -735,7 +735,7 @@ "x-ms-parameter-location": "method" }, "BatchId": { - "name": "batchId", + "name": "format", "description": "Batch id received after using the Matrix Route request was accepted successfully.", "type": "string", "in": "path", @@ -841,7 +841,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/PostRouteMatrixResponse" + "$ref": "#/definitions/RouteMatrixResponse" } }, "202": { @@ -863,9 +863,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } - } - }, - "/route/matrix/{matrixId}": { + }, "get": { "description": "If the Matrix Route request was accepted successfully, the Location header in the response contains the URL to download the results of the request. This status URI looks like the following:\n\n ```\n GET https://atlas.microsoft.com/route/matrix/{matrixId}?api-version=1.0?subscription-key={subscription-key}\n ```\n\n\n4. Client issues a GET request on the download URL obtained in Step 3 to download the results\n\n### Download Sync Results\nWhen you make a POST request for Route Matrix Sync API, the service returns 200 response code for successful request and a response array. The response body will contain the data and there will be no possibility to retrieve the results later.\n\n### Download Async Results\nWhen a request issues a `202 Accepted` response, the request is being processed using our async pipeline. You will be given a URL to check the progress of your async request in the location header of the response. This status URI looks like the following:\n```\n GET https://atlas.microsoft.com/route/matrix/{matrixId}?api-version=1.0?subscription-key={subscription-key}\n```\n\nThe URL provided by the location header will return the following responses when a `GET` request is issued.\n\n > HTTP `202 Accepted` - Matrix request was accepted but is still being processed. Please try again in some time.\n\n > HTTP `200 OK` - Matrix request successfully processed. The response body contains all of the results.", "operationId": "Route_GetRouteMatrix", @@ -892,9 +890,12 @@ "200": { "description": "Matrix request successfully processed. The response body contains all of the results.", "schema": { - "$ref": "#/definitions/PostRouteMatrixResponse" + "$ref": "#/definitions/RouteMatrixResponse" } }, + "202": { + "description": "OK" + }, "400": { "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, @@ -1511,7 +1512,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/PostRouteDirectionsBatchResponse" + "$ref": "#/definitions/RouteDirectionsBatchResponse" } }, "202": { @@ -1536,15 +1537,13 @@ "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } } - } - }, - "/route/directions/batch/{batchId}": { + }, "get": { "description": "### Download Asynchronous Batch Results\nTo download the async batch results you will issue a `GET` request to the batch download endpoint. This _download URL_ can be obtained from the `Location` header of a successful `POST` batch request and looks like the following:\n\n```\nhttps://atlas.microsoft.com/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\nHere's the typical sequence of operations for downloading the batch results:\n1. Client sends a `GET` request using the _download URL_.\n2. The server will respond with one of the following:\n \n > HTTP `202 Accepted` - Batch request was accepted but is still being processed. Please try again in some time.\n\n > HTTP `200 OK` - Batch request successfully processed. The response body contains all the batch results.\n\n\n\n### Batch Response Model\nThe returned data content is similar for async and sync requests. When downloading the results of an async batch request, if the batch has finished processing, the response body contains the batch response. This batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests`i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item in `batchItems` contains `statusCode` and `response` fields. Each `response` in `batchItems` is of one of the following types:\n\n - [`RouteDirectionsResponse`](https://docs.microsoft.com/en-us/rest/api/maps/route/getroutedirections#routedirectionsresponse) - If the query completed successfully.\n\n - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.\n\n\nHere's a sample Batch Response with 1 _successful_ and 1 _failed_ result:\n\n\n```json\n{\n \"summary\": {\n \"successfulRequests\": 1,\n \"totalRequests\": 2\n },\n \"batchItems\": [\n {\n \"statusCode\": 200,\n \"response\": {\n \"routes\": [\n {\n \"summary\": {\n \"lengthInMeters\": 1758,\n \"travelTimeInSeconds\": 387,\n \"trafficDelayInSeconds\": 0,\n \"departureTime\": \"2018-07-17T00:49:56+00:00\",\n \"arrivalTime\": \"2018-07-17T00:56:22+00:00\"\n },\n \"legs\": [\n {\n \"summary\": {\n \"lengthInMeters\": 1758,\n \"travelTimeInSeconds\": 387,\n \"trafficDelayInSeconds\": 0,\n \"departureTime\": \"2018-07-17T00:49:56+00:00\",\n \"arrivalTime\": \"2018-07-17T00:56:22+00:00\"\n },\n \"points\": [\n {\n \"latitude\": 47.62094,\n \"longitude\": -122.34892\n },\n {\n \"latitude\": 47.62094,\n \"longitude\": -122.3485\n },\n {\n \"latitude\": 47.62095,\n \"longitude\": -122.3476\n }\n ]\n }\n ],\n \"sections\": [\n {\n \"startPointIndex\": 0,\n \"endPointIndex\": 40,\n \"sectionType\": \"TRAVEL_MODE\",\n \"travelMode\": \"bicycle\"\n }\n ]\n }\n ]\n }\n },\n {\n \"statusCode\": 400,\n \"response\":\n {\n \"error\":\n {\n \"code\": \"400 BadRequest\",\n \"message\": \"Bad request: one or more parameters were incorrectly specified or are mutually exclusive.\"\n }\n }\n }\n ]\n}\n```", "operationId": "Route_GetRouteDirectionsBatch", "x-ms-examples": { - "GetRouteDirectionsBatch": { - "$ref": "./examples/GetRouteDirectionsBatch.json" + "A Get Route Directions Batch API call containing 3 Route Directions API queries": { + "$ref": "./examples/Route_GetRouteDirectionsBatch.json" } }, "parameters": [ @@ -1565,9 +1564,12 @@ "200": { "description": "Batch request successfully processed. The response body contains all the batch results.", "schema": { - "$ref": "#/definitions/PostRouteDirectionsBatchResponse" + "$ref": "#/definitions/RouteDirectionsBatchResponse" } }, + "202": { + "description": "Batch request was accepted but is still being processed. Please try again in some time." + }, "400": { "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, @@ -1594,7 +1596,7 @@ "description": "**Route Directions Batch API**\n\n\n**Applies to**: S1 pricing tier.\n\n\n\nThe Route Directions Batch API sends batches of queries to [Route Directions API](https://docs.microsoft.com/en-us/rest/api/maps/route/getroutedirections) using just a single API call. You can call Route Directions Batch API to run either asynchronously (async) or synchronously (sync). The async API allows caller to batch up to **700** queries and sync API up to **100** queries.\n### Submit Synchronous Batch Request\nThe Synchronous API is recommended for lightweight batch requests. When the service receives a request, it will respond as soon as the batch items are calculated and there will be no possibility to retrieve the results later. The Synchronous API will return a timeout error (a 408 response) if the request takes longer than 60 seconds. The number of batch items is limited to **100** for this API.\n```\n", "operationId": "Route_PostRouteDirectionsBatchSync", "x-ms-examples": { - "PostRouteDirectionsBatchSync": { + "A Route Directions Batch Synchronous API call containing 3 Route Directions API queries": { "$ref": "./examples/PostRouteDirectionsBatchSync.json" } }, @@ -1625,9 +1627,12 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/PostRouteDirectionsBatchResponse" + "$ref": "#/definitions/RouteDirectionsBatchResponse" } }, + "202": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" + }, "400": { "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, @@ -2439,7 +2444,7 @@ } } }, - "PostRouteMatrixResponse": { + "RouteMatrixResponse": { "description": "This object is returned from a successful Route Matrix call. For ex, if 2 origins and 3 destinations are provided, there are going to 2 arrays with 3 elements in each. Each element's content depends on the options provided in the query.", "type": "object", "properties": { @@ -2519,7 +2524,7 @@ } } }, - "PostRouteDirectionsBatchResponse": { + "RouteDirectionsBatchResponse": { "description": "This object is returned from a successful Route Directions Batch service call.", "type": "object", "allOf": [ From d587aa87cd95a448765da303d51b05756f436114 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Tue, 25 May 2021 16:21:52 +0200 Subject: [PATCH 164/210] put correct name for example. --- .../maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json index ab483ce83405..4932b6f00a5a 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json @@ -1543,7 +1543,7 @@ "operationId": "Route_GetRouteDirectionsBatch", "x-ms-examples": { "A Get Route Directions Batch API call containing 3 Route Directions API queries": { - "$ref": "./examples/Route_GetRouteDirectionsBatch.json" + "$ref": "./examples/GetRouteDirectionsBatch.json" } }, "parameters": [ From 0412244562bb8eca605318190425254b2b09b9e4 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Tue, 25 May 2021 16:28:12 +0200 Subject: [PATCH 165/210] update format --- .../Route/preview/1.0/examples/GetRouteDirectionsBatch.json | 2 +- .../Route/preview/1.0/examples/GetRouteMatrix.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/GetRouteDirectionsBatch.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/GetRouteDirectionsBatch.json index b2824d60ab4c..d31170aaa7c2 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/GetRouteDirectionsBatch.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/GetRouteDirectionsBatch.json @@ -1,7 +1,7 @@ { "parameters": { "geography": "us", - "batchId": "11111111-2222-3333-4444-555555555555", + "format": "11111111-2222-3333-4444-555555555555", "api-version": "1.0", "subscription-key": "[subscription-key]", "postRouteDirectionsBatchRequestBody": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/GetRouteMatrix.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/GetRouteMatrix.json index 6fe970cc17ed..030ad2567bff 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/GetRouteMatrix.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/GetRouteMatrix.json @@ -1,7 +1,7 @@ { "parameters": { "geography": "us", - "matrixId": "11111111-2222-3333-4444-555555555555", + "format": "11111111-2222-3333-4444-555555555555", "api-version": "1.0", "subscription-key": "[subscription-key]" }, From d95679caa74fc754f12df9f86219683f5c51b3d4 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Wed, 26 May 2021 13:50:40 +0200 Subject: [PATCH 166/210] Add missing responses --- .../Microsoft.Maps/Route/preview/1.0/route.json | 12 +++--------- specification/maps/data-plane/readme.md | 3 +++ 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json index 4932b6f00a5a..909004fba4c4 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json @@ -1530,9 +1530,6 @@ "404": { "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, - "408": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/408" - }, "500": { "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } @@ -1582,9 +1579,6 @@ "404": { "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, - "408": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/408" - }, "500": { "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } @@ -1630,9 +1624,6 @@ "$ref": "#/definitions/RouteDirectionsBatchResponse" } }, - "202": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" - }, "400": { "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, @@ -1645,6 +1636,9 @@ "404": { "$ref": "../../../Common/preview/1.0/common.json#/responses/404" }, + "408": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/408" + }, "500": { "$ref": "../../../Common/preview/1.0/common.json#/responses/500" } diff --git a/specification/maps/data-plane/readme.md b/specification/maps/data-plane/readme.md index ab30bf6afe30..4bee98e5fcfc 100644 --- a/specification/maps/data-plane/readme.md +++ b/specification/maps/data-plane/readme.md @@ -28,6 +28,9 @@ These are the global settings for MapsClient. title: MapsClient openapi-type: data-plane tag: package-preview-2.0 +add-credentials: true +credential-default-policy-type: AzureKeyCredentialPolicy +credential-key-header-name: subscription-key ``` ### Suppression From 43fd6eb437f46db2ea6ec8818862f2ea399ef875 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Wed, 26 May 2021 13:50:58 +0200 Subject: [PATCH 167/210] Add same security for all. --- .../Alias/preview/1.0/alias.json | 35 +++++++++++-------- .../Alias/preview/2.0/alias.json | 35 +++++++++++-------- .../Common/preview/1.0/common.json | 35 +++++++++++-------- .../DEM/preview/1.0/elevation.json | 35 +++++++++++-------- .../Microsoft.Maps/Data/preview/1.0/data.json | 35 +++++++++++-------- .../Microsoft.Maps/Data/preview/2.0/data.json | 35 +++++++++++-------- .../Dataset/preview/1.0/dataset.json | 35 +++++++++++-------- .../Dataset/preview/2.0/dataset.json | 35 +++++++++++-------- .../preview/1.0/dwgconversion.json | 35 +++++++++++-------- .../preview/2.0/dwgconversion.json | 35 +++++++++++-------- .../preview/1.0/featurestate.json | 35 +++++++++++-------- .../preview/2.0/featurestate.json | 35 +++++++++++-------- .../Geolocation/preview/1.0/geolocation.json | 35 +++++++++++-------- .../Mobility/preview/1.0/mobility.json | 35 +++++++++++-------- .../Render/preview/1.0/render.json | 35 +++++++++++-------- .../Render/preview/2.0/render.json | 35 +++++++++++-------- .../Route/preview/1.0/route.json | 35 +++++++++++-------- .../Search/preview/1.0/search.json | 35 +++++++++++-------- .../Spatial/preview/1.0/spatial.json | 35 +++++++++++-------- .../Tileset/preview/1.0/tileset.json | 35 +++++++++++-------- .../Tileset/preview/2.0/tileset.json | 35 +++++++++++-------- .../Timezone/preview/1.0/timezone.json | 35 +++++++++++-------- .../Traffic/preview/1.0/traffic.json | 35 +++++++++++-------- .../Microsoft.Maps/WFS/preview/1.0/wfs.json | 35 +++++++++++-------- .../Microsoft.Maps/WFS/preview/2.0/wfs.json | 35 +++++++++++-------- .../Weather/preview/1.0/weather.json | 35 +++++++++++-------- 26 files changed, 546 insertions(+), 364 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json index 188b7de6ed23..9e279ae06112 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json @@ -21,33 +21,40 @@ "application/json", "application/xml" ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + }, + { + "SubscriptionKeyInHeader": [] + }, + { + "SubscriptionKeyInQuery": [] + } + ], "securityDefinitions": { "azure_auth": { "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "Azure Active Directory OAuth2 Flow", "scopes": { - "user_impersonation": "Impersonates a user's Azure Active Directory account." + "user_impersonation": "impersonate your user account" } }, - "apiKeyQuery": { + "SubscriptionKeyInHeader": { + "type": "apiKey", + "name": "subscription-key", + "in": "header" + }, + "SubscriptionKeyInQuery": { "type": "apiKey", - "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", "name": "subscription-key", "in": "query" } }, - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - }, - { - "apiKeyQuery": [] - } - ], "responses": {}, "parameters": { "AssignResourceId": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json index d77872007124..8af99caa9ab3 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json @@ -21,33 +21,40 @@ "application/json", "application/xml" ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + }, + { + "SubscriptionKeyInHeader": [] + }, + { + "SubscriptionKeyInQuery": [] + } + ], "securityDefinitions": { "azure_auth": { "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "Azure Active Directory OAuth2 Flow", "scopes": { - "user_impersonation": "Impersonates a user's Azure Active Directory account." + "user_impersonation": "impersonate your user account" } }, - "apiKeyQuery": { + "SubscriptionKeyInHeader": { + "type": "apiKey", + "name": "subscription-key", + "in": "header" + }, + "SubscriptionKeyInQuery": { "type": "apiKey", - "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", "name": "subscription-key", "in": "query" } }, - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - }, - { - "apiKeyQuery": [] - } - ], "responses": {}, "parameters": { "CreateCreatorDataItemId": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index c8f55eb379f8..3a48c3000a8a 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -757,31 +757,38 @@ "x-ms-error-response": true } }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + }, + { + "SubscriptionKeyInHeader": [] + }, + { + "SubscriptionKeyInQuery": [] + } + ], "securityDefinitions": { "azure_auth": { "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "Azure Active Directory OAuth2 Flow", "scopes": { - "user_impersonation": "Impersonates a user's Azure Active Directory account." + "user_impersonation": "impersonate your user account" } }, - "apiKeyQuery": { + "SubscriptionKeyInHeader": { + "type": "apiKey", + "name": "subscription-key", + "in": "header" + }, + "SubscriptionKeyInQuery": { "type": "apiKey", - "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", "name": "subscription-key", "in": "query" } }, - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - }, - { - "apiKeyQuery": [] - } - ] } diff --git a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json index 241634b5303c..e8c823a9121f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json +++ b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json @@ -21,33 +21,40 @@ "application/json", "application/xml" ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + }, + { + "SubscriptionKeyInHeader": [] + }, + { + "SubscriptionKeyInQuery": [] + } + ], "securityDefinitions": { "azure_auth": { "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "Azure Active Directory OAuth2 Flow", "scopes": { - "user_impersonation": "Impersonates a user's Azure Active Directory account." + "user_impersonation": "impersonate your user account" } }, - "apiKeyQuery": { + "SubscriptionKeyInHeader": { + "type": "apiKey", + "name": "subscription-key", + "in": "header" + }, + "SubscriptionKeyInQuery": { "type": "apiKey", - "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", "name": "subscription-key", "in": "query" } }, - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - }, - { - "apiKeyQuery": [] - } - ], "responses": {}, "paths": { "/elevation/point/{format}": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json index cc236d7de2f4..c697f70c4b0d 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json @@ -20,33 +20,40 @@ "produces": [ "application/json" ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + }, + { + "SubscriptionKeyInHeader": [] + }, + { + "SubscriptionKeyInQuery": [] + } + ], "securityDefinitions": { "azure_auth": { "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "Azure Active Directory OAuth2 Flow", "scopes": { - "user_impersonation": "Impersonates a user's Azure Active Directory account." + "user_impersonation": "impersonate your user account" } }, - "apiKeyQuery": { + "SubscriptionKeyInHeader": { + "type": "apiKey", + "name": "subscription-key", + "in": "header" + }, + "SubscriptionKeyInQuery": { "type": "apiKey", - "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", "name": "subscription-key", "in": "query" } }, - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - }, - { - "apiKeyQuery": [] - } - ], "responses": {}, "parameters": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json index e46f6192e6a0..68ee7976dbbd 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json @@ -20,33 +20,40 @@ "produces": [ "application/json" ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + }, + { + "SubscriptionKeyInHeader": [] + }, + { + "SubscriptionKeyInQuery": [] + } + ], "securityDefinitions": { "azure_auth": { "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "Azure Active Directory OAuth2 Flow", "scopes": { - "user_impersonation": "Impersonates a user's Azure Active Directory account." + "user_impersonation": "impersonate your user account" } }, - "apiKeyQuery": { + "SubscriptionKeyInHeader": { + "type": "apiKey", + "name": "subscription-key", + "in": "header" + }, + "SubscriptionKeyInQuery": { "type": "apiKey", - "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", "name": "subscription-key", "in": "query" } }, - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - }, - { - "apiKeyQuery": [] - } - ], "responses": {}, "parameters": { "UploadDataFormat": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json index 0551ac051f50..6f163a60eefb 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json @@ -21,33 +21,40 @@ "application/json", "application/xml" ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + }, + { + "SubscriptionKeyInHeader": [] + }, + { + "SubscriptionKeyInQuery": [] + } + ], "securityDefinitions": { "azure_auth": { "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "Azure Active Directory OAuth2 Flow", "scopes": { - "user_impersonation": "Impersonates a user's Azure Active Directory account." + "user_impersonation": "impersonate your user account" } }, - "apiKeyQuery": { + "SubscriptionKeyInHeader": { + "type": "apiKey", + "name": "subscription-key", + "in": "header" + }, + "SubscriptionKeyInQuery": { "type": "apiKey", - "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", "name": "subscription-key", "in": "query" } }, - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - }, - { - "apiKeyQuery": [] - } - ], "responses": {}, "parameters": { "ConversionIdQuery": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json index 73af1caddb34..e5c80d9f5a6c 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json @@ -21,33 +21,40 @@ "application/json", "application/xml" ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + }, + { + "SubscriptionKeyInHeader": [] + }, + { + "SubscriptionKeyInQuery": [] + } + ], "securityDefinitions": { "azure_auth": { "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "Azure Active Directory OAuth2 Flow", "scopes": { - "user_impersonation": "Impersonates a user's Azure Active Directory account." + "user_impersonation": "impersonate your user account" } }, - "apiKeyQuery": { + "SubscriptionKeyInHeader": { + "type": "apiKey", + "name": "subscription-key", + "in": "header" + }, + "SubscriptionKeyInQuery": { "type": "apiKey", - "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", "name": "subscription-key", "in": "query" } }, - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - }, - { - "apiKeyQuery": [] - } - ], "responses": {}, "parameters": { "ConversionIdQuery": { diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json index 355e6f5fae04..5796be203610 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json @@ -20,33 +20,40 @@ "produces": [ "application/json" ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + }, + { + "SubscriptionKeyInHeader": [] + }, + { + "SubscriptionKeyInQuery": [] + } + ], "securityDefinitions": { "azure_auth": { "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "Azure Active Directory OAuth2 Flow", "scopes": { - "user_impersonation": "Impersonates a user's Azure Active Directory account." + "user_impersonation": "impersonate your user account" } }, - "apiKeyQuery": { + "SubscriptionKeyInHeader": { + "type": "apiKey", + "name": "subscription-key", + "in": "header" + }, + "SubscriptionKeyInQuery": { "type": "apiKey", - "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", "name": "subscription-key", "in": "query" } }, - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - }, - { - "apiKeyQuery": [] - } - ], "responses": {}, "parameters": { "UdidQuery": { diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json index b6d97f075c39..60c36bb077c8 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json @@ -20,33 +20,40 @@ "produces": [ "application/json" ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + }, + { + "SubscriptionKeyInHeader": [] + }, + { + "SubscriptionKeyInQuery": [] + } + ], "securityDefinitions": { "azure_auth": { "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "Azure Active Directory OAuth2 Flow", "scopes": { - "user_impersonation": "Impersonates a user's Azure Active Directory account." + "user_impersonation": "impersonate your user account" } }, - "apiKeyQuery": { + "SubscriptionKeyInHeader": { + "type": "apiKey", + "name": "subscription-key", + "in": "header" + }, + "SubscriptionKeyInQuery": { "type": "apiKey", - "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", "name": "subscription-key", "in": "query" } }, - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - }, - { - "apiKeyQuery": [] - } - ], "responses": {}, "parameters": { "UdidQuery": { diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json index 7ca3673deb8c..a66768588568 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json @@ -20,33 +20,40 @@ "produces": [ "application/json" ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + }, + { + "SubscriptionKeyInHeader": [] + }, + { + "SubscriptionKeyInQuery": [] + } + ], "securityDefinitions": { "azure_auth": { "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "Azure Active Directory OAuth2 Flow", "scopes": { - "user_impersonation": "Impersonates a user's Azure Active Directory account." + "user_impersonation": "impersonate your user account" } }, - "apiKeyQuery": { + "SubscriptionKeyInHeader": { + "type": "apiKey", + "name": "subscription-key", + "in": "header" + }, + "SubscriptionKeyInQuery": { "type": "apiKey", - "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", "name": "subscription-key", "in": "query" } }, - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - }, - { - "apiKeyQuery": [] - } - ], "responses": {}, "parameters": { "DatasetIdForCreate": { diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json index ee4222e8058c..914f4cbbce67 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json @@ -20,33 +20,40 @@ "produces": [ "application/json" ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + }, + { + "SubscriptionKeyInHeader": [] + }, + { + "SubscriptionKeyInQuery": [] + } + ], "securityDefinitions": { "azure_auth": { "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "Azure Active Directory OAuth2 Flow", "scopes": { - "user_impersonation": "Impersonates a user's Azure Active Directory account." + "user_impersonation": "impersonate your user account" } }, - "apiKeyQuery": { + "SubscriptionKeyInHeader": { + "type": "apiKey", + "name": "subscription-key", + "in": "header" + }, + "SubscriptionKeyInQuery": { "type": "apiKey", - "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", "name": "subscription-key", "in": "query" } }, - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - }, - { - "apiKeyQuery": [] - } - ], "responses": {}, "parameters": { "FeatureStateSetDescription": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json index 012857a379fc..f603a68969ae 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json +++ b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json @@ -20,33 +20,40 @@ "produces": [ "application/json" ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + }, + { + "SubscriptionKeyInHeader": [] + }, + { + "SubscriptionKeyInQuery": [] + } + ], "securityDefinitions": { "azure_auth": { "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "Azure Active Directory OAuth2 Flow", "scopes": { - "user_impersonation": "Impersonates a user's Azure Active Directory account." + "user_impersonation": "impersonate your user account" } }, - "apiKeyQuery": { + "SubscriptionKeyInHeader": { + "type": "apiKey", + "name": "subscription-key", + "in": "header" + }, + "SubscriptionKeyInQuery": { "type": "apiKey", - "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", "name": "subscription-key", "in": "query" } }, - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - }, - { - "apiKeyQuery": [] - } - ], "responses": {}, "paths": { "/geolocation/ip/{format}": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json index 516a4134a412..556ffa80f9f6 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json +++ b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json @@ -19,33 +19,40 @@ "produces": [ "application/json" ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + }, + { + "SubscriptionKeyInHeader": [] + }, + { + "SubscriptionKeyInQuery": [] + } + ], "securityDefinitions": { "azure_auth": { "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "Azure Active Directory OAuth2 Flow", "scopes": { - "user_impersonation": "Impersonates a user's Azure Active Directory account." + "user_impersonation": "impersonate your user account" } }, - "apiKeyQuery": { + "SubscriptionKeyInHeader": { + "type": "apiKey", + "name": "subscription-key", + "in": "header" + }, + "SubscriptionKeyInQuery": { "type": "apiKey", - "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", "name": "subscription-key", "in": "query" } }, - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - }, - { - "apiKeyQuery": [] - } - ], "responses": {}, "parameters": { "MetroId": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json index b20ab4df9536..b0bba42f5889 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json @@ -21,33 +21,40 @@ "application/json", "application/xml" ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + }, + { + "SubscriptionKeyInHeader": [] + }, + { + "SubscriptionKeyInQuery": [] + } + ], "securityDefinitions": { "azure_auth": { "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "Azure Active Directory OAuth2 Flow", "scopes": { - "user_impersonation": "Impersonates a user's Azure Active Directory account." + "user_impersonation": "impersonate your user account" } }, - "apiKeyQuery": { + "SubscriptionKeyInHeader": { + "type": "apiKey", + "name": "subscription-key", + "in": "header" + }, + "SubscriptionKeyInQuery": { "type": "apiKey", - "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", "name": "subscription-key", "in": "query" } }, - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - }, - { - "apiKeyQuery": [] - } - ], "responses": {}, "parameters": { "RasterTileFormat": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json index bac05317e80d..ab2173ec37fe 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json @@ -21,33 +21,40 @@ "application/json", "application/xml" ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + }, + { + "SubscriptionKeyInHeader": [] + }, + { + "SubscriptionKeyInQuery": [] + } + ], "securityDefinitions": { "azure_auth": { "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "Azure Active Directory OAuth2 Flow", "scopes": { - "user_impersonation": "Impersonates a user's Azure Active Directory account." + "user_impersonation": "impersonate your user account" } }, - "apiKeyQuery": { + "SubscriptionKeyInHeader": { + "type": "apiKey", + "name": "subscription-key", + "in": "header" + }, + "SubscriptionKeyInQuery": { "type": "apiKey", - "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", "name": "subscription-key", "in": "query" } }, - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - }, - { - "apiKeyQuery": [] - } - ], "responses": {}, "parameters": { "TilesetId_rv2": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json index 909004fba4c4..4430870d3c09 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json @@ -21,33 +21,40 @@ "application/json", "application/xml" ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + }, + { + "SubscriptionKeyInHeader": [] + }, + { + "SubscriptionKeyInQuery": [] + } + ], "securityDefinitions": { "azure_auth": { "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "Azure Active Directory OAuth2 Flow", "scopes": { - "user_impersonation": "Impersonates a user's Azure Active Directory account." + "user_impersonation": "impersonate your user account" } }, - "apiKeyQuery": { + "SubscriptionKeyInHeader": { + "type": "apiKey", + "name": "subscription-key", + "in": "header" + }, + "SubscriptionKeyInQuery": { "type": "apiKey", - "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", "name": "subscription-key", "in": "query" } }, - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - }, - { - "apiKeyQuery": [] - } - ], "responses": {}, "parameters": { "VehicleLoadType": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json index d9d2cafbed27..1c5ee1fbdabe 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json @@ -21,33 +21,40 @@ "application/json", "application/xml" ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + }, + { + "SubscriptionKeyInHeader": [] + }, + { + "SubscriptionKeyInQuery": [] + } + ], "securityDefinitions": { "azure_auth": { "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "Azure Active Directory OAuth2 Flow", "scopes": { - "user_impersonation": "Impersonates a user's Azure Active Directory account." + "user_impersonation": "impersonate your user account" } }, - "apiKeyQuery": { + "SubscriptionKeyInHeader": { + "type": "apiKey", + "name": "subscription-key", + "in": "header" + }, + "SubscriptionKeyInQuery": { "type": "apiKey", - "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", "name": "subscription-key", "in": "query" } }, - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - }, - { - "apiKeyQuery": [] - } - ], "responses": {}, "parameters": { "LimitSearch": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json index 08f5157347f1..489d7fce62f4 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json @@ -20,33 +20,40 @@ "produces": [ "application/json" ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + }, + { + "SubscriptionKeyInHeader": [] + }, + { + "SubscriptionKeyInQuery": [] + } + ], "securityDefinitions": { "azure_auth": { "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "Azure Active Directory OAuth2 Flow", "scopes": { - "user_impersonation": "Impersonates a user's Azure Active Directory account." + "user_impersonation": "impersonate your user account" } }, - "apiKeyQuery": { + "SubscriptionKeyInHeader": { + "type": "apiKey", + "name": "subscription-key", + "in": "header" + }, + "SubscriptionKeyInQuery": { "type": "apiKey", - "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", "name": "subscription-key", "in": "query" } }, - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - }, - { - "apiKeyQuery": [] - } - ], "responses": {}, "parameters": { "GeofenceMode": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json index 35c547e6d34f..f1a351149b94 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json @@ -20,33 +20,40 @@ "produces": [ "application/json" ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + }, + { + "SubscriptionKeyInHeader": [] + }, + { + "SubscriptionKeyInQuery": [] + } + ], "securityDefinitions": { "azure_auth": { "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "Azure Active Directory OAuth2 Flow", "scopes": { - "user_impersonation": "Impersonates a user's Azure Active Directory account." + "user_impersonation": "impersonate your user account" } }, - "apiKeyQuery": { + "SubscriptionKeyInHeader": { + "type": "apiKey", + "name": "subscription-key", + "in": "header" + }, + "SubscriptionKeyInQuery": { "type": "apiKey", - "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", "name": "subscription-key", "in": "query" } }, - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - }, - { - "apiKeyQuery": [] - } - ], "responses": {}, "parameters": { "GeographicResourceLocation": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json index 9166240f8192..0a9011b77276 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json @@ -20,33 +20,40 @@ "produces": [ "application/json" ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + }, + { + "SubscriptionKeyInHeader": [] + }, + { + "SubscriptionKeyInQuery": [] + } + ], "securityDefinitions": { "azure_auth": { "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "Azure Active Directory OAuth2 Flow", "scopes": { - "user_impersonation": "Impersonates a user's Azure Active Directory account." + "user_impersonation": "impersonate your user account" } }, - "apiKeyQuery": { + "SubscriptionKeyInHeader": { + "type": "apiKey", + "name": "subscription-key", + "in": "header" + }, + "SubscriptionKeyInQuery": { "type": "apiKey", - "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", "name": "subscription-key", "in": "query" } }, - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - }, - { - "apiKeyQuery": [] - } - ], "responses": {}, "parameters": { "DatasetIdQuery": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json index dc535e5cdccb..46aa9da27299 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json +++ b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json @@ -20,33 +20,40 @@ "produces": [ "application/json" ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + }, + { + "SubscriptionKeyInHeader": [] + }, + { + "SubscriptionKeyInQuery": [] + } + ], "securityDefinitions": { "azure_auth": { "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "Azure Active Directory OAuth2 Flow", "scopes": { - "user_impersonation": "Impersonates a user's Azure Active Directory account." + "user_impersonation": "impersonate your user account" } }, - "apiKeyQuery": { + "SubscriptionKeyInHeader": { + "type": "apiKey", + "name": "subscription-key", + "in": "header" + }, + "SubscriptionKeyInQuery": { "type": "apiKey", - "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", "name": "subscription-key", "in": "query" } }, - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - }, - { - "apiKeyQuery": [] - } - ], "responses": {}, "parameters": { "TimezoneAcceptLanguage": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json index 0628592717da..59e0215fb760 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json +++ b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json @@ -20,33 +20,40 @@ "produces": [ "application/json" ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + }, + { + "SubscriptionKeyInHeader": [] + }, + { + "SubscriptionKeyInQuery": [] + } + ], "securityDefinitions": { "azure_auth": { "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "Azure Active Directory OAuth2 Flow", "scopes": { - "user_impersonation": "Impersonates a user's Azure Active Directory account." + "user_impersonation": "impersonate your user account" } }, - "apiKeyQuery": { + "SubscriptionKeyInHeader": { + "type": "apiKey", + "name": "subscription-key", + "in": "header" + }, + "SubscriptionKeyInQuery": { "type": "apiKey", - "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", "name": "subscription-key", "in": "query" } }, - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - }, - { - "apiKeyQuery": [] - } - ], "responses": {}, "parameters": { "TileFormat": { diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json index 49a51580177f..7dd2afb0fb13 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json @@ -21,33 +21,40 @@ "application/json", "application/xml" ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + }, + { + "SubscriptionKeyInHeader": [] + }, + { + "SubscriptionKeyInQuery": [] + } + ], "securityDefinitions": { "azure_auth": { "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "Azure Active Directory OAuth2 Flow", "scopes": { - "user_impersonation": "Impersonates a user's Azure Active Directory account." + "user_impersonation": "impersonate your user account" } }, - "apiKeyQuery": { + "SubscriptionKeyInHeader": { + "type": "apiKey", + "name": "subscription-key", + "in": "header" + }, + "SubscriptionKeyInQuery": { "type": "apiKey", - "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", "name": "subscription-key", "in": "query" } }, - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - }, - { - "apiKeyQuery": [] - } - ], "responses": {}, "parameters": { "LimitWfs": { diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json index 0d16d117c161..24ba96e42faa 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json @@ -21,33 +21,40 @@ "application/json", "application/xml" ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + }, + { + "SubscriptionKeyInHeader": [] + }, + { + "SubscriptionKeyInQuery": [] + } + ], "securityDefinitions": { "azure_auth": { "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "Azure Active Directory OAuth2 Flow", "scopes": { - "user_impersonation": "Impersonates a user's Azure Active Directory account." + "user_impersonation": "impersonate your user account" } }, - "apiKeyQuery": { + "SubscriptionKeyInHeader": { + "type": "apiKey", + "name": "subscription-key", + "in": "header" + }, + "SubscriptionKeyInQuery": { "type": "apiKey", - "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", "name": "subscription-key", "in": "query" } }, - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - }, - { - "apiKeyQuery": [] - } - ], "responses": {}, "parameters": { "LimitWfs": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json index f14c8d156c44..1a532be3af66 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json +++ b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json @@ -19,33 +19,40 @@ "produces": [ "application/json" ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + }, + { + "SubscriptionKeyInHeader": [] + }, + { + "SubscriptionKeyInQuery": [] + } + ], "securityDefinitions": { "azure_auth": { "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "Azure Active Directory OAuth2 Flow", "scopes": { - "user_impersonation": "Impersonates a user's Azure Active Directory account." + "user_impersonation": "impersonate your user account" } }, - "apiKeyQuery": { + "SubscriptionKeyInHeader": { + "type": "apiKey", + "name": "subscription-key", + "in": "header" + }, + "SubscriptionKeyInQuery": { "type": "apiKey", - "description": "This is a shared key which is provisioned when creating an [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs. With this key, any application is authorized to access all REST APIs. In other words, these can currently be treated as master keys to the account which they are issued for. For publicly exposed applications our recommendation is to use server to server access of Azure Maps REST APIs where this key can be securely stored.", "name": "subscription-key", "in": "query" } }, - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - }, - { - "apiKeyQuery": [] - } - ], "responses": {}, "parameters": { "WeatherLanguage": { From 204c980a678afbcf4c94816dfe7a2771d97ad5b9 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Wed, 26 May 2021 14:06:20 +0200 Subject: [PATCH 168/210] fix copyright and countryCode warnings --- .../data-plane/Microsoft.Maps/Search/preview/1.0/search.json | 1 - .../data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json | 1 - 2 files changed, 2 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json index 1c5ee1fbdabe..145a36798b7e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json @@ -1244,7 +1244,6 @@ "name": "countryCode", "in": "query", "description": "The 2 or 3 letter [ISO3166-1](https://www.iso.org/iso-3166-country-codes.html) country code portion of an address. E.g. US.", - "required": true, "default": "US", "type": "string" }, diff --git a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json index 59e0215fb760..43cb6dfc8e11 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json +++ b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json @@ -678,7 +678,6 @@ "name": "copyright", "in": "query", "description": "Determines what copyright information to return. When true the copyright text is returned; when false only the copyright index is returned.", - "required": true, "type": "boolean", "default": true } From c6e5553c6f0d985f68a736a2f05a2c902d7f3c2b Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Wed, 26 May 2021 17:23:36 +0200 Subject: [PATCH 169/210] remove arm. --- specification/maps/data-plane/readme.python.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/specification/maps/data-plane/readme.python.md b/specification/maps/data-plane/readme.python.md index 6d83465f9dd2..277c12c8899e 100644 --- a/specification/maps/data-plane/readme.python.md +++ b/specification/maps/data-plane/readme.python.md @@ -7,7 +7,6 @@ Use `--python-mode=update` if you already have a setup.py and just want to updat ``` yaml $(python) && !$(track2) python-mode: create python: - azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION payload-flattening-threshold: 2 namespace: azure.maps.service @@ -16,7 +15,6 @@ python: clear-output-folder: true ``` ``` yaml $(python) && $(track2) -azure-arm: true python-mode: create license-header: MICROSOFT_MIT_NO_VERSION namespace: azure.maps.service From adb0453caf24d95808ec8a26980795df19ecd32d Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Wed, 26 May 2021 17:38:18 +0200 Subject: [PATCH 170/210] fix extra comma --- .../data-plane/Microsoft.Maps/Common/preview/1.0/common.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index 3a48c3000a8a..4f77caf84f93 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -790,5 +790,5 @@ "name": "subscription-key", "in": "query" } - }, + } } From 5a7d09872a555a6ded8aff5735720adce1d316a8 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Wed, 26 May 2021 17:44:00 +0200 Subject: [PATCH 171/210] Add long running --- .../Microsoft.Maps/Route/preview/1.0/route.json | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json index 4430870d3c09..c9d537ca4f66 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json @@ -874,6 +874,10 @@ "get": { "description": "If the Matrix Route request was accepted successfully, the Location header in the response contains the URL to download the results of the request. This status URI looks like the following:\n\n ```\n GET https://atlas.microsoft.com/route/matrix/{matrixId}?api-version=1.0?subscription-key={subscription-key}\n ```\n\n\n4. Client issues a GET request on the download URL obtained in Step 3 to download the results\n\n### Download Sync Results\nWhen you make a POST request for Route Matrix Sync API, the service returns 200 response code for successful request and a response array. The response body will contain the data and there will be no possibility to retrieve the results later.\n\n### Download Async Results\nWhen a request issues a `202 Accepted` response, the request is being processed using our async pipeline. You will be given a URL to check the progress of your async request in the location header of the response. This status URI looks like the following:\n```\n GET https://atlas.microsoft.com/route/matrix/{matrixId}?api-version=1.0?subscription-key={subscription-key}\n```\n\nThe URL provided by the location header will return the following responses when a `GET` request is issued.\n\n > HTTP `202 Accepted` - Matrix request was accepted but is still being processed. Please try again in some time.\n\n > HTTP `200 OK` - Matrix request successfully processed. The response body contains all of the results.", "operationId": "Route_GetRouteMatrix", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options" : { + "final-state-via" : "original-uri" + }, "x-ms-examples": { "GetRouteMatrix": { "$ref": "./examples/GetRouteMatrix.json" @@ -1545,6 +1549,10 @@ "get": { "description": "### Download Asynchronous Batch Results\nTo download the async batch results you will issue a `GET` request to the batch download endpoint. This _download URL_ can be obtained from the `Location` header of a successful `POST` batch request and looks like the following:\n\n```\nhttps://atlas.microsoft.com/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\nHere's the typical sequence of operations for downloading the batch results:\n1. Client sends a `GET` request using the _download URL_.\n2. The server will respond with one of the following:\n \n > HTTP `202 Accepted` - Batch request was accepted but is still being processed. Please try again in some time.\n\n > HTTP `200 OK` - Batch request successfully processed. The response body contains all the batch results.\n\n\n\n### Batch Response Model\nThe returned data content is similar for async and sync requests. When downloading the results of an async batch request, if the batch has finished processing, the response body contains the batch response. This batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests`i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item in `batchItems` contains `statusCode` and `response` fields. Each `response` in `batchItems` is of one of the following types:\n\n - [`RouteDirectionsResponse`](https://docs.microsoft.com/en-us/rest/api/maps/route/getroutedirections#routedirectionsresponse) - If the query completed successfully.\n\n - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.\n\n\nHere's a sample Batch Response with 1 _successful_ and 1 _failed_ result:\n\n\n```json\n{\n \"summary\": {\n \"successfulRequests\": 1,\n \"totalRequests\": 2\n },\n \"batchItems\": [\n {\n \"statusCode\": 200,\n \"response\": {\n \"routes\": [\n {\n \"summary\": {\n \"lengthInMeters\": 1758,\n \"travelTimeInSeconds\": 387,\n \"trafficDelayInSeconds\": 0,\n \"departureTime\": \"2018-07-17T00:49:56+00:00\",\n \"arrivalTime\": \"2018-07-17T00:56:22+00:00\"\n },\n \"legs\": [\n {\n \"summary\": {\n \"lengthInMeters\": 1758,\n \"travelTimeInSeconds\": 387,\n \"trafficDelayInSeconds\": 0,\n \"departureTime\": \"2018-07-17T00:49:56+00:00\",\n \"arrivalTime\": \"2018-07-17T00:56:22+00:00\"\n },\n \"points\": [\n {\n \"latitude\": 47.62094,\n \"longitude\": -122.34892\n },\n {\n \"latitude\": 47.62094,\n \"longitude\": -122.3485\n },\n {\n \"latitude\": 47.62095,\n \"longitude\": -122.3476\n }\n ]\n }\n ],\n \"sections\": [\n {\n \"startPointIndex\": 0,\n \"endPointIndex\": 40,\n \"sectionType\": \"TRAVEL_MODE\",\n \"travelMode\": \"bicycle\"\n }\n ]\n }\n ]\n }\n },\n {\n \"statusCode\": 400,\n \"response\":\n {\n \"error\":\n {\n \"code\": \"400 BadRequest\",\n \"message\": \"Bad request: one or more parameters were incorrectly specified or are mutually exclusive.\"\n }\n }\n }\n ]\n}\n```", "operationId": "Route_GetRouteDirectionsBatch", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options" : { + "final-state-via" : "original-uri" + }, "x-ms-examples": { "A Get Route Directions Batch API call containing 3 Route Directions API queries": { "$ref": "./examples/GetRouteDirectionsBatch.json" From c02bb9c8c686c3345ab58642b4cdd0a8c7435761 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Wed, 26 May 2021 20:29:28 +0200 Subject: [PATCH 172/210] Remove unused stuff from readme.md --- specification/maps/data-plane/readme.md | 49 ------------------------- 1 file changed, 49 deletions(-) diff --git a/specification/maps/data-plane/readme.md b/specification/maps/data-plane/readme.md index 4bee98e5fcfc..d4f4b6a96891 100644 --- a/specification/maps/data-plane/readme.md +++ b/specification/maps/data-plane/readme.md @@ -131,52 +131,3 @@ See configuration in [readme.csharp.md](./readme.csharp.md) ## Go See configuration in [readme.go.md](./readme.go.md) - -## Multi-API/Profile support for AutoRest v3 generators - -AutoRest V3 generators require the use of `--tag=all-api-versions` to select api files. - -This block is updated by an automatic script. Edits may be lost! - -``` yaml $(tag) == 'all-api-versions' /* autogenerated */ -# include the azure profile definitions from the standard location -require: $(this-folder)/../../../profiles/readme.md - -# all the input files across all versions -input-file: - - $(this-folder)/Microsoft.Maps/Alias/preview/1.0/alias.json - - $(this-folder)/Microsoft.Maps/Alias/preview/2.0/alias.json - - $(this-folder)/Microsoft.Maps/Data/preview/1.0/data.json - - $(this-folder)/Microsoft.Maps/Data/preview/2.0/data.json - - $(this-folder)/Microsoft.Maps/Dataset/preview/1.0/dataset.json - - $(this-folder)/Microsoft.Maps/Dataset/preview/2.0/dataset.json - - $(this-folder)/Microsoft.Maps/DEM/preview/1.0/elevation.json - - $(this-folder)/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json - - $(this-folder)/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json - - $(this-folder)/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json - - $(this-folder)/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json - - $(this-folder)/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json - - $(this-folder)/Microsoft.Maps/Mobility/preview/1.0/mobility.json - - $(this-folder)/Microsoft.Maps/Render/preview/1.0/render.json - - $(this-folder)/Microsoft.Maps/Render/preview/2.0/render.json - - $(this-folder)/Microsoft.Maps/Route/preview/1.0/route.json - - $(this-folder)/Microsoft.Maps/Search/preview/1.0/search.json - - $(this-folder)/Microsoft.Maps/Spatial/preview/1.0/spatial.json - - $(this-folder)/Microsoft.Maps/Tileset/preview/1.0/tileset.json - - $(this-folder)/Microsoft.Maps/Tileset/preview/2.0/tileset.json - - $(this-folder)/Microsoft.Maps/Timezone/preview/1.0/timezone.json - - $(this-folder)/Microsoft.Maps/Traffic/preview/1.0/traffic.json - - $(this-folder)/Microsoft.Maps/Weather/preview/1.0/weather.json - - $(this-folder)/Microsoft.Maps/WFS/preview/1.0/wfs.json - - $(this-folder)/Microsoft.Maps/WFS/preview/2.0/wfs.json - -``` - -If there are files that should not be in the `all-api-versions` set, -uncomment the `exclude-file` section below and add the file paths. - -``` yaml $(tag) == 'all-api-versions' -#exclude-file: -# - $(this-folder)/Microsoft.Example/stable/2010-01-01/somefile.json -``` - From a03b61d7992a2ba25090a43870367e40942da2df Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Wed, 26 May 2021 20:40:20 +0200 Subject: [PATCH 173/210] Run prettifier --- .../Microsoft.Maps/Route/preview/1.0/route.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json index c9d537ca4f66..36e762644b01 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json @@ -875,8 +875,8 @@ "description": "If the Matrix Route request was accepted successfully, the Location header in the response contains the URL to download the results of the request. This status URI looks like the following:\n\n ```\n GET https://atlas.microsoft.com/route/matrix/{matrixId}?api-version=1.0?subscription-key={subscription-key}\n ```\n\n\n4. Client issues a GET request on the download URL obtained in Step 3 to download the results\n\n### Download Sync Results\nWhen you make a POST request for Route Matrix Sync API, the service returns 200 response code for successful request and a response array. The response body will contain the data and there will be no possibility to retrieve the results later.\n\n### Download Async Results\nWhen a request issues a `202 Accepted` response, the request is being processed using our async pipeline. You will be given a URL to check the progress of your async request in the location header of the response. This status URI looks like the following:\n```\n GET https://atlas.microsoft.com/route/matrix/{matrixId}?api-version=1.0?subscription-key={subscription-key}\n```\n\nThe URL provided by the location header will return the following responses when a `GET` request is issued.\n\n > HTTP `202 Accepted` - Matrix request was accepted but is still being processed. Please try again in some time.\n\n > HTTP `200 OK` - Matrix request successfully processed. The response body contains all of the results.", "operationId": "Route_GetRouteMatrix", "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options" : { - "final-state-via" : "original-uri" + "x-ms-long-running-operation-options": { + "final-state-via": "original-uri" }, "x-ms-examples": { "GetRouteMatrix": { @@ -1550,8 +1550,8 @@ "description": "### Download Asynchronous Batch Results\nTo download the async batch results you will issue a `GET` request to the batch download endpoint. This _download URL_ can be obtained from the `Location` header of a successful `POST` batch request and looks like the following:\n\n```\nhttps://atlas.microsoft.com/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\nHere's the typical sequence of operations for downloading the batch results:\n1. Client sends a `GET` request using the _download URL_.\n2. The server will respond with one of the following:\n \n > HTTP `202 Accepted` - Batch request was accepted but is still being processed. Please try again in some time.\n\n > HTTP `200 OK` - Batch request successfully processed. The response body contains all the batch results.\n\n\n\n### Batch Response Model\nThe returned data content is similar for async and sync requests. When downloading the results of an async batch request, if the batch has finished processing, the response body contains the batch response. This batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests`i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item in `batchItems` contains `statusCode` and `response` fields. Each `response` in `batchItems` is of one of the following types:\n\n - [`RouteDirectionsResponse`](https://docs.microsoft.com/en-us/rest/api/maps/route/getroutedirections#routedirectionsresponse) - If the query completed successfully.\n\n - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.\n\n\nHere's a sample Batch Response with 1 _successful_ and 1 _failed_ result:\n\n\n```json\n{\n \"summary\": {\n \"successfulRequests\": 1,\n \"totalRequests\": 2\n },\n \"batchItems\": [\n {\n \"statusCode\": 200,\n \"response\": {\n \"routes\": [\n {\n \"summary\": {\n \"lengthInMeters\": 1758,\n \"travelTimeInSeconds\": 387,\n \"trafficDelayInSeconds\": 0,\n \"departureTime\": \"2018-07-17T00:49:56+00:00\",\n \"arrivalTime\": \"2018-07-17T00:56:22+00:00\"\n },\n \"legs\": [\n {\n \"summary\": {\n \"lengthInMeters\": 1758,\n \"travelTimeInSeconds\": 387,\n \"trafficDelayInSeconds\": 0,\n \"departureTime\": \"2018-07-17T00:49:56+00:00\",\n \"arrivalTime\": \"2018-07-17T00:56:22+00:00\"\n },\n \"points\": [\n {\n \"latitude\": 47.62094,\n \"longitude\": -122.34892\n },\n {\n \"latitude\": 47.62094,\n \"longitude\": -122.3485\n },\n {\n \"latitude\": 47.62095,\n \"longitude\": -122.3476\n }\n ]\n }\n ],\n \"sections\": [\n {\n \"startPointIndex\": 0,\n \"endPointIndex\": 40,\n \"sectionType\": \"TRAVEL_MODE\",\n \"travelMode\": \"bicycle\"\n }\n ]\n }\n ]\n }\n },\n {\n \"statusCode\": 400,\n \"response\":\n {\n \"error\":\n {\n \"code\": \"400 BadRequest\",\n \"message\": \"Bad request: one or more parameters were incorrectly specified or are mutually exclusive.\"\n }\n }\n }\n ]\n}\n```", "operationId": "Route_GetRouteDirectionsBatch", "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options" : { - "final-state-via" : "original-uri" + "x-ms-long-running-operation-options": { + "final-state-via": "original-uri" }, "x-ms-examples": { "A Get Route Directions Batch API call containing 3 Route Directions API queries": { From 4e89983d96822af716d50e0b100a58717b85000a Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Wed, 26 May 2021 20:41:58 +0200 Subject: [PATCH 174/210] see if x-publish fixes linter error. --- .../Microsoft.Maps/FeatureState/preview/1.0/featurestate.json | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json index a66768588568..3f91472b8b65 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json @@ -191,6 +191,7 @@ } }, "put": { + "x-publish": true, "description": "**Applies to**: see pricing [tiers](https://azure.microsoft.com/en-us/pricing/details/azure-maps/).\n
\n\nThis PUT API allows the user to update the stateset style rules.", "operationId": "FeatureState_PutStatesetPreview", "x-ms-examples": { From cdbe60ae99682f3d3e57373f1d98e2e6a85648bf Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Wed, 26 May 2021 20:48:07 +0200 Subject: [PATCH 175/210] Replace description. --- .../maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json | 2 +- .../maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json | 2 +- .../data-plane/Microsoft.Maps/Common/preview/1.0/common.json | 2 +- .../data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json | 2 +- .../maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json | 2 +- .../maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json | 2 +- .../data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json | 2 +- .../data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json | 2 +- .../Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json | 2 +- .../Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json | 2 +- .../Microsoft.Maps/FeatureState/preview/1.0/featurestate.json | 2 +- .../Microsoft.Maps/FeatureState/preview/2.0/featurestate.json | 2 +- .../Microsoft.Maps/Geolocation/preview/1.0/geolocation.json | 2 +- .../Microsoft.Maps/Mobility/preview/1.0/mobility.json | 2 +- .../data-plane/Microsoft.Maps/Render/preview/1.0/render.json | 2 +- .../data-plane/Microsoft.Maps/Render/preview/2.0/render.json | 2 +- .../maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json | 2 +- .../data-plane/Microsoft.Maps/Search/preview/1.0/search.json | 2 +- .../data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json | 2 +- .../data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json | 2 +- .../data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json | 2 +- .../Microsoft.Maps/Timezone/preview/1.0/timezone.json | 2 +- .../data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json | 2 +- .../maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json | 2 +- .../maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json | 2 +- .../data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json | 2 +- 26 files changed, 26 insertions(+), 26 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json index 9e279ae06112..0a6e828856f6 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json @@ -39,7 +39,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json index 8af99caa9ab3..7b7e56eefda3 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json @@ -39,7 +39,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index 4f77caf84f93..034ef2fd3270 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -775,7 +775,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json index e8c823a9121f..67d2e7fb10fd 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json +++ b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json @@ -39,7 +39,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json index c697f70c4b0d..2e02d2b7b7ec 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json index 68ee7976dbbd..1210d0d86c32 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json index 6f163a60eefb..8645999d82b1 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json @@ -39,7 +39,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json index e5c80d9f5a6c..429fc499f84b 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json @@ -39,7 +39,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json index 5796be203610..a332eaf3c1ea 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json index 60c36bb077c8..2edf67ad1b8b 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json index 3f91472b8b65..610a9b7478a0 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json index 914f4cbbce67..41814a6ca442 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json index f603a68969ae..61f1e910357f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json +++ b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json index 556ffa80f9f6..2793a6cd15d8 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json +++ b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json @@ -37,7 +37,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json index b0bba42f5889..28ecd51ccad7 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json @@ -39,7 +39,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json index ab2173ec37fe..afb54d4762ce 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json @@ -39,7 +39,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json index 36e762644b01..241832867447 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json @@ -39,7 +39,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json index 145a36798b7e..c1f288ae520c 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json @@ -39,7 +39,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json index 489d7fce62f4..9700cfe07056 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json index f1a351149b94..fb398e42562d 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json index 0a9011b77276..7f858bd0b1e4 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json index 46aa9da27299..d6d4bf631e94 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json +++ b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json index 43cb6dfc8e11..182bb15590cc 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json +++ b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json index 7dd2afb0fb13..d75fa5b4e9ec 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json @@ -39,7 +39,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json index 24ba96e42faa..e7709655335c 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json @@ -39,7 +39,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json index 1a532be3af66..54109afe4174 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json +++ b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json @@ -37,7 +37,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } From 9aa6dfc424ed922d3c14f86cae5eb6a90ee5a2db Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Wed, 26 May 2021 21:00:03 +0200 Subject: [PATCH 176/210] disable long running operation for put state update --- .../Microsoft.Maps/FeatureState/preview/1.0/featurestate.json | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json index 610a9b7478a0..cf0cb643b45d 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json @@ -194,6 +194,7 @@ "x-publish": true, "description": "**Applies to**: see pricing [tiers](https://azure.microsoft.com/en-us/pricing/details/azure-maps/).\n
\n\nThis PUT API allows the user to update the stateset style rules.", "operationId": "FeatureState_PutStatesetPreview", + "x-ms-long-running-operation": false, "x-ms-examples": { "Update stateset style rules with a statesetId": { "$ref": "./examples/UpdateStateset.json" From 6eb25e11e64ec487973c1237919b16326ce169d7 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Wed, 26 May 2021 21:17:35 +0200 Subject: [PATCH 177/210] Add schema of type string. --- .../FeatureState/preview/1.0/featurestate.json | 2 -- .../FeatureState/preview/2.0/featurestate.json | 5 ++++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json index cf0cb643b45d..aaf2138124e7 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json @@ -191,10 +191,8 @@ } }, "put": { - "x-publish": true, "description": "**Applies to**: see pricing [tiers](https://azure.microsoft.com/en-us/pricing/details/azure-maps/).\n
\n\nThis PUT API allows the user to update the stateset style rules.", "operationId": "FeatureState_PutStatesetPreview", - "x-ms-long-running-operation": false, "x-ms-examples": { "Update stateset style rules with a statesetId": { "$ref": "./examples/UpdateStateset.json" diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json index 41814a6ca442..9a8f55407c19 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json @@ -246,7 +246,10 @@ ], "responses": { "200": { - "description": "Stateset styles are updated successfully." + "description": "Stateset styles are updated successfully.", + "schema": { + "type": "string" + } }, "400": { "$ref": "../../../Common/preview/1.0/common.json#/responses/400" From 656b461ab8a2ce21cb081c1d4e394f896f06630c Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Wed, 26 May 2021 21:41:06 +0200 Subject: [PATCH 178/210] Replace description --- .../maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json | 2 +- .../maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json | 2 +- .../data-plane/Microsoft.Maps/Common/preview/1.0/common.json | 2 +- .../data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json | 2 +- .../maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json | 2 +- .../maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json | 2 +- .../data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json | 2 +- .../data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json | 2 +- .../Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json | 2 +- .../Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json | 2 +- .../Microsoft.Maps/FeatureState/preview/1.0/featurestate.json | 2 +- .../Microsoft.Maps/FeatureState/preview/2.0/featurestate.json | 2 +- .../Microsoft.Maps/Geolocation/preview/1.0/geolocation.json | 2 +- .../Microsoft.Maps/Mobility/preview/1.0/mobility.json | 2 +- .../data-plane/Microsoft.Maps/Render/preview/1.0/render.json | 2 +- .../data-plane/Microsoft.Maps/Render/preview/2.0/render.json | 2 +- .../maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json | 2 +- .../data-plane/Microsoft.Maps/Search/preview/1.0/search.json | 2 +- .../data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json | 2 +- .../data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json | 2 +- .../data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json | 2 +- .../Microsoft.Maps/Timezone/preview/1.0/timezone.json | 2 +- .../data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json | 2 +- .../maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json | 2 +- .../maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json | 2 +- .../data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json | 2 +- 26 files changed, 26 insertions(+), 26 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json index 0a6e828856f6..a695ad428e3e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json @@ -39,7 +39,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory\n OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) \n Flows. When paired with [Azure role-based\n access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) \n control it can be used to control access to Azure Maps REST APIs. Azure\n role-based access controls are used to designate access to one or more Azure\n Maps resource account or sub-resources. Any user, group, or service principal\n can be granted access via a built-in role or a custom role composed of one or\n more permissions to Azure Maps REST APIs.\n\n\n To implement scenarios, we recommend viewing [authentication\n concepts](https://aka.ms/amauth). In summary, this security definition\n provides a solution for modeling application(s) via objects capable of access\n control on specific APIs and scopes.\n\n\n #### Notes\n\n * This security definition requires the use of the x-ms-client-id header\n to indicate which Azure Maps resource the application is requesting access\n to. This can be acquired from the [Maps management\n API](https://aka.ms/amauthdetails).\n\n * \n\n The Authorization URL is specific to the Azure public cloud instance.\n Sovereign clouds have unique Authorization URLs and Azure Active directory\n configurations. \n\n * \n\n The Azure role-based access control is configured from the [Azure management\n plane](https://aka.ms/amrbac) via Azure portal, PowerShell, CLI, Azure SDKs,\n or REST APIs.\n\n * \n\n Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for\n configuration based setup of an application for multiple use cases.\n\n * Currently, Azure Active Directory\n [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison)\n tokens are supported.\n).", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json index 7b7e56eefda3..5b72a5c39c15 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json @@ -39,7 +39,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory\n OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) \n Flows. When paired with [Azure role-based\n access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) \n control it can be used to control access to Azure Maps REST APIs. Azure\n role-based access controls are used to designate access to one or more Azure\n Maps resource account or sub-resources. Any user, group, or service principal\n can be granted access via a built-in role or a custom role composed of one or\n more permissions to Azure Maps REST APIs.\n\n\n To implement scenarios, we recommend viewing [authentication\n concepts](https://aka.ms/amauth). In summary, this security definition\n provides a solution for modeling application(s) via objects capable of access\n control on specific APIs and scopes.\n\n\n #### Notes\n\n * This security definition requires the use of the x-ms-client-id header\n to indicate which Azure Maps resource the application is requesting access\n to. This can be acquired from the [Maps management\n API](https://aka.ms/amauthdetails).\n\n * \n\n The Authorization URL is specific to the Azure public cloud instance.\n Sovereign clouds have unique Authorization URLs and Azure Active directory\n configurations. \n\n * \n\n The Azure role-based access control is configured from the [Azure management\n plane](https://aka.ms/amrbac) via Azure portal, PowerShell, CLI, Azure SDKs,\n or REST APIs.\n\n * \n\n Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for\n configuration based setup of an application for multiple use cases.\n\n * Currently, Azure Active Directory\n [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison)\n tokens are supported.\n).", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index 034ef2fd3270..50a386c8dcb8 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -775,7 +775,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory\n OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) \n Flows. When paired with [Azure role-based\n access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) \n control it can be used to control access to Azure Maps REST APIs. Azure\n role-based access controls are used to designate access to one or more Azure\n Maps resource account or sub-resources. Any user, group, or service principal\n can be granted access via a built-in role or a custom role composed of one or\n more permissions to Azure Maps REST APIs.\n\n\n To implement scenarios, we recommend viewing [authentication\n concepts](https://aka.ms/amauth). In summary, this security definition\n provides a solution for modeling application(s) via objects capable of access\n control on specific APIs and scopes.\n\n\n #### Notes\n\n * This security definition requires the use of the x-ms-client-id header\n to indicate which Azure Maps resource the application is requesting access\n to. This can be acquired from the [Maps management\n API](https://aka.ms/amauthdetails).\n\n * \n\n The Authorization URL is specific to the Azure public cloud instance.\n Sovereign clouds have unique Authorization URLs and Azure Active directory\n configurations. \n\n * \n\n The Azure role-based access control is configured from the [Azure management\n plane](https://aka.ms/amrbac) via Azure portal, PowerShell, CLI, Azure SDKs,\n or REST APIs.\n\n * \n\n Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for\n configuration based setup of an application for multiple use cases.\n\n * Currently, Azure Active Directory\n [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison)\n tokens are supported.\n).", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json index 67d2e7fb10fd..cfe952e61486 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json +++ b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json @@ -39,7 +39,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory\n OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) \n Flows. When paired with [Azure role-based\n access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) \n control it can be used to control access to Azure Maps REST APIs. Azure\n role-based access controls are used to designate access to one or more Azure\n Maps resource account or sub-resources. Any user, group, or service principal\n can be granted access via a built-in role or a custom role composed of one or\n more permissions to Azure Maps REST APIs.\n\n\n To implement scenarios, we recommend viewing [authentication\n concepts](https://aka.ms/amauth). In summary, this security definition\n provides a solution for modeling application(s) via objects capable of access\n control on specific APIs and scopes.\n\n\n #### Notes\n\n * This security definition requires the use of the x-ms-client-id header\n to indicate which Azure Maps resource the application is requesting access\n to. This can be acquired from the [Maps management\n API](https://aka.ms/amauthdetails).\n\n * \n\n The Authorization URL is specific to the Azure public cloud instance.\n Sovereign clouds have unique Authorization URLs and Azure Active directory\n configurations. \n\n * \n\n The Azure role-based access control is configured from the [Azure management\n plane](https://aka.ms/amrbac) via Azure portal, PowerShell, CLI, Azure SDKs,\n or REST APIs.\n\n * \n\n Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for\n configuration based setup of an application for multiple use cases.\n\n * Currently, Azure Active Directory\n [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison)\n tokens are supported.\n).", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json index 2e02d2b7b7ec..4c39e1538998 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory\n OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) \n Flows. When paired with [Azure role-based\n access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) \n control it can be used to control access to Azure Maps REST APIs. Azure\n role-based access controls are used to designate access to one or more Azure\n Maps resource account or sub-resources. Any user, group, or service principal\n can be granted access via a built-in role or a custom role composed of one or\n more permissions to Azure Maps REST APIs.\n\n\n To implement scenarios, we recommend viewing [authentication\n concepts](https://aka.ms/amauth). In summary, this security definition\n provides a solution for modeling application(s) via objects capable of access\n control on specific APIs and scopes.\n\n\n #### Notes\n\n * This security definition requires the use of the x-ms-client-id header\n to indicate which Azure Maps resource the application is requesting access\n to. This can be acquired from the [Maps management\n API](https://aka.ms/amauthdetails).\n\n * \n\n The Authorization URL is specific to the Azure public cloud instance.\n Sovereign clouds have unique Authorization URLs and Azure Active directory\n configurations. \n\n * \n\n The Azure role-based access control is configured from the [Azure management\n plane](https://aka.ms/amrbac) via Azure portal, PowerShell, CLI, Azure SDKs,\n or REST APIs.\n\n * \n\n Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for\n configuration based setup of an application for multiple use cases.\n\n * Currently, Azure Active Directory\n [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison)\n tokens are supported.\n).", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json index 1210d0d86c32..068d61e4d426 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory\n OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) \n Flows. When paired with [Azure role-based\n access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) \n control it can be used to control access to Azure Maps REST APIs. Azure\n role-based access controls are used to designate access to one or more Azure\n Maps resource account or sub-resources. Any user, group, or service principal\n can be granted access via a built-in role or a custom role composed of one or\n more permissions to Azure Maps REST APIs.\n\n\n To implement scenarios, we recommend viewing [authentication\n concepts](https://aka.ms/amauth). In summary, this security definition\n provides a solution for modeling application(s) via objects capable of access\n control on specific APIs and scopes.\n\n\n #### Notes\n\n * This security definition requires the use of the x-ms-client-id header\n to indicate which Azure Maps resource the application is requesting access\n to. This can be acquired from the [Maps management\n API](https://aka.ms/amauthdetails).\n\n * \n\n The Authorization URL is specific to the Azure public cloud instance.\n Sovereign clouds have unique Authorization URLs and Azure Active directory\n configurations. \n\n * \n\n The Azure role-based access control is configured from the [Azure management\n plane](https://aka.ms/amrbac) via Azure portal, PowerShell, CLI, Azure SDKs,\n or REST APIs.\n\n * \n\n Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for\n configuration based setup of an application for multiple use cases.\n\n * Currently, Azure Active Directory\n [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison)\n tokens are supported.\n).", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json index 8645999d82b1..543386aabd4e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json @@ -39,7 +39,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory\n OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) \n Flows. When paired with [Azure role-based\n access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) \n control it can be used to control access to Azure Maps REST APIs. Azure\n role-based access controls are used to designate access to one or more Azure\n Maps resource account or sub-resources. Any user, group, or service principal\n can be granted access via a built-in role or a custom role composed of one or\n more permissions to Azure Maps REST APIs.\n\n\n To implement scenarios, we recommend viewing [authentication\n concepts](https://aka.ms/amauth). In summary, this security definition\n provides a solution for modeling application(s) via objects capable of access\n control on specific APIs and scopes.\n\n\n #### Notes\n\n * This security definition requires the use of the x-ms-client-id header\n to indicate which Azure Maps resource the application is requesting access\n to. This can be acquired from the [Maps management\n API](https://aka.ms/amauthdetails).\n\n * \n\n The Authorization URL is specific to the Azure public cloud instance.\n Sovereign clouds have unique Authorization URLs and Azure Active directory\n configurations. \n\n * \n\n The Azure role-based access control is configured from the [Azure management\n plane](https://aka.ms/amrbac) via Azure portal, PowerShell, CLI, Azure SDKs,\n or REST APIs.\n\n * \n\n Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for\n configuration based setup of an application for multiple use cases.\n\n * Currently, Azure Active Directory\n [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison)\n tokens are supported.\n).", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json index 429fc499f84b..5334b66c3d85 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json @@ -39,7 +39,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory\n OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) \n Flows. When paired with [Azure role-based\n access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) \n control it can be used to control access to Azure Maps REST APIs. Azure\n role-based access controls are used to designate access to one or more Azure\n Maps resource account or sub-resources. Any user, group, or service principal\n can be granted access via a built-in role or a custom role composed of one or\n more permissions to Azure Maps REST APIs.\n\n\n To implement scenarios, we recommend viewing [authentication\n concepts](https://aka.ms/amauth). In summary, this security definition\n provides a solution for modeling application(s) via objects capable of access\n control on specific APIs and scopes.\n\n\n #### Notes\n\n * This security definition requires the use of the x-ms-client-id header\n to indicate which Azure Maps resource the application is requesting access\n to. This can be acquired from the [Maps management\n API](https://aka.ms/amauthdetails).\n\n * \n\n The Authorization URL is specific to the Azure public cloud instance.\n Sovereign clouds have unique Authorization URLs and Azure Active directory\n configurations. \n\n * \n\n The Azure role-based access control is configured from the [Azure management\n plane](https://aka.ms/amrbac) via Azure portal, PowerShell, CLI, Azure SDKs,\n or REST APIs.\n\n * \n\n Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for\n configuration based setup of an application for multiple use cases.\n\n * Currently, Azure Active Directory\n [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison)\n tokens are supported.\n).", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json index a332eaf3c1ea..a73d02eaaaf2 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory\n OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) \n Flows. When paired with [Azure role-based\n access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) \n control it can be used to control access to Azure Maps REST APIs. Azure\n role-based access controls are used to designate access to one or more Azure\n Maps resource account or sub-resources. Any user, group, or service principal\n can be granted access via a built-in role or a custom role composed of one or\n more permissions to Azure Maps REST APIs.\n\n\n To implement scenarios, we recommend viewing [authentication\n concepts](https://aka.ms/amauth). In summary, this security definition\n provides a solution for modeling application(s) via objects capable of access\n control on specific APIs and scopes.\n\n\n #### Notes\n\n * This security definition requires the use of the x-ms-client-id header\n to indicate which Azure Maps resource the application is requesting access\n to. This can be acquired from the [Maps management\n API](https://aka.ms/amauthdetails).\n\n * \n\n The Authorization URL is specific to the Azure public cloud instance.\n Sovereign clouds have unique Authorization URLs and Azure Active directory\n configurations. \n\n * \n\n The Azure role-based access control is configured from the [Azure management\n plane](https://aka.ms/amrbac) via Azure portal, PowerShell, CLI, Azure SDKs,\n or REST APIs.\n\n * \n\n Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for\n configuration based setup of an application for multiple use cases.\n\n * Currently, Azure Active Directory\n [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison)\n tokens are supported.\n).", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json index 2edf67ad1b8b..c79af61d7c65 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory\n OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) \n Flows. When paired with [Azure role-based\n access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) \n control it can be used to control access to Azure Maps REST APIs. Azure\n role-based access controls are used to designate access to one or more Azure\n Maps resource account or sub-resources. Any user, group, or service principal\n can be granted access via a built-in role or a custom role composed of one or\n more permissions to Azure Maps REST APIs.\n\n\n To implement scenarios, we recommend viewing [authentication\n concepts](https://aka.ms/amauth). In summary, this security definition\n provides a solution for modeling application(s) via objects capable of access\n control on specific APIs and scopes.\n\n\n #### Notes\n\n * This security definition requires the use of the x-ms-client-id header\n to indicate which Azure Maps resource the application is requesting access\n to. This can be acquired from the [Maps management\n API](https://aka.ms/amauthdetails).\n\n * \n\n The Authorization URL is specific to the Azure public cloud instance.\n Sovereign clouds have unique Authorization URLs and Azure Active directory\n configurations. \n\n * \n\n The Azure role-based access control is configured from the [Azure management\n plane](https://aka.ms/amrbac) via Azure portal, PowerShell, CLI, Azure SDKs,\n or REST APIs.\n\n * \n\n Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for\n configuration based setup of an application for multiple use cases.\n\n * Currently, Azure Active Directory\n [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison)\n tokens are supported.\n).", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json index aaf2138124e7..0de967db7cc6 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory\n OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) \n Flows. When paired with [Azure role-based\n access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) \n control it can be used to control access to Azure Maps REST APIs. Azure\n role-based access controls are used to designate access to one or more Azure\n Maps resource account or sub-resources. Any user, group, or service principal\n can be granted access via a built-in role or a custom role composed of one or\n more permissions to Azure Maps REST APIs.\n\n\n To implement scenarios, we recommend viewing [authentication\n concepts](https://aka.ms/amauth). In summary, this security definition\n provides a solution for modeling application(s) via objects capable of access\n control on specific APIs and scopes.\n\n\n #### Notes\n\n * This security definition requires the use of the x-ms-client-id header\n to indicate which Azure Maps resource the application is requesting access\n to. This can be acquired from the [Maps management\n API](https://aka.ms/amauthdetails).\n\n * \n\n The Authorization URL is specific to the Azure public cloud instance.\n Sovereign clouds have unique Authorization URLs and Azure Active directory\n configurations. \n\n * \n\n The Azure role-based access control is configured from the [Azure management\n plane](https://aka.ms/amrbac) via Azure portal, PowerShell, CLI, Azure SDKs,\n or REST APIs.\n\n * \n\n Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for\n configuration based setup of an application for multiple use cases.\n\n * Currently, Azure Active Directory\n [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison)\n tokens are supported.\n).", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json index 9a8f55407c19..16d0ef770c26 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory\n OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) \n Flows. When paired with [Azure role-based\n access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) \n control it can be used to control access to Azure Maps REST APIs. Azure\n role-based access controls are used to designate access to one or more Azure\n Maps resource account or sub-resources. Any user, group, or service principal\n can be granted access via a built-in role or a custom role composed of one or\n more permissions to Azure Maps REST APIs.\n\n\n To implement scenarios, we recommend viewing [authentication\n concepts](https://aka.ms/amauth). In summary, this security definition\n provides a solution for modeling application(s) via objects capable of access\n control on specific APIs and scopes.\n\n\n #### Notes\n\n * This security definition requires the use of the x-ms-client-id header\n to indicate which Azure Maps resource the application is requesting access\n to. This can be acquired from the [Maps management\n API](https://aka.ms/amauthdetails).\n\n * \n\n The Authorization URL is specific to the Azure public cloud instance.\n Sovereign clouds have unique Authorization URLs and Azure Active directory\n configurations. \n\n * \n\n The Azure role-based access control is configured from the [Azure management\n plane](https://aka.ms/amrbac) via Azure portal, PowerShell, CLI, Azure SDKs,\n or REST APIs.\n\n * \n\n Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for\n configuration based setup of an application for multiple use cases.\n\n * Currently, Azure Active Directory\n [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison)\n tokens are supported.\n).", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json index 61f1e910357f..06c02fab9934 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json +++ b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory\n OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) \n Flows. When paired with [Azure role-based\n access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) \n control it can be used to control access to Azure Maps REST APIs. Azure\n role-based access controls are used to designate access to one or more Azure\n Maps resource account or sub-resources. Any user, group, or service principal\n can be granted access via a built-in role or a custom role composed of one or\n more permissions to Azure Maps REST APIs.\n\n\n To implement scenarios, we recommend viewing [authentication\n concepts](https://aka.ms/amauth). In summary, this security definition\n provides a solution for modeling application(s) via objects capable of access\n control on specific APIs and scopes.\n\n\n #### Notes\n\n * This security definition requires the use of the x-ms-client-id header\n to indicate which Azure Maps resource the application is requesting access\n to. This can be acquired from the [Maps management\n API](https://aka.ms/amauthdetails).\n\n * \n\n The Authorization URL is specific to the Azure public cloud instance.\n Sovereign clouds have unique Authorization URLs and Azure Active directory\n configurations. \n\n * \n\n The Azure role-based access control is configured from the [Azure management\n plane](https://aka.ms/amrbac) via Azure portal, PowerShell, CLI, Azure SDKs,\n or REST APIs.\n\n * \n\n Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for\n configuration based setup of an application for multiple use cases.\n\n * Currently, Azure Active Directory\n [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison)\n tokens are supported.\n).", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json index 2793a6cd15d8..e102b6d56b59 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json +++ b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json @@ -37,7 +37,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory\n OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) \n Flows. When paired with [Azure role-based\n access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) \n control it can be used to control access to Azure Maps REST APIs. Azure\n role-based access controls are used to designate access to one or more Azure\n Maps resource account or sub-resources. Any user, group, or service principal\n can be granted access via a built-in role or a custom role composed of one or\n more permissions to Azure Maps REST APIs.\n\n\n To implement scenarios, we recommend viewing [authentication\n concepts](https://aka.ms/amauth). In summary, this security definition\n provides a solution for modeling application(s) via objects capable of access\n control on specific APIs and scopes.\n\n\n #### Notes\n\n * This security definition requires the use of the x-ms-client-id header\n to indicate which Azure Maps resource the application is requesting access\n to. This can be acquired from the [Maps management\n API](https://aka.ms/amauthdetails).\n\n * \n\n The Authorization URL is specific to the Azure public cloud instance.\n Sovereign clouds have unique Authorization URLs and Azure Active directory\n configurations. \n\n * \n\n The Azure role-based access control is configured from the [Azure management\n plane](https://aka.ms/amrbac) via Azure portal, PowerShell, CLI, Azure SDKs,\n or REST APIs.\n\n * \n\n Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for\n configuration based setup of an application for multiple use cases.\n\n * Currently, Azure Active Directory\n [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison)\n tokens are supported.\n).", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json index 28ecd51ccad7..f99fa10dfd2e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json @@ -39,7 +39,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory\n OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) \n Flows. When paired with [Azure role-based\n access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) \n control it can be used to control access to Azure Maps REST APIs. Azure\n role-based access controls are used to designate access to one or more Azure\n Maps resource account or sub-resources. Any user, group, or service principal\n can be granted access via a built-in role or a custom role composed of one or\n more permissions to Azure Maps REST APIs.\n\n\n To implement scenarios, we recommend viewing [authentication\n concepts](https://aka.ms/amauth). In summary, this security definition\n provides a solution for modeling application(s) via objects capable of access\n control on specific APIs and scopes.\n\n\n #### Notes\n\n * This security definition requires the use of the x-ms-client-id header\n to indicate which Azure Maps resource the application is requesting access\n to. This can be acquired from the [Maps management\n API](https://aka.ms/amauthdetails).\n\n * \n\n The Authorization URL is specific to the Azure public cloud instance.\n Sovereign clouds have unique Authorization URLs and Azure Active directory\n configurations. \n\n * \n\n The Azure role-based access control is configured from the [Azure management\n plane](https://aka.ms/amrbac) via Azure portal, PowerShell, CLI, Azure SDKs,\n or REST APIs.\n\n * \n\n Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for\n configuration based setup of an application for multiple use cases.\n\n * Currently, Azure Active Directory\n [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison)\n tokens are supported.\n).", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json index afb54d4762ce..512a5195c573 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json @@ -39,7 +39,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory\n OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) \n Flows. When paired with [Azure role-based\n access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) \n control it can be used to control access to Azure Maps REST APIs. Azure\n role-based access controls are used to designate access to one or more Azure\n Maps resource account or sub-resources. Any user, group, or service principal\n can be granted access via a built-in role or a custom role composed of one or\n more permissions to Azure Maps REST APIs.\n\n\n To implement scenarios, we recommend viewing [authentication\n concepts](https://aka.ms/amauth). In summary, this security definition\n provides a solution for modeling application(s) via objects capable of access\n control on specific APIs and scopes.\n\n\n #### Notes\n\n * This security definition requires the use of the x-ms-client-id header\n to indicate which Azure Maps resource the application is requesting access\n to. This can be acquired from the [Maps management\n API](https://aka.ms/amauthdetails).\n\n * \n\n The Authorization URL is specific to the Azure public cloud instance.\n Sovereign clouds have unique Authorization URLs and Azure Active directory\n configurations. \n\n * \n\n The Azure role-based access control is configured from the [Azure management\n plane](https://aka.ms/amrbac) via Azure portal, PowerShell, CLI, Azure SDKs,\n or REST APIs.\n\n * \n\n Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for\n configuration based setup of an application for multiple use cases.\n\n * Currently, Azure Active Directory\n [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison)\n tokens are supported.\n).", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json index 241832867447..e7f1b0bf169f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json @@ -39,7 +39,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory\n OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) \n Flows. When paired with [Azure role-based\n access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) \n control it can be used to control access to Azure Maps REST APIs. Azure\n role-based access controls are used to designate access to one or more Azure\n Maps resource account or sub-resources. Any user, group, or service principal\n can be granted access via a built-in role or a custom role composed of one or\n more permissions to Azure Maps REST APIs.\n\n\n To implement scenarios, we recommend viewing [authentication\n concepts](https://aka.ms/amauth). In summary, this security definition\n provides a solution for modeling application(s) via objects capable of access\n control on specific APIs and scopes.\n\n\n #### Notes\n\n * This security definition requires the use of the x-ms-client-id header\n to indicate which Azure Maps resource the application is requesting access\n to. This can be acquired from the [Maps management\n API](https://aka.ms/amauthdetails).\n\n * \n\n The Authorization URL is specific to the Azure public cloud instance.\n Sovereign clouds have unique Authorization URLs and Azure Active directory\n configurations. \n\n * \n\n The Azure role-based access control is configured from the [Azure management\n plane](https://aka.ms/amrbac) via Azure portal, PowerShell, CLI, Azure SDKs,\n or REST APIs.\n\n * \n\n Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for\n configuration based setup of an application for multiple use cases.\n\n * Currently, Azure Active Directory\n [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison)\n tokens are supported.\n).", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json index c1f288ae520c..4e2ee1ebfde5 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json @@ -39,7 +39,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory\n OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) \n Flows. When paired with [Azure role-based\n access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) \n control it can be used to control access to Azure Maps REST APIs. Azure\n role-based access controls are used to designate access to one or more Azure\n Maps resource account or sub-resources. Any user, group, or service principal\n can be granted access via a built-in role or a custom role composed of one or\n more permissions to Azure Maps REST APIs.\n\n\n To implement scenarios, we recommend viewing [authentication\n concepts](https://aka.ms/amauth). In summary, this security definition\n provides a solution for modeling application(s) via objects capable of access\n control on specific APIs and scopes.\n\n\n #### Notes\n\n * This security definition requires the use of the x-ms-client-id header\n to indicate which Azure Maps resource the application is requesting access\n to. This can be acquired from the [Maps management\n API](https://aka.ms/amauthdetails).\n\n * \n\n The Authorization URL is specific to the Azure public cloud instance.\n Sovereign clouds have unique Authorization URLs and Azure Active directory\n configurations. \n\n * \n\n The Azure role-based access control is configured from the [Azure management\n plane](https://aka.ms/amrbac) via Azure portal, PowerShell, CLI, Azure SDKs,\n or REST APIs.\n\n * \n\n Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for\n configuration based setup of an application for multiple use cases.\n\n * Currently, Azure Active Directory\n [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison)\n tokens are supported.\n).", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json index 9700cfe07056..7b5626a76680 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory\n OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) \n Flows. When paired with [Azure role-based\n access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) \n control it can be used to control access to Azure Maps REST APIs. Azure\n role-based access controls are used to designate access to one or more Azure\n Maps resource account or sub-resources. Any user, group, or service principal\n can be granted access via a built-in role or a custom role composed of one or\n more permissions to Azure Maps REST APIs.\n\n\n To implement scenarios, we recommend viewing [authentication\n concepts](https://aka.ms/amauth). In summary, this security definition\n provides a solution for modeling application(s) via objects capable of access\n control on specific APIs and scopes.\n\n\n #### Notes\n\n * This security definition requires the use of the x-ms-client-id header\n to indicate which Azure Maps resource the application is requesting access\n to. This can be acquired from the [Maps management\n API](https://aka.ms/amauthdetails).\n\n * \n\n The Authorization URL is specific to the Azure public cloud instance.\n Sovereign clouds have unique Authorization URLs and Azure Active directory\n configurations. \n\n * \n\n The Azure role-based access control is configured from the [Azure management\n plane](https://aka.ms/amrbac) via Azure portal, PowerShell, CLI, Azure SDKs,\n or REST APIs.\n\n * \n\n Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for\n configuration based setup of an application for multiple use cases.\n\n * Currently, Azure Active Directory\n [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison)\n tokens are supported.\n).", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json index fb398e42562d..1d8241811ec5 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory\n OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) \n Flows. When paired with [Azure role-based\n access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) \n control it can be used to control access to Azure Maps REST APIs. Azure\n role-based access controls are used to designate access to one or more Azure\n Maps resource account or sub-resources. Any user, group, or service principal\n can be granted access via a built-in role or a custom role composed of one or\n more permissions to Azure Maps REST APIs.\n\n\n To implement scenarios, we recommend viewing [authentication\n concepts](https://aka.ms/amauth). In summary, this security definition\n provides a solution for modeling application(s) via objects capable of access\n control on specific APIs and scopes.\n\n\n #### Notes\n\n * This security definition requires the use of the x-ms-client-id header\n to indicate which Azure Maps resource the application is requesting access\n to. This can be acquired from the [Maps management\n API](https://aka.ms/amauthdetails).\n\n * \n\n The Authorization URL is specific to the Azure public cloud instance.\n Sovereign clouds have unique Authorization URLs and Azure Active directory\n configurations. \n\n * \n\n The Azure role-based access control is configured from the [Azure management\n plane](https://aka.ms/amrbac) via Azure portal, PowerShell, CLI, Azure SDKs,\n or REST APIs.\n\n * \n\n Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for\n configuration based setup of an application for multiple use cases.\n\n * Currently, Azure Active Directory\n [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison)\n tokens are supported.\n).", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json index 7f858bd0b1e4..4993b01260df 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory\n OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) \n Flows. When paired with [Azure role-based\n access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) \n control it can be used to control access to Azure Maps REST APIs. Azure\n role-based access controls are used to designate access to one or more Azure\n Maps resource account or sub-resources. Any user, group, or service principal\n can be granted access via a built-in role or a custom role composed of one or\n more permissions to Azure Maps REST APIs.\n\n\n To implement scenarios, we recommend viewing [authentication\n concepts](https://aka.ms/amauth). In summary, this security definition\n provides a solution for modeling application(s) via objects capable of access\n control on specific APIs and scopes.\n\n\n #### Notes\n\n * This security definition requires the use of the x-ms-client-id header\n to indicate which Azure Maps resource the application is requesting access\n to. This can be acquired from the [Maps management\n API](https://aka.ms/amauthdetails).\n\n * \n\n The Authorization URL is specific to the Azure public cloud instance.\n Sovereign clouds have unique Authorization URLs and Azure Active directory\n configurations. \n\n * \n\n The Azure role-based access control is configured from the [Azure management\n plane](https://aka.ms/amrbac) via Azure portal, PowerShell, CLI, Azure SDKs,\n or REST APIs.\n\n * \n\n Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for\n configuration based setup of an application for multiple use cases.\n\n * Currently, Azure Active Directory\n [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison)\n tokens are supported.\n).", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json index d6d4bf631e94..372cf530843a 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json +++ b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory\n OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) \n Flows. When paired with [Azure role-based\n access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) \n control it can be used to control access to Azure Maps REST APIs. Azure\n role-based access controls are used to designate access to one or more Azure\n Maps resource account or sub-resources. Any user, group, or service principal\n can be granted access via a built-in role or a custom role composed of one or\n more permissions to Azure Maps REST APIs.\n\n\n To implement scenarios, we recommend viewing [authentication\n concepts](https://aka.ms/amauth). In summary, this security definition\n provides a solution for modeling application(s) via objects capable of access\n control on specific APIs and scopes.\n\n\n #### Notes\n\n * This security definition requires the use of the x-ms-client-id header\n to indicate which Azure Maps resource the application is requesting access\n to. This can be acquired from the [Maps management\n API](https://aka.ms/amauthdetails).\n\n * \n\n The Authorization URL is specific to the Azure public cloud instance.\n Sovereign clouds have unique Authorization URLs and Azure Active directory\n configurations. \n\n * \n\n The Azure role-based access control is configured from the [Azure management\n plane](https://aka.ms/amrbac) via Azure portal, PowerShell, CLI, Azure SDKs,\n or REST APIs.\n\n * \n\n Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for\n configuration based setup of an application for multiple use cases.\n\n * Currently, Azure Active Directory\n [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison)\n tokens are supported.\n).", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json index 182bb15590cc..1838fefc7df9 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json +++ b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory\n OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) \n Flows. When paired with [Azure role-based\n access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) \n control it can be used to control access to Azure Maps REST APIs. Azure\n role-based access controls are used to designate access to one or more Azure\n Maps resource account or sub-resources. Any user, group, or service principal\n can be granted access via a built-in role or a custom role composed of one or\n more permissions to Azure Maps REST APIs.\n\n\n To implement scenarios, we recommend viewing [authentication\n concepts](https://aka.ms/amauth). In summary, this security definition\n provides a solution for modeling application(s) via objects capable of access\n control on specific APIs and scopes.\n\n\n #### Notes\n\n * This security definition requires the use of the x-ms-client-id header\n to indicate which Azure Maps resource the application is requesting access\n to. This can be acquired from the [Maps management\n API](https://aka.ms/amauthdetails).\n\n * \n\n The Authorization URL is specific to the Azure public cloud instance.\n Sovereign clouds have unique Authorization URLs and Azure Active directory\n configurations. \n\n * \n\n The Azure role-based access control is configured from the [Azure management\n plane](https://aka.ms/amrbac) via Azure portal, PowerShell, CLI, Azure SDKs,\n or REST APIs.\n\n * \n\n Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for\n configuration based setup of an application for multiple use cases.\n\n * Currently, Azure Active Directory\n [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison)\n tokens are supported.\n).", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json index d75fa5b4e9ec..65a842638838 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json @@ -39,7 +39,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory\n OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) \n Flows. When paired with [Azure role-based\n access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) \n control it can be used to control access to Azure Maps REST APIs. Azure\n role-based access controls are used to designate access to one or more Azure\n Maps resource account or sub-resources. Any user, group, or service principal\n can be granted access via a built-in role or a custom role composed of one or\n more permissions to Azure Maps REST APIs.\n\n\n To implement scenarios, we recommend viewing [authentication\n concepts](https://aka.ms/amauth). In summary, this security definition\n provides a solution for modeling application(s) via objects capable of access\n control on specific APIs and scopes.\n\n\n #### Notes\n\n * This security definition requires the use of the x-ms-client-id header\n to indicate which Azure Maps resource the application is requesting access\n to. This can be acquired from the [Maps management\n API](https://aka.ms/amauthdetails).\n\n * \n\n The Authorization URL is specific to the Azure public cloud instance.\n Sovereign clouds have unique Authorization URLs and Azure Active directory\n configurations. \n\n * \n\n The Azure role-based access control is configured from the [Azure management\n plane](https://aka.ms/amrbac) via Azure portal, PowerShell, CLI, Azure SDKs,\n or REST APIs.\n\n * \n\n Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for\n configuration based setup of an application for multiple use cases.\n\n * Currently, Azure Active Directory\n [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison)\n tokens are supported.\n).", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json index e7709655335c..96ddec5f3664 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json @@ -39,7 +39,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory\n OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) \n Flows. When paired with [Azure role-based\n access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) \n control it can be used to control access to Azure Maps REST APIs. Azure\n role-based access controls are used to designate access to one or more Azure\n Maps resource account or sub-resources. Any user, group, or service principal\n can be granted access via a built-in role or a custom role composed of one or\n more permissions to Azure Maps REST APIs.\n\n\n To implement scenarios, we recommend viewing [authentication\n concepts](https://aka.ms/amauth). In summary, this security definition\n provides a solution for modeling application(s) via objects capable of access\n control on specific APIs and scopes.\n\n\n #### Notes\n\n * This security definition requires the use of the x-ms-client-id header\n to indicate which Azure Maps resource the application is requesting access\n to. This can be acquired from the [Maps management\n API](https://aka.ms/amauthdetails).\n\n * \n\n The Authorization URL is specific to the Azure public cloud instance.\n Sovereign clouds have unique Authorization URLs and Azure Active directory\n configurations. \n\n * \n\n The Azure role-based access control is configured from the [Azure management\n plane](https://aka.ms/amrbac) via Azure portal, PowerShell, CLI, Azure SDKs,\n or REST APIs.\n\n * \n\n Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for\n configuration based setup of an application for multiple use cases.\n\n * Currently, Azure Active Directory\n [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison)\n tokens are supported.\n).", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json index 54109afe4174..f61f3dae577d 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json +++ b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json @@ -37,7 +37,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory\n OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) \n Flows. When paired with [Azure role-based\n access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) \n control it can be used to control access to Azure Maps REST APIs. Azure\n role-based access controls are used to designate access to one or more Azure\n Maps resource account or sub-resources. Any user, group, or service principal\n can be granted access via a built-in role or a custom role composed of one or\n more permissions to Azure Maps REST APIs.\n\n\n To implement scenarios, we recommend viewing [authentication\n concepts](https://aka.ms/amauth). In summary, this security definition\n provides a solution for modeling application(s) via objects capable of access\n control on specific APIs and scopes.\n\n\n #### Notes\n\n * This security definition requires the use of the x-ms-client-id header\n to indicate which Azure Maps resource the application is requesting access\n to. This can be acquired from the [Maps management\n API](https://aka.ms/amauthdetails).\n\n * \n\n The Authorization URL is specific to the Azure public cloud instance.\n Sovereign clouds have unique Authorization URLs and Azure Active directory\n configurations. \n\n * \n\n The Azure role-based access control is configured from the [Azure management\n plane](https://aka.ms/amrbac) via Azure portal, PowerShell, CLI, Azure SDKs,\n or REST APIs.\n\n * \n\n Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for\n configuration based setup of an application for multiple use cases.\n\n * Currently, Azure Active Directory\n [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison)\n tokens are supported.\n).", "scopes": { "user_impersonation": "impersonate your user account" } From c8396935a6e72b38ad768f36e55d5bf93f633c6b Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Thu, 27 May 2021 09:09:33 +0200 Subject: [PATCH 179/210] Remove schema. --- .../FeatureState/preview/2.0/featurestate.json | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json index 16d0ef770c26..278daa4534fb 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json @@ -246,10 +246,7 @@ ], "responses": { "200": { - "description": "Stateset styles are updated successfully.", - "schema": { - "type": "string" - } + "description": "Stateset styles are updated successfully." }, "400": { "$ref": "../../../Common/preview/1.0/common.json#/responses/400" From e504165127d6151c81568a9e922b28f517ba2184 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Thu, 27 May 2021 11:13:28 +0200 Subject: [PATCH 180/210] Remove after install to see if go package still fails. --- specification/maps/data-plane/readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/maps/data-plane/readme.md b/specification/maps/data-plane/readme.md index d4f4b6a96891..12c211510b6b 100644 --- a/specification/maps/data-plane/readme.md +++ b/specification/maps/data-plane/readme.md @@ -109,8 +109,8 @@ swagger-to-sdk: - repo: azure-sdk-for-js - repo: azure-sdk-for-net - repo: azure-sdk-for-go - after_scripts: - - bundle install + #after_scripts: + # - bundle install ``` ## Python From 06a25fae3bf06e442e107a3b7f7d684628b8a4b1 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Fri, 28 May 2021 14:53:16 +0200 Subject: [PATCH 181/210] Change credential type to bearer. and remove each sub key param. --- .../Alias/preview/1.0/alias.json | 12 ----- .../Alias/preview/2.0/alias.json | 15 ------- .../Common/preview/1.0/common.json | 7 --- .../DEM/preview/1.0/elevation.json | 15 ------- .../Microsoft.Maps/Data/preview/1.0/data.json | 15 ------- .../Microsoft.Maps/Data/preview/2.0/data.json | 18 -------- .../Dataset/preview/1.0/dataset.json | 12 ----- .../Dataset/preview/2.0/dataset.json | 15 ------- .../preview/1.0/dwgconversion.json | 9 ---- .../preview/2.0/dwgconversion.json | 15 ------- .../preview/1.0/featurestate.json | 24 ---------- .../preview/2.0/featurestate.json | 24 ---------- .../Geolocation/preview/1.0/geolocation.json | 3 -- .../Mobility/preview/1.0/mobility.json | 24 ---------- .../Render/preview/1.0/render.json | 24 ---------- .../Render/preview/2.0/render.json | 3 -- .../Route/preview/1.0/route.json | 24 ---------- .../Search/preview/1.0/search.json | 45 ------------------- .../Spatial/preview/1.0/spatial.json | 27 ----------- .../Tileset/preview/1.0/tileset.json | 9 ---- .../Tileset/preview/2.0/tileset.json | 15 ------- .../Timezone/preview/1.0/timezone.json | 18 -------- .../Traffic/preview/1.0/traffic.json | 15 ------- .../Microsoft.Maps/WFS/preview/1.0/wfs.json | 24 ---------- .../Microsoft.Maps/WFS/preview/2.0/wfs.json | 24 ---------- .../Weather/preview/1.0/weather.json | 24 ---------- specification/maps/data-plane/readme.md | 4 +- 27 files changed, 2 insertions(+), 462 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json index a695ad428e3e..3dd99e3785c9 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json @@ -85,9 +85,6 @@ } }, "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" } @@ -125,9 +122,6 @@ } }, "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" } @@ -167,9 +161,6 @@ } }, "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -212,9 +203,6 @@ } }, "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json index 5b72a5c39c15..e8dce02700cc 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json @@ -92,9 +92,6 @@ } }, "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, @@ -141,9 +138,6 @@ } }, "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" } @@ -190,9 +184,6 @@ { "$ref": "#/parameters/AliasId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, @@ -236,9 +227,6 @@ { "$ref": "#/parameters/AliasId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" } @@ -276,9 +264,6 @@ { "$ref": "#/parameters/AliasId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index 50a386c8dcb8..3cd818674193 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -538,13 +538,6 @@ } }, "parameters": { - "SubscriptionKey": { - "name": "subscription-key", - "description": "One of the Azure Maps keys provided from an Azure Map Account. Please refer to this [article](https://docs.microsoft.com/azure/azure-maps/how-to-manage-authentication) for details on how to manage authentication.", - "type": "string", - "in": "query", - "x-ms-parameter-location": "client" - }, "ApiVersion": { "name": "api-version", "description": "Version number of Azure Maps API.", diff --git a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json index cfe952e61486..f5ab495e31ea 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json +++ b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json @@ -71,9 +71,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -134,9 +131,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -195,9 +189,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -266,9 +257,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -335,9 +323,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json index 4c39e1538998..a3a4ec7af2af 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json @@ -112,9 +112,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -179,9 +176,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -245,9 +239,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -289,9 +280,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -334,9 +322,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json index 068d61e4d426..38a06695ad35 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json @@ -132,9 +132,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, @@ -197,9 +194,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" } @@ -246,9 +240,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, @@ -316,9 +307,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, @@ -360,9 +348,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, @@ -405,9 +390,6 @@ } }, "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json index 543386aabd4e..b02499b570d8 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json @@ -166,9 +166,6 @@ } }, "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -230,9 +227,6 @@ } }, "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -284,9 +278,6 @@ } }, "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -326,9 +317,6 @@ } }, "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json index 5334b66c3d85..d5f86c0c93c5 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json @@ -112,9 +112,6 @@ } }, "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, @@ -165,9 +162,6 @@ } }, "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" } @@ -214,9 +208,6 @@ { "$ref": "#/parameters/DatasetId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" } @@ -254,9 +245,6 @@ } }, "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, @@ -299,9 +287,6 @@ } }, "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json index a73d02eaaaf2..2f2b95fd9747 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json @@ -119,9 +119,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -176,9 +173,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" } @@ -221,9 +215,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json index c79af61d7c65..99d0c1468a5f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json @@ -114,9 +114,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, @@ -170,9 +167,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" } @@ -219,9 +213,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, @@ -265,9 +256,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, @@ -310,9 +298,6 @@ } }, "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json index 0de967db7cc6..5f93e7b3bd57 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json @@ -116,9 +116,6 @@ } }, "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -159,9 +156,6 @@ } }, "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -199,9 +193,6 @@ } }, "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -250,9 +241,6 @@ } }, "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -302,9 +290,6 @@ } }, "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" } @@ -344,9 +329,6 @@ } }, "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -390,9 +372,6 @@ } }, "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -442,9 +421,6 @@ } }, "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json index 278daa4534fb..13b87faa3d96 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json @@ -124,9 +124,6 @@ } }, "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, @@ -179,9 +176,6 @@ } }, "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" } @@ -225,9 +219,6 @@ } }, "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, @@ -274,9 +265,6 @@ } }, "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, @@ -314,9 +302,6 @@ } }, "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, @@ -359,9 +344,6 @@ } }, "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, @@ -411,9 +393,6 @@ } }, "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, @@ -460,9 +439,6 @@ } }, "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, diff --git a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json index 06c02fab9934..f9580892cd61 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json +++ b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json @@ -69,9 +69,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, diff --git a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json index e102b6d56b59..688b251ac993 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json +++ b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json @@ -85,9 +85,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -167,9 +164,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -264,9 +258,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -345,9 +336,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -453,9 +441,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -575,9 +560,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -898,9 +880,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -983,9 +962,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json index f99fa10dfd2e..fa1f068ba5cc 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json @@ -200,9 +200,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -381,9 +378,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -548,9 +542,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -621,9 +612,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -669,9 +657,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -759,9 +744,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -824,9 +806,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -884,9 +863,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json index 512a5195c573..2479003cce46 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json @@ -157,9 +157,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json index e7f1b0bf169f..eef32018680f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json @@ -768,9 +768,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -887,9 +884,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -938,9 +932,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -1128,9 +1119,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -1329,9 +1317,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -1500,9 +1485,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -1562,9 +1544,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -1613,9 +1592,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json index 4e2ee1ebfde5..e43a0aa7e74f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json @@ -378,9 +378,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -439,9 +436,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -561,9 +555,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -664,9 +655,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -751,9 +739,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -854,9 +839,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -908,9 +890,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -999,9 +978,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -1157,9 +1133,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -1228,9 +1201,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -1358,9 +1328,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -1439,9 +1406,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -1533,9 +1497,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -1600,9 +1561,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -1667,9 +1625,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json index 7b5626a76680..63240405bd91 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json @@ -143,9 +143,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -245,9 +242,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -351,9 +345,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -406,9 +397,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -464,9 +452,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -531,9 +516,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -594,9 +576,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -655,9 +634,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -712,9 +688,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json index 1d8241811ec5..8df4d78bb1e8 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json @@ -125,9 +125,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -179,9 +176,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" } @@ -224,9 +218,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json index 4993b01260df..cccf6a3e96cd 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json @@ -106,9 +106,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, @@ -159,9 +156,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" } @@ -208,9 +202,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, @@ -254,9 +245,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, @@ -299,9 +287,6 @@ } }, "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, diff --git a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json index 372cf530843a..eee585d08277 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json +++ b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json @@ -136,9 +136,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -206,9 +203,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -276,9 +270,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -324,9 +315,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -372,9 +360,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -420,9 +405,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, diff --git a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json index 1838fefc7df9..b1460b37a64e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json +++ b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json @@ -115,9 +115,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -231,9 +228,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -344,9 +338,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -458,9 +449,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -631,9 +619,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json index 65a842638838..0ccec029cef0 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json @@ -111,9 +111,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -159,9 +156,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -207,9 +201,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -255,9 +246,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -306,9 +294,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -357,9 +342,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -414,9 +396,6 @@ } }, "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -463,9 +442,6 @@ } }, "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json index 96ddec5f3664..b688f36b54bf 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json @@ -111,9 +111,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, @@ -159,9 +156,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, @@ -207,9 +201,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, @@ -255,9 +246,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, @@ -306,9 +294,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, @@ -357,9 +342,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, @@ -414,9 +396,6 @@ } }, "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, @@ -463,9 +442,6 @@ } }, "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" }, diff --git a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json index f61f3dae577d..03e5128f2961 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json +++ b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json @@ -102,9 +102,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -169,9 +166,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -233,9 +227,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -300,9 +291,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -373,9 +361,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -440,9 +425,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -498,9 +480,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, @@ -562,9 +541,6 @@ { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/SubscriptionKey" - }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" }, diff --git a/specification/maps/data-plane/readme.md b/specification/maps/data-plane/readme.md index 12c211510b6b..06995fca05f5 100644 --- a/specification/maps/data-plane/readme.md +++ b/specification/maps/data-plane/readme.md @@ -29,8 +29,8 @@ title: MapsClient openapi-type: data-plane tag: package-preview-2.0 add-credentials: true -credential-default-policy-type: AzureKeyCredentialPolicy -credential-key-header-name: subscription-key +credential-default-policy-type: BearerTokenCredentialPolicy +credential-scopes: https://atlas.microsoft.com/.default ``` ### Suppression From e0babcc56693c21bcefe55b2e7683e70e024ace9 Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Fri, 28 May 2021 12:24:01 +0200 Subject: [PATCH 182/210] - remove XML since our client libs are using JSON only and TS codegen cannot parse responses properly --- .../data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json | 4 ++-- .../data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json | 4 ++-- .../data-plane/Microsoft.Maps/Common/preview/1.0/common.json | 3 +-- .../data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json | 3 +-- .../Microsoft.Maps/Dataset/preview/1.0/dataset.json | 3 +-- .../Microsoft.Maps/Dataset/preview/2.0/dataset.json | 3 +-- .../data-plane/Microsoft.Maps/Render/preview/1.0/render.json | 3 +-- .../data-plane/Microsoft.Maps/Render/preview/2.0/render.json | 3 +-- .../data-plane/Microsoft.Maps/Route/preview/1.0/route.json | 3 +-- .../data-plane/Microsoft.Maps/Search/preview/1.0/search.json | 3 +-- .../maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json | 3 +-- .../maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json | 3 +-- specification/maps/data-plane/readme.typescript.md | 2 +- 13 files changed, 15 insertions(+), 25 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json index 3dd99e3785c9..7f65f3232597 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json @@ -18,8 +18,7 @@ ], "consumes": [], "produces": [ - "application/json", - "application/xml" + "application/json" ], "security": [ { @@ -276,6 +275,7 @@ "resourceId": { "description": "The id for the resource that this alias references (could be null if the alias has not been assigned).", "type": "string", + "x-nullable": true, "readOnly": true }, "lastUpdatedTimestamp": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json index e8dce02700cc..98395a10fd2e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json @@ -18,8 +18,7 @@ }, "consumes": [], "produces": [ - "application/json", - "application/xml" + "application/json" ], "security": [ { @@ -357,6 +356,7 @@ "creatorDataItemId": { "description": "The id for the creator data item that this alias references (could be null if the alias has not been assigned).", "type": "string", + "x-nullable": true, "readOnly": true }, "lastUpdatedTimestamp": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index 3cd818674193..ab6bdfb42290 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -17,8 +17,7 @@ ], "consumes": [], "produces": [ - "application/json", - "application/xml" + "application/json" ], "paths": {}, "definitions": { diff --git a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json index f5ab495e31ea..f4a3f55e7cde 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json +++ b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json @@ -18,8 +18,7 @@ ], "consumes": [], "produces": [ - "application/json", - "application/xml" + "application/json" ], "security": [ { diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json index b02499b570d8..f9f378958978 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json @@ -18,8 +18,7 @@ ], "consumes": [], "produces": [ - "application/json", - "application/xml" + "application/json" ], "security": [ { diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json index d5f86c0c93c5..d1f3b4b350d0 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json @@ -18,8 +18,7 @@ ], "consumes": [], "produces": [ - "application/json", - "application/xml" + "application/json" ], "security": [ { diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json index fa1f068ba5cc..e26179cf4aed 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json @@ -18,8 +18,7 @@ ], "consumes": [], "produces": [ - "application/json", - "application/xml" + "application/json" ], "security": [ { diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json index 2479003cce46..4f23c15116e4 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json @@ -18,8 +18,7 @@ ], "consumes": [], "produces": [ - "application/json", - "application/xml" + "application/json" ], "security": [ { diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json index eef32018680f..f13d1e8b4b7b 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json @@ -18,8 +18,7 @@ ], "consumes": [], "produces": [ - "application/json", - "application/xml" + "application/json" ], "security": [ { diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json index e43a0aa7e74f..fe449bb6fd63 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json @@ -18,8 +18,7 @@ ], "consumes": [], "produces": [ - "application/json", - "application/xml" + "application/json" ], "security": [ { diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json index 0ccec029cef0..336df344a823 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json @@ -18,8 +18,7 @@ ], "consumes": [], "produces": [ - "application/json", - "application/xml" + "application/json" ], "security": [ { diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json index b688f36b54bf..5b4d9cd32d7e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json @@ -18,8 +18,7 @@ ], "consumes": [], "produces": [ - "application/json", - "application/xml" + "application/json" ], "security": [ { diff --git a/specification/maps/data-plane/readme.typescript.md b/specification/maps/data-plane/readme.typescript.md index f0ad3875f95d..92b8d0ab35c1 100644 --- a/specification/maps/data-plane/readme.typescript.md +++ b/specification/maps/data-plane/readme.typescript.md @@ -7,7 +7,7 @@ Please also specify `--typescript-sdks-folder= Date: Wed, 2 Jun 2021 00:20:03 +0200 Subject: [PATCH 183/210] - fix DWG conversion 200 response to not be an error but actual result with operationId in the body - use 6.0.0-alpha.20210514.1 TS codegen as latest beta has broken LRO support for JS core v1 (cannot use core v2 due to missing API key credential) --- .../DwgConversion/preview/2.0/dwgconversion.json | 6 +----- specification/maps/data-plane/readme.typescript.md | 7 +++++-- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json index 99d0c1468a5f..301ebc8f71dc 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json @@ -129,11 +129,7 @@ ], "responses": { "200": { - "description": "Conversion failed. The uploaded content did not satisfy all the validation checks. The response body contains all the errors that were encountered.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true + "$ref": "../../../Common/preview/1.0/common.json#/responses/200AsyncV2" }, "202": { "$ref": "../../../Common/preview/1.0/common.json#/responses/202AsyncV2" diff --git a/specification/maps/data-plane/readme.typescript.md b/specification/maps/data-plane/readme.typescript.md index 92b8d0ab35c1..ef8de16024dd 100644 --- a/specification/maps/data-plane/readme.typescript.md +++ b/specification/maps/data-plane/readme.typescript.md @@ -7,8 +7,11 @@ Please also specify `--typescript-sdks-folder= Date: Wed, 2 Jun 2021 15:27:37 +0200 Subject: [PATCH 184/210] Fix Data & Dataset conversion 200 response to not be an error but actual result with operationId in the body --- .../Microsoft.Maps/Data/preview/2.0/data.json | 12 ++---------- .../Microsoft.Maps/Dataset/preview/2.0/dataset.json | 6 +----- 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json index 38a06695ad35..738056e1d6b5 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json @@ -153,11 +153,7 @@ ], "responses": { "200": { - "description": "Data upload failed. The uploaded content did not satisfy all the validation checks. The response body contains all the errors that were encountered.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true + "$ref": "../../../Common/preview/1.0/common.json#/responses/200AsyncV2" }, "202": { "$ref": "../../../Common/preview/1.0/common.json#/responses/202AsyncV2" @@ -261,11 +257,7 @@ ], "responses": { "200": { - "description": "Data update failed. The uploaded content did not satisfy all the validation checks. The response body contains all the errors that were encountered.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true + "$ref": "../../../Common/preview/1.0/common.json#/responses/200AsyncV2" }, "202": { "$ref": "../../../Common/preview/1.0/common.json#/responses/202AsyncV2" diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json index d1f3b4b350d0..0bbf33232504 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json @@ -126,11 +126,7 @@ ], "responses": { "200": { - "description": "Dataset create failed. The uploaded content did not satisfy all the validation checks. The response body contains all the errors that were encountered.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true + "$ref": "../../../Common/preview/1.0/common.json#/responses/200AsyncV2" }, "202": { "$ref": "../../../Common/preview/1.0/common.json#/responses/202AsyncV2" From d5d70ed1ab997b06644e88fba84c720150bfb0d9 Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Fri, 4 Jun 2021 16:12:28 +0200 Subject: [PATCH 185/210] Fix OAuth description for Lint diff & fix prettier --- .../data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json | 2 +- .../data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json | 2 +- .../data-plane/Microsoft.Maps/Common/preview/1.0/common.json | 2 +- .../data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json | 2 +- .../maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json | 3 +-- .../maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json | 2 +- .../data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json | 2 +- .../data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json | 2 +- .../DwgConversion/preview/1.0/dwgconversion.json | 2 +- .../DwgConversion/preview/2.0/dwgconversion.json | 2 +- .../Microsoft.Maps/FeatureState/preview/1.0/featurestate.json | 2 +- .../Microsoft.Maps/FeatureState/preview/2.0/featurestate.json | 2 +- .../Microsoft.Maps/Geolocation/preview/1.0/geolocation.json | 2 +- .../Microsoft.Maps/Mobility/preview/1.0/mobility.json | 2 +- .../data-plane/Microsoft.Maps/Render/preview/1.0/render.json | 2 +- .../data-plane/Microsoft.Maps/Render/preview/2.0/render.json | 2 +- .../data-plane/Microsoft.Maps/Route/preview/1.0/route.json | 2 +- .../data-plane/Microsoft.Maps/Search/preview/1.0/search.json | 2 +- .../data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json | 2 +- .../data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json | 2 +- .../data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json | 2 +- .../Microsoft.Maps/Timezone/preview/1.0/timezone.json | 2 +- .../data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json | 2 +- .../maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json | 2 +- .../maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json | 2 +- .../data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json | 2 +- 26 files changed, 26 insertions(+), 27 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json index 7f65f3232597..4ca4971fdbfc 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory\n OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) \n Flows. When paired with [Azure role-based\n access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) \n control it can be used to control access to Azure Maps REST APIs. Azure\n role-based access controls are used to designate access to one or more Azure\n Maps resource account or sub-resources. Any user, group, or service principal\n can be granted access via a built-in role or a custom role composed of one or\n more permissions to Azure Maps REST APIs.\n\n\n To implement scenarios, we recommend viewing [authentication\n concepts](https://aka.ms/amauth). In summary, this security definition\n provides a solution for modeling application(s) via objects capable of access\n control on specific APIs and scopes.\n\n\n #### Notes\n\n * This security definition requires the use of the x-ms-client-id header\n to indicate which Azure Maps resource the application is requesting access\n to. This can be acquired from the [Maps management\n API](https://aka.ms/amauthdetails).\n\n * \n\n The Authorization URL is specific to the Azure public cloud instance.\n Sovereign clouds have unique Authorization URLs and Azure Active directory\n configurations. \n\n * \n\n The Azure role-based access control is configured from the [Azure management\n plane](https://aka.ms/amrbac) via Azure portal, PowerShell, CLI, Azure SDKs,\n or REST APIs.\n\n * \n\n Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for\n configuration based setup of an application for multiple use cases.\n\n * Currently, Azure Active Directory\n [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison)\n tokens are supported.\n).", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json index 98395a10fd2e..369bcaf126eb 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory\n OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) \n Flows. When paired with [Azure role-based\n access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) \n control it can be used to control access to Azure Maps REST APIs. Azure\n role-based access controls are used to designate access to one or more Azure\n Maps resource account or sub-resources. Any user, group, or service principal\n can be granted access via a built-in role or a custom role composed of one or\n more permissions to Azure Maps REST APIs.\n\n\n To implement scenarios, we recommend viewing [authentication\n concepts](https://aka.ms/amauth). In summary, this security definition\n provides a solution for modeling application(s) via objects capable of access\n control on specific APIs and scopes.\n\n\n #### Notes\n\n * This security definition requires the use of the x-ms-client-id header\n to indicate which Azure Maps resource the application is requesting access\n to. This can be acquired from the [Maps management\n API](https://aka.ms/amauthdetails).\n\n * \n\n The Authorization URL is specific to the Azure public cloud instance.\n Sovereign clouds have unique Authorization URLs and Azure Active directory\n configurations. \n\n * \n\n The Azure role-based access control is configured from the [Azure management\n plane](https://aka.ms/amrbac) via Azure portal, PowerShell, CLI, Azure SDKs,\n or REST APIs.\n\n * \n\n Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for\n configuration based setup of an application for multiple use cases.\n\n * Currently, Azure Active Directory\n [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison)\n tokens are supported.\n).", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index ab6bdfb42290..299d502ef216 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -767,7 +767,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory\n OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) \n Flows. When paired with [Azure role-based\n access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) \n control it can be used to control access to Azure Maps REST APIs. Azure\n role-based access controls are used to designate access to one or more Azure\n Maps resource account or sub-resources. Any user, group, or service principal\n can be granted access via a built-in role or a custom role composed of one or\n more permissions to Azure Maps REST APIs.\n\n\n To implement scenarios, we recommend viewing [authentication\n concepts](https://aka.ms/amauth). In summary, this security definition\n provides a solution for modeling application(s) via objects capable of access\n control on specific APIs and scopes.\n\n\n #### Notes\n\n * This security definition requires the use of the x-ms-client-id header\n to indicate which Azure Maps resource the application is requesting access\n to. This can be acquired from the [Maps management\n API](https://aka.ms/amauthdetails).\n\n * \n\n The Authorization URL is specific to the Azure public cloud instance.\n Sovereign clouds have unique Authorization URLs and Azure Active directory\n configurations. \n\n * \n\n The Azure role-based access control is configured from the [Azure management\n plane](https://aka.ms/amrbac) via Azure portal, PowerShell, CLI, Azure SDKs,\n or REST APIs.\n\n * \n\n Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for\n configuration based setup of an application for multiple use cases.\n\n * Currently, Azure Active Directory\n [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison)\n tokens are supported.\n).", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json index f4a3f55e7cde..b0b102bf1d18 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json +++ b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory\n OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) \n Flows. When paired with [Azure role-based\n access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) \n control it can be used to control access to Azure Maps REST APIs. Azure\n role-based access controls are used to designate access to one or more Azure\n Maps resource account or sub-resources. Any user, group, or service principal\n can be granted access via a built-in role or a custom role composed of one or\n more permissions to Azure Maps REST APIs.\n\n\n To implement scenarios, we recommend viewing [authentication\n concepts](https://aka.ms/amauth). In summary, this security definition\n provides a solution for modeling application(s) via objects capable of access\n control on specific APIs and scopes.\n\n\n #### Notes\n\n * This security definition requires the use of the x-ms-client-id header\n to indicate which Azure Maps resource the application is requesting access\n to. This can be acquired from the [Maps management\n API](https://aka.ms/amauthdetails).\n\n * \n\n The Authorization URL is specific to the Azure public cloud instance.\n Sovereign clouds have unique Authorization URLs and Azure Active directory\n configurations. \n\n * \n\n The Azure role-based access control is configured from the [Azure management\n plane](https://aka.ms/amrbac) via Azure portal, PowerShell, CLI, Azure SDKs,\n or REST APIs.\n\n * \n\n Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for\n configuration based setup of an application for multiple use cases.\n\n * Currently, Azure Active Directory\n [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison)\n tokens are supported.\n).", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json index a3a4ec7af2af..0f484904b928 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory\n OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) \n Flows. When paired with [Azure role-based\n access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) \n control it can be used to control access to Azure Maps REST APIs. Azure\n role-based access controls are used to designate access to one or more Azure\n Maps resource account or sub-resources. Any user, group, or service principal\n can be granted access via a built-in role or a custom role composed of one or\n more permissions to Azure Maps REST APIs.\n\n\n To implement scenarios, we recommend viewing [authentication\n concepts](https://aka.ms/amauth). In summary, this security definition\n provides a solution for modeling application(s) via objects capable of access\n control on specific APIs and scopes.\n\n\n #### Notes\n\n * This security definition requires the use of the x-ms-client-id header\n to indicate which Azure Maps resource the application is requesting access\n to. This can be acquired from the [Maps management\n API](https://aka.ms/amauthdetails).\n\n * \n\n The Authorization URL is specific to the Azure public cloud instance.\n Sovereign clouds have unique Authorization URLs and Azure Active directory\n configurations. \n\n * \n\n The Azure role-based access control is configured from the [Azure management\n plane](https://aka.ms/amrbac) via Azure portal, PowerShell, CLI, Azure SDKs,\n or REST APIs.\n\n * \n\n Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for\n configuration based setup of an application for multiple use cases.\n\n * Currently, Azure Active Directory\n [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison)\n tokens are supported.\n).", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } @@ -56,7 +56,6 @@ }, "responses": {}, "parameters": { - "UploadDataFormat": { "name": "dataFormat", "x-ms-client-name": "UploadDataFormat", diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json index 738056e1d6b5..9a9a2024ad1b 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory\n OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) \n Flows. When paired with [Azure role-based\n access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) \n control it can be used to control access to Azure Maps REST APIs. Azure\n role-based access controls are used to designate access to one or more Azure\n Maps resource account or sub-resources. Any user, group, or service principal\n can be granted access via a built-in role or a custom role composed of one or\n more permissions to Azure Maps REST APIs.\n\n\n To implement scenarios, we recommend viewing [authentication\n concepts](https://aka.ms/amauth). In summary, this security definition\n provides a solution for modeling application(s) via objects capable of access\n control on specific APIs and scopes.\n\n\n #### Notes\n\n * This security definition requires the use of the x-ms-client-id header\n to indicate which Azure Maps resource the application is requesting access\n to. This can be acquired from the [Maps management\n API](https://aka.ms/amauthdetails).\n\n * \n\n The Authorization URL is specific to the Azure public cloud instance.\n Sovereign clouds have unique Authorization URLs and Azure Active directory\n configurations. \n\n * \n\n The Azure role-based access control is configured from the [Azure management\n plane](https://aka.ms/amrbac) via Azure portal, PowerShell, CLI, Azure SDKs,\n or REST APIs.\n\n * \n\n Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for\n configuration based setup of an application for multiple use cases.\n\n * Currently, Azure Active Directory\n [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison)\n tokens are supported.\n).", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json index f9f378958978..9c6ae633644c 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory\n OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) \n Flows. When paired with [Azure role-based\n access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) \n control it can be used to control access to Azure Maps REST APIs. Azure\n role-based access controls are used to designate access to one or more Azure\n Maps resource account or sub-resources. Any user, group, or service principal\n can be granted access via a built-in role or a custom role composed of one or\n more permissions to Azure Maps REST APIs.\n\n\n To implement scenarios, we recommend viewing [authentication\n concepts](https://aka.ms/amauth). In summary, this security definition\n provides a solution for modeling application(s) via objects capable of access\n control on specific APIs and scopes.\n\n\n #### Notes\n\n * This security definition requires the use of the x-ms-client-id header\n to indicate which Azure Maps resource the application is requesting access\n to. This can be acquired from the [Maps management\n API](https://aka.ms/amauthdetails).\n\n * \n\n The Authorization URL is specific to the Azure public cloud instance.\n Sovereign clouds have unique Authorization URLs and Azure Active directory\n configurations. \n\n * \n\n The Azure role-based access control is configured from the [Azure management\n plane](https://aka.ms/amrbac) via Azure portal, PowerShell, CLI, Azure SDKs,\n or REST APIs.\n\n * \n\n Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for\n configuration based setup of an application for multiple use cases.\n\n * Currently, Azure Active Directory\n [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison)\n tokens are supported.\n).", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json index 0bbf33232504..94c8d25c7822 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory\n OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) \n Flows. When paired with [Azure role-based\n access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) \n control it can be used to control access to Azure Maps REST APIs. Azure\n role-based access controls are used to designate access to one or more Azure\n Maps resource account or sub-resources. Any user, group, or service principal\n can be granted access via a built-in role or a custom role composed of one or\n more permissions to Azure Maps REST APIs.\n\n\n To implement scenarios, we recommend viewing [authentication\n concepts](https://aka.ms/amauth). In summary, this security definition\n provides a solution for modeling application(s) via objects capable of access\n control on specific APIs and scopes.\n\n\n #### Notes\n\n * This security definition requires the use of the x-ms-client-id header\n to indicate which Azure Maps resource the application is requesting access\n to. This can be acquired from the [Maps management\n API](https://aka.ms/amauthdetails).\n\n * \n\n The Authorization URL is specific to the Azure public cloud instance.\n Sovereign clouds have unique Authorization URLs and Azure Active directory\n configurations. \n\n * \n\n The Azure role-based access control is configured from the [Azure management\n plane](https://aka.ms/amrbac) via Azure portal, PowerShell, CLI, Azure SDKs,\n or REST APIs.\n\n * \n\n Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for\n configuration based setup of an application for multiple use cases.\n\n * Currently, Azure Active Directory\n [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison)\n tokens are supported.\n).", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json index 2f2b95fd9747..3dbd59458db7 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory\n OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) \n Flows. When paired with [Azure role-based\n access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) \n control it can be used to control access to Azure Maps REST APIs. Azure\n role-based access controls are used to designate access to one or more Azure\n Maps resource account or sub-resources. Any user, group, or service principal\n can be granted access via a built-in role or a custom role composed of one or\n more permissions to Azure Maps REST APIs.\n\n\n To implement scenarios, we recommend viewing [authentication\n concepts](https://aka.ms/amauth). In summary, this security definition\n provides a solution for modeling application(s) via objects capable of access\n control on specific APIs and scopes.\n\n\n #### Notes\n\n * This security definition requires the use of the x-ms-client-id header\n to indicate which Azure Maps resource the application is requesting access\n to. This can be acquired from the [Maps management\n API](https://aka.ms/amauthdetails).\n\n * \n\n The Authorization URL is specific to the Azure public cloud instance.\n Sovereign clouds have unique Authorization URLs and Azure Active directory\n configurations. \n\n * \n\n The Azure role-based access control is configured from the [Azure management\n plane](https://aka.ms/amrbac) via Azure portal, PowerShell, CLI, Azure SDKs,\n or REST APIs.\n\n * \n\n Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for\n configuration based setup of an application for multiple use cases.\n\n * Currently, Azure Active Directory\n [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison)\n tokens are supported.\n).", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json index 301ebc8f71dc..cb84cdcafa5d 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory\n OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) \n Flows. When paired with [Azure role-based\n access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) \n control it can be used to control access to Azure Maps REST APIs. Azure\n role-based access controls are used to designate access to one or more Azure\n Maps resource account or sub-resources. Any user, group, or service principal\n can be granted access via a built-in role or a custom role composed of one or\n more permissions to Azure Maps REST APIs.\n\n\n To implement scenarios, we recommend viewing [authentication\n concepts](https://aka.ms/amauth). In summary, this security definition\n provides a solution for modeling application(s) via objects capable of access\n control on specific APIs and scopes.\n\n\n #### Notes\n\n * This security definition requires the use of the x-ms-client-id header\n to indicate which Azure Maps resource the application is requesting access\n to. This can be acquired from the [Maps management\n API](https://aka.ms/amauthdetails).\n\n * \n\n The Authorization URL is specific to the Azure public cloud instance.\n Sovereign clouds have unique Authorization URLs and Azure Active directory\n configurations. \n\n * \n\n The Azure role-based access control is configured from the [Azure management\n plane](https://aka.ms/amrbac) via Azure portal, PowerShell, CLI, Azure SDKs,\n or REST APIs.\n\n * \n\n Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for\n configuration based setup of an application for multiple use cases.\n\n * Currently, Azure Active Directory\n [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison)\n tokens are supported.\n).", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json index 5f93e7b3bd57..4f997e7a46d0 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory\n OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) \n Flows. When paired with [Azure role-based\n access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) \n control it can be used to control access to Azure Maps REST APIs. Azure\n role-based access controls are used to designate access to one or more Azure\n Maps resource account or sub-resources. Any user, group, or service principal\n can be granted access via a built-in role or a custom role composed of one or\n more permissions to Azure Maps REST APIs.\n\n\n To implement scenarios, we recommend viewing [authentication\n concepts](https://aka.ms/amauth). In summary, this security definition\n provides a solution for modeling application(s) via objects capable of access\n control on specific APIs and scopes.\n\n\n #### Notes\n\n * This security definition requires the use of the x-ms-client-id header\n to indicate which Azure Maps resource the application is requesting access\n to. This can be acquired from the [Maps management\n API](https://aka.ms/amauthdetails).\n\n * \n\n The Authorization URL is specific to the Azure public cloud instance.\n Sovereign clouds have unique Authorization URLs and Azure Active directory\n configurations. \n\n * \n\n The Azure role-based access control is configured from the [Azure management\n plane](https://aka.ms/amrbac) via Azure portal, PowerShell, CLI, Azure SDKs,\n or REST APIs.\n\n * \n\n Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for\n configuration based setup of an application for multiple use cases.\n\n * Currently, Azure Active Directory\n [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison)\n tokens are supported.\n).", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json index 13b87faa3d96..da8e81e9c3ea 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory\n OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) \n Flows. When paired with [Azure role-based\n access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) \n control it can be used to control access to Azure Maps REST APIs. Azure\n role-based access controls are used to designate access to one or more Azure\n Maps resource account or sub-resources. Any user, group, or service principal\n can be granted access via a built-in role or a custom role composed of one or\n more permissions to Azure Maps REST APIs.\n\n\n To implement scenarios, we recommend viewing [authentication\n concepts](https://aka.ms/amauth). In summary, this security definition\n provides a solution for modeling application(s) via objects capable of access\n control on specific APIs and scopes.\n\n\n #### Notes\n\n * This security definition requires the use of the x-ms-client-id header\n to indicate which Azure Maps resource the application is requesting access\n to. This can be acquired from the [Maps management\n API](https://aka.ms/amauthdetails).\n\n * \n\n The Authorization URL is specific to the Azure public cloud instance.\n Sovereign clouds have unique Authorization URLs and Azure Active directory\n configurations. \n\n * \n\n The Azure role-based access control is configured from the [Azure management\n plane](https://aka.ms/amrbac) via Azure portal, PowerShell, CLI, Azure SDKs,\n or REST APIs.\n\n * \n\n Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for\n configuration based setup of an application for multiple use cases.\n\n * Currently, Azure Active Directory\n [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison)\n tokens are supported.\n).", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json index f9580892cd61..4d763abe7824 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json +++ b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory\n OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) \n Flows. When paired with [Azure role-based\n access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) \n control it can be used to control access to Azure Maps REST APIs. Azure\n role-based access controls are used to designate access to one or more Azure\n Maps resource account or sub-resources. Any user, group, or service principal\n can be granted access via a built-in role or a custom role composed of one or\n more permissions to Azure Maps REST APIs.\n\n\n To implement scenarios, we recommend viewing [authentication\n concepts](https://aka.ms/amauth). In summary, this security definition\n provides a solution for modeling application(s) via objects capable of access\n control on specific APIs and scopes.\n\n\n #### Notes\n\n * This security definition requires the use of the x-ms-client-id header\n to indicate which Azure Maps resource the application is requesting access\n to. This can be acquired from the [Maps management\n API](https://aka.ms/amauthdetails).\n\n * \n\n The Authorization URL is specific to the Azure public cloud instance.\n Sovereign clouds have unique Authorization URLs and Azure Active directory\n configurations. \n\n * \n\n The Azure role-based access control is configured from the [Azure management\n plane](https://aka.ms/amrbac) via Azure portal, PowerShell, CLI, Azure SDKs,\n or REST APIs.\n\n * \n\n Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for\n configuration based setup of an application for multiple use cases.\n\n * Currently, Azure Active Directory\n [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison)\n tokens are supported.\n).", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json index 688b251ac993..6218cab371b9 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json +++ b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json @@ -37,7 +37,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory\n OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) \n Flows. When paired with [Azure role-based\n access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) \n control it can be used to control access to Azure Maps REST APIs. Azure\n role-based access controls are used to designate access to one or more Azure\n Maps resource account or sub-resources. Any user, group, or service principal\n can be granted access via a built-in role or a custom role composed of one or\n more permissions to Azure Maps REST APIs.\n\n\n To implement scenarios, we recommend viewing [authentication\n concepts](https://aka.ms/amauth). In summary, this security definition\n provides a solution for modeling application(s) via objects capable of access\n control on specific APIs and scopes.\n\n\n #### Notes\n\n * This security definition requires the use of the x-ms-client-id header\n to indicate which Azure Maps resource the application is requesting access\n to. This can be acquired from the [Maps management\n API](https://aka.ms/amauthdetails).\n\n * \n\n The Authorization URL is specific to the Azure public cloud instance.\n Sovereign clouds have unique Authorization URLs and Azure Active directory\n configurations. \n\n * \n\n The Azure role-based access control is configured from the [Azure management\n plane](https://aka.ms/amrbac) via Azure portal, PowerShell, CLI, Azure SDKs,\n or REST APIs.\n\n * \n\n Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for\n configuration based setup of an application for multiple use cases.\n\n * Currently, Azure Active Directory\n [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison)\n tokens are supported.\n).", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json index e26179cf4aed..15e174d88e7b 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory\n OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) \n Flows. When paired with [Azure role-based\n access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) \n control it can be used to control access to Azure Maps REST APIs. Azure\n role-based access controls are used to designate access to one or more Azure\n Maps resource account or sub-resources. Any user, group, or service principal\n can be granted access via a built-in role or a custom role composed of one or\n more permissions to Azure Maps REST APIs.\n\n\n To implement scenarios, we recommend viewing [authentication\n concepts](https://aka.ms/amauth). In summary, this security definition\n provides a solution for modeling application(s) via objects capable of access\n control on specific APIs and scopes.\n\n\n #### Notes\n\n * This security definition requires the use of the x-ms-client-id header\n to indicate which Azure Maps resource the application is requesting access\n to. This can be acquired from the [Maps management\n API](https://aka.ms/amauthdetails).\n\n * \n\n The Authorization URL is specific to the Azure public cloud instance.\n Sovereign clouds have unique Authorization URLs and Azure Active directory\n configurations. \n\n * \n\n The Azure role-based access control is configured from the [Azure management\n plane](https://aka.ms/amrbac) via Azure portal, PowerShell, CLI, Azure SDKs,\n or REST APIs.\n\n * \n\n Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for\n configuration based setup of an application for multiple use cases.\n\n * Currently, Azure Active Directory\n [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison)\n tokens are supported.\n).", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json index 4f23c15116e4..46d477d79a74 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory\n OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) \n Flows. When paired with [Azure role-based\n access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) \n control it can be used to control access to Azure Maps REST APIs. Azure\n role-based access controls are used to designate access to one or more Azure\n Maps resource account or sub-resources. Any user, group, or service principal\n can be granted access via a built-in role or a custom role composed of one or\n more permissions to Azure Maps REST APIs.\n\n\n To implement scenarios, we recommend viewing [authentication\n concepts](https://aka.ms/amauth). In summary, this security definition\n provides a solution for modeling application(s) via objects capable of access\n control on specific APIs and scopes.\n\n\n #### Notes\n\n * This security definition requires the use of the x-ms-client-id header\n to indicate which Azure Maps resource the application is requesting access\n to. This can be acquired from the [Maps management\n API](https://aka.ms/amauthdetails).\n\n * \n\n The Authorization URL is specific to the Azure public cloud instance.\n Sovereign clouds have unique Authorization URLs and Azure Active directory\n configurations. \n\n * \n\n The Azure role-based access control is configured from the [Azure management\n plane](https://aka.ms/amrbac) via Azure portal, PowerShell, CLI, Azure SDKs,\n or REST APIs.\n\n * \n\n Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for\n configuration based setup of an application for multiple use cases.\n\n * Currently, Azure Active Directory\n [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison)\n tokens are supported.\n).", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json index f13d1e8b4b7b..0cec02de281b 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory\n OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) \n Flows. When paired with [Azure role-based\n access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) \n control it can be used to control access to Azure Maps REST APIs. Azure\n role-based access controls are used to designate access to one or more Azure\n Maps resource account or sub-resources. Any user, group, or service principal\n can be granted access via a built-in role or a custom role composed of one or\n more permissions to Azure Maps REST APIs.\n\n\n To implement scenarios, we recommend viewing [authentication\n concepts](https://aka.ms/amauth). In summary, this security definition\n provides a solution for modeling application(s) via objects capable of access\n control on specific APIs and scopes.\n\n\n #### Notes\n\n * This security definition requires the use of the x-ms-client-id header\n to indicate which Azure Maps resource the application is requesting access\n to. This can be acquired from the [Maps management\n API](https://aka.ms/amauthdetails).\n\n * \n\n The Authorization URL is specific to the Azure public cloud instance.\n Sovereign clouds have unique Authorization URLs and Azure Active directory\n configurations. \n\n * \n\n The Azure role-based access control is configured from the [Azure management\n plane](https://aka.ms/amrbac) via Azure portal, PowerShell, CLI, Azure SDKs,\n or REST APIs.\n\n * \n\n Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for\n configuration based setup of an application for multiple use cases.\n\n * Currently, Azure Active Directory\n [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison)\n tokens are supported.\n).", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json index fe449bb6fd63..aceccf52d02c 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory\n OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) \n Flows. When paired with [Azure role-based\n access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) \n control it can be used to control access to Azure Maps REST APIs. Azure\n role-based access controls are used to designate access to one or more Azure\n Maps resource account or sub-resources. Any user, group, or service principal\n can be granted access via a built-in role or a custom role composed of one or\n more permissions to Azure Maps REST APIs.\n\n\n To implement scenarios, we recommend viewing [authentication\n concepts](https://aka.ms/amauth). In summary, this security definition\n provides a solution for modeling application(s) via objects capable of access\n control on specific APIs and scopes.\n\n\n #### Notes\n\n * This security definition requires the use of the x-ms-client-id header\n to indicate which Azure Maps resource the application is requesting access\n to. This can be acquired from the [Maps management\n API](https://aka.ms/amauthdetails).\n\n * \n\n The Authorization URL is specific to the Azure public cloud instance.\n Sovereign clouds have unique Authorization URLs and Azure Active directory\n configurations. \n\n * \n\n The Azure role-based access control is configured from the [Azure management\n plane](https://aka.ms/amrbac) via Azure portal, PowerShell, CLI, Azure SDKs,\n or REST APIs.\n\n * \n\n Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for\n configuration based setup of an application for multiple use cases.\n\n * Currently, Azure Active Directory\n [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison)\n tokens are supported.\n).", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json index 63240405bd91..ae6aa5f3ebc8 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory\n OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) \n Flows. When paired with [Azure role-based\n access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) \n control it can be used to control access to Azure Maps REST APIs. Azure\n role-based access controls are used to designate access to one or more Azure\n Maps resource account or sub-resources. Any user, group, or service principal\n can be granted access via a built-in role or a custom role composed of one or\n more permissions to Azure Maps REST APIs.\n\n\n To implement scenarios, we recommend viewing [authentication\n concepts](https://aka.ms/amauth). In summary, this security definition\n provides a solution for modeling application(s) via objects capable of access\n control on specific APIs and scopes.\n\n\n #### Notes\n\n * This security definition requires the use of the x-ms-client-id header\n to indicate which Azure Maps resource the application is requesting access\n to. This can be acquired from the [Maps management\n API](https://aka.ms/amauthdetails).\n\n * \n\n The Authorization URL is specific to the Azure public cloud instance.\n Sovereign clouds have unique Authorization URLs and Azure Active directory\n configurations. \n\n * \n\n The Azure role-based access control is configured from the [Azure management\n plane](https://aka.ms/amrbac) via Azure portal, PowerShell, CLI, Azure SDKs,\n or REST APIs.\n\n * \n\n Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for\n configuration based setup of an application for multiple use cases.\n\n * Currently, Azure Active Directory\n [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison)\n tokens are supported.\n).", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json index 8df4d78bb1e8..f648da0b1c6f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory\n OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) \n Flows. When paired with [Azure role-based\n access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) \n control it can be used to control access to Azure Maps REST APIs. Azure\n role-based access controls are used to designate access to one or more Azure\n Maps resource account or sub-resources. Any user, group, or service principal\n can be granted access via a built-in role or a custom role composed of one or\n more permissions to Azure Maps REST APIs.\n\n\n To implement scenarios, we recommend viewing [authentication\n concepts](https://aka.ms/amauth). In summary, this security definition\n provides a solution for modeling application(s) via objects capable of access\n control on specific APIs and scopes.\n\n\n #### Notes\n\n * This security definition requires the use of the x-ms-client-id header\n to indicate which Azure Maps resource the application is requesting access\n to. This can be acquired from the [Maps management\n API](https://aka.ms/amauthdetails).\n\n * \n\n The Authorization URL is specific to the Azure public cloud instance.\n Sovereign clouds have unique Authorization URLs and Azure Active directory\n configurations. \n\n * \n\n The Azure role-based access control is configured from the [Azure management\n plane](https://aka.ms/amrbac) via Azure portal, PowerShell, CLI, Azure SDKs,\n or REST APIs.\n\n * \n\n Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for\n configuration based setup of an application for multiple use cases.\n\n * Currently, Azure Active Directory\n [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison)\n tokens are supported.\n).", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json index cccf6a3e96cd..b55d8a4e529f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory\n OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) \n Flows. When paired with [Azure role-based\n access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) \n control it can be used to control access to Azure Maps REST APIs. Azure\n role-based access controls are used to designate access to one or more Azure\n Maps resource account or sub-resources. Any user, group, or service principal\n can be granted access via a built-in role or a custom role composed of one or\n more permissions to Azure Maps REST APIs.\n\n\n To implement scenarios, we recommend viewing [authentication\n concepts](https://aka.ms/amauth). In summary, this security definition\n provides a solution for modeling application(s) via objects capable of access\n control on specific APIs and scopes.\n\n\n #### Notes\n\n * This security definition requires the use of the x-ms-client-id header\n to indicate which Azure Maps resource the application is requesting access\n to. This can be acquired from the [Maps management\n API](https://aka.ms/amauthdetails).\n\n * \n\n The Authorization URL is specific to the Azure public cloud instance.\n Sovereign clouds have unique Authorization URLs and Azure Active directory\n configurations. \n\n * \n\n The Azure role-based access control is configured from the [Azure management\n plane](https://aka.ms/amrbac) via Azure portal, PowerShell, CLI, Azure SDKs,\n or REST APIs.\n\n * \n\n Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for\n configuration based setup of an application for multiple use cases.\n\n * Currently, Azure Active Directory\n [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison)\n tokens are supported.\n).", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json index eee585d08277..665495ccfec5 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json +++ b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory\n OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) \n Flows. When paired with [Azure role-based\n access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) \n control it can be used to control access to Azure Maps REST APIs. Azure\n role-based access controls are used to designate access to one or more Azure\n Maps resource account or sub-resources. Any user, group, or service principal\n can be granted access via a built-in role or a custom role composed of one or\n more permissions to Azure Maps REST APIs.\n\n\n To implement scenarios, we recommend viewing [authentication\n concepts](https://aka.ms/amauth). In summary, this security definition\n provides a solution for modeling application(s) via objects capable of access\n control on specific APIs and scopes.\n\n\n #### Notes\n\n * This security definition requires the use of the x-ms-client-id header\n to indicate which Azure Maps resource the application is requesting access\n to. This can be acquired from the [Maps management\n API](https://aka.ms/amauthdetails).\n\n * \n\n The Authorization URL is specific to the Azure public cloud instance.\n Sovereign clouds have unique Authorization URLs and Azure Active directory\n configurations. \n\n * \n\n The Azure role-based access control is configured from the [Azure management\n plane](https://aka.ms/amrbac) via Azure portal, PowerShell, CLI, Azure SDKs,\n or REST APIs.\n\n * \n\n Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for\n configuration based setup of an application for multiple use cases.\n\n * Currently, Azure Active Directory\n [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison)\n tokens are supported.\n).", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json index b1460b37a64e..9d62ddcccf69 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json +++ b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory\n OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) \n Flows. When paired with [Azure role-based\n access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) \n control it can be used to control access to Azure Maps REST APIs. Azure\n role-based access controls are used to designate access to one or more Azure\n Maps resource account or sub-resources. Any user, group, or service principal\n can be granted access via a built-in role or a custom role composed of one or\n more permissions to Azure Maps REST APIs.\n\n\n To implement scenarios, we recommend viewing [authentication\n concepts](https://aka.ms/amauth). In summary, this security definition\n provides a solution for modeling application(s) via objects capable of access\n control on specific APIs and scopes.\n\n\n #### Notes\n\n * This security definition requires the use of the x-ms-client-id header\n to indicate which Azure Maps resource the application is requesting access\n to. This can be acquired from the [Maps management\n API](https://aka.ms/amauthdetails).\n\n * \n\n The Authorization URL is specific to the Azure public cloud instance.\n Sovereign clouds have unique Authorization URLs and Azure Active directory\n configurations. \n\n * \n\n The Azure role-based access control is configured from the [Azure management\n plane](https://aka.ms/amrbac) via Azure portal, PowerShell, CLI, Azure SDKs,\n or REST APIs.\n\n * \n\n Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for\n configuration based setup of an application for multiple use cases.\n\n * Currently, Azure Active Directory\n [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison)\n tokens are supported.\n).", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json index 336df344a823..fa1d7d6b4640 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory\n OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) \n Flows. When paired with [Azure role-based\n access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) \n control it can be used to control access to Azure Maps REST APIs. Azure\n role-based access controls are used to designate access to one or more Azure\n Maps resource account or sub-resources. Any user, group, or service principal\n can be granted access via a built-in role or a custom role composed of one or\n more permissions to Azure Maps REST APIs.\n\n\n To implement scenarios, we recommend viewing [authentication\n concepts](https://aka.ms/amauth). In summary, this security definition\n provides a solution for modeling application(s) via objects capable of access\n control on specific APIs and scopes.\n\n\n #### Notes\n\n * This security definition requires the use of the x-ms-client-id header\n to indicate which Azure Maps resource the application is requesting access\n to. This can be acquired from the [Maps management\n API](https://aka.ms/amauthdetails).\n\n * \n\n The Authorization URL is specific to the Azure public cloud instance.\n Sovereign clouds have unique Authorization URLs and Azure Active directory\n configurations. \n\n * \n\n The Azure role-based access control is configured from the [Azure management\n plane](https://aka.ms/amrbac) via Azure portal, PowerShell, CLI, Azure SDKs,\n or REST APIs.\n\n * \n\n Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for\n configuration based setup of an application for multiple use cases.\n\n * Currently, Azure Active Directory\n [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison)\n tokens are supported.\n).", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json index 5b4d9cd32d7e..b18529b304d7 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory\n OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) \n Flows. When paired with [Azure role-based\n access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) \n control it can be used to control access to Azure Maps REST APIs. Azure\n role-based access controls are used to designate access to one or more Azure\n Maps resource account or sub-resources. Any user, group, or service principal\n can be granted access via a built-in role or a custom role composed of one or\n more permissions to Azure Maps REST APIs.\n\n\n To implement scenarios, we recommend viewing [authentication\n concepts](https://aka.ms/amauth). In summary, this security definition\n provides a solution for modeling application(s) via objects capable of access\n control on specific APIs and scopes.\n\n\n #### Notes\n\n * This security definition requires the use of the x-ms-client-id header\n to indicate which Azure Maps resource the application is requesting access\n to. This can be acquired from the [Maps management\n API](https://aka.ms/amauthdetails).\n\n * \n\n The Authorization URL is specific to the Azure public cloud instance.\n Sovereign clouds have unique Authorization URLs and Azure Active directory\n configurations. \n\n * \n\n The Azure role-based access control is configured from the [Azure management\n plane](https://aka.ms/amrbac) via Azure portal, PowerShell, CLI, Azure SDKs,\n or REST APIs.\n\n * \n\n Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for\n configuration based setup of an application for multiple use cases.\n\n * Currently, Azure Active Directory\n [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison)\n tokens are supported.\n).", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json index 03e5128f2961..79b814d44c32 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json +++ b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json @@ -37,7 +37,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory\n OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) \n Flows. When paired with [Azure role-based\n access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) \n control it can be used to control access to Azure Maps REST APIs. Azure\n role-based access controls are used to designate access to one or more Azure\n Maps resource account or sub-resources. Any user, group, or service principal\n can be granted access via a built-in role or a custom role composed of one or\n more permissions to Azure Maps REST APIs.\n\n\n To implement scenarios, we recommend viewing [authentication\n concepts](https://aka.ms/amauth). In summary, this security definition\n provides a solution for modeling application(s) via objects capable of access\n control on specific APIs and scopes.\n\n\n #### Notes\n\n * This security definition requires the use of the x-ms-client-id header\n to indicate which Azure Maps resource the application is requesting access\n to. This can be acquired from the [Maps management\n API](https://aka.ms/amauthdetails).\n\n * \n\n The Authorization URL is specific to the Azure public cloud instance.\n Sovereign clouds have unique Authorization URLs and Azure Active directory\n configurations. \n\n * \n\n The Azure role-based access control is configured from the [Azure management\n plane](https://aka.ms/amrbac) via Azure portal, PowerShell, CLI, Azure SDKs,\n or REST APIs.\n\n * \n\n Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for\n configuration based setup of an application for multiple use cases.\n\n * Currently, Azure Active Directory\n [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison)\n tokens are supported.\n).", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } From 16b018cb2bf5d3500ec81c34e5a259943493e80a Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Fri, 4 Jun 2021 19:56:41 +0200 Subject: [PATCH 186/210] Another try for the LintDiff CI --- .../maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json | 2 +- .../maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json | 2 +- .../data-plane/Microsoft.Maps/Common/preview/1.0/common.json | 2 +- .../data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json | 2 +- .../maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json | 2 +- .../maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json | 2 +- .../data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json | 2 +- .../data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json | 2 +- .../Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json | 2 +- .../Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json | 2 +- .../Microsoft.Maps/FeatureState/preview/1.0/featurestate.json | 2 +- .../Microsoft.Maps/FeatureState/preview/2.0/featurestate.json | 2 +- .../Microsoft.Maps/Geolocation/preview/1.0/geolocation.json | 2 +- .../Microsoft.Maps/Mobility/preview/1.0/mobility.json | 2 +- .../data-plane/Microsoft.Maps/Render/preview/1.0/render.json | 2 +- .../data-plane/Microsoft.Maps/Render/preview/2.0/render.json | 2 +- .../maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json | 2 +- .../data-plane/Microsoft.Maps/Search/preview/1.0/search.json | 2 +- .../data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json | 2 +- .../data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json | 2 +- .../data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json | 2 +- .../Microsoft.Maps/Timezone/preview/1.0/timezone.json | 2 +- .../data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json | 2 +- .../maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json | 2 +- .../maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json | 2 +- .../data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json | 2 +- 26 files changed, 26 insertions(+), 26 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json index 4ca4971fdbfc..d724cc391167 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the 'x-ms-client-id' header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The 'Authorization URL' is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json index 369bcaf126eb..610438ff395c 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the 'x-ms-client-id' header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The 'Authorization URL' is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index 299d502ef216..d7cecfebf179 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -767,7 +767,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the 'x-ms-client-id' header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The 'Authorization URL' is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json index b0b102bf1d18..d79aba339c83 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json +++ b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the 'x-ms-client-id' header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The 'Authorization URL' is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json index 0f484904b928..7960d7523f94 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the 'x-ms-client-id' header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The 'Authorization URL' is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json index 9a9a2024ad1b..c93585842a97 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the 'x-ms-client-id' header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The 'Authorization URL' is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json index 9c6ae633644c..63ee42858765 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the 'x-ms-client-id' header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The 'Authorization URL' is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json index 94c8d25c7822..16f302726edc 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the 'x-ms-client-id' header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The 'Authorization URL' is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json index 3dbd59458db7..721f2a9ce37b 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the 'x-ms-client-id' header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The 'Authorization URL' is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json index cb84cdcafa5d..d1c37afac3e5 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the 'x-ms-client-id' header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The 'Authorization URL' is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json index 4f997e7a46d0..ba3ff8785ea5 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the 'x-ms-client-id' header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The 'Authorization URL' is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json index da8e81e9c3ea..bef0f44772a3 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the 'x-ms-client-id' header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The 'Authorization URL' is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json index 4d763abe7824..9968daee6db6 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json +++ b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the 'x-ms-client-id' header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The 'Authorization URL' is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json index 6218cab371b9..5d676fdf2e0c 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json +++ b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json @@ -37,7 +37,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the 'x-ms-client-id' header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The 'Authorization URL' is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json index 15e174d88e7b..c4380b6f563c 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the 'x-ms-client-id' header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The 'Authorization URL' is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json index 46d477d79a74..401564316143 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the 'x-ms-client-id' header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The 'Authorization URL' is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json index 0cec02de281b..408f9a6da561 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the 'x-ms-client-id' header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The 'Authorization URL' is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json index aceccf52d02c..eadbcca0a743 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the 'x-ms-client-id' header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The 'Authorization URL' is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json index ae6aa5f3ebc8..7bef98f312ce 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the 'x-ms-client-id' header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The 'Authorization URL' is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json index f648da0b1c6f..a3fb39318774 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the 'x-ms-client-id' header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The 'Authorization URL' is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json index b55d8a4e529f..79b51f30229c 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the 'x-ms-client-id' header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The 'Authorization URL' is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json index 665495ccfec5..bc20781b1a5d 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json +++ b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the 'x-ms-client-id' header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The 'Authorization URL' is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json index 9d62ddcccf69..9c2f04127702 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json +++ b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the 'x-ms-client-id' header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The 'Authorization URL' is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json index fa1d7d6b4640..cf54a99edb60 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the 'x-ms-client-id' header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The 'Authorization URL' is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json index b18529b304d7..b0ee1ee118ab 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the 'x-ms-client-id' header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The 'Authorization URL' is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json index 79b814d44c32..0c407f480833 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json +++ b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json @@ -37,7 +37,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the 'x-ms-client-id' header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The 'Authorization URL' is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } From 02e35a9495785897b101934f9b258d0f5b503fff Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Fri, 4 Jun 2021 20:26:47 +0200 Subject: [PATCH 187/210] Yet another try for the LintDiff CI --- .../maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json | 2 +- .../maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json | 2 +- .../data-plane/Microsoft.Maps/Common/preview/1.0/common.json | 2 +- .../data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json | 2 +- .../maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json | 2 +- .../maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json | 2 +- .../data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json | 2 +- .../data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json | 2 +- .../Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json | 2 +- .../Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json | 2 +- .../Microsoft.Maps/FeatureState/preview/1.0/featurestate.json | 2 +- .../Microsoft.Maps/FeatureState/preview/2.0/featurestate.json | 2 +- .../Microsoft.Maps/Geolocation/preview/1.0/geolocation.json | 2 +- .../Microsoft.Maps/Mobility/preview/1.0/mobility.json | 2 +- .../data-plane/Microsoft.Maps/Render/preview/1.0/render.json | 2 +- .../data-plane/Microsoft.Maps/Render/preview/2.0/render.json | 2 +- .../maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json | 2 +- .../data-plane/Microsoft.Maps/Search/preview/1.0/search.json | 2 +- .../data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json | 2 +- .../data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json | 2 +- .../data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json | 2 +- .../Microsoft.Maps/Timezone/preview/1.0/timezone.json | 2 +- .../data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json | 2 +- .../maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json | 2 +- .../maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json | 2 +- .../data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json | 2 +- 26 files changed, 26 insertions(+), 26 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json index d724cc391167..9cd95ce9f539 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the 'x-ms-client-id' header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The 'Authorization URL' is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json index 610438ff395c..38dd25dc5531 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the 'x-ms-client-id' header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The 'Authorization URL' is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index d7cecfebf179..7730bf6e6648 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -767,7 +767,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the 'x-ms-client-id' header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The 'Authorization URL' is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json index d79aba339c83..5b08842566f4 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json +++ b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the 'x-ms-client-id' header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The 'Authorization URL' is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json index 7960d7523f94..afbca5e87a69 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the 'x-ms-client-id' header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The 'Authorization URL' is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json index c93585842a97..450333aaff55 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the 'x-ms-client-id' header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The 'Authorization URL' is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json index 63ee42858765..3ad7481b27a9 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the 'x-ms-client-id' header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The 'Authorization URL' is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json index 16f302726edc..3dc6463f3dda 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the 'x-ms-client-id' header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The 'Authorization URL' is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json index 721f2a9ce37b..0bb037e67b01 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the 'x-ms-client-id' header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The 'Authorization URL' is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json index d1c37afac3e5..b77e03f97d2b 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the 'x-ms-client-id' header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The 'Authorization URL' is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json index ba3ff8785ea5..78b1cd26b622 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the 'x-ms-client-id' header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The 'Authorization URL' is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json index bef0f44772a3..a0f88f1617c4 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the 'x-ms-client-id' header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The 'Authorization URL' is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json index 9968daee6db6..9ce21bd99034 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json +++ b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the 'x-ms-client-id' header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The 'Authorization URL' is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json index 5d676fdf2e0c..b7b5e1da4616 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json +++ b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json @@ -37,7 +37,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the 'x-ms-client-id' header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The 'Authorization URL' is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json index c4380b6f563c..409501dc6ce6 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the 'x-ms-client-id' header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The 'Authorization URL' is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json index 401564316143..d64785abbc26 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the 'x-ms-client-id' header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The 'Authorization URL' is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json index 408f9a6da561..2357892ce65e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the 'x-ms-client-id' header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The 'Authorization URL' is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json index eadbcca0a743..18a358880d7e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the 'x-ms-client-id' header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The 'Authorization URL' is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json index 7bef98f312ce..ad2a72c70dcc 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the 'x-ms-client-id' header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The 'Authorization URL' is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json index a3fb39318774..0028d50c23c6 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the 'x-ms-client-id' header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The 'Authorization URL' is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json index 79b51f30229c..d6e3452f674c 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the 'x-ms-client-id' header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The 'Authorization URL' is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json index bc20781b1a5d..f2816824eac9 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json +++ b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the 'x-ms-client-id' header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The 'Authorization URL' is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json index 9c2f04127702..d4f6a31a1f87 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json +++ b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the 'x-ms-client-id' header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The 'Authorization URL' is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json index cf54a99edb60..ec1c1ad2819b 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the 'x-ms-client-id' header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The 'Authorization URL' is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json index b0ee1ee118ab..01d9ae08c5d5 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the 'x-ms-client-id' header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The 'Authorization URL' is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json index 0c407f480833..691559bce2ac 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json +++ b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json @@ -37,7 +37,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the 'x-ms-client-id' header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The 'Authorization URL' is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows.", "scopes": { "user_impersonation": "impersonate your user account" } From 9fe7a41eaa523790beaae55c184431b6db8b5be5 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Fri, 4 Jun 2021 20:51:21 +0200 Subject: [PATCH 188/210] Remove security from common --- .../Common/preview/1.0/common.json | 34 ------------------- 1 file changed, 34 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index 7730bf6e6648..48e4b859999f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -748,39 +748,5 @@ }, "x-ms-error-response": true } - }, - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - }, - { - "SubscriptionKeyInHeader": [] - }, - { - "SubscriptionKeyInQuery": [] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows.", - "scopes": { - "user_impersonation": "impersonate your user account" - } - }, - "SubscriptionKeyInHeader": { - "type": "apiKey", - "name": "subscription-key", - "in": "header" - }, - "SubscriptionKeyInQuery": { - "type": "apiKey", - "name": "subscription-key", - "in": "query" - } } } From aa6fb7fbb6ab2e4402def684c266df733020e236 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Fri, 4 Jun 2021 21:15:14 +0200 Subject: [PATCH 189/210] fix description message. --- .../maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json | 2 +- .../maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json | 2 +- .../data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json | 2 +- .../maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json | 2 +- .../maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json | 2 +- .../data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json | 2 +- .../data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json | 2 +- .../Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json | 2 +- .../Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json | 2 +- .../Microsoft.Maps/FeatureState/preview/1.0/featurestate.json | 2 +- .../Microsoft.Maps/FeatureState/preview/2.0/featurestate.json | 2 +- .../Microsoft.Maps/Geolocation/preview/1.0/geolocation.json | 2 +- .../Microsoft.Maps/Mobility/preview/1.0/mobility.json | 2 +- .../data-plane/Microsoft.Maps/Render/preview/1.0/render.json | 2 +- .../data-plane/Microsoft.Maps/Render/preview/2.0/render.json | 2 +- .../maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json | 2 +- .../data-plane/Microsoft.Maps/Search/preview/1.0/search.json | 2 +- .../data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json | 2 +- .../data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json | 2 +- .../data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json | 2 +- .../Microsoft.Maps/Timezone/preview/1.0/timezone.json | 2 +- .../data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json | 2 +- .../maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json | 2 +- .../maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json | 2 +- .../data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json | 2 +- 25 files changed, 25 insertions(+), 25 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json index 9cd95ce9f539..4ca4971fdbfc 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json index 38dd25dc5531..369bcaf126eb 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json index 5b08842566f4..b0b102bf1d18 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json +++ b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json index afbca5e87a69..0f484904b928 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json index 450333aaff55..9a9a2024ad1b 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json index 3ad7481b27a9..9c6ae633644c 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json index 3dc6463f3dda..94c8d25c7822 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json index 0bb037e67b01..3dbd59458db7 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json index b77e03f97d2b..cb84cdcafa5d 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json index 78b1cd26b622..4f997e7a46d0 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json index a0f88f1617c4..da8e81e9c3ea 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json index 9ce21bd99034..4d763abe7824 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json +++ b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json index b7b5e1da4616..6218cab371b9 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json +++ b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json @@ -37,7 +37,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json index 409501dc6ce6..15e174d88e7b 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json index d64785abbc26..46d477d79a74 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json index 2357892ce65e..0cec02de281b 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json index 18a358880d7e..aceccf52d02c 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json index ad2a72c70dcc..ae6aa5f3ebc8 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json index 0028d50c23c6..f648da0b1c6f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json index d6e3452f674c..b55d8a4e529f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json index f2816824eac9..665495ccfec5 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json +++ b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json index d4f6a31a1f87..9d62ddcccf69 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json +++ b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json index ec1c1ad2819b..fa1d7d6b4640 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json index 01d9ae08c5d5..b18529b304d7 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json @@ -38,7 +38,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json index 691559bce2ac..79b814d44c32 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json +++ b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json @@ -37,7 +37,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "user_impersonation": "impersonate your user account" } From a3542c96ca291d713701ca7bceafd3076c81bfa2 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Wed, 9 Jun 2021 11:30:11 +0200 Subject: [PATCH 190/210] Remove preview 1 since preview 2 is added. --- specification/maps/data-plane/readme.md | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/specification/maps/data-plane/readme.md b/specification/maps/data-plane/readme.md index 06995fca05f5..1311085df2f0 100644 --- a/specification/maps/data-plane/readme.md +++ b/specification/maps/data-plane/readme.md @@ -69,31 +69,6 @@ input-file: - Microsoft.Maps/Weather/preview/1.0/weather.json - Microsoft.Maps/WFS/preview/2.0/wfs.json ``` -### Tag: package-1.0-preview - -These settings apply only when `--tag=package-1.0-preview` is specified on the command line. - -``` yaml $(tag) == 'package-1.0-preview' -input-file: - - Microsoft.Maps/Alias/preview/1.0/alias.json - - Microsoft.Maps/Data/preview/1.0/data.json - - Microsoft.Maps/Dataset/preview/1.0/dataset.json - - Microsoft.Maps/DEM/preview/1.0/elevation.json - - Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json - - Microsoft.Maps/FeatureState/preview/1.0/featurestate.json - - Microsoft.Maps/Geolocation/preview/1.0/geolocation.json - - Microsoft.Maps/Mobility/preview/1.0/mobility.json - - Microsoft.Maps/Render/preview/1.0/render.json - - Microsoft.Maps/Render/preview/2.0/render.json - - Microsoft.Maps/Route/preview/1.0/route.json - - Microsoft.Maps/Search/preview/1.0/search.json - - Microsoft.Maps/Spatial/preview/1.0/spatial.json - - Microsoft.Maps/Tileset/preview/1.0/tileset.json - - Microsoft.Maps/Timezone/preview/1.0/timezone.json - - Microsoft.Maps/Traffic/preview/1.0/traffic.json - - Microsoft.Maps/Weather/preview/1.0/weather.json - - Microsoft.Maps/WFS/preview/1.0/wfs.json -``` # Code Generation From d79d587417f3dfc2a50a548eff49a9d0c1a20db3 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Wed, 9 Jun 2021 11:41:58 +0200 Subject: [PATCH 191/210] remove unused preview 1 files. --- .../Alias/preview/1.0/alias.json | 289 ------- .../preview/1.0/examples/Alias_Assign.json | 57 -- .../preview/1.0/examples/Alias_Create.json | 60 -- .../preview/1.0/examples/Alias_Delete.json | 56 -- .../preview/1.0/examples/Alias_List.json | 72 -- .../Alias/preview/2.0/alias.json | 2 +- .../Microsoft.Maps/Data/preview/1.0/data.json | 397 --------- .../Data/preview/1.0/examples/Delete.json | 56 -- .../Data/preview/1.0/examples/Download.json | 13 - .../Data/preview/1.0/examples/List.json | 78 -- .../Data/preview/1.0/examples/Update.json | 117 --- .../Data/preview/1.0/examples/Upload.json | 117 --- .../Dataset/preview/1.0/dataset.json | 427 --------- .../preview/1.0/examples/Dataset_Create.json | 90 -- .../preview/1.0/examples/Dataset_Delete.json | 56 -- .../preview/1.0/examples/Dataset_Import.json | 91 -- .../preview/1.0/examples/Dataset_List.json | 117 --- .../preview/1.0/dwgconversion.json | 295 ------- .../preview/1.0/examples/Conversion.json | 90 -- .../preview/1.0/examples/Delete.json | 56 -- .../preview/1.0/examples/List.json | 90 -- .../preview/1.0/examples/CreateStateset.json | 117 --- .../1.0/examples/DeleteFeatureState.json | 67 -- .../preview/1.0/examples/DeleteStateset.json | 56 -- .../preview/1.0/examples/GetStates.json | 67 -- .../preview/1.0/examples/GetStateset.json | 118 --- .../preview/1.0/examples/Stateset_List.json | 122 --- .../preview/1.0/examples/UpdateStates.json | 66 -- .../preview/1.0/examples/UpdateStateset.json | 102 --- .../preview/1.0/featurestate.json | 741 ---------------- .../Tileset/preview/1.0/examples/Create.json | 89 -- .../Tileset/preview/1.0/examples/Delete.json | 56 -- .../Tileset/preview/1.0/examples/List.json | 86 -- .../Tileset/preview/1.0/tileset.json | 306 ------- .../preview/1.0/examples/DeleteFeature.json | 58 -- .../preview/1.0/examples/GetCollection.json | 79 -- .../1.0/examples/GetCollectionDefinition.json | 197 ----- .../preview/1.0/examples/GetCollections.json | 298 ------- .../preview/1.0/examples/GetConformance.json | 65 -- .../WFS/preview/1.0/examples/GetFeature.json | 129 --- .../WFS/preview/1.0/examples/GetFeatures.json | 138 --- .../preview/1.0/examples/GetLandingPage.json | 86 -- .../Microsoft.Maps/WFS/preview/1.0/wfs.json | 815 ------------------ 43 files changed, 1 insertion(+), 6483 deletions(-) delete mode 100644 specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json delete mode 100644 specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/examples/Alias_Assign.json delete mode 100644 specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/examples/Alias_Create.json delete mode 100644 specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/examples/Alias_Delete.json delete mode 100644 specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/examples/Alias_List.json delete mode 100644 specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json delete mode 100644 specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/examples/Delete.json delete mode 100644 specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/examples/Download.json delete mode 100644 specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/examples/List.json delete mode 100644 specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/examples/Update.json delete mode 100644 specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/examples/Upload.json delete mode 100644 specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json delete mode 100644 specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/examples/Dataset_Create.json delete mode 100644 specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/examples/Dataset_Delete.json delete mode 100644 specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/examples/Dataset_Import.json delete mode 100644 specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/examples/Dataset_List.json delete mode 100644 specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json delete mode 100644 specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/examples/Conversion.json delete mode 100644 specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/examples/Delete.json delete mode 100644 specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/examples/List.json delete mode 100644 specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/examples/CreateStateset.json delete mode 100644 specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/examples/DeleteFeatureState.json delete mode 100644 specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/examples/DeleteStateset.json delete mode 100644 specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/examples/GetStates.json delete mode 100644 specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/examples/GetStateset.json delete mode 100644 specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/examples/Stateset_List.json delete mode 100644 specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/examples/UpdateStates.json delete mode 100644 specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/examples/UpdateStateset.json delete mode 100644 specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json delete mode 100644 specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/examples/Create.json delete mode 100644 specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/examples/Delete.json delete mode 100644 specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/examples/List.json delete mode 100644 specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json delete mode 100644 specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/DeleteFeature.json delete mode 100644 specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetCollection.json delete mode 100644 specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetCollectionDefinition.json delete mode 100644 specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetCollections.json delete mode 100644 specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetConformance.json delete mode 100644 specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetFeature.json delete mode 100644 specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetFeatures.json delete mode 100644 specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetLandingPage.json delete mode 100644 specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json deleted file mode 100644 index 4ca4971fdbfc..000000000000 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/alias.json +++ /dev/null @@ -1,289 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Azure Maps Alias Service", - "version": "1.0", - "description": "APIs for managing aliases in Azure Maps." - }, - "x-ms-parameterized-host": { - "hostTemplate": "{geography}.atlas.microsoft.com", - "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/GeographicResourceLocation" - } - ] - }, - "schemes": [ - "https" - ], - "consumes": [], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - }, - { - "SubscriptionKeyInHeader": [] - }, - { - "SubscriptionKeyInQuery": [] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", - "scopes": { - "user_impersonation": "impersonate your user account" - } - }, - "SubscriptionKeyInHeader": { - "type": "apiKey", - "name": "subscription-key", - "in": "header" - }, - "SubscriptionKeyInQuery": { - "type": "apiKey", - "name": "subscription-key", - "in": "query" - } - }, - "responses": {}, - "parameters": { - "AssignResourceId": { - "name": "resourceId", - "description": "The unique id that references a resource to be aliased.", - "type": "string", - "in": "query", - "required": true, - "x-ms-parameter-location": "method" - }, - "AliasId": { - "name": "aliasId", - "description": "The unique id that references an existing alias.", - "type": "string", - "in": "path", - "required": true, - "x-ms-parameter-location": "method" - } - }, - "paths": { - "/alias": { - "post": { - "description": "**Alias - Create API**\n\n**Applies to**: see pricing [tiers](https://azure.microsoft.com/en-us/pricing/details/azure-maps/).\n
\n\nThis API allows the caller to create an alias.
\nYou can also assign the alias during the create request as well.\n\n\n### Submit Create Request\n\nTo create your alias, you will use a `POST` request. If you would like to assign the alias during the creation, you will pass the `resourceId` query parameter.
\n\n\n### Create Alias Response\n\nThe Create API returns a HTTP `201 Created` response the id of the alias, `aliasId`, in the body.\nThe response will look something like:\n\n```json\n{\n \"aliasId\" : \"d7e5efc8-2239-4387-a286-5bb51aa804e3\"\n}\n```\n\n
", - "operationId": "Alias_CreatePreview", - "x-ms-examples": { - "Create an alias that does not reference any resource": { - "$ref": "./examples/Alias_Create.json" - } - }, - "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" - } - ], - "responses": { - "201": { - "description": "Content created successfully. The response body contains the newly created alias id `aliasId`.", - "schema": { - "$ref": "#/definitions/AliasCreateResponse" - } - }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" - } - } - }, - "get": { - "description": "**Alias - List API**\n\n**Applies to**: see pricing [tiers](https://azure.microsoft.com/en-us/pricing/details/azure-maps/).\n
\n\nThis API allows the caller to fetch a list of all previously successfully created aliases.\n\n\n### Submit List Request\n\nTo list all your aliases, you will issue a `GET` request with no additional parameters.
\n\n\n### List Data Response\n\nThe List API returns the complete list of all aliases in `json` format. The response contains the following details for each alias resource:\n\n > createdTimestamp - The timestamp that the alias was created.\n > aliasId - The id for the alias.\n > resourceId - The id for the resource that this alias references (could be null if the alias has not been assigned).\n > lastUpdatedTimestamp - The last time the alias was assigned to a resource.\n\n\nHere's a sample response returning 2 alias resources: \n\n
\n\n```json\n{\n \"aliases\": [\n {\n \"createdTimestamp\": \"2020-02-13T21:19:11+00:00\",\n \"aliasId\": \"a8a4b8bb-ecf4-fb27-a618-f41721552766\",\n \"resourceId\": \"e89aebb9-70a3-8fe1-32bb-1fbd0c725f14\",\n \"lastUpdatedTimestamp\": \"2020-02-13T21:19:22+00:00\"\n },\n {\n \"createdTimestamp\": \"2020-02-18T19:53:33+00:00\",\n \"aliasId\": \"1856dbfc-7a66-ee5a-bf8d-51dbfe1906f6\",\n \"resourceId\": null,\n \"lastUpdatedTimestamp\": \"2020-02-18T19:53:33+00:00\"\n }\n ]\n}\n```\n\n
", - "operationId": "Alias_ListPreview", - "x-ms-examples": { - "List all the previously created aliases": { - "$ref": "./examples/Alias_List.json" - } - }, - "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "List alias request completed successfully. The response body contains a list of all the previously created aliases.", - "schema": { - "$ref": "#/definitions/AliasListResponse" - } - }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" - } - } - } - }, - "/alias/assign/{aliasId}": { - "patch": { - "description": "**Alias - Assign API**\n\n**Applies to**: see pricing [tiers](https://azure.microsoft.com/en-us/pricing/details/azure-maps/).\n
\n\nThis API allows the caller to assign an alias to reference a resource.
\n\n\n### Submit Assign Request\n\nTo assign your alias to a resource, you will use a `PATCH` request with the `aliasId` in the path and the `resourceId` passed as a query parameter.
\n\n\n### Create Alias Response\n\nThe Assign API returns a HTTP `204 No Content` response with an empty body, if the alias was assigned successfully.
", - "operationId": "Alias_AssignPreview", - "x-ms-examples": { - "Assign an alias to a resource": { - "$ref": "./examples/Alias_Assign.json" - } - }, - "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/AliasId" - }, - { - "$ref": "#/parameters/AssignResourceId" - } - ], - "responses": { - "204": { - "description": "Alias was assigned successfully." - }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" - } - } - } - }, - "/alias/{aliasId}": { - "delete": { - "description": "**Alias - Delete API**\n\n**Applies to**: see pricing [tiers](https://azure.microsoft.com/en-us/pricing/details/azure-maps/).\n
\n\nThis API allows the caller to delete a previously created alias.
\nYou can also use this API to delete old/unused aliases to create space for new content.\nThis API does not delete the references resource, only the alias referencing the resource.\n\n\n### Submit Delete Request\n\nTo delete your alias you will issue a `DELETE` request where the path will contain the `aliasId` of the alias to delete.
\n\n\n### Delete Alias Response\n\nThe Delete API returns a HTTP `204 No Content` response with an empty body, if the alias was deleted successfully.
\nA HTTP `400 Bad Request` error response will be returned if the alias with the passed-in `aliasId` is not found. ", - "operationId": "Alias_DeletePreview", - "x-ms-examples": { - "Delete previously created alias": { - "$ref": "./examples/Alias_Delete.json" - } - }, - "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/AliasId" - } - ], - "responses": { - "204": { - "description": "Alias delete request completed successfully. The content for `aliasId` was deleted on the server." - }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" - } - } - } - } - }, - "definitions": { - "AliasCreateResponse": { - "description": "The response model for the Alias Create API for the case when the alias was successfully created.", - "type": "object", - "properties": { - "aliasId": { - "description": "An alias id `aliasId` for the created alias.", - "type": "string", - "readOnly": true - } - } - }, - "AliasListResponse": { - "description": "The response model for the List API. Returns a list of all the previously created aliases.", - "type": "object", - "properties": { - "aliases": { - "description": "A list of all the previously created aliases.", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/AliasListItem" - } - } - } - }, - "AliasListItem": { - "description": "Detailed information for the alias.", - "type": "object", - "properties": { - "createdTimestamp": { - "description": "The created timestamp for the alias.", - "type": "string", - "readOnly": true - }, - "aliasId": { - "description": "The id for the alias.", - "type": "string", - "readOnly": true - }, - "resourceId": { - "description": "The id for the resource that this alias references (could be null if the alias has not been assigned).", - "type": "string", - "x-nullable": true, - "readOnly": true - }, - "lastUpdatedTimestamp": { - "description": "The timestamp of the last time the alias was assigned.", - "type": "string", - "readOnly": true - } - } - } - } -} diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/examples/Alias_Assign.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/examples/Alias_Assign.json deleted file mode 100644 index ab6ca20f8c98..000000000000 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/examples/Alias_Assign.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "parameters": { - "geography": "us", - "api-version": "1.0", - "subscription-key": "[subscription-key]", - "aliasId": "[aliasId]", - "resourceId": "[resourceId]" - }, - "responses": { - "204": {}, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request - Error message." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found - The requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "Unknown error - An error occurred while processing the request. Please try again later." - } - } - } - } -} diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/examples/Alias_Create.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/examples/Alias_Create.json deleted file mode 100644 index 4ceff472346f..000000000000 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/examples/Alias_Create.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "parameters": { - "geography": "us", - "api-version": "1.0", - "subscription-key": "[subscription-key]" - }, - "responses": { - "201": { - "headers": {}, - "body": { - "aliasId": "25084fb7-307a-4720-8f91-7952a0b91012" - } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request - Error message." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found - The requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "Unknown error - An error occurred while processing the request. Please try again later." - } - } - } - } -} diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/examples/Alias_Delete.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/examples/Alias_Delete.json deleted file mode 100644 index 2d1b3fb8b4f4..000000000000 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/examples/Alias_Delete.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "parameters": { - "geography": "us", - "api-version": "1.0", - "subscription-key": "[subscription-key]", - "aliasId": "[aliasId]" - }, - "responses": { - "204": {}, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request - One or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found - The requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "Unknown error - An error occurred while processing the request. Please try again later." - } - } - } - } -} diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/examples/Alias_List.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/examples/Alias_List.json deleted file mode 100644 index 918b6bc1c103..000000000000 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/1.0/examples/Alias_List.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "parameters": { - "geography": "us", - "api-version": "1.0", - "subscription-key": "[subscription-key]" - }, - "responses": { - "200": { - "body": { - "aliases": [ - { - "createdTimestamp": "2020-02-13T21:19:11+00:00", - "aliasId": "a8a4b8bb-ecf4-fb27-a618-f41721552766", - "resourceId": "e89aebb9-70a3-8fe1-32bb-1fbd0c725f14", - "lastUpdatedTimestamp": "2020-02-13T21:19:22+00:00" - }, - { - "createdTimestamp": "2020-02-13T21:19:11+00:00", - "aliasId": "1856dbfc-7a66-ee5a-bf8d-51dbfe1906f6", - "resourceId": null, - "lastUpdatedTimestamp": "2020-02-13T21:19:11+00:00" - } - ] - } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request - One or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found - The requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "Unknown error - An error occurred while processing the request. Please try again later." - } - } - } - } -} diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json index 369bcaf126eb..6f9e6b60957c 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json @@ -294,7 +294,7 @@ } }, "definitions": { - "AliasCreateResponseV2": { + "AliasCreateResponse": { "description": "The response model for the Alias Create API for the case when the alias was successfully created.", "type": "object", "properties": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json deleted file mode 100644 index 0f484904b928..000000000000 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/data.json +++ /dev/null @@ -1,397 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Azure Maps Data Service", - "version": "1.0", - "description": "APIs for uploading map data to Azure Maps." - }, - "x-ms-parameterized-host": { - "hostTemplate": "{geography}.atlas.microsoft.com", - "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/GeographicResourceLocation" - } - ] - }, - "schemes": [ - "https" - ], - "consumes": [], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - }, - { - "SubscriptionKeyInHeader": [] - }, - { - "SubscriptionKeyInQuery": [] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", - "scopes": { - "user_impersonation": "impersonate your user account" - } - }, - "SubscriptionKeyInHeader": { - "type": "apiKey", - "name": "subscription-key", - "in": "header" - }, - "SubscriptionKeyInQuery": { - "type": "apiKey", - "name": "subscription-key", - "in": "query" - } - }, - "responses": {}, - "parameters": { - "UploadDataFormat": { - "name": "dataFormat", - "x-ms-client-name": "UploadDataFormat", - "description": "Data format of the content being uploaded.", - "type": "string", - "in": "query", - "required": true, - "enum": [ - "geojson", - "zip" - ], - "x-ms-enum": { - "name": "UploadDataFormat", - "modelAsString": true, - "values": [ - { - "value": "geojson", - "description": "[GeoJSON](https://tools.ietf.org/html/rfc7946) is a JSON based geospatial data interchange format." - }, - { - "value": "zip", - "description": "Compressed data format." - } - ] - }, - "x-ms-parameter-location": "method" - }, - "UniqueDataId": { - "name": "udid", - "x-ms-client-name": "UniqueDataId", - "description": "The unique data id for the content. The `udid` must have been obtained from a successful [Data Upload API](https://docs.microsoft.com/en-us/rest/api/maps/data/uploadpreview) call.", - "type": "string", - "in": "path", - "required": true, - "x-ms-parameter-location": "method" - } - }, - "paths": { - "/mapData/upload": { - "post": { - "description": "**Data Upload API**\n\n**Applies to:** S1 pricing tier.\n\nThe Data Upload API allows the caller to upload data content to the Azure Maps service.\nYou can use this API in a scenario like uploading a collection of Geofences in `GeoJSON` \nformat, for use in our [Azure Maps Geofencing Service](https://docs.microsoft.com/rest/api/maps/spatial).\n\n## Submit Upload Request\n\nTo upload your content you will use a `POST` request. The request body will contain the data to upload. The \n`dataFormat` query parameter will contain the format for the data, the `dataSharingLevel` query parameter \ncan contain the sharing level for the data. The `Content-Type` header will be set to the content type of the \ndata.\n\nFor example, to upload a collection of geofences in `GeoJSON` format, set the request body to the geofence \ncontent. Set the `dataFormat` query parameter to _geojson_, and set the `Content-Type` header to either one \nof the following media types:\n\n- `application/json`\n- `application/vnd.geo+json`\n- `application/octet-stream`\n\nHere's a sample request body for uploading a simple Geofence represented as a circle geometry using a center \npoint and a radius. The sample below is in `GeoJSON`:\n\n```json\n{\n \"type\": \"FeatureCollection\",\n \"features\": [{\n \"type\": \"Feature\",\n \"geometry\": {\n \"type\": \"Point\",\n \"coordinates\": [-122.126986, 47.639754]\n },\n \"properties\": {\n \"geometryId\": \"001\",\n \"radius\": 500\n }\n }]\n}\n```\n\nThe Data Upload API performs a \n[long-running request](https://docs.microsoft.com/azure/azure-maps/private-atlas-long-running-operation).\n\n## Data Upload Limits\n\nPlease, be aware that currently every Azure Maps account has a [data storage limit](https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/azure-subscription-service-limits#azure-maps-limits). \nOnce the storage limit is reached, all the new upload API calls will return a `409 Conflict` http error response. \nYou can always use the [Data Delete API](https://docs.microsoft.com/rest/api/maps/data/deletepreview) to \ndelete old/unused content and create space for new uploads.", - "operationId": "Data_UploadPreview", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-examples": { - "Upload GeoJSON data containing geometries that represent a collection of geofences": { - "$ref": "./examples/Upload.json" - } - }, - "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" - }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/UploadDataFormat" - }, - { - "name": "UploadContent", - "in": "body", - "description": "The content to upload.", - "required": true, - "schema": { - "type": "object" - } - } - ], - "responses": { - "200": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/200Async" - }, - "201": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/201Async" - }, - "202": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" - }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "409": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/409StorageLimit" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" - } - } - } - }, - "/mapData/{udid}": { - "put": { - "description": "**Data Update API**\n\n**Applies to:** S1 pricing tier.\n\nThe Data Update API allows the caller to update a previously uploaded data content.\n\nYou can use this API in a scenario like adding or removing geofences to or from an existing collection of geofences. \nGeofences are uploaded using the [Data Upload API](https://docs.microsoft.com/rest/api/maps/data/uploadpreview), for \nuse in the [Azure Maps Geofencing Service](https://docs.microsoft.com/rest/api/maps/spatial).\n\nPlease note that the Update API will *replace* and *override* the existing data content.\n\n## Submit Update Request\n\nTo update your content you will use a `PUT` request. The request body will contain the new data that will replace \nthe existing data. The `Content-Type` header will be set to the content type of the data, and the path will contain \nthe `udid` of the data to be update.\n\nFor example, to update a collection of geofences that were previously uploaded using the Upload API, place the new \ngeofence content in the request body. Set the `udid` parameter in the path to the `udid` of the data received \npreviously in the upload API response. And set the `Content-Type` header to one of the following media types:\n\n- `application/json`\n- `application/vnd.geo+json`\n- `application/octet-stream`\n\nHere's a sample request body for updating a simple Geofence. It's represented as a circle geometry using a center \npoint and a radius. The sample below is in `GeoJSON`:\n\n```json\n{\n \"type\": \"FeatureCollection\",\n \"features\": [{\n \"type\": \"Feature\",\n \"geometry\": {\n \"type\": \"Point\",\n \"coordinates\": [-122.126986, 47.639754]\n },\n \"properties\": {\n \"geometryId\": \"001\",\n \"radius\": 500\n }\n }]\n}\n```\n\nThe previously uploaded geofence had a radius of 100m. The above request will update it to 500m.\n\nThe Data Update API performs a \n[long-running request](https://docs.microsoft.com/azure/azure-maps/private-atlas-long-running-operation).\n\n## Data Update Limits\n\nPlease, be aware that currently every Azure Maps account has a [data storage limit](https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/azure-subscription-service-limits#azure-maps-limits). \nOnce the storage limit is reached, all the new upload API calls will return a `409 Conflict` http error response. \nYou can always use the [Data Delete API](https://docs.microsoft.com/rest/api/maps/data/deletepreview) to \ndelete old/unused content and create space for new uploads.", - "operationId": "Data_UpdatePreview", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-examples": { - "Update previously uploaded GeoJSON data containing geometries that represent a collection of geofences": { - "$ref": "./examples/Update.json" - } - }, - "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" - }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/UniqueDataId" - }, - { - "name": "UpdateContent", - "in": "body", - "description": "The new content that will update/replace the previously uploaded content.", - "required": true, - "schema": { - "type": "object" - } - } - ], - "responses": { - "200": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/200Async" - }, - "201": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/201Async" - }, - "202": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" - }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "409": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/409StorageLimit" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" - } - } - }, - "get": { - "description": "**Data Download API**\n\n**Applies to:** S1 pricing tier.\n
\n\nThis API allows the caller to download a previously uploaded data content.
\nYou can use this API in a scenario like downloading an existing collection of geofences uploaded previously using the [Data Upload API](https://docs.microsoft.com/en-us/rest/api/maps/data/uploadpreview) for use in our [Azure Maps Geofencing Service](https://docs.microsoft.com/en-us/rest/api/maps/spatial). \n\n\n### Submit Download Request\n\nTo download your content you will use a `GET` request where the path will contain the `udid` of the data to download. Optionally, you can also pass in an `Accept` header to specify a preference for the `Content-Type` of the data response.
\nFor example, to download a collection of geofences previously uploaded using the Upload API, set the `udid` parameter in the path to the `udid` of the data received previously in the upload API response and set the `Accept` header to either one of the following media types: \n \n - `application/json`\n - `application/vnd.geo+json`\n - `application/octet-stream`\n\n\n### Download Data Response\n\nThe Download API will return a HTTP `200 OK` response if the data resource with the passed-in `udid` is found, where the response body will contain the content of the data resource.
\nA HTTP `400 Bad Request` error response will be returned if the data resource with the passed-in `udid` is not found.
\n\nHere's a sample response body for a simple geofence represented in `GeoJSON` uploaded previously using the Upload API:\n
\n\n```json\n{\n \"type\": \"FeatureCollection\",\n \"features\": [{\n \"type\": \"Feature\",\n \"geometry\": {\n \"type\": \"Point\",\n \"coordinates\": [-122.126986, 47.639754]\n },\n \"properties\": {\n \"geometryId\": \"001\",\n \"radius\": 500\n }\n }]\n}\n```", - "operationId": "Data_DownloadPreview", - "x-ms-examples": { - "Download previously uploaded GeoJSON data containing geometries that represent a collection of geofences": { - "$ref": "./examples/Download.json" - } - }, - "produces": [ - "application/json", - "application/vnd.geo+json", - "application/octet-stream" - ], - "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" - }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/UniqueDataId" - } - ], - "responses": { - "200": { - "description": "Data download request completed successfully. The response body will contain the content for the passed in `udid`.", - "schema": { - "type": "file" - }, - "headers": { - "Content-Type": { - "type": "string", - "description": "The content-type for the Download API response." - } - } - }, - "default": { - "description": "An error occurred while processing the request. Please try again later.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - } - } - }, - "delete": { - "description": "**Data Delete API**\n\n**Applies to:** S1 pricing tier.\n
\n\nThis API allows the caller to delete a previously uploaded data content.
\nYou can use this API in a scenario like removing geofences previously uploaded using the [Data Upload API](https://docs.microsoft.com/en-us/rest/api/maps/data/uploadpreview) for use in our [Azure Maps Geofencing Service](https://docs.microsoft.com/en-us/rest/api/maps/spatial). You can also use this API to delete old/unused uploaded content and create space for new content.\n\n\n### Submit Delete Request\n\nTo delete your content you will issue a `DELETE` request where the path will contain the `udid` of the data to delete.
\nFor example, to delete a collection of geofences previously uploaded using the Upload API, set the `udid` parameter in the path to the `udid` of the data received previously in the upload API response. \n\n\n### Delete Data Response\n\nThe Data Delete API returns a HTTP `204 No Content` response with an empty body, if the data resource was deleted successfully.
\nA HTTP `400 Bad Request` error response will be returned if the data resource with the passed-in `udid` is not found. ", - "operationId": "Data_DeletePreview", - "x-ms-examples": { - "Delete previously uploaded GeoJSON data containing geometries that represent a collection of geofences": { - "$ref": "./examples/Delete.json" - } - }, - "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" - }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/UniqueDataId" - } - ], - "responses": { - "204": { - "description": "Data delete request completed successfully. The content for `udid` was deleted on the server." - }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" - } - } - } - }, - "/mapData": { - "get": { - "description": "**Data List API**\n\n**Applies to:** S1 pricing tier.\n
\n\nThis API allows the caller to fetch a list of all content uploaded previously using the [Data Upload API](https://docs.microsoft.com/en-us/rest/api/maps/data/uploadpreview). \n\n\n### Submit List Request\n\nTo list all your map data content you will issue a `GET` request with no additional parameters.\n\n\n### List Data Response\n\nThe Data List API returns the complete list of all data in `json` format. The response contains the following details for each data resource:\n\n > udid - The unique data id for the data resource.\n\n > location - The location of the data resource. Execute a HTTP `GET` on this location to download the data.\n\n\nHere's a sample response returning the `udid` and `location` of 3 data resources: \n\n
\n\n```json\n{\n \"mapDataList\": \n [\n {\n \"udid\": \"9a1288fa-1858-4a3b-b68d-13a8j5af7d7c\",\n \"location\": \"https://atlas.microsoft.com/mapData/9a1288fa-1858-4a3b-b68d-13a8j5af7d7c?api-version=1.0\",\n \"sizeInBytes\": 29920,\n \"uploadStatus\": \"Completed\"\n },\n {\n \"udid\": \"8b1288fa-1958-4a2b-b68e-13a7i5af7d7c\",\n \"location\": \"https://atlas.microsoft.com/mapData/8b1288fa-1958-4a2b-b68e-13a7i5af7d7c?api-version=1.0\",\n \"sizeInBytes\": 1339,\n \"uploadStatus\": \"Completed\"\n },\n {\n \"udid\": \"7c1288fa-2058-4a1b-b68f-13a6h5af7d7c\",\n \"location\": \"https://atlas.microsoft.com/mapData/7c1288fa-2058-4a1b-b68f-13a6h5af7d7c?api-version=1.0\",\n \"sizeInBytes\": 1650,\n \"uploadStatus\": \"Pending\"\n }]\n}\n```\n\n
", - "operationId": "Data_ListPreview", - "x-ms-examples": { - "List all the previously uploaded data": { - "$ref": "./examples/List.json" - } - }, - "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" - }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "List data request completed successfully. The response body contains a list of all the previously uploaded data.", - "schema": { - "$ref": "#/definitions/MapDataListResponse" - } - }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" - } - } - } - } - }, - "definitions": { - "MapDataListResponse": { - "description": "The response model for the Data List API. Returns a list of all the previously uploaded data.", - "type": "object", - "properties": { - "mapDataList": { - "description": "A list of all the previously uploaded data.", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/MapDataDetailInfo" - } - } - } - }, - "MapDataDetailInfo": { - "description": "Detail information for the data.", - "type": "object", - "properties": { - "udid": { - "description": "The unique data id for the data.", - "type": "string", - "readOnly": true - }, - "location": { - "description": "The location of the data. Execute a HTTP `GET` on this location to download the data.", - "type": "string", - "readOnly": true - }, - "sizeInBytes": { - "description": "The size of the content in bytes.", - "type": "integer", - "format": "int64", - "readOnly": true - }, - "uploadStatus": { - "description": "The current upload status of the content.", - "type": "string", - "readOnly": true - } - } - } - } -} diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/examples/Delete.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/examples/Delete.json deleted file mode 100644 index 2cb02557df93..000000000000 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/examples/Delete.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "parameters": { - "geography": "us", - "api-version": "1.0", - "subscription-key": "[subscription-key]", - "udid": "25084fb7-307a-4720-8f91-7952a0b91012" - }, - "responses": { - "204": {}, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } - } - } -} diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/examples/Download.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/examples/Download.json deleted file mode 100644 index 5daecf4bb618..000000000000 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/examples/Download.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "geography": "us", - "api-version": "1.0", - "subscription-key": "[subscription-key]", - "udid": "25084fb7-307a-4720-8f91-7952a0b91012" - }, - "responses": { - "200": { - "body": "{file}" - } - } -} diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/examples/List.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/examples/List.json deleted file mode 100644 index 5123768fe957..000000000000 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/examples/List.json +++ /dev/null @@ -1,78 +0,0 @@ -{ - "parameters": { - "geography": "us", - "api-version": "1.0", - "subscription-key": "[subscription-key]" - }, - "responses": { - "200": { - "body": { - "mapDataList": [ - { - "udid": "f6495f62-94f8-0ec2-c252-45626f82fcb2", - "location": "https://atlas.microsoft.com/mapData/f6495f62-94f8-0ec2-c252-45626f82fcb2?api-version=1.0", - "sizeInBytes": 29920, - "uploadStatus": "Completed" - }, - { - "udid": "8b1288fa-1958-4a2b-b68e-13a7i5af7d7c", - "location": "https://atlas.microsoft.com/mapData/8b1288fa-1958-4a2b-b68e-13a7i5af7d7c?api-version=1.0", - "sizeInBytes": 1339, - "uploadStatus": "Completed" - }, - { - "udid": "7c1288fa-2058-4a1b-b68f-13a6h5af7d7c", - "location": "https://atlas.microsoft.com/mapData/7c1288fa-2058-4a1b-b68f-13a6h5af7d7c?api-version=1.0", - "sizeInBytes": 1650, - "uploadStatus": "Pending" - } - ] - } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } - } - } -} diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/examples/Update.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/examples/Update.json deleted file mode 100644 index e9b67a2ab01e..000000000000 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/examples/Update.json +++ /dev/null @@ -1,117 +0,0 @@ -{ - "parameters": { - "geography": "us", - "api-version": "1.0", - "subscription-key": "[subscription-key]", - "udid": "25084fb7-307a-4720-8f91-7952a0b91012", - "UpdateContent": { - "type": "FeatureCollection", - "features": [ - { - "type": "Feature", - "geometry": { - "type": "Point", - "coordinates": [ - -122.126986, - 47.639754 - ] - }, - "properties": { - "geometryId": "001", - "radius": 500 - } - } - ] - } - }, - "responses": { - "200": { - "headers": {}, - "body": { - "operationId": "{operationId}", - "status": "Failed", - "created": "2020-01-02 1:02:03 AM +00:00", - "error": { - "code": "InvalidFeature", - "message": "The provided feature is invalid.", - "details": { - "code": "NoGeometry", - "message": "No geometry was provided with the feature." - } - } - } - }, - "201": { - "headers": { - "Location": "https://atlas.microsoft.com/mapData/metadata/{udid}?api-version=1.0", - "Access-Control-Expose-Headers": "Location" - }, - "body": { - "operationId": "{operationId}", - "status": "Succeeded", - "created": "2020-01-02 1:02:03 AM +00:00", - "resourceLocation": "https://atlas.microsoft.com/mapData/metadata/{udid}?api-version=1.0" - } - }, - "202": { - "headers": { - "Location": "https://atlas.microsoft.com/mapData/operations/{operationId}?api-version=1.0", - "Access-Control-Expose-Headers": "Location" - } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "409": { - "headers": {}, - "body": { - "error": { - "code": "409 Conflict", - "message": "The data storage limit is reached on the Azure Maps account. You can always use the Data Delete API to delete old/unused content and create space for new uploads." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } - } - } -} diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/examples/Upload.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/examples/Upload.json deleted file mode 100644 index 771c9bacb42b..000000000000 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/1.0/examples/Upload.json +++ /dev/null @@ -1,117 +0,0 @@ -{ - "parameters": { - "geography": "us", - "api-version": "1.0", - "subscription-key": "[subscription-key]", - "dataFormat": "geojson", - "UploadContent": { - "type": "FeatureCollection", - "features": [ - { - "type": "Feature", - "geometry": { - "type": "Point", - "coordinates": [ - -122.126986, - 47.639754 - ] - }, - "properties": { - "geometryId": "001", - "radius": 500 - } - } - ] - } - }, - "responses": { - "200": { - "headers": {}, - "body": { - "operationId": "{operationId}", - "status": "Failed", - "created": "2020-01-02 1:02:03 AM +00:00", - "error": { - "code": "InvalidFeature", - "message": "The provided feature is invalid.", - "details": { - "code": "NoGeometry", - "message": "No geometry was provided with the feature." - } - } - } - }, - "201": { - "headers": { - "Location": "https://atlas.microsoft.com/mapData/metadata/{udid}?api-version=1.0", - "Access-Control-Expose-Headers": "Location" - }, - "body": { - "operationId": "{operationId}", - "status": "Succeeded", - "created": "2020-01-02 1:02:03 AM +00:00", - "resourceLocation": "https://atlas.microsoft.com/mapData/metadata/{udid}?api-version=1.0" - } - }, - "202": { - "headers": { - "Location": "https://atlas.microsoft.com/mapData/operations/{operationId}?api-version=1.0", - "Access-Control-Expose-Headers": "Location" - } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "409": { - "headers": {}, - "body": { - "error": { - "code": "409 Conflict", - "message": "The data storage limit is reached on the Azure Maps account. You can always use the Data Delete API to delete old/unused content and create space for new uploads." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } - } - } -} diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json deleted file mode 100644 index 9c6ae633644c..000000000000 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/dataset.json +++ /dev/null @@ -1,427 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Azure Maps Dataset Service", - "version": "1.0", - "description": "APIs for managing datasets from uploaded data in Azure Maps." - }, - "x-ms-parameterized-host": { - "hostTemplate": "{geography}.atlas.microsoft.com", - "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/GeographicResourceLocation" - } - ] - }, - "schemes": [ - "https" - ], - "consumes": [], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - }, - { - "SubscriptionKeyInHeader": [] - }, - { - "SubscriptionKeyInQuery": [] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", - "scopes": { - "user_impersonation": "impersonate your user account" - } - }, - "SubscriptionKeyInHeader": { - "type": "apiKey", - "name": "subscription-key", - "in": "header" - }, - "SubscriptionKeyInQuery": { - "type": "apiKey", - "name": "subscription-key", - "in": "query" - } - }, - "responses": {}, - "parameters": { - "ConversionIdQuery": { - "name": "conversionId", - "x-ms-client-name": "ConversionId", - "description": "The unique ID used to create the dataset. The `conversionId` must have been obtained from a successful call to the Conversion Service Convert API and must be provided with multiple query parameters with same name (if more than one is provided). May not be provided in conjunction with the `udid` query parameter.", - "type": "string", - "in": "query", - "x-ms-parameter-location": "method" - }, - "UdidDataset": { - "name": "udid", - "x-ms-client-name": "UdidDataset", - "description": "The unique data ID used to create the dataset. The `udid` must have been obtained from a successful call to the Data Service Upload API and must be provided with multiple query parameters with the same name (if more than one is provided). May not be provided in conjunction with `conversionId` query parameter.", - "type": "string", - "in": "query", - "x-ms-parameter-location": "method" - }, - "DescriptionDataset": { - "name": "description", - "x-ms-client-name": "DescriptionDataset", - "description": "The description to be given to the dataset.", - "type": "string", - "in": "query", - "x-ms-parameter-location": "method" - }, - "DatasetId": { - "name": "datasetId", - "x-ms-client-name": "DatasetId", - "type": "string", - "in": "path", - "description": "The identifier for the dataset to query from.", - "required": true, - "x-ms-parameter-location": "method" - }, - "DataType": { - "name": "type", - "x-ms-client-name": "DatasetType", - "type": "string", - "in": "query", - "description": "The type of data to create the dataset with.", - "enum": [ - "facility" - ], - "x-ms-enum": { - "name": "DatasetType", - "modelAsString": true, - "values": [ - { - "value": "facility", - "description": "Facility Maps data type." - } - ] - }, - "required": true, - "x-ms-parameter-location": "method" - }, - "ImportUdid": { - "name": "udid", - "x-ms-client-name": "ImportUdid", - "description": "The unique data ID used to import data into the dataset. The `udid` must have been obtained from a successful call to the Data Service Upload API.", - "type": "string", - "in": "query", - "x-ms-parameter-location": "method" - }, - "ImportType": { - "name": "type", - "x-ms-client-name": "ImportDataType", - "type": "string", - "in": "query", - "description": "The type of data to import into the dataset with.", - "enum": [ - "fixture" - ], - "x-ms-enum": { - "name": "ImportDataType", - "modelAsString": true, - "values": [ - { - "value": "fixture", - "description": "Area and point element data." - } - ] - }, - "required": true, - "x-ms-parameter-location": "method" - }, - "AppendDatasetId": { - "name": "datasetId", - "x-ms-client-name": "AppendDatasetId", - "type": "string", - "in": "query", - "description": "The ID for the dataset to append to.", - "x-ms-parameter-location": "method" - } - }, - "paths": { - "/dataset/create": { - "post": { - "description": "**Dataset Create API**\n\n**Applies to**: see pricing [tiers](https://azure.microsoft.com/en-us/pricing/details/azure-maps/).\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API \nand SDK. The Dataset APIs are part of Creator. This API allows the caller to create a dataset from data that \nwas uploaded to the Azure Maps Data Service.\n\nYou can use this API in a scenario like uploading a DWG zip package for a building, converting the zip package using \nthe Azure Maps Conversion Service, creating a dataset from the converted zip package. The created dataset can be \nused to create tilesets using the Azure Maps Tileset Service and can be queried via the Azure Maps WFS Service.\n\n## Submit Create Request\n\nTo create your dataset, you will use a `POST` request where the `conversionId` query parameter is an id that represents \nthe converted DWG zip package, the `type` parameter will describe the data type to use for the dataset, the `datasetId`\nparameter will describe if the provided data should be appended to a current dataset and, optionally, the \n`description` query parameter will contain a description (if description is not provided a default description will be \ngiven).\n\nThe Create API is a \n[long-running request](https://aka.ms/am-creator-lrt).", - "operationId": "Dataset_CreatePreview", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-examples": { - "Create dataset from a converted CAD file provided by conversionId": { - "$ref": "./examples/Dataset_Create.json" - } - }, - "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/ConversionIdQuery" - }, - { - "$ref": "#/parameters/UdidDataset" - }, - { - "$ref": "#/parameters/DataType" - }, - { - "$ref": "#/parameters/AppendDatasetId" - }, - { - "$ref": "#/parameters/DescriptionDataset" - } - ], - "responses": { - "200": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/200Async" - }, - "201": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/201Async" - }, - "202": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" - }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" - } - } - } - }, - "/dataset/import/{datasetId}": { - "patch": { - "description": "**Dataset Import API**\n\n**Applies to**: see pricing [tiers](https://azure.microsoft.com/en-us/pricing/details/azure-maps/).\n
\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API \nand SDK. The Dataset APIs are part of Creator. This API allows the caller to bulk import data into a dataset \nfrom data that was uploaded to the Azure Maps Data service.
\n\n### Submit Import Request\n\nTo import data into your dataset, you will use a `PATCH` request where the `datasetId` query parameter is the \ndataset you want to import your data into, the `udid` query parameter is the data you want to import, and the `type` \nparameter will describe the data type to use for the import data.
\n\nThe Import API is a \n[long-running request](https://aka.ms/am-creator-lrt).", - "operationId": "Dataset_ImportPreview", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-examples": { - "Import data into previously created dataset": { - "$ref": "./examples/Dataset_Import.json" - } - }, - "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/DatasetId" - }, - { - "$ref": "#/parameters/ImportUdid" - }, - { - "$ref": "#/parameters/ImportType" - } - ], - "responses": { - "200": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/200Async" - }, - "201": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/201Async" - }, - "202": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" - }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" - } - } - } - }, - "/dataset/{datasetId}": { - "delete": { - "description": "**Dataset Delete API**\n\n**Applies to**: see pricing [tiers](https://azure.microsoft.com/en-us/pricing/details/azure-maps/).\n
\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. The Dataset APIs are part of Creator.\nThis API allows the caller to delete a previously created dataset.
\nYou can also use this API to delete old/unused datasets to create space for new Creator content.\n\n\n### Submit Delete Request\n\nTo delete your content you will issue a `DELETE` request where the path will contain the `datasetId` of the dataset to delete.
\n\n\n### Delete Data Response\n\nThe Delete API returns a HTTP `204 No Content` response if the dataset resource was deleted successfully.
", - "operationId": "Dataset_DeletePreview", - "x-ms-examples": { - "Delete previously created dataset": { - "$ref": "./examples/Dataset_Delete.json" - } - }, - "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/DatasetId" - } - ], - "responses": { - "204": { - "description": "The dataset delete request completed successfully. The resource referenced by the `datasetId` was deleted from the server." - }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" - } - } - } - }, - "/dataset": { - "get": { - "description": "**Dataset List API**\n\n**Applies to**: see pricing [tiers](https://azure.microsoft.com/en-us/pricing/details/azure-maps/).\n
\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. The Dataset APIs are part of Creator.\nThis API allows the caller to fetch a list of all previously successfully created datasets.\n\n\n### Submit List Request\n\nTo list all your datasets, you will issue a `GET` request with no additional parameters.
\n\n\n### List Data Response\n\nThe List API returns the complete list of all datasets in `json` format. The response contains the following fields (if they are not null or empty):\n > created - The timestamp the dataset was created.\n > datasetId - The id for the dataset.\n > description - The description for the dataset.\n > datasetSources - The source data that was used when the create request was issued.\n\nThe `datasetSources` describes the source data that was used when the create request was issued and contains the following elements (if they are not null or empty):\n > conversionIds - The list of `conversionId` (null if none were provided).\n > udids - The list of `udid` (null if none were provided).\n > appendDatasetId - The `datasetId` that was used for an append operation (null if none was used).\n > type - The type of data stored in the dataset that was created.\n\nHere's a sample response returning the `timestamp`, `datasetId`, `description`, and `datasetSources` of 3 dataset resources:\n\n
\n\n```json\n{\n \"datasets\": [\n {\n \"timestamp\": \"2020-01-01T22:50:48+00:00\",\n \"datasetId\": \"f6495f62-94f8-0ec2-c252-45626f82fcb2\",\n \"description\": \"Some description or comment for the dataset.\",\n \"datasetSources\": {\n \"conversionIds\": [\n \"15d21452-c9bb-27b6-5e79-743ca5c3205d\"\n ],\n \"type\": \"facility\"\n },\n \"status\": \"Succeeded\"\n },\n {\n \"timestamp\": \"2020-01-01T22:57:53+00:00\",\n \"datasetId\": \"8b1288fa-1958-4a2b-b68e-13a7i5af7d7c\",\n \"description\": \"Create from upload '0c1288fa-2058-4a1b-b68d-13a5f5af7d7c'.\",\n \"datasetSources\": {\n \"udids\": [\n \"0c1288fa-2058-4a1b-b68d-13a5f5af7d7c\"\n ],\n \"type\": \"facility\"\n },\n \"status\": \"Succeeded\"\n },\n {\n \"timestamp\": \"2020-01-01T20:39:36+00:00\",\n \"datasetId\": \"7c1288fa-2058-4a1b-b68f-13a6h5af7d7c\",\n \"description\": \"Some other description or comment for the dataset.\",\n \"datasetSources\": {\n \"conversionIds\": [\n \"15d21452-c9bb-27b6-5e79-743ca5c3205d\"\n ],\n \"appendDatasetId\": \"8b1288fa-1958-4a2b-b68e-13a7i5af7d7c\",\n \"type\": \"facility\"\n },\n \"status\": \"Succeeded\"\n }\n ]\n}\n```\n
", - "operationId": "Dataset_ListPreview", - "x-ms-examples": { - "List all the previously created datasets": { - "$ref": "./examples/Dataset_List.json" - } - }, - "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "The list dataset request completed successfully. The response body contains a list of all the previously created datasets.", - "schema": { - "$ref": "#/definitions/DatasetListResponse" - } - }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" - } - } - } - } - }, - "definitions": { - "DatasetListResponse": { - "description": "The response model for the Dataset List API. The response body will contain a list of all the previously created datasets.", - "type": "object", - "properties": { - "datasets": { - "description": "A list of all the previously created datasets.", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/DatasetDetailInfo" - } - } - } - }, - "DatasetDetailInfo": { - "description": "Detail information for the dataset.", - "type": "object", - "readOnly": true, - "properties": { - "created": { - "description": "The created timestamp for the dataset.", - "type": "string", - "readOnly": true - }, - "datasetId": { - "description": "The id for the dataset.", - "type": "string", - "readOnly": true - }, - "description": { - "description": "The description for the dataset.", - "type": "string", - "readOnly": true - }, - "datasetSources": { - "$ref": "#/definitions/DatasetSources" - }, - "featureCounts": { - "description": "The feature counts for the dataset.", - "type": "object", - "readOnly": true - } - } - }, - "DatasetSources": { - "description": "Information about the details of the create request for the dataset.", - "type": "object", - "properties": { - "conversionIds": { - "description": "The list of `conversionId` that were used to create the dataset.", - "type": "array", - "readOnly": true, - "items": { - "type": "string" - } - }, - "udids": { - "description": "The list of `udid` that were used to create the dataset.", - "type": "array", - "readOnly": true, - "items": { - "type": "string" - } - }, - "appendDatasetId": { - "description": "The dataset that was appended to to create the current dataset.", - "type": "string", - "readOnly": true - }, - "type": { - "description": "The type of data stored in the dataset.", - "type": "string", - "readOnly": true - } - } - } - } -} diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/examples/Dataset_Create.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/examples/Dataset_Create.json deleted file mode 100644 index 14e4afd43c44..000000000000 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/examples/Dataset_Create.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "parameters": { - "geography": "us", - "api-version": "1.0", - "subscription-key": "[subscription-key]", - "conversionId": "[conversionId]", - "type": "facility" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "operationId": "{operationId}", - "status": "Failed", - "created": "2020-01-02 1:02:03 AM +00:00", - "error": { - "code": "InvalidFeature", - "message": "The provided feature is invalid.", - "details": { - "code": "NoGeometry", - "message": "No geometry was provided with the feature." - } - } - } - }, - "201": { - "headers": { - "Location": "https://us.atlas.microsoft.com/dataset/{datasetId}?api-version=1.0", - "Access-Control-Expose-Headers": "Location" - }, - "body": { - "operationId": "{operationId}", - "status": "Succeeded", - "created": "2020-01-02 1:02:03 AM +00:00", - "resourceLocation": "https://us.atlas.microsoft.com/dataset/{datasetId}?api-version=1.0" - } - }, - "202": { - "headers": { - "Location": "https://us.atlas.microsoft.com/dataset/operations/{operationId}?api-version=1.0", - "Access-Control-Expose-Headers": "Location" - } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request - Error message." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found - The requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "Unknown error - An error occurred while processing the request. Please try again later." - } - } - } - } -} diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/examples/Dataset_Delete.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/examples/Dataset_Delete.json deleted file mode 100644 index 1f5b1859dffc..000000000000 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/examples/Dataset_Delete.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "parameters": { - "geography": "us", - "api-version": "1.0", - "subscription-key": "[subscription-key]", - "datasetId": "[datasetId]" - }, - "responses": { - "204": {}, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request - One or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found - The requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "Unknown error - An error occurred while processing the request. Please try again later." - } - } - } - } -} diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/examples/Dataset_Import.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/examples/Dataset_Import.json deleted file mode 100644 index 70ea81f259a1..000000000000 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/examples/Dataset_Import.json +++ /dev/null @@ -1,91 +0,0 @@ -{ - "parameters": { - "geography": "us", - "api-version": "1.0", - "subscription-key": "[subscription-key]", - "datasetId": "[conversionId]", - "udid": "[udid]", - "type": "fixture" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "operationId": "{operationId}", - "status": "Failed", - "created": "2020-01-02 1:02:03 AM +00:00", - "error": { - "code": "InvalidFeature", - "message": "The provided feature is invalid.", - "details": { - "code": "NoGeometry", - "message": "No geometry was provided with the feature." - } - } - } - }, - "201": { - "headers": { - "Location": "https://atlas.microsoft.com/dataset/{datasetId}?api-version=1.0", - "Access-Control-Expose-Headers": "Location" - }, - "body": { - "operationId": "{operationId}", - "status": "Succeeded", - "created": "2020-01-02 03:04:05 AM +00:00", - "resourceLocation": "https://us.atlas.microsoft.com/dataset/{datasetId}?api-version=1.0" - } - }, - "202": { - "headers": { - "Location": "https://us.atlas.microsoft.com/dataset/operations/{operationId}?api-version=1.0", - "Access-Control-Expose-Headers": "Location" - } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request - Error message." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found - The requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "Unknown error - An error occurred while processing the request. Please try again later." - } - } - } - } -} diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/examples/Dataset_List.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/examples/Dataset_List.json deleted file mode 100644 index 70a28edebb38..000000000000 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/1.0/examples/Dataset_List.json +++ /dev/null @@ -1,117 +0,0 @@ -{ - "parameters": { - "geography": "us", - "api-version": "1.0", - "subscription-key": "[subscription-key]" - }, - "responses": { - "200": { - "body": { - "datasets": [ - { - "created": "2020-01-02 3:04:05 AM +00:00", - "datasetId": "f6495f62-94f8-0ec2-c252-45626f82fcb2", - "description": "Some description or comment for the dataset.", - "datasetSources": { - "conversionIds": [ - "15d21452-c9bb-27b6-5e79-743ca5c3205d" - ], - "type": "facility" - }, - "featureCounts": { - "directoryInfo": 1, - "category": 18, - "facility": 1, - "level": 6, - "unit": 775, - "opening": 471, - "areaElement": 496 - } - }, - { - "created": "2020-01-02 3:04:05 PM +00:00", - "datasetId": "8b1288fa-1958-4a2b-b68e-13a7i5af7d7c", - "description": "Create from upload '0c1288fa-2058-4a1b-b68d-13a5f5af7d7c'.", - "datasetSources": { - "udids": [ - "0c1288fa-2058-4a1b-b68d-13a5f5af7d7c" - ], - "type": "facility" - }, - "featureCounts": { - "directoryInfo": 1, - "category": 2, - "facility": 1, - "level": 6, - "unit": 19 - } - }, - { - "created": "2020-01-02 3:04:05 AM +00:00", - "datasetId": "7c1288fa-2058-4a1b-b68f-13a6h5af7d7c", - "description": "Some other description or comment for the dataset.", - "datasetSources": { - "conversionIds": [ - "15d21452-c9bb-27b6-5e79-743ca5c3205d" - ], - "appendDatasetId": "8b1288fa-1958-4a2b-b68e-13a7i5af7d7c", - "type": "facility" - }, - "featureCounts": { - "directoryInfo": 1, - "category": 1, - "facility": 1, - "level": 1, - "unit": 10 - } - } - ] - } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request - One or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found - The requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "Unknown error - An error occurred while processing the request. Please try again later." - } - } - } - } -} diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json deleted file mode 100644 index 3dbd59458db7..000000000000 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/dwgconversion.json +++ /dev/null @@ -1,295 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Azure Maps Conversion Service", - "version": "1.0", - "description": "APIs for converting DWG Packages in Azure Maps." - }, - "x-ms-parameterized-host": { - "hostTemplate": "{geography}.atlas.microsoft.com", - "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/GeographicResourceLocation" - } - ] - }, - "schemes": [ - "https" - ], - "consumes": [], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - }, - { - "SubscriptionKeyInHeader": [] - }, - { - "SubscriptionKeyInQuery": [] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", - "scopes": { - "user_impersonation": "impersonate your user account" - } - }, - "SubscriptionKeyInHeader": { - "type": "apiKey", - "name": "subscription-key", - "in": "header" - }, - "SubscriptionKeyInQuery": { - "type": "apiKey", - "name": "subscription-key", - "in": "query" - } - }, - "responses": {}, - "parameters": { - "UdidQuery": { - "name": "udid", - "description": "The unique data id for the content. The `udid` must have been obtained from a successful [Data Upload API](https://docs.microsoft.com/en-us/rest/api/maps/data/uploadpreview) call.", - "type": "string", - "in": "query", - "required": true, - "x-ms-parameter-location": "method" - }, - "ConversionId": { - "name": "conversionId", - "description": "The conversion id for the content. The `conversionId` must have been obtained from a successful [Conversion API](https://docs.microsoft.com/en-us/rest/api/maps/conversion/convertpreview) call.", - "type": "string", - "in": "path", - "required": true, - "x-ms-parameter-location": "method" - }, - "ConversionInputType": { - "name": "inputType", - "description": "Input type of the content being converted. Currently, only `DWG` type is supported.", - "type": "string", - "in": "query", - "required": true, - "enum": [ - "DWG" - ], - "x-ms-enum": { - "name": "ConversionInputType", - "modelAsString": true, - "values": [ - { - "value": "DWG", - "description": "DWG file format." - } - ] - }, - "x-ms-parameter-location": "method" - }, - "DescriptionDwgConversion": { - "name": "description", - "description": "User provided description of the content being converted.", - "type": "string", - "in": "query", - "x-ms-parameter-location": "method" - } - }, - "paths": { - "/conversion/convert": { - "post": { - "description": "**Conversion Create API**\n\n**Applies to**: see pricing [tiers](https://azure.microsoft.com/en-us/pricing/details/azure-maps/).
\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and \nSDK. [This](https://docs.microsoft.com/en-us/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.
\n\nThe Conversion API lets the caller import a set of DWG design files as a zipped [Drawing Package](https://aka.ms/am-drawing-package) into Azure Maps. The [Drawing Package](https://aka.ms/am-drawing-package) should first be \nuploaded using the [Azure Maps Data Service](https://docs.microsoft.com/rest/api/maps/data). Once uploaded, use the \n`udid` returned by the [Data Upload API](https://docs.microsoft.com/rest/api/maps/data/uploadpreview) to call \nthis Conversion API.\n\n## Convert DWG package\n\nThe Conversion API performs a \n[long-running request](https://aka.ms/am-creator-lrt).\n\n## Debug DWG package issues\n\n\nDuring the Conversion process, if there are any issues with the DWG package [errors and warnings](https://aka.ms/am-conversion-errors) are provided in the response along with a *diagnostic package* to visualize \nand diagnose these issues. In case any issues are encountered with your DWG package, the Conversion operation status process as detailed \n[here](https://aka.ms/am-creator-lrt) returns the location of the *diagnostic\npackage* that can be downloaded by the caller to help them visualize and diagnose these issues. The *diagnostic package* location\ncan be found in the properties section of the conversion operation status response and looks like the following:\n\n```json\n{\n \"properties\": {\n \"diagnosticPackageLocation\": \"https://us.atlas.microsoft.com/mapdata/{DiagnosticPackageId}?api-version=1.0\" \n } \n}\n```\n\nThe *diagnostic package* can be downloaded by executing a `HTTP GET` request on the `diagnosticPackageLocation`.\nFor more details on how to use the tool to visualize and diagnose all the errors and warnings see [Drawing Error Visualizer](https://aka.ms/am-drawing-errors-visualizer).
\n\nA conversion operation will be marked as *success* if there are zero or more warnings but will be marked as *failed* if any errors are encountered. ", - "operationId": "Conversion_ConvertPreview", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-examples": { - "Convert previously uploaded DWG Package": { - "$ref": "./examples/Conversion.json" - } - }, - "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" - }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/UdidQuery" - }, - { - "$ref": "#/parameters/ConversionInputType" - }, - { - "$ref": "#/parameters/DescriptionDwgConversion" - } - ], - "responses": { - "200": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/200Async" - }, - "201": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/201Async" - }, - "202": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" - }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" - } - } - } - }, - "/conversion": { - "get": { - "description": "**Conversion List API**\n\n**Applies to**: see pricing [tiers](https://azure.microsoft.com/en-us/pricing/details/azure-maps/).
\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. [This](https://docs.microsoft.com/en-us/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.
\n\nThis API allows the caller to fetch a list of all successful data conversions submitted previously using the [Conversion API](https://docs.microsoft.com/en-us/rest/api/maps/conversion/convertpreview). \n\n### Submit List Request\n\nTo list all successful conversions you will issue a `GET` request with no additional parameters.\n\n### List Data Response\n\nThe Conversion List API returns the complete list of all conversion details in `json` format.
\n\nHere is a sample response returning the details of two successful conversion requests: \n\n
\n\n```json\n{\n \"conversions\": \n [\n {\n \"conversionId\": \"54398242-ea6c-1f31-4fa6-79b1ae0fc24d\",\n \"udid\": \"31838736-8b84-11ea-bc55-0242ac130003\",\n \"created\": \"5/19/2020 9:00:00 AM +00:00\",\n \"description\": \"User provided description.\",\n \"featureCounts\": {\n \"DIR\": 1,\n \"LVL\": 3,\n \"FCL\": 1,\n \"UNIT\": 150,\n \"CTG\": 8,\n \"AEL\": 0,\n \"OPN\": 10\n }\n },\n {\n \"conversionId\": \"2acf7d32-8b84-11ea-bc55-0242ac130003\",\n \"udid\": \"1214bc58-8b84-11ea-bc55-0242ac1300039\",\n \"created\": \"5/19/2020 9:00:00 AM +00:00\",\n \"description\": \"User provided description.\",\n \"featureCounts\": {\n \"DIR\": 1,\n \"LVL\": 3,\n \"FCL\": 1,\n \"UNIT\": 150,\n \"CTG\": 8,\n \"AEL\": 0,\n \"OPN\": 10\n }\n }\n ]\n}\n```\n\n
", - "operationId": "Conversion_ListPreview", - "x-ms-examples": { - "Returns a list of all the data processed by the Conversion Service for the account": { - "$ref": "./examples/List.json" - } - }, - "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" - }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "List request completed successfully.", - "schema": { - "$ref": "#/definitions/ConversionListResponse" - } - }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" - } - } - } - }, - "/conversion/{conversionId}": { - "delete": { - "description": "**Conversion Delete API**\n\n**Applies to**: see pricing [tiers](https://azure.microsoft.com/en-us/pricing/details/azure-maps/).
\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. [This](https://docs.microsoft.com/en-us/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.
\n\nThis API allows the caller to delete any data conversions created previously using the [Conversion API](https://docs.microsoft.com/en-us/rest/api/maps/conversion/convertpreview).\n\n### Submit Delete Request\n\nTo delete your conversion data you will issue a `DELETE` request where the path will contain the `conversionId` of the data to delete.\n\n### Conversion Delete Response\n\nThe Conversion Delete API returns a HTTP `204 No Content` response with an empty body, if the converted data resources were deleted successfully.
\nA HTTP `400 Bad Request` error response will be returned if no resource associated with the passed-in `conversionId` is found. ", - "operationId": "Conversion_DeletePreview", - "x-ms-examples": { - "Delete previously converted content": { - "$ref": "./examples/Delete.json" - } - }, - "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" - }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/ConversionId" - } - ], - "responses": { - "204": { - "description": "Conversion delete request completed successfully. The content for `conversionId` was deleted on the server." - }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" - } - } - } - } - }, - "definitions": { - "ConversionListResponse": { - "description": "The response model for the Conversion List API.", - "type": "object", - "properties": { - "conversions": { - "description": "A list of all the previously submitted conversion requests.", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/ConversionListDetailInfo" - } - } - } - }, - "ConversionListDetailInfo": { - "description": "Detail information for the conversion requests.", - "type": "object", - "properties": { - "conversionId": { - "description": "A unique id that represents the artifact of a _successfully_ completed conversion process.", - "type": "string", - "readOnly": true - }, - "udid": { - "description": "The unique id of the content provided to create this conversion.", - "type": "string", - "readOnly": true - }, - "created": { - "description": "The date and time of this conversion.", - "type": "string", - "readOnly": true - }, - "description": { - "description": "User provided description of the content being converted.", - "type": "string", - "readOnly": true - }, - "featureCounts": { - "description": "A summary of feature counts in this conversion.", - "type": "object", - "readOnly": true - } - } - } - } -} diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/examples/Conversion.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/examples/Conversion.json deleted file mode 100644 index 61e5faa9ee94..000000000000 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/examples/Conversion.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "parameters": { - "geography": "us", - "api-version": "1.0", - "subscription-key": "[subscription-key]", - "udid": "25084fb7-307a-4720-8f91-7952a0b91012", - "inputType": "DWG" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "operationId": "{operationId}", - "status": "Failed", - "created": "2020-01-02 1:02:03 AM +00:00", - "error": { - "code": "InvalidFeature", - "message": "The provided feature is invalid.", - "details": { - "code": "NoGeometry", - "message": "No geometry was provided with the feature." - } - } - } - }, - "201": { - "headers": { - "Location": "https://us.atlas.microsoft.com/conversion/{conversionId}?api-version=1.0", - "Access-Control-Expose-Headers": "Location" - }, - "body": { - "operationId": "{operationId}", - "status": "Succeeded", - "created": "2020-01-02 1:02:03 AM +00:00", - "resourceLocation": "https://us.atlas.microsoft.com/conversion/{conversionId}?api-version=1.0" - } - }, - "202": { - "headers": { - "Location": "https://us.atlas.microsoft.com/conversion/operations/{operationId}?api-version=1.0", - "Access-Control-Expose-Headers": "Location" - } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } - } - } -} diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/examples/Delete.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/examples/Delete.json deleted file mode 100644 index 115f09b7c77c..000000000000 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/examples/Delete.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "parameters": { - "geography": "us", - "api-version": "1.0", - "subscription-key": "[subscription-key]", - "conversionId": "99884fb7-87a9-0920-7f93-7952a0b91012" - }, - "responses": { - "204": {}, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } - } - } -} diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/examples/List.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/examples/List.json deleted file mode 100644 index 2b7782a6acf3..000000000000 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/1.0/examples/List.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "parameters": { - "geography": "us", - "api-version": "1.0", - "subscription-key": "[subscription-key]" - }, - "responses": { - "200": { - "body": { - "conversions": [ - { - "conversionId": "54398242-ea6c-1f31-4fa6-79b1ae0fc24d", - "udid": "31838736-8b84-11ea-bc55-0242ac130003", - "created": "5/19/2020 9:00:00 AM +00:00", - "description": "User provided description.", - "featureCounts": { - "directoryInfo": 1, - "level": 3, - "facility": 1, - "unit": 150, - "category": 8, - "areaElement": 0, - "opening": 10 - } - }, - { - "conversionId": "2acf7d32-8b84-11ea-bc55-0242ac130003", - "udid": "1214bc58-8b84-11ea-bc55-0242ac1300039", - "created": "5/19/2020 9:00:00 AM +00:00", - "description": "User provided description.", - "featureCounts": { - "directoryInfo": 1, - "level": 3, - "facility": 1, - "unit": 150, - "category": 8, - "areaElement": 0, - "opening": 10 - } - } - ] - } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } - } - } -} diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/examples/CreateStateset.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/examples/CreateStateset.json deleted file mode 100644 index 03933c179a41..000000000000 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/examples/CreateStateset.json +++ /dev/null @@ -1,117 +0,0 @@ -{ - "parameters": { - "geography": "us", - "api-version": "1.0", - "subscription-key": "[subscription-key]", - "datasetId": "5d34fbe8-87b7-f7c0-3144-c50e003a3c75", - "statesetCreateRequestBody": { - "styles": [ - { - "keyName": "s1", - "type": "boolean", - "rules": [ - { - "true": "#FF0000", - "false": "#00FF00" - } - ] - }, - { - "keyName": "s2", - "type": "number", - "rules": [ - { - "range": { - "exclusiveMaximum": 50 - }, - "color": "#343deb" - }, - { - "range": { - "minimum": 50, - "exclusiveMaximum": 70 - }, - "color": "#34ebb1" - }, - { - "range": { - "minimum": 70, - "exclusiveMaximum": 90 - }, - "color": "#eba834" - }, - { - "range": { - "minimum": 90 - }, - "color": "#eb3434" - } - ] - }, - { - "keyName": "s3", - "type": "string", - "rules": [ - { - "stateValue1": "#FF0000", - "stateValue2": "#FF00AA", - "stateValueN": "#00FF00" - } - ] - } - ] - } - }, - "responses": { - "200": { - "body": { - "statesetId": "b24bdb73-1305-3212-1909-a428d937b64f" - } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } - } - } -} diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/examples/DeleteFeatureState.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/examples/DeleteFeatureState.json deleted file mode 100644 index 4fae12773bc9..000000000000 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/examples/DeleteFeatureState.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "parameters": { - "geography": "us", - "api-version": "1.0", - "subscription-key": "[subscription-key]", - "statesetId": "b24bdb73-1305-3212-1909-a428d937b64", - "featureId": "SPC4709", - "stateKeyName": "keyName1" - }, - "responses": { - "200": {}, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "409": { - "headers": {}, - "body": { - "error": { - "code": "409 Conflict", - "message": "The request could not be completed due to a conflict with the current state of the resource." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } - } - } -} diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/examples/DeleteStateset.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/examples/DeleteStateset.json deleted file mode 100644 index 18a62b07b2d0..000000000000 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/examples/DeleteStateset.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "parameters": { - "geography": "us", - "api-version": "1.0", - "subscription-key": "[subscription-key]", - "statesetId": "b24bdb73-1305-3212-1909-a428d937b64f" - }, - "responses": { - "204": {}, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } - } - } -} diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/examples/GetStates.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/examples/GetStates.json deleted file mode 100644 index 0f83e1814041..000000000000 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/examples/GetStates.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "parameters": { - "geography": "us", - "api-version": "1.0", - "subscription-key": "[subscription-key]", - "statesetId": "b24bdb73-1305-3212-1909-a428d937b64", - "featureId": "SPC4709" - }, - "responses": { - "200": { - "body": { - "states": [ - { - "keyName": "s1", - "value": true, - "eventTimestamp": "2019-08-16 13:01" - } - ] - } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } - } - } -} diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/examples/GetStateset.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/examples/GetStateset.json deleted file mode 100644 index e7aaab0433ed..000000000000 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/examples/GetStateset.json +++ /dev/null @@ -1,118 +0,0 @@ -{ - "parameters": { - "geography": "us", - "api-version": "1.0", - "subscription-key": "[subscription-key]", - "statesetId": "b24bdb73-1305-3212-1909-a428d937b64" - }, - "responses": { - "200": { - "body": { - "datasetIdList": [ - "8d700cc7-fd2c-4e21-b402-ad3f5e524f36" - ], - "statesetStyle": { - "styles": [ - { - "keyName": "s1", - "type": "boolean", - "rules": [ - { - "true": "#FFFF00", - "false": "#FFFFFF" - } - ] - }, - { - "keyName": "s2", - "type": "number", - "rules": [ - { - "range": { - "minimum": null, - "maximum": null, - "exclusiveMinimum": null, - "exclusiveMaximum": 50 - }, - "color": "#343deb" - }, - { - "range": { - "minimum": 50, - "maximum": null, - "exclusiveMinimum": null, - "exclusiveMaximum": 69 - }, - "color": "#34ebb1" - }, - { - "range": { - "minimum": 69, - "maximum": null, - "exclusiveMinimum": null, - "exclusiveMaximum": 90 - }, - "color": "#eba834" - }, - { - "range": { - "minimum": 90, - "maximum": null, - "exclusiveMinimum": null, - "exclusiveMaximum": null - }, - "color": "#eb3434" - } - ] - } - ] - } - } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } - } - } -} diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/examples/Stateset_List.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/examples/Stateset_List.json deleted file mode 100644 index f99f8aaca75a..000000000000 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/examples/Stateset_List.json +++ /dev/null @@ -1,122 +0,0 @@ -{ - "parameters": { - "geography": "us", - "api-version": "1.0", - "subscription-key": "[subscription-key]" - }, - "responses": { - "200": { - "body": { - "statesetDetailList": [ - { - "statesetId": "09abcdf8-cad0-b3dd-a38f-d5ee3cff5eea", - "datasetIdList": [ - "8d700cc7-fd2c-4e21-b402-ad3f5e524f36" - ], - "statesetStyle": { - "styles": [ - { - "keyName": "s1", - "type": "boolean", - "rules": [ - { - "true": "#0FFF00", - "false": "#00FFF0" - } - ] - }, - { - "keyName": "s2", - "type": "number", - "rules": [ - { - "range": { - "minimum": null, - "maximum": null, - "exclusiveMinimum": null, - "exclusiveMaximum": 50 - }, - "color": "#343deb" - }, - { - "range": { - "minimum": 50, - "maximum": null, - "exclusiveMinimum": null, - "exclusiveMaximum": 69 - }, - "color": "#34ebb1" - }, - { - "range": { - "minimum": 69, - "maximum": null, - "exclusiveMinimum": null, - "exclusiveMaximum": 90 - }, - "color": "#eba834" - }, - { - "range": { - "minimum": 90, - "maximum": null, - "exclusiveMinimum": null, - "exclusiveMaximum": null - }, - "color": "#eb3434" - } - ] - } - ] - } - } - ] - } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } - } - } -} diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/examples/UpdateStates.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/examples/UpdateStates.json deleted file mode 100644 index a2e115192cc9..000000000000 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/examples/UpdateStates.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "parameters": { - "geography": "us", - "api-version": "1.0", - "subscription-key": "[subscription-key]", - "statesetId": "b24bdb73-1305-3212-1909-a428d937b64", - "featureId": "SPC4709", - "featureStateUpdateRequestBody": { - "states": [ - { - "keyName": "s1", - "value": true, - "eventTimestamp": "2019-08-16 13:01" - } - ] - } - }, - "responses": { - "200": {}, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } - } - } -} diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/examples/UpdateStateset.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/examples/UpdateStateset.json deleted file mode 100644 index 12723bb33929..000000000000 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/examples/UpdateStateset.json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "parameters": { - "geography": "us", - "api-version": "1.0", - "subscription-key": "[subscription-key]", - "statesetId": "b24bdb73-1305-3212-1909-a428d937b64", - "statesetStyleUpdateRequestBody": { - "styles": [ - { - "keyName": "s1", - "type": "boolean", - "rules": [ - { - "true": "#FFFF00", - "false": "#FFFFFF" - } - ] - }, - { - "keyName": "s2", - "type": "number", - "rules": [ - { - "range": { - "exclusiveMaximum": 50 - }, - "color": "#343deb" - }, - { - "range": { - "minimum": 50, - "exclusiveMaximum": 69 - }, - "color": "#34ebb1" - }, - { - "range": { - "minimum": 69, - "exclusiveMaximum": 90 - }, - "color": "#eba834" - }, - { - "range": { - "minimum": 90 - }, - "color": "#eb3434" - } - ] - } - ] - } - }, - "responses": { - "200": {}, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } - } - } -} diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json deleted file mode 100644 index 4f997e7a46d0..000000000000 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/1.0/featurestate.json +++ /dev/null @@ -1,741 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Azure Maps Feature State Service", - "version": "1.0", - "description": "APIs for managing the dynamic feature states in Azure Maps." - }, - "x-ms-parameterized-host": { - "hostTemplate": "{geography}.atlas.microsoft.com", - "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/GeographicResourceLocation" - } - ] - }, - "schemes": [ - "https" - ], - "consumes": [], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - }, - { - "SubscriptionKeyInHeader": [] - }, - { - "SubscriptionKeyInQuery": [] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", - "scopes": { - "user_impersonation": "impersonate your user account" - } - }, - "SubscriptionKeyInHeader": { - "type": "apiKey", - "name": "subscription-key", - "in": "header" - }, - "SubscriptionKeyInQuery": { - "type": "apiKey", - "name": "subscription-key", - "in": "query" - } - }, - "responses": {}, - "parameters": { - "DatasetIdForCreate": { - "name": "datasetId", - "description": "The datasetId must have been obtained from a successful [Dataset Create API](/rest/api/maps/dataset/createpreview) call.", - "type": "string", - "in": "query", - "required": true, - "x-ms-parameter-location": "method" - }, - "StatesetId": { - "name": "statesetId", - "description": "The stateset id that was created.", - "type": "string", - "in": "query", - "required": true, - "x-ms-parameter-location": "method" - }, - "StatesetIdInPath": { - "name": "statesetId", - "description": "The stateset id that was created.", - "type": "string", - "in": "path", - "required": true, - "x-ms-parameter-location": "method" - }, - "FeatureIdInDataset": { - "name": "featureId", - "description": "The id of a feature in the given dataset. If the featureId is not present in the dataset, Bad Request response will be returned.", - "type": "string", - "in": "query", - "required": true, - "x-ms-parameter-location": "method" - }, - "FeatureIdInStateset": { - "name": "featureId", - "description": "The id of a feature in the given stateset. If no state was set for the featureId in the stateset earlier, Bad Request response will be returned.", - "type": "string", - "in": "query", - "required": true, - "x-ms-parameter-location": "method" - }, - "StateKeyNameDelete": { - "name": "stateKeyName", - "description": "The Name of the state to be deleted.", - "type": "string", - "in": "query", - "required": true, - "x-ms-parameter-location": "method" - } - }, - "paths": { - "/featureState/stateset/{statesetId}": { - "get": { - "description": "**Applies to**: see pricing [tiers](https://azure.microsoft.com/en-us/pricing/details/azure-maps/).\n
\n\nThis GET API allows the user to get the stateset Information.\n\nThe stateset Information includes the datasetId associated to the stateset, and the styles of that stateset.", - "operationId": "FeatureState_GetStatesetPreview", - "x-ms-examples": { - "Get stateset information with a statesetId": { - "$ref": "./examples/GetStateset.json" - } - }, - "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/StatesetIdInPath" - } - ], - "responses": { - "200": { - "description": "Get request completed successfully.", - "schema": { - "$ref": "#/definitions/StatesetGetResponse" - } - }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" - } - } - }, - "delete": { - "description": "**Applies to**: see pricing [tiers](https://azure.microsoft.com/en-us/pricing/details/azure-maps/).
This DELETE API allows the user to delete the stateset and the associated data.", - "operationId": "FeatureState_DeleteStatesetPreview", - "x-ms-examples": { - "Delete an existing stateset": { - "$ref": "./examples/DeleteStateset.json" - } - }, - "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/StatesetIdInPath" - } - ], - "responses": { - "204": { - "description": "Stateset Deleted." - }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" - } - } - }, - "put": { - "description": "**Applies to**: see pricing [tiers](https://azure.microsoft.com/en-us/pricing/details/azure-maps/).\n
\n\nThis PUT API allows the user to update the stateset style rules.", - "operationId": "FeatureState_PutStatesetPreview", - "x-ms-examples": { - "Update stateset style rules with a statesetId": { - "$ref": "./examples/UpdateStateset.json" - } - }, - "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/StatesetIdInPath" - }, - { - "name": "statesetStyleUpdateRequestBody", - "in": "body", - "description": "The stateset style JSON data. Only style rules are allowed to be updated, update on keyname and type is not allowed.", - "required": true, - "schema": { - "$ref": "#/definitions/StylesObject" - } - } - ], - "responses": { - "200": { - "description": "Stateset styles are updated successfully." - }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" - } - } - } - }, - "/featureState/stateset": { - "post": { - "description": "**Applies to**: see pricing [tiers](https://azure.microsoft.com/en-us/pricing/details/azure-maps/).\n
\n\nThis POST API allows the user to create a new Stateset and define stateset style using request body.\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. The Feature State API is part of Creator. \n\nThe Feature State service allows the user to update the states of a feature and query them to be used in other services. The dynamic properties of a feature that don't belong to the dataset are referred to as *states* here.\n\nThis Feature State service pivot on the Stateset. Like Tileset, Stateset encapsulates the storage mechanism for feature states for a dataset.\n\nOnce the stateset is created, users can use that statesetId to post feature state updates and retrieve the current feature states. A feature can have only one state at a given point in time. \n\nFeature state is defined by the key name, value and the timestamp. When a feature state update is posted to Azure Maps, the state value gets updated only if the provided state’s timestamp is later than the stored timestamp. \n\nAzure Maps MapControl provides a way to use these feature states to style the features. Please refer to the State Tile documentation for more information.", - "operationId": "FeatureState_CreateStatesetPreview", - "x-ms-examples": { - "Create a new stateset with a datasetId": { - "$ref": "./examples/CreateStateset.json" - } - }, - "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/DatasetIdForCreate" - }, - { - "name": "statesetCreateRequestBody", - "in": "body", - "description": "The stateset style JSON data.", - "required": true, - "schema": { - "$ref": "#/definitions/StylesObject" - } - } - ], - "responses": { - "200": { - "description": "Stateset created.", - "schema": { - "$ref": "#/definitions/StatesetCreatedResponse" - } - }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" - } - } - }, - "get": { - "description": "**Applies to**: see pricing [tiers](https://azure.microsoft.com/en-us/pricing/details/azure-maps/).
This API allows the caller to fetch a list of all previously successfully created statesets.", - "operationId": "FeatureState_ListStatesetPreview", - "x-ms-examples": { - "List all the previously created statesets": { - "$ref": "./examples/Stateset_List.json" - } - }, - "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "The list stateset request completed successfully. The response body contains a list of all the previously created statesets.", - "schema": { - "$ref": "#/definitions/StatesetListResponse" - } - }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" - } - } - } - }, - "/featureState/state": { - "get": { - "operationId": "FeatureState_GetStatesPreview", - "description": "**Applies to**: see pricing [tiers](https://azure.microsoft.com/en-us/pricing/details/azure-maps/).
This API returns the current state information associated with the given feature in the given stateset.", - "x-ms-examples": { - "Get the current states of a feature": { - "$ref": "./examples/GetStates.json" - } - }, - "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/StatesetId" - }, - { - "$ref": "#/parameters/FeatureIdInStateset" - } - ], - "responses": { - "200": { - "description": "Get request completed successfully.", - "schema": { - "$ref": "#/definitions/FeatureStatesStructure" - } - }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" - } - } - }, - "post": { - "operationId": "FeatureState_UpdateStatesPreview", - "description": "**Applies to**: see pricing [tiers](https://azure.microsoft.com/en-us/pricing/details/azure-maps/).
\nThis POST API allows the user to update the state of the given feature in the given stateset.", - "x-ms-examples": { - "Update the states of a feature": { - "$ref": "./examples/UpdateStates.json" - } - }, - "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/StatesetId" - }, - { - "$ref": "#/parameters/FeatureIdInDataset" - }, - { - "name": "featureStateUpdateRequestBody", - "in": "body", - "description": "The feature state JSON data. A feature can have only one state at a given point in time. The specified state keyname must have been defined during the stateset creation.", - "required": true, - "schema": { - "$ref": "#/definitions/FeatureStatesStructure" - } - } - ], - "responses": { - "200": { - "description": "Feature states are updated successfully." - }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" - } - } - }, - "delete": { - "operationId": "FeatureState_DeleteStatePreview", - "description": "**Applies to**: see pricing [tiers](https://azure.microsoft.com/en-us/pricing/details/azure-maps/).
This API deletes the state information identified by the StateKeyName parameter for the feature identified by the FeatureId parameter in the the stateset.", - "x-ms-examples": { - "Delete the given feature state": { - "$ref": "./examples/DeleteFeatureState.json" - } - }, - "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/StatesetId" - }, - { - "$ref": "#/parameters/FeatureIdInStateset" - }, - { - "$ref": "#/parameters/StateKeyNameDelete" - } - ], - "responses": { - "200": { - "description": "Feature states deleted successfully." - }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "409": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/409" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" - } - } - } - } - }, - "definitions": { - "StatesetGetResponse": { - "description": "The response model for the successful Stateset Get API.", - "type": "object", - "properties": { - "datasetIdList": { - "description": "Dataset ID associated with the stateset.", - "type": "array", - "items": { - "type": "string" - } - }, - "statesetStyle": { - "$ref": "#/definitions/StylesObject" - } - } - }, - "StatesetListResponse": { - "description": "The response model for the successful Stateset List API.", - "type": "object", - "properties": { - "statesetDetailList": { - "description": "A list of statesets information.", - "type": "array", - "items": { - "$ref": "#/definitions/StatesetInfoObject" - } - } - } - }, - "StatesetInfoObject": { - "description": "The stateset information detail.", - "type": "object", - "properties": { - "statesetId": { - "description": "The stateset ID of this stateset.", - "type": "string" - }, - "datasetIdList": { - "description": "Dataset ID associated with the stateset.", - "type": "array", - "items": { - "type": "string" - } - }, - "statesetStyle": { - "$ref": "#/definitions/StylesObject" - } - } - }, - "StatesetCreatedResponse": { - "description": "The response model for the successful Stateset Create API.", - "type": "object", - "properties": { - "statesetId": { - "description": "The ID for the new stateset created.", - "type": "string", - "readOnly": true - } - } - }, - "FeatureStatesStructure": { - "description": "The feature states model for a feature.", - "type": "object", - "properties": { - "states": { - "description": "The feature states array.", - "type": "array", - "items": { - "$ref": "#/definitions/FeatureStateObject" - } - } - } - }, - "FeatureStateObject": { - "description": "Single feature state model.", - "type": "object", - "properties": { - "keyName": { - "description": "Feature state Keyname.", - "type": "string" - }, - "value": { - "description": "Value for the feature state.", - "type": "object" - }, - "eventTimestamp": { - "description": "Timestamp when the feature state was captured.", - "type": "string" - } - } - }, - "StylesObject": { - "description": "The styles model.", - "type": "object", - "properties": { - "styles": { - "description": "An array of stateset styles. The style rule could be a numeric or string or a boolean type style rule. Refer to NumberRuleObject, StringRuleObject and BooleanRuleObject definitions [here](https://aka.ms/AzureMapsStatesetStylesObject). ", - "type": "array", - "items": { - "$ref": "#/definitions/StyleObject" - } - } - } - }, - "NumberRuleObject": { - "description": "The numeric rule. The color is selected from the first range it falls into.", - "type": "object", - "properties": { - "range": { - "$ref": "#/definitions/RangeObject" - }, - "color": { - "description": "The color when value is within the range. Color is a JSON string in a variety of permitted formats, HTML-style hex values, RGB (\"#ff0\", \"#ffff00\", \"rgb(255, 255, 0)\"), RGBA (\"rgba(255, 255, 0, 1)\"), HSL(\"hsl(100, 50%, 50%)\"), and HSLA(\"hsla(100, 50%, 50%, 1)\"). Predefined HTML colors names, like yellow and blue, are also permitted.", - "type": "string" - } - } - }, - "RangeObject": { - "description": "The numeric value range for this style rule. If the value is in the range, all the conditions must hold true.", - "type": "object", - "properties": { - "minimum": { - "description": "All the number x that x ≥ minimum.", - "type": "number", - "format": "double" - }, - "maximum": { - "description": "All the number x that x ≤ maximum.", - "type": "number", - "format": "double" - }, - "exclusiveMinimum": { - "description": "All the number x that x > exclusiveMinimum.", - "type": "number", - "format": "double" - }, - "exclusiveMaximum": { - "description": "All the number x that x < exclusiveMaximum.", - "type": "number", - "format": "double" - } - } - }, - "BooleanRuleObject": { - "description": "The boolean rule. The color is selected based on the logic value of the key.", - "type": "object", - "properties": { - "true": { - "description": "The color when value is true. Color is a JSON string in a variety of permitted formats, HTML-style hex values, RGB (\"#ff0\", \"#ffff00\", \"rgb(255, 255, 0)\"), RGBA (\"rgba(255, 255, 0, 1)\"), HSL(\"hsl(100, 50%, 50%)\"), and HSLA(\"hsla(100, 50%, 50%, 1)\"). Predefined HTML colors names, like yellow and blue, are also permitted.", - "type": "string" - }, - "false": { - "description": "The color when value is false. Color is a JSON string in a variety of permitted formats, HTML-style hex values, RGB (\"#ff0\", \"#ffff00\", \"rgb(255, 255, 0)\"), RGBA (\"rgba(255, 255, 0, 1)\"), HSL(\"hsl(100, 50%, 50%)\"), and HSLA(\"hsla(100, 50%, 50%, 1)\"). Predefined HTML colors names, like yellow and blue, are also permitted.", - "type": "string" - } - } - }, - "StringRuleObject": { - "description": "The string rule. The string value matching is case sensitive. If a feature's state doesn't match any of the values defined here, that feature will not have any dynamic style. If duplicate string values are given, the first one takes precedence.", - "type": "object", - "additionalProperties": { - "description": "The color when the keyName value string is equal to this property name. Color is a JSON string in a variety of permitted formats, HTML-style hex values, RGB (\"#ff0\", \"#ffff00\", \"rgb(255, 255, 0)\"), RGBA (\"rgba(255, 255, 0, 1)\"), HSL(\"hsl(100, 50%, 50%)\"), and HSLA(\"hsla(100, 50%, 50%, 1)\"). Predefined HTML colors names, like yellow and blue, are also permitted.", - "type": "string" - } - }, - "StyleObject": { - "description": "The stateset style model. The style rule could be a numeric type style rule or a boolean type style rule. Refer to NumberRuleObject, StringRuleObject and BooleanRuleObject definitions [here](https://aka.ms/AzureMapsStatesetStylesObject). ", - "discriminator": "type", - "type": "object", - "required": [ - "keyName", - "type" - ], - "properties": { - "keyName": { - "description": "Stateset style key name. Key names are random strings but they should be unique inside style array.", - "type": "string" - }, - "type": { - "description": "The type of stateset style.", - "type": "string", - "enum": [ - "boolean", - "number", - "string" - ], - "x-ms-enum": { - "name": "StyleObjectType", - "modelAsString": true, - "values": [ - { - "value": "boolean", - "description": "Boolean type of stateset style.", - "name": "BooleanTypeStyleRule" - }, - { - "value": "number", - "description": "Number type of stateset style.", - "name": "NumberTypeStyleRule" - }, - { - "value": "string", - "description": "String type of stateset style.", - "name": "StringTypeStyleRule" - } - ] - } - } - } - }, - "BooleanTypeStyleRule": { - "description": "The boolean type style rule object.", - "x-ms-discriminator-value": "boolean", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/StyleObject" - } - ], - "properties": { - "rules": { - "description": "Boolean style rules.", - "type": "array", - "items": { - "$ref": "#/definitions/BooleanRuleObject" - } - } - }, - "required": [ - "rules" - ] - }, - "NumberTypeStyleRule": { - "description": "The numeric type style rule object.", - "x-ms-discriminator-value": "number", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/StyleObject" - } - ], - "properties": { - "rules": { - "description": "Numeric style rules.", - "type": "array", - "items": { - "$ref": "#/definitions/NumberRuleObject" - } - } - }, - "required": [ - "rules" - ] - }, - "StringTypeStyleRule": { - "description": "The string type style rule object.", - "x-ms-discriminator-value": "string", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/StyleObject" - } - ], - "properties": { - "rules": { - "description": "String style rules.", - "type": "array", - "items": { - "$ref": "#/definitions/StringRuleObject" - } - } - }, - "required": [ - "rules" - ] - } - } -} diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/examples/Create.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/examples/Create.json deleted file mode 100644 index 082b00590fcf..000000000000 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/examples/Create.json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "parameters": { - "geography": "us", - "api-version": "1.0", - "subscription-key": "[subscription-key]", - "datasetId": "[dataset-Id]" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "operationId": "{operationId}", - "status": "Failed", - "created": "2020-01-02 1:02:03 AM +00:00", - "error": { - "code": "InvalidFeature", - "message": "The provided feature is invalid.", - "details": { - "code": "NoGeometry", - "message": "No geometry was provided with the feature." - } - } - } - }, - "201": { - "headers": { - "Location": "https://us.atlas.microsoft.com/tileset/{tilesetId}?api-version=1.0", - "Access-Control-Expose-Headers": "Location" - }, - "body": { - "operationId": "{operationId}", - "status": "Succeeded", - "created": "2020-01-02 1:02:03 AM +00:00", - "resourceLocation": "https://us.atlas.microsoft.com/tileset/{tilesetId}?api-version=1.0" - } - }, - "202": { - "headers": { - "Location": "https://us.atlas.microsoft.com/tileset/operations/{operationId}?api-version=1.0", - "Access-Control-Expose-Headers": "Location" - } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } - } - } -} diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/examples/Delete.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/examples/Delete.json deleted file mode 100644 index 6862a224a928..000000000000 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/examples/Delete.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "parameters": { - "geography": "us", - "api-version": "1.0", - "subscription-key": "[subscription-key]", - "tilesetId": "25084fb7-307a-4720-8f91-7952a0b91012" - }, - "responses": { - "204": {}, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } - } - } -} diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/examples/List.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/examples/List.json deleted file mode 100644 index ec95c2ccc02e..000000000000 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/examples/List.json +++ /dev/null @@ -1,86 +0,0 @@ -{ - "parameters": { - "geography": "us", - "api-version": "1.0", - "subscription-key": "[subscription-key]" - }, - "responses": { - "200": { - "body": { - "tilesets": [ - { - "tilesetId": "d8fa86de-bb0f-4a02-a6ff-62ae7545dd84", - "datasetId": "63b18a6b-ac35-4b23-a1d9-ffa1003ad50b", - "description": "My first tileset", - "minZoom": 16, - "maxZoom": 18, - "bbox": [ - -122.13595, - 47.636524, - -122.1329, - 47.637525 - ] - }, - { - "tilesetId": "b8dca8b3-8aad-4afe-abd6-0efe37b5a2e3", - "datasetId": "c0a01139-662e-4d5a-bf5f-92ea4a292aad", - "description": "My second tileset", - "minZoom": 19, - "maxZoom": 19, - "bbox": [ - -122.13595, - 47.636524, - -122.1329, - 47.637525 - ] - } - ] - } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } - } - } -} diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json deleted file mode 100644 index f648da0b1c6f..000000000000 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/1.0/tileset.json +++ /dev/null @@ -1,306 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Azure Maps Tileset Service", - "version": "1.0", - "description": "APIs for managing Tilesets." - }, - "x-ms-parameterized-host": { - "hostTemplate": "{geography}.atlas.microsoft.com", - "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/GeographicResourceLocation" - } - ] - }, - "schemes": [ - "https" - ], - "consumes": [], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - }, - { - "SubscriptionKeyInHeader": [] - }, - { - "SubscriptionKeyInQuery": [] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", - "scopes": { - "user_impersonation": "impersonate your user account" - } - }, - "SubscriptionKeyInHeader": { - "type": "apiKey", - "name": "subscription-key", - "in": "header" - }, - "SubscriptionKeyInQuery": { - "type": "apiKey", - "name": "subscription-key", - "in": "query" - } - }, - "responses": {}, - "parameters": { - "GeographicResourceLocation": { - "name": "geography", - "description": "This parameter specifies where the Azure Maps Creator resource is located. Valid values are us and eu.", - "in": "path", - "required": true, - "type": "string", - "default": "us", - "enum": [ - "us", - "eu" - ], - "x-ms-enum": { - "name": "GeographicResourceLocation", - "modelAsString": true, - "values": [ - { - "value": "us", - "description": "Used to access an Azure Maps Creator resource in the United States" - }, - { - "value": "eu", - "description": "Used to access an Azure Maps Creator resource in Europe" - } - ] - }, - "x-ms-parameter-location": "client" - }, - "DatasetIdQuery": { - "name": "datasetId", - "description": "The unique `datasetId` that the tileset create API uses to retrieve features to generate tiles. The `datasetId` must have been obtained from a successful [Dataset Create API](/en-us/rest/api/maps/dataset/createpreview) call.", - "type": "string", - "in": "query", - "required": true, - "x-ms-parameter-location": "method" - }, - "TilesetId": { - "name": "tilesetId", - "description": "The Tileset Id", - "type": "string", - "in": "path", - "required": true, - "x-ms-parameter-location": "method" - }, - "DescriptionTileset": { - "name": "description", - "description": "User provided description of the tileset.", - "type": "string", - "in": "query", - "x-ms-parameter-location": "method" - } - }, - "paths": { - "/tileset/create/vector": { - "post": { - "description": "**Tileset Create API**\n\n**Applies to**: see pricing [tiers](https://azure.microsoft.com/en-us/pricing/details/azure-maps/).\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API \nand SDK. [This](https://docs.microsoft.com/en-us/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.\n\nThe Tileset Create API allows the caller to create a tileset from a dataset. A tileset contains a set of tiles that can be consumed \nfrom the [Get Map Tile](/rest/api/maps/render/getmaptile) to retrieve custom tiles. To make a dataset, use the \n[DataSet Create API](/rest/api/maps/dataset/createpreview).\n\n## Submit Create Request\n\nTo create your tileset you will make a `POST` request with an empty body. The `datasetId` query parameter will be \nused as the source of the tileset data.\n\nThe Create Tileset API is a \n[long-running request](https://aka.ms/am-creator-lrt).", - "operationId": "Tileset_CreatePreview", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-examples": { - "Create Tileset by providing a Dataset Id": { - "$ref": "./examples/Create.json" - } - }, - "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" - }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/DatasetIdQuery" - }, - { - "$ref": "#/parameters/DescriptionTileset" - } - ], - "responses": { - "200": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/200Async" - }, - "201": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/201Async" - }, - "202": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" - }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" - } - } - } - }, - "/tileset": { - "get": { - "description": "**Tileset List API**\n\n**Applies to**: see pricing [tiers](https://azure.microsoft.com/en-us/pricing/details/azure-maps/).\n
\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. [This](https://docs.microsoft.com/en-us/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.\nThis API allows the caller to fetch a list of all tilesets created. \n
", - "operationId": "Tileset_ListPreview", - "x-ms-examples": { - "Get a list of all tilesets": { - "$ref": "./examples/List.json" - } - }, - "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" - }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "List tileset request completed successfully. The response body contains a list of all tilesets.", - "schema": { - "$ref": "#/definitions/TilesetListResponse" - } - }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" - } - } - } - }, - "/tileset/{tilesetId}": { - "delete": { - "description": "**Tileset Delete API**\n\n**Applies to**: see pricing [tiers](https://azure.microsoft.com/en-us/pricing/details/azure-maps/).\n
\n\nCreator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. [This](https://docs.microsoft.com/en-us/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator.\nThis API allows the caller to delete a created tileset.
\nYou can use this API if a tileset is no longer needed. \n\n### Submit Delete Request\n\nTo delete your content you will issue a `DELETE` request where the path will contain the `tilesetId` of the tileset to delete.
\n\n#### Delete request \"Successful\"\n\nThe Tileset Delete API returns a HTTP `204 No Content` response with an empty body, if the tileset was deleted successfully.
\n\n#### Delete request \"Failed\"\n\nA HTTP `400 Bad Request` error response will be returned if the tileset with the passed-in `tilesetId` is not found. \n\nHere is a sample error response:\n\n
\n\n```json\n{\n \"error\": {\n \"code\": \"400 BadRequest\",\n \"message\": \"Bad request - Tileset Id: d85b5b27-5fc4-4599-8b50-47160e90f8ce does not exist.\"\n }\n}\n```", - "operationId": "Tileset_DeletePreview", - "x-ms-examples": { - "Delete a created tileset": { - "$ref": "./examples/Delete.json" - } - }, - "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" - }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/TilesetId" - } - ], - "responses": { - "204": { - "description": "Tileset delete request completed successfully." - }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" - } - } - } - } - }, - "definitions": { - "TilesetListResponse": { - "description": "The response model for the Tileset List API. Returns a list of all tilesets.", - "type": "object", - "properties": { - "tilesets": { - "description": "A list of all tilesets.", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/TilesetDetailInfo" - } - } - } - }, - "TilesetDetailInfo": { - "description": "Detail information for the data.", - "type": "object", - "properties": { - "tilesetId": { - "description": "The unique tileset id for the tileset.", - "type": "string", - "readOnly": true - }, - "datasetId": { - "description": "The unique dataset Id used to create the tileset.", - "type": "string", - "readOnly": true - }, - "description": { - "description": "The description the caller provided when creating the tileset. Maximum length 1024 characters.", - "type": "string", - "readOnly": true - }, - "minZoom": { - "description": "The lowest tile zoom level tile generated for the tileset.", - "type": "integer", - "readOnly": true - }, - "maxZoom": { - "description": "The highest tile zoom level tile generated for the tileset.", - "type": "integer", - "readOnly": true - }, - "bbox": { - "description": "Bounding box which all features of the tileset lay within. Projection used - EPSG:3857. Format : 'minLon, minLat, maxLon, maxLat'.", - "type": "array", - "readOnly": true, - "items": { - "type": "number" - } - } - } - } - } -} diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/DeleteFeature.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/DeleteFeature.json deleted file mode 100644 index 3428e57a2a85..000000000000 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/DeleteFeature.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "parameters": { - "geography": "us", - "api-version": "1.0", - "datasetId": "018fda98-e638-0edf-5ef7-28491ff3bed4", - "subscription-key": "[subscription-key]", - "collectionId": "facility", - "featureId": "FCL39" - }, - "responses": { - "204": {}, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } - } - } -} diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetCollection.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetCollection.json deleted file mode 100644 index 082b1bbf184d..000000000000 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetCollection.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "parameters": { - "geography": "us", - "api-version": "1.0", - "datasetId": "018fda98-e638-0edf-5ef7-28491ff3bed4", - "subscription-key": "[subscription-key]", - "collectionId": "unit" - }, - "responses": { - "200": { - "body": { - "name": "unit", - "description": "A physical and non-overlapping area which might be occupied and traversed by a navigating agent. Can be a hallway, a room, a courtyard, etc. It is surrounded by physical obstruction (wall), unless the isOpenArea attribute is equal to true, and one must add openings where the obstruction shouldn't be there. If isOpenArea attribute is equal to true, all the sides are assumed open to the surroundings and walls are to be added where needed. Walls for open areas are represented as a lineElement or areaElement with isObstruction equal to true.", - "links": [ - { - "href": "https://us.atlas.microsoft.com/wfs/dataset/4a25a249-8bd4-3f78-8cd8-eff11751d35b/collections/unit/definition?api-version=1.0", - "rel": "describedBy", - "title": "Metadata catalogue for unit" - }, - { - "href": "https://us.atlas.microsoft.com/wfs/dataset/4a25a249-8bd4-3f78-8cd8-eff11751d35b/collections/unit/items?api-version=1.0", - "rel": "data", - "title": "unit" - }, - { - "href": "https://us.atlas.microsoft.com/wfs/dataset/4a25a249-8bd4-3f78-8cd8-eff11751d35b/collections/unit?api-version=1.0", - "rel": "self", - "title": "Metadata catalogue for unit" - } - ] - } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } - } - } -} diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetCollectionDefinition.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetCollectionDefinition.json deleted file mode 100644 index c46a541b876b..000000000000 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetCollectionDefinition.json +++ /dev/null @@ -1,197 +0,0 @@ -{ - "parameters": { - "geography": "us", - "api-version": "1.0", - "datasetId": "018fda98-e638-0edf-5ef7-28491ff3bed4", - "subscription-key": "[subscription-key]", - "collectionId": "unit" - }, - "responses": { - "200": { - "body": { - "idPrefix": "UNIT", - "name": "unit", - "description": "A physical and non-overlapping area which might be occupied and traversed by a navigating agent. Can be a hallway, a room, a courtyard, etc. It is surrounded by physical obstruction (wall), unless the isOpenArea attribute is equal to true, and one must add openings where the obstruction shouldn't be there. If isOpenArea attribute is equal to true, all the sides are assumed open to the surroundings and walls are to be added where needed. Walls for open areas are represented as a lineElement or areaElement with isObstruction equal to true.", - "geometryType": "Polygon", - "featureTypes": [], - "properties": [ - { - "name": "externalId", - "required": false, - "type": "text" - }, - { - "name": "originalId", - "required": false, - "type": "text" - }, - { - "name": "categoryId", - "required": true, - "type": { - "featureId": "category" - } - }, - { - "name": "isOpenArea", - "required": false, - "type": "boolean" - }, - { - "name": "navigableBy", - "required": false, - "type": { - "array": { - "enum": [ - "pedestrian", - "wheelchair", - "machine", - "bicycle", - "automobile", - "hiredAuto", - "bus", - "railcar", - "emergency", - "ferry", - "boat" - ] - } - } - }, - { - "name": "isRoutable", - "required": false, - "type": "boolean" - }, - { - "name": "routeThroughBehavior", - "required": false, - "type": { - "enum": [ - "disallowed", - "allowed", - "preferred" - ] - } - }, - { - "name": "nonPublic", - "required": false, - "type": "boolean" - }, - { - "name": "levelId", - "required": true, - "type": { - "featureId": "level" - } - }, - { - "name": "occupants", - "required": false, - "type": { - "array": { - "featureId": "directoryInfo" - } - } - }, - { - "name": "addressId", - "required": false, - "type": { - "featureId": "directoryInfo" - } - }, - { - "name": "addressRoomNumber", - "required": false, - "type": "text" - }, - { - "name": "name", - "required": false, - "type": "text" - }, - { - "name": "nameSubtitle", - "required": false, - "type": "text" - }, - { - "name": "nameAlt", - "required": false, - "type": "text" - }, - { - "name": "anchorPoint", - "required": false, - "type": { - "geometry": [ - "Point" - ], - "isFragmented": false, - "srid": 4326 - } - } - ], - "links": [ - { - "href": "https://us.atlas.microsoft.com/wfs/dataset/4a25a249-8bd4-3f78-8cd8-eff11751d35b/collections/unit/definition?api-version=1.0", - "rel": "self", - "title": "Metadata catalogue for unit" - }, - { - "href": "https://us.atlas.microsoft.com/wfs/dataset/4a25a249-8bd4-3f78-8cd8-eff11751d35b/collections/unit/items?api-version=1.0", - "rel": "data", - "title": "unit" - } - ] - } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } - } - } -} diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetCollections.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetCollections.json deleted file mode 100644 index 3e2cac9af8e7..000000000000 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetCollections.json +++ /dev/null @@ -1,298 +0,0 @@ -{ - "parameters": { - "geography": "us", - "api-version": "1.0", - "datasetId": "018fda98-e638-0edf-5ef7-28491ff3bed4", - "subscription-key": "[subscription-key]" - }, - "responses": { - "200": { - "body": { - "collections": [ - { - "name": "unit", - "description": "A physical and non-overlapping area which might be occupied and traversed by a navigating agent. Can be a hallway, a room, a courtyard, etc. It is surrounded by physical obstruction (wall), unless the isOpenArea attribute is equal to true, and one must add openings where the obstruction shouldn't be there. If isOpenArea attribute is equal to true, all the sides are assumed open to the surroundings and walls are to be added where needed. Walls for open areas are represented as a lineElement or areaElement with isObstruction equal to true.", - "links": [ - { - "href": "https://us.atlas.microsoft.com/wfs/dataset/4a25a249-8bd4-3f78-8cd8-eff11751d35b/collections/unit/definition?api-version=1.0", - "rel": "describedBy", - "title": "Metadata catalogue for unit" - }, - { - "href": "https://us.atlas.microsoft.com/wfs/dataset/4a25a249-8bd4-3f78-8cd8-eff11751d35b/collections/unit/items?api-version=1.0", - "rel": "data", - "title": "unit" - }, - { - "href": "https://us.atlas.microsoft.com/wfs/dataset/4a25a249-8bd4-3f78-8cd8-eff11751d35b/collections/unit?api-version=1.0", - "rel": "self", - "title": "Metadata catalogue for unit" - } - ] - }, - { - "name": "zone", - "description": "A virtual area. ex, wifi zone, emergency assembly area. Zones can be used as destinations but not meant for through traffic.", - "links": [ - { - "href": "https://us.atlas.microsoft.com/wfs/dataset/4a25a249-8bd4-3f78-8cd8-eff11751d35b/collections/zone/definition?api-version=1.0", - "rel": "describedBy", - "title": "Metadata catalogue for zone" - }, - { - "href": "https://us.atlas.microsoft.com/wfs/dataset/4a25a249-8bd4-3f78-8cd8-eff11751d35b/collections/zone/items?api-version=1.0", - "rel": "data", - "title": "zone" - }, - { - "href": "https://us.atlas.microsoft.com/wfs/dataset/4a25a249-8bd4-3f78-8cd8-eff11751d35b/collections/zone?api-version=1.0", - "rel": "self", - "title": "Metadata catalogue for zone" - } - ] - }, - { - "name": "level", - "description": "An indication of the extent and vertical position of a set of features.", - "links": [ - { - "href": "https://us.atlas.microsoft.com/wfs/dataset/4a25a249-8bd4-3f78-8cd8-eff11751d35b/collections/level/definition?api-version=1.0", - "rel": "describedBy", - "title": "Metadata catalogue for level" - }, - { - "href": "https://us.atlas.microsoft.com/wfs/dataset/4a25a249-8bd4-3f78-8cd8-eff11751d35b/collections/level/items?api-version=1.0", - "rel": "data", - "title": "level" - }, - { - "href": "https://us.atlas.microsoft.com/wfs/dataset/4a25a249-8bd4-3f78-8cd8-eff11751d35b/collections/level?api-version=1.0", - "rel": "self", - "title": "Metadata catalogue for level" - } - ] - }, - { - "name": "facility", - "description": "Area of the site, building footprint etc.", - "links": [ - { - "href": "https://us.atlas.microsoft.com/wfs/dataset/4a25a249-8bd4-3f78-8cd8-eff11751d35b/collections/facility/definition?api-version=1.0", - "rel": "describedBy", - "title": "Metadata catalogue for facility" - }, - { - "href": "https://us.atlas.microsoft.com/wfs/dataset/4a25a249-8bd4-3f78-8cd8-eff11751d35b/collections/facility/items?api-version=1.0", - "rel": "data", - "title": "facility" - }, - { - "href": "https://us.atlas.microsoft.com/wfs/dataset/4a25a249-8bd4-3f78-8cd8-eff11751d35b/collections/facility?api-version=1.0", - "rel": "self", - "title": "Metadata catalogue for facility" - } - ] - }, - { - "name": "verticalPenetration", - "description": "An area that, when used in a set, represents a method of navigating vertically between levels. It can be used to model stairs, elevators etc. Geometry can overlap units and other vertical penetration features.", - "links": [ - { - "href": "https://us.atlas.microsoft.com/wfs/dataset/4a25a249-8bd4-3f78-8cd8-eff11751d35b/collections/verticalPenetration/definition?api-version=1.0", - "rel": "describedBy", - "title": "Metadata catalogue for verticalPenetration" - }, - { - "href": "https://us.atlas.microsoft.com/wfs/dataset/4a25a249-8bd4-3f78-8cd8-eff11751d35b/collections/verticalPenetration/items?api-version=1.0", - "rel": "data", - "title": "verticalPenetration" - }, - { - "href": "https://us.atlas.microsoft.com/wfs/dataset/4a25a249-8bd4-3f78-8cd8-eff11751d35b/collections/verticalPenetration?api-version=1.0", - "rel": "self", - "title": "Metadata catalogue for verticalPenetration" - } - ] - }, - { - "name": "opening", - "description": "A usually-traversable boundary between two units, or a unit and verticalPenetration.", - "links": [ - { - "href": "https://us.atlas.microsoft.com/wfs/dataset/4a25a249-8bd4-3f78-8cd8-eff11751d35b/collections/opening/definition?api-version=1.0", - "rel": "describedBy", - "title": "Metadata catalogue for opening" - }, - { - "href": "https://us.atlas.microsoft.com/wfs/dataset/4a25a249-8bd4-3f78-8cd8-eff11751d35b/collections/opening/items?api-version=1.0", - "rel": "data", - "title": "opening" - }, - { - "href": "https://us.atlas.microsoft.com/wfs/dataset/4a25a249-8bd4-3f78-8cd8-eff11751d35b/collections/opening?api-version=1.0", - "rel": "self", - "title": "Metadata catalogue for opening" - } - ] - }, - { - "name": "directoryInfo", - "description": "Name, address, phone number, website, and hours of operation for a unit, facility, or an occupant of a unit or facility.", - "links": [ - { - "href": "https://us.atlas.microsoft.com/wfs/dataset/4a25a249-8bd4-3f78-8cd8-eff11751d35b/collections/directoryInfo/definition?api-version=1.0", - "rel": "describedBy", - "title": "Metadata catalogue for directoryInfo" - }, - { - "href": "https://us.atlas.microsoft.com/wfs/dataset/4a25a249-8bd4-3f78-8cd8-eff11751d35b/collections/directoryInfo/items?api-version=1.0", - "rel": "data", - "title": "directoryInfo" - }, - { - "href": "https://us.atlas.microsoft.com/wfs/dataset/4a25a249-8bd4-3f78-8cd8-eff11751d35b/collections/directoryInfo?api-version=1.0", - "rel": "self", - "title": "Metadata catalogue for directoryInfo" - } - ] - }, - { - "name": "pointElement", - "description": "A point feature in a unit, such as a first aid kit or a sprinkler head.", - "links": [ - { - "href": "https://us.atlas.microsoft.com/wfs/dataset/4a25a249-8bd4-3f78-8cd8-eff11751d35b/collections/pointElement/definition?api-version=1.0", - "rel": "describedBy", - "title": "Metadata catalogue for pointElement" - }, - { - "href": "https://us.atlas.microsoft.com/wfs/dataset/4a25a249-8bd4-3f78-8cd8-eff11751d35b/collections/pointElement/items?api-version=1.0", - "rel": "data", - "title": "pointElement" - }, - { - "href": "https://us.atlas.microsoft.com/wfs/dataset/4a25a249-8bd4-3f78-8cd8-eff11751d35b/collections/pointElement?api-version=1.0", - "rel": "self", - "title": "Metadata catalogue for pointElement" - } - ] - }, - { - "name": "lineElement", - "description": "A line feature in a unit, such as a dividing wall, window.", - "links": [ - { - "href": "https://us.atlas.microsoft.com/wfs/dataset/4a25a249-8bd4-3f78-8cd8-eff11751d35b/collections/lineElement/definition?api-version=1.0", - "rel": "describedBy", - "title": "Metadata catalogue for lineElement" - }, - { - "href": "https://us.atlas.microsoft.com/wfs/dataset/4a25a249-8bd4-3f78-8cd8-eff11751d35b/collections/lineElement/items?api-version=1.0", - "rel": "data", - "title": "lineElement" - }, - { - "href": "https://us.atlas.microsoft.com/wfs/dataset/4a25a249-8bd4-3f78-8cd8-eff11751d35b/collections/lineElement?api-version=1.0", - "rel": "self", - "title": "Metadata catalogue for lineElement" - } - ] - }, - { - "name": "areaElement", - "description": "A polygon feature in a unit, such as an area open to below, an obstruction like an island in a unit.", - "links": [ - { - "href": "https://us.atlas.microsoft.com/wfs/dataset/4a25a249-8bd4-3f78-8cd8-eff11751d35b/collections/areaElement/definition?api-version=1.0", - "rel": "describedBy", - "title": "Metadata catalogue for areaElement" - }, - { - "href": "https://us.atlas.microsoft.com/wfs/dataset/4a25a249-8bd4-3f78-8cd8-eff11751d35b/collections/areaElement/items?api-version=1.0", - "rel": "data", - "title": "areaElement" - }, - { - "href": "https://us.atlas.microsoft.com/wfs/dataset/4a25a249-8bd4-3f78-8cd8-eff11751d35b/collections/areaElement?api-version=1.0", - "rel": "self", - "title": "Metadata catalogue for areaElement" - } - ] - }, - { - "name": "category", - "description": "Category names. e.g. \"room.conference\". The isRoutable attribute puts a feature with that category on the routing graph. The routeThroughBehavior attribute determines whether a feature can be used for through traffic or not.", - "links": [ - { - "href": "https://us.atlas.microsoft.com/wfs/dataset/4a25a249-8bd4-3f78-8cd8-eff11751d35b/collections/category/definition?api-version=1.0", - "rel": "describedBy", - "title": "Metadata catalogue for category" - }, - { - "href": "https://us.atlas.microsoft.com/wfs/dataset/4a25a249-8bd4-3f78-8cd8-eff11751d35b/collections/category/items?api-version=1.0", - "rel": "data", - "title": "category" - }, - { - "href": "https://us.atlas.microsoft.com/wfs/dataset/4a25a249-8bd4-3f78-8cd8-eff11751d35b/collections/category?api-version=1.0", - "rel": "self", - "title": "Metadata catalogue for category" - } - ] - } - ], - "links": [ - { - "href": "https://us.atlas.microsoft.com/wfs/dataset/4a25a249-8bd4-3f78-8cd8-eff11751d35b/collections?api-version=1.0", - "rel": "self" - } - ] - } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } - } - } -} diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetConformance.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetConformance.json deleted file mode 100644 index a1c712147b7b..000000000000 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetConformance.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "parameters": { - "geography": "us", - "api-version": "1.0", - "datasetId": "018fda98-e638-0edf-5ef7-28491ff3bed4", - "subscription-key": "[subscription-key]" - }, - "responses": { - "200": { - "body": { - "conformsTo": [ - "http://www.opengis.net/spec/wfs-1/3.0/req/core", - "http://www.opengis.net/spec/wfs-1/3.0/req/oas30", - "http://www.opengis.net/spec/wfs-1/3.0/req/geojson", - "http://tempuri.org/wfs/3.0/edit" - ] - } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } - } - } -} diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetFeature.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetFeature.json deleted file mode 100644 index 76cab8fb1278..000000000000 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetFeature.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "parameters": { - "geography": "us", - "api-version": "1.0", - "datasetId": "018fda98-e638-0edf-5ef7-28491ff3bed4", - "subscription-key": "[subscription-key]", - "collectionId": "unit", - "featureId": "UNIT39" - }, - "responses": { - "200": { - "body": { - "feature": { - "type": "Feature", - "geometry": { - "type": "Polygon", - "coordinates": [ - [ - [ - 139.63304057829211, - 35.457686686108559 - ], - [ - 139.63296283234274, - 35.457783904258683 - ], - [ - 139.63308672404617, - 35.457850229062018 - ], - [ - 139.63314516916711, - 35.457777145699858 - ], - [ - 139.63312747036289, - 35.457767670747167 - ], - [ - 139.63314677109963, - 35.457743535881377 - ], - [ - 139.63304057829211, - 35.457686686108559 - ] - ] - ] - }, - "properties": { - "originalId": "ddbbb583-4621-4e11-8859-299d1057e843", - "categoryId": "CTG10", - "isOpenArea": false, - "navigableBy": [ - "pedestrian" - ], - "isRoutable": false, - "routeThroughBehavior": "allowed", - "nonPublic": false, - "levelId": "LVL18", - "occupants": [], - "addressId": "DIR16", - "addressRoomNumber": "", - "name": "21N13", - "nameSubtitle": "", - "nameAlt": "" - }, - "id": "UNIT39", - "featureType": "" - }, - "links": [ - { - "href": "https://us.atlas.microsoft.com/wfs/dataset/4a25a249-8bd4-3f78-8cd8-eff11751d35b/collections/unit/items/UNIT39?api-version=1.0", - "rel": "self" - }, - { - "href": "https://us.atlas.microsoft.com/wfs/dataset/4a25a249-8bd4-3f78-8cd8-eff11751d35b/collections/unit?api-version=1.0", - "rel": "data" - } - ] - } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } - } - } -} diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetFeatures.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetFeatures.json deleted file mode 100644 index 428b37befd66..000000000000 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetFeatures.json +++ /dev/null @@ -1,138 +0,0 @@ -{ - "parameters": { - "geography": "us", - "api-version": "1.0", - "datasetId": "018fda98-e638-0edf-5ef7-28491ff3bed4", - "subscription-key": "[subscription-key]", - "collectionId": "unit", - "limit": 1, - "bbox": "-122, 47, -120, 46" - }, - "responses": { - "200": { - "body": { - "type": "FeatureCollection", - "features": [ - { - "type": "Feature", - "geometry": { - "type": "Polygon", - "coordinates": [ - [ - [ - 139.63304057829211, - 35.457686686108559 - ], - [ - 139.63296283234274, - 35.457783904258683 - ], - [ - 139.63308672404617, - 35.457850229062018 - ], - [ - 139.63314516916711, - 35.457777145699858 - ], - [ - 139.63312747036289, - 35.457767670747167 - ], - [ - 139.63314677109963, - 35.457743535881377 - ], - [ - 139.63304057829211, - 35.457686686108559 - ] - ] - ] - }, - "properties": { - "originalId": "ddbbb583-4621-4e11-8859-299d1057e843", - "categoryId": "CTG10", - "isOpenArea": false, - "navigableBy": [ - "pedestrian" - ], - "isRoutable": false, - "routeThroughBehavior": "allowed", - "nonPublic": false, - "levelId": "LVL18", - "occupants": [], - "addressId": "DIR16", - "addressRoomNumber": "", - "name": "21N13", - "nameSubtitle": "", - "nameAlt": "" - }, - "id": "UNIT39", - "featureType": "" - } - ], - "numberReturned": 1, - "links": [ - { - "href": "https://us.atlas.microsoft.com/wfs/dataset/4a25a249-8bd4-3f78-8cd8-eff11751d35b/collections/unit/items?api-version=1.0&limit=1", - "rel": "self" - }, - { - "href": "https://us.atlas.microsoft.com/wfs/dataset/4a25a249-8bd4-3f78-8cd8-eff11751d35b/collections/unit?api-version=1.0", - "rel": "data" - }, - { - "href": "https://us.atlas.microsoft.com/wfs/dataset/4a25a249-8bd4-3f78-8cd8-eff11751d35b/collections/unit/items?n=PMRG4ZLYOQRDUMJMEJYHEZLWEI5C2ML5&api-version=1.0&limit=1", - "rel": "next" - } - ] - } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } - } - } -} diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetLandingPage.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetLandingPage.json deleted file mode 100644 index ee083a1143cd..000000000000 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/examples/GetLandingPage.json +++ /dev/null @@ -1,86 +0,0 @@ -{ - "parameters": { - "geography": "us", - "api-version": "1.0", - "datasetId": "018fda98-e638-0edf-5ef7-28491ff3bed4", - "subscription-key": "[subscription-key]" - }, - "responses": { - "200": { - "body": { - "links": [ - { - "href": "https://us.atlas.microsoft.com/wfs/datasets/018fda98-e638-0edf-5ef7-28491ff3bed4", - "rel": "self", - "title": "Azure Maps WFS" - }, - { - "href": "https://us.atlas.microsoft.com/wfs/datasets/018fda98-e638-0edf-5ef7-28491ff3bed4/api", - "rel": "service", - "title": "The API definition" - }, - { - "href": "https://us.atlas.microsoft.com/wfs/datasets/018fda98-e638-0edf-5ef7-28491ff3bed4/conformance", - "rel": "conformance", - "title": "WFS 3.0 conformance classes implemented by this server" - }, - { - "href": "https://us.atlas.microsoft.com/wfs/datasets/018fda98-e638-0edf-5ef7-28491ff3bed4/version", - "rel": "data", - "title": "The version information" - }, - { - "href": "https://us.atlas.microsoft.com/wfs/datasets/018fda98-e638-0edf-5ef7-28491ff3bed4/collections", - "rel": "data", - "title": "Metadata about the feature collections" - } - ] - } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } - } - } -} diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json deleted file mode 100644 index fa1d7d6b4640..000000000000 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/1.0/wfs.json +++ /dev/null @@ -1,815 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Azure Maps Web Feature Service", - "version": "1.0", - "description": "Azure Maps Web Feature REST APIs" - }, - "x-ms-parameterized-host": { - "hostTemplate": "{geography}.atlas.microsoft.com", - "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/GeographicResourceLocation" - } - ] - }, - "schemes": [ - "https" - ], - "consumes": [], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - }, - { - "SubscriptionKeyInHeader": [] - }, - { - "SubscriptionKeyInQuery": [] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure Role Based Access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure Role based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Note\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* The Azure role based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, Powershell, CLI, Azure SDKs, or REST APIs.\n* Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", - "scopes": { - "user_impersonation": "impersonate your user account" - } - }, - "SubscriptionKeyInHeader": { - "type": "apiKey", - "name": "subscription-key", - "in": "header" - }, - "SubscriptionKeyInQuery": { - "type": "apiKey", - "name": "subscription-key", - "in": "query" - } - }, - "responses": {}, - "parameters": { - "LimitWfs": { - "name": "limit", - "in": "query", - "type": "number", - "minimum": 1, - "maximum": 50, - "description": "The optional limit parameter limits the number of features that are presented in the response document.\nOnly features that are on the first level of the collection in the response document are counted. Nested objects contained within the explicitly requested features shall not be counted.\n* Minimum = 1 * Maximum = 50 * Default = 10", - "x-ms-parameter-location": "method" - }, - "Filter": { - "name": "filter", - "in": "query", - "type": "string", - "description": "Filter expression to search for features with specific property values in a given collection. Only feature properties of scalar type and equals operator are supported.\nThis is a special parameter where the parameter name is a case sensitive property name. The scheme for this parameter is {property name}={property value}. Unless \"filter\" is one of the property names in the collection, \"filter\" should not be used as a parameter name. To search for features with \"name\" property value \"21N13\", use \"name=21N13\".\nMultiple filters are supported and should be represented as multiple query parameters. E.g., =&= String values are case sensitive.", - "x-ms-parameter-location": "method" - }, - "Bbox": { - "name": "bbox", - "in": "query", - "type": "string", - "description": "Only features that have a geometry that intersects the supplied bounding box are selected.\n* Lower left corner, coordinate axis 1 * Lower left corner, coordinate axis 2 * Upper right corner, coordinate axis 1 * Upper right corner, coordinate axis 2\nThe coordinate reference system of the values is WGS84 longitude/latitude (http://www.opengis.net/def/crs/OGC/1.3/CRS84) unless a different coordinate reference system is specified in the parameter `bbox-crs`.\nFor WGS84 longitude/latitude the values are in most cases the sequence of minimum longitude, minimum latitude, maximum longitude and maximum latitude. However, in cases where the box spans the antimeridian the first value (west-most box edge) is larger than the third value (east-most box edge).", - "x-ms-parameter-location": "method" - }, - "CollectionId": { - "name": "collectionId", - "in": "path", - "type": "string", - "required": true, - "description": "Identifier (name) of a specific collection", - "x-ms-parameter-location": "method" - }, - "FeatureId": { - "name": "featureId", - "in": "path", - "type": "string", - "description": "Local identifier of a specific feature", - "required": true, - "x-ms-parameter-location": "method" - } - }, - "paths": { - "/wfs/datasets/{datasetId}/": { - "get": { - "description": "Creator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. The Web Feature Service (WFS) API is part of Creator. WFS API follows the [Open Geospatial Consortium API standard for Features](http://docs.opengeospatial.org/is/17-069r3/17-069r3.html) to query [Datasets](https://docs.microsoft.com/en-us/rest/api/maps/dataset/createpreview). \nA dataset consists of multiple feature collections. A feature collection is a collection of features of a similar type, based on a common schema.\nThe Get Landing Page API provides links to the API definition, the Conformance statements and the metadata about the feature data in this dataset.", - "operationId": "WFS_GetLandingPagePreview", - "x-ms-examples": { - "GetLandingPage": { - "$ref": "./examples/GetLandingPage.json" - } - }, - "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" - }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" - }, - { - "$ref": "../../../Dataset/preview/1.0/dataset.json#/parameters/DatasetId" - } - ], - "responses": { - "200": { - "description": "Ok", - "schema": { - "$ref": "#/definitions/LandingPageResponse" - } - }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" - } - } - } - }, - "/wfs/datasets/{datasetId}/conformance": { - "get": { - "description": "Creator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. The Web Feature Service (WFS) API is part of Creator. WFS API follows the [Open Geospatial Consortium API standard for Features](http://docs.opengeospatial.org/is/17-069r3/17-069r3.html) to query [Datasets](https://docs.microsoft.com/en-us/rest/api/maps/dataset/createpreview). \nA dataset consists of multiple feature collections. A feature collection is a collection of features of a similar type, based on a common schema.\nThe Get Requirements Classes lists all requirements classes specified in the standard that the server conforms to.", - "operationId": "WFS_GetConformancePreview", - "x-ms-examples": { - "GetConformance": { - "$ref": "./examples/GetConformance.json" - } - }, - "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" - }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" - }, - { - "$ref": "../../../Dataset/preview/1.0/dataset.json#/parameters/DatasetId" - } - ], - "responses": { - "200": { - "description": "Ok", - "schema": { - "$ref": "#/definitions/ConformanceResponse" - } - }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" - } - } - } - }, - "/wfs/datasets/{datasetId}/collections": { - "get": { - "description": "Creator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. The Web Feature Service (WFS) API is part of Creator. WFS API follows the [Open Geospatial Consortium API standard for Features](http://docs.opengeospatial.org/is/17-069r3/17-069r3.html) to query [Datasets](https://docs.microsoft.com/en-us/rest/api/maps/dataset/createpreview). \nA dataset consists of multiple feature collections. A feature collection is a collection of features of a similar type, based on a common schema.\nThe Collections Description API provides descriptions of all the collections in a given dataset.", - "operationId": "WFS_GetCollectionsPreview", - "x-ms-examples": { - "GetCollections": { - "$ref": "./examples/GetCollections.json" - } - }, - "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" - }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" - }, - { - "$ref": "../../../Dataset/preview/1.0/dataset.json#/parameters/DatasetId" - } - ], - "responses": { - "200": { - "description": "Ok", - "schema": { - "$ref": "#/definitions/CollectionsResponse" - } - }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" - } - } - } - }, - "/wfs/datasets/{datasetId}/collections/{collectionId}": { - "get": { - "description": "Creator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. The Web Feature Service (WFS) API is part of Creator. WFS API follows the [Open Geospatial Consortium API standard for Features](http://docs.opengeospatial.org/is/17-069r3/17-069r3.html) to query [Datasets](https://docs.microsoft.com/en-us/rest/api/maps/dataset/createpreview). \nA dataset consists of multiple feature collections. A feature collection is a collection of features of a similar type, based on a common schema.\n \nThe Collection Description API provides the description of a given collection. It includes the links to the operations that can be performed on the collection.", - "operationId": "WFS_GetCollectionPreview", - "x-ms-examples": { - "GetCollection": { - "$ref": "./examples/GetCollection.json" - } - }, - "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" - }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" - }, - { - "$ref": "../../../Dataset/preview/1.0/dataset.json#/parameters/DatasetId" - }, - { - "$ref": "#/parameters/CollectionId" - } - ], - "responses": { - "200": { - "description": "Ok", - "schema": { - "$ref": "#/definitions/CollectionInfo" - } - }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" - } - } - } - }, - "/wfs/datasets/{datasetId}/collections/{collectionId}/definition": { - "get": { - "description": "Creator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. The Web Feature Service (WFS) API is part of Creator. WFS API follows the [Open Geospatial Consortium API standard for Features](http://docs.opengeospatial.org/is/17-069r3/17-069r3.html) to query [Datasets](https://docs.microsoft.com/en-us/rest/api/maps/dataset/createpreview). \nA dataset consists of multiple feature collections. A feature collection is a collection of features of a similar type, based on a common schema.\n \nThe Collection Definition API provides the detailed data model of a given collection.", - "operationId": "WFS_GetCollectionDefinitionPreview", - "x-ms-examples": { - "GetCollectionDefinition": { - "$ref": "./examples/GetCollectionDefinition.json" - } - }, - "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" - }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" - }, - { - "$ref": "../../../Dataset/preview/1.0/dataset.json#/parameters/DatasetId" - }, - { - "$ref": "#/parameters/CollectionId" - } - ], - "responses": { - "200": { - "description": "Ok", - "schema": { - "$ref": "#/definitions/CollectionDefinitionResponse" - } - }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" - } - } - } - }, - "/wfs/datasets/{datasetId}/collections/{collectionId}/items": { - "get": { - "description": "Creator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. The Web Feature Service (WFS) API is part of Creator. WFS API follows the [Open Geospatial Consortium API standard for Features](http://docs.opengeospatial.org/is/17-069r3/17-069r3.html) to query [Datasets](https://docs.microsoft.com/en-us/rest/api/maps/dataset/createpreview). \nA dataset consists of multiple feature collections. A feature collection is a collection of features of a similar type, based on a common schema.\nThe Get Features API returns the list of features in the given collection.", - "operationId": "WFS_GetFeaturesPreview", - "x-ms-examples": { - "GetFeatures": { - "$ref": "./examples/GetFeatures.json" - } - }, - "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" - }, - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" - }, - { - "$ref": "../../../Dataset/preview/1.0/dataset.json#/parameters/DatasetId" - }, - { - "$ref": "#/parameters/CollectionId" - }, - { - "$ref": "#/parameters/LimitWfs" - }, - { - "$ref": "#/parameters/Bbox" - }, - { - "$ref": "#/parameters/Filter" - } - ], - "responses": { - "200": { - "description": "Ok", - "schema": { - "$ref": "#/definitions/ExtendedGeoJsonFeatureCollection" - } - }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" - } - } - } - }, - "/wfs/datasets/{datasetId}/collections/{collectionId}/items/{featureId}": { - "get": { - "description": "Creator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. The Web Feature Service (WFS) API is part of Creator. WFS API follows the [Open Geospatial Consortium API standard for Features](http://docs.opengeospatial.org/is/17-069r3/17-069r3.html) to query [Datasets](https://docs.microsoft.com/en-us/rest/api/maps/dataset/createpreview). \nA dataset consists of multiple feature collections. A feature collection is a collection of features of a similar type, based on a common schema.\nThe Get Feature API returns the feature identified by the provided id in the given collection.", - "operationId": "WFS_GetFeaturePreview", - "x-ms-examples": { - "GetFeature": { - "$ref": "./examples/GetFeature.json" - } - }, - "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" - }, - { - "$ref": "../../../Dataset/preview/1.0/dataset.json#/parameters/DatasetId" - }, - { - "$ref": "#/parameters/CollectionId" - }, - { - "$ref": "#/parameters/FeatureId" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/FeatureResponse" - } - }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" - } - } - }, - "delete": { - "description": "Creator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. The Web Feature Service (WFS) API is part of Creator. WFS API follows the [Open Geospatial Consortium API standard for Features](http://docs.opengeospatial.org/is/17-069r3/17-069r3.html) to query [Datasets](https://docs.microsoft.com/en-us/rest/api/maps/dataset/createpreview). \nA dataset consists of multiple feature collections. A feature collection is a collection of features of a similar type, based on a common schema.\nThe Delete Feature API deletes the feature identified by the provided id in the given collection. At this point this API supports only facility features. Deleting a facility feature deletes all the child features of that facility recursively.", - "operationId": "WFS_DeleteFeaturePreview", - "x-ms-examples": { - "DeleteFeature": { - "$ref": "./examples/DeleteFeature.json" - } - }, - "parameters": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" - }, - { - "$ref": "../../../Dataset/preview/1.0/dataset.json#/parameters/DatasetId" - }, - { - "$ref": "#/parameters/CollectionId" - }, - { - "$ref": "#/parameters/FeatureId" - } - ], - "responses": { - "204": { - "description": "Feature Deleted." - }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" - } - } - } - } - }, - "definitions": { - "LandingPageResponse": { - "type": "object", - "required": [ - "links" - ], - "properties": { - "links": { - "description": "Links to other WFS endpoints.", - "type": "array", - "items": { - "$ref": "#/definitions/WfsEndpointLink" - } - } - } - }, - "ConformanceResponse": { - "type": "object", - "required": [ - "conformsTo" - ], - "properties": { - "conformsTo": { - "description": "List of requirements classes that the server conforms to.", - "type": "array", - "items": { - "type": "string" - }, - "example": [ - "http://www.opengis.net/spec/wfs-1/3.0/req/core", - "http://www.opengis.net/spec/wfs-1/3.0/req/oas30", - "http://www.opengis.net/spec/wfs-1/3.0/req/html", - "http://www.opengis.net/spec/wfs-1/3.0/req/geojson" - ] - } - } - }, - "WfsEndpointLink": { - "description": "Links to other WFS endpoints", - "type": "object", - "required": [ - "href" - ], - "properties": { - "href": { - "description": "The link target.", - "type": "string" - }, - "rel": { - "description": "The relation type.", - "type": "string", - "example": "prev" - }, - "type": { - "description": "A hint indicating what the media type of the result of dereferencing the link should be.", - "type": "string", - "example": "application/geo+json" - }, - "hreflang": { - "description": "A hint indicating what the language of the result of dereferencing the link should be.", - "type": "string", - "example": "en" - }, - "title": { - "description": "Used to label the destination of a link such that it can be used as a human-readable identifier (e.g., a menu entry) in the language indicated by the Content-Language header field (if present).", - "type": "string" - } - } - }, - "CollectionsResponse": { - "type": "object", - "required": [ - "links", - "collections" - ], - "properties": { - "links": { - "description": "Links to other WFS endpoints.", - "type": "array", - "items": { - "$ref": "#/definitions/WfsEndpointLink" - }, - "example": [ - { - "href": "http://data.example.org/collections.json", - "rel": "self", - "type": "application/json", - "title": "this document" - }, - { - "href": "http://data.example.org/collections.html", - "rel": "alternate", - "type": "text/html", - "title": "this document as HTML" - }, - { - "href": "http://schemas.example.org/1.0/foobar.xsd", - "rel": "describedBy", - "type": "application/xml", - "title": "XML schema for Acme Corporation data" - } - ] - }, - "collections": { - "description": "All the collections in a given dataset.", - "type": "array", - "items": { - "$ref": "#/definitions/CollectionInfo" - } - } - } - }, - "CollectionInfo": { - "type": "object", - "required": [ - "name", - "links" - ], - "properties": { - "name": { - "description": "identifier of the collection used, for example, in URIs", - "type": "string", - "example": "buildings" - }, - "title": { - "description": "human readable title of the collection", - "type": "string", - "example": "Buildings" - }, - "description": { - "description": "a description of the features in the collection", - "type": "string", - "example": "Buildings in the city of Bonn." - }, - "links": { - "description": "Links to other WFS endpoints.", - "type": "array", - "items": { - "$ref": "#/definitions/WfsEndpointLink" - }, - "example": [ - { - "href": "http://data.example.org/collections/buildings/items", - "rel": "item", - "type": "application/geo+json", - "title": "Buildings" - }, - { - "href": "http://example.org/concepts/building.html", - "rel": "describedBy", - "type": "text/html", - "title": "Feature catalogue for buildings" - } - ] - } - } - }, - "CollectionDefinitionResponse": { - "description": "collection of GeoJSON features", - "type": "object", - "required": [ - "idPrefix", - "name", - "geometryType", - "featureTypes" - ], - "properties": { - "description": { - "description": "describes the collection", - "type": "string" - }, - "idPrefix": { - "description": "prefix of the collection used", - "type": "string", - "example": "BLD" - }, - "name": { - "description": "identifier of the collection used, for example, in URIs", - "type": "string", - "example": "buildings" - }, - "title": { - "description": "title of collection", - "type": "string", - "example": "Feature Class buildings" - }, - "geometryType": { - "description": "type of geometry returned", - "type": "string", - "enum": [ - "Point", - "MultiPoint", - "LineString", - "MultiLineString", - "Polygon", - "MultiPolygon", - "GeometryCollection" - ], - "x-ms-enum": { - "name": "GeoJsonGeometryType", - "modelAsString": true, - "values": [ - { - "value": "Point", - "description": "`GeoJSON Point` geometry.", - "name": "GeoJsonPoint" - }, - { - "value": "MultiPoint", - "description": "`GeoJSON MultiPoint` geometry.", - "name": "GeoJsonMultiPoint" - }, - { - "value": "LineString", - "description": "`GeoJSON LineString` geometry.", - "name": "GeoJsonLineString" - }, - { - "value": "MultiLineString", - "description": "`GeoJSON MultiLineString` geometry.", - "name": "GeoJsonMultiLineString" - }, - { - "value": "Polygon", - "description": "`GeoJSON Polygon` geometry.", - "name": "GeoJsonPolygon" - }, - { - "value": "MultiPolygon", - "description": "`GeoJSON MultiPolygon` geometry.", - "name": "GeoJsonMultiPolygon" - }, - { - "value": "GeometryCollection", - "description": "`GeoJSON GeometryCollection` geometry.", - "name": "GeoJsonGeometryCollection" - } - ] - } - }, - "featureTypes": { - "description": "type of features returned", - "type": "array", - "items": { - "type": "string" - } - }, - "properties": { - "x-ms-client-flatten": true, - "description": "attributes of the collection used", - "type": "array", - "items": { - "$ref": "#/definitions/DefinitionProperties" - } - }, - "links": { - "description": "Links to other WFS endpoints.", - "type": "array", - "items": { - "$ref": "#/definitions/WfsEndpointLink" - } - } - } - }, - "DefinitionProperties": { - "type": "object", - "required": [ - "name", - "required", - "type" - ], - "properties": { - "name": { - "description": "name of attribute", - "type": "string", - "example": "external_id" - }, - "required": { - "description": "is attribute required", - "type": "boolean" - }, - "type": { - "description": "type of attribute", - "type": "object" - } - } - }, - "ExtendedGeoJsonFeatureCollection": { - "description": "A valid `GeoJSON FeatureCollection` object type extended with numberReturned and links array. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.3) for details.", - "x-ms-discriminator-value": "FeatureCollection", - "type": "object", - "allOf": [ - { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonFeatureCollection" - }, - { - "$ref": "#/definitions/ExtendedGeoJsonFeatureCollectionData" - } - ] - }, - "ExtendedGeoJsonFeatureCollectionData": { - "type": "object", - "properties": { - "numberReturned": { - "description": "Number of returned features.", - "type": "integer" - }, - "links": { - "description": "Links to other WFS endpoints.", - "type": "array", - "items": { - "$ref": "#/definitions/WfsEndpointLink" - } - } - } - }, - "FeatureResponse": { - "type": "object", - "required": [ - "feature" - ], - "properties": { - "feature": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonFeature" - }, - "links": { - "description": "Links to other WFS endpoints.", - "type": "array", - "items": { - "$ref": "#/definitions/WfsEndpointLink" - } - } - } - } - } -} From 3a3822cc5c1a623f8415108a912a8d205885c762 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Wed, 9 Jun 2021 11:57:12 +0200 Subject: [PATCH 192/210] Change api version from common to each service. --- .../Alias/preview/2.0/alias.json | 21 +++++++--- .../Common/preview/1.0/common.json | 18 --------- .../DEM/preview/1.0/elevation.json | 21 +++++++--- .../Microsoft.Maps/Data/preview/2.0/data.json | 21 +++++++--- .../Dataset/preview/2.0/dataset.json | 19 ++++++--- .../preview/2.0/dwgconversion.json | 19 ++++++--- .../preview/2.0/featurestate.json | 25 ++++++++---- .../Geolocation/preview/1.0/geolocation.json | 13 ++++++- .../Mobility/preview/1.0/mobility.json | 25 ++++++++---- .../Render/preview/1.0/render.json | 25 ++++++++---- .../Render/preview/2.0/render.json | 11 +++++- .../Route/preview/1.0/route.json | 25 ++++++++---- .../Search/preview/1.0/search.json | 39 ++++++++++++------- .../Spatial/preview/1.0/spatial.json | 27 ++++++++----- .../Tileset/preview/2.0/tileset.json | 19 ++++++--- .../Timezone/preview/1.0/timezone.json | 21 +++++++--- .../Traffic/preview/1.0/traffic.json | 19 ++++++--- .../Microsoft.Maps/WFS/preview/2.0/wfs.json | 25 ++++++++---- .../Weather/preview/1.0/weather.json | 25 ++++++++---- 19 files changed, 283 insertions(+), 135 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json index 6f9e6b60957c..3078591f30de 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json @@ -56,6 +56,15 @@ }, "responses": {}, "parameters": { + "ApiVersionV2": { + "name": "api-version", + "description": "Version number of Azure Maps API.", + "type": "string", + "in": "query", + "required": true, + "default": "2.0", + "x-ms-parameter-location": "client" + }, "CreateCreatorDataItemId": { "name": "creatorDataItemId", "description": "The unique id that references a creator data item to be aliased.", @@ -92,7 +101,7 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/CreateCreatorDataItemId" @@ -102,7 +111,7 @@ "201": { "description": "Content created successfully. The response body contains the newly created alias id `aliasId`.", "schema": { - "$ref": "#/definitions/AliasCreateResponseV2" + "$ref": "#/definitions/AliasCreateResponse" }, "headers": { "Access-Control-Expose-Headers": { @@ -138,7 +147,7 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "#/parameters/ApiVersionV2" } ], "x-ms-pageable": { @@ -184,7 +193,7 @@ "$ref": "#/parameters/AliasId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/AssignCreatorDataItemId" @@ -227,7 +236,7 @@ "$ref": "#/parameters/AliasId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "#/parameters/ApiVersionV2" } ], "responses": { @@ -264,7 +273,7 @@ "$ref": "#/parameters/AliasId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "#/parameters/ApiVersionV2" } ], "responses": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index 48e4b859999f..9ca057982f2e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -537,24 +537,6 @@ } }, "parameters": { - "ApiVersion": { - "name": "api-version", - "description": "Version number of Azure Maps API.", - "type": "string", - "in": "query", - "required": true, - "default": "1.0", - "x-ms-parameter-location": "client" - }, - "ApiVersionV2": { - "name": "api-version", - "description": "Version number of Azure Maps API.", - "type": "string", - "in": "query", - "required": true, - "default": "2.0", - "x-ms-parameter-location": "client" - }, "ClientId": { "name": "x-ms-client-id", "description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from the Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.", diff --git a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json index b0b102bf1d18..84f212ace6b2 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json +++ b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json @@ -55,6 +55,17 @@ } }, "responses": {}, + "parameters": { + "ApiVersion": { + "name": "api-version", + "description": "Version number of Azure Maps API.", + "type": "string", + "in": "query", + "required": true, + "default": "1.0", + "x-ms-parameter-location": "client" + } + }, "paths": { "/elevation/point/{format}": { "get": { @@ -71,7 +82,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -131,7 +142,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -189,7 +200,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -257,7 +268,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -323,7 +334,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json index 9a9a2024ad1b..7f69cb37b003 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json @@ -56,6 +56,15 @@ }, "responses": {}, "parameters": { + "ApiVersionV2": { + "name": "api-version", + "description": "Version number of Azure Maps API.", + "type": "string", + "in": "query", + "required": true, + "default": "2.0", + "x-ms-parameter-location": "client" + }, "UploadDataFormat": { "name": "dataFormat", "x-ms-client-name": "UploadDataFormat", @@ -133,7 +142,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/UploadDataDescription" @@ -191,7 +200,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "#/parameters/ApiVersionV2" } ], "responses": { @@ -237,7 +246,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/UniqueDataId" @@ -300,7 +309,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/UniqueDataId" @@ -341,7 +350,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/UniqueDataId" @@ -383,7 +392,7 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/DataUploadOperationId" diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json index 94c8d25c7822..6fee32203873 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json @@ -56,6 +56,15 @@ }, "responses": {}, "parameters": { + "ApiVersionV2": { + "name": "api-version", + "description": "Version number of Azure Maps API.", + "type": "string", + "in": "query", + "required": true, + "default": "2.0", + "x-ms-parameter-location": "client" + }, "ConversionIdQuery": { "name": "conversionId", "description": "The unique ID used to create the dataset. The `conversionId` must have been obtained from a successful call to the Conversion Service Convert API and may be provided with multiple query parameters with same name (if more than one is provided).", @@ -112,7 +121,7 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/ConversionIdQuery" @@ -158,7 +167,7 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "#/parameters/ApiVersionV2" } ], "x-ms-pageable": { @@ -204,7 +213,7 @@ "$ref": "#/parameters/DatasetId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "#/parameters/ApiVersionV2" } ], "responses": { @@ -241,7 +250,7 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/DatasetId" @@ -283,7 +292,7 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/DatasetOperationId" diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json index cb84cdcafa5d..f6ca963e5b3d 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json @@ -56,6 +56,15 @@ }, "responses": {}, "parameters": { + "ApiVersionV2": { + "name": "api-version", + "description": "Version number of Azure Maps API.", + "type": "string", + "in": "query", + "required": true, + "default": "2.0", + "x-ms-parameter-location": "client" + }, "UdidQuery": { "name": "udid", "description": "The unique data id for the content. The `udid` must have been obtained from a successful [Data Upload API](https://docs.microsoft.com/en-us/rest/api/maps/data%20v2/uploadpreview) call.", @@ -115,7 +124,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/UdidQuery" @@ -164,7 +173,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "#/parameters/ApiVersionV2" } ], "x-ms-pageable": { @@ -210,7 +219,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/ConversionId" @@ -253,7 +262,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/ConversionId" @@ -295,7 +304,7 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/ConversionOperationId" diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json index da8e81e9c3ea..463d3879f086 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json @@ -56,6 +56,15 @@ }, "responses": {}, "parameters": { + "ApiVersionV2": { + "name": "api-version", + "description": "Version number of Azure Maps API.", + "type": "string", + "in": "query", + "required": true, + "default": "2.0", + "x-ms-parameter-location": "client" + }, "FeatureStateSetDescription": { "name": "description", "description": "Description for the stateset. Max length allowed is 1000.", @@ -125,7 +134,7 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/DatasetIdForCreate" @@ -177,7 +186,7 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "#/parameters/ApiVersionV2" } ], "x-ms-pageable": { @@ -220,7 +229,7 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -266,7 +275,7 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -303,7 +312,7 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -345,7 +354,7 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -394,7 +403,7 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -440,7 +449,7 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/StatesetIdInPath" diff --git a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json index 4d763abe7824..82309a34e12e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json +++ b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json @@ -55,6 +55,17 @@ } }, "responses": {}, + "parameters": { + "ApiVersion": { + "name": "api-version", + "description": "Version number of Azure Maps API.", + "type": "string", + "in": "query", + "required": true, + "default": "1.0", + "x-ms-parameter-location": "client" + } + }, "paths": { "/geolocation/ip/{format}": { "get": { @@ -70,7 +81,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" diff --git a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json index 6218cab371b9..7e3ddfab9c20 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json +++ b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json @@ -55,6 +55,15 @@ }, "responses": {}, "parameters": { + "ApiVersion": { + "name": "api-version", + "description": "Version number of Azure Maps API.", + "type": "string", + "in": "query", + "required": true, + "default": "1.0", + "x-ms-parameter-location": "client" + }, "MetroId": { "name": "metroId", "description": "The unique id of the metro area. Can be retrieved via [Get Metro Area API](https://aka.ms/AzureMapsMobilityMetro).", @@ -86,7 +95,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -165,7 +174,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -259,7 +268,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -337,7 +346,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -442,7 +451,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -561,7 +570,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -881,7 +890,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -963,7 +972,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json index 15e174d88e7b..6f9009257b55 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json @@ -56,6 +56,15 @@ }, "responses": {}, "parameters": { + "ApiVersion": { + "name": "api-version", + "description": "Version number of Azure Maps API.", + "type": "string", + "in": "query", + "required": true, + "default": "1.0", + "x-ms-parameter-location": "client" + }, "RasterTileFormat": { "name": "format", "description": "Desired format of the response. Possible value: png.", @@ -200,7 +209,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "#/parameters/RasterTileFormat" @@ -378,7 +387,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "#/parameters/TileFormat" @@ -542,7 +551,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "#/parameters/VectorZoom" @@ -612,7 +621,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" @@ -657,7 +666,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "#/parameters/RasterTileFormat" @@ -744,7 +753,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" @@ -806,7 +815,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" @@ -863,7 +872,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json index 46d477d79a74..5e4a3b49560d 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json @@ -56,6 +56,15 @@ }, "responses": {}, "parameters": { + "ApiVersionV2": { + "name": "api-version", + "description": "Version number of Azure Maps API.", + "type": "string", + "in": "query", + "required": true, + "default": "2.0", + "x-ms-parameter-location": "client" + }, "TilesetId_rv2": { "name": "tilesetId", "description": "A tileset is a collection of raster or vector data broken up into a uniform grid of square tiles at preset zoom levels. Every tileset has a **tilesetId** to use when making requests. The **tilesetId** for tilesets created using [Azure Maps Creator](https://aka.ms/amcreator) are generated through the [Tileset Create API](https://docs.microsoft.com/en-us/rest/api/maps/tileset). The ready-to-use tilesets supplied by Azure Maps are listed below. For example, microsoft.base.", @@ -157,7 +166,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/TilesetId_rv2" diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json index 0cec02de281b..1b34b26fc984 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json @@ -56,6 +56,15 @@ }, "responses": {}, "parameters": { + "ApiVersion": { + "name": "api-version", + "description": "Version number of Azure Maps API.", + "type": "string", + "in": "query", + "required": true, + "default": "1.0", + "x-ms-parameter-location": "client" + }, "VehicleLoadType": { "name": "vehicleLoadType", "in": "query", @@ -768,7 +777,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -884,7 +893,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "#/parameters/MatrixId" @@ -932,7 +941,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" @@ -1119,7 +1128,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" @@ -1317,7 +1326,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" @@ -1485,7 +1494,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -1544,7 +1553,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "#/parameters/BatchId" @@ -1592,7 +1601,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json index aceccf52d02c..6b611c54d151 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json @@ -56,6 +56,15 @@ }, "responses": {}, "parameters": { + "ApiVersion": { + "name": "api-version", + "description": "Version number of Azure Maps API.", + "type": "string", + "in": "query", + "required": true, + "default": "1.0", + "x-ms-parameter-location": "client" + }, "LimitSearch": { "name": "limit", "in": "query", @@ -378,7 +387,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -436,7 +445,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" @@ -555,7 +564,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" @@ -655,7 +664,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" @@ -739,7 +748,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" @@ -839,7 +848,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -890,7 +899,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" @@ -978,7 +987,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" @@ -1133,7 +1142,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" @@ -1201,7 +1210,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" @@ -1328,7 +1337,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" @@ -1406,7 +1415,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" @@ -1497,7 +1506,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -1561,7 +1570,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -1625,7 +1634,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json index ae6aa5f3ebc8..1e7932c909fb 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json @@ -56,6 +56,15 @@ }, "responses": {}, "parameters": { + "ApiVersion": { + "name": "api-version", + "description": "Version number of Azure Maps API.", + "type": "string", + "in": "query", + "required": true, + "default": "1.0", + "x-ms-parameter-location": "client" + }, "GeofenceMode": { "name": "mode", "in": "query", @@ -144,7 +153,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -243,7 +252,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -346,7 +355,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -398,7 +407,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -453,7 +462,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -517,7 +526,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -577,7 +586,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -635,7 +644,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -689,7 +698,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json index b55d8a4e529f..30d5ddb74ddb 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json @@ -56,6 +56,15 @@ }, "responses": {}, "parameters": { + "ApiVersionV2": { + "name": "api-version", + "description": "Version number of Azure Maps API.", + "type": "string", + "in": "query", + "required": true, + "default": "2.0", + "x-ms-parameter-location": "client" + }, "DatasetIdQuery": { "name": "datasetId", "description": "The unique `datasetId` that the tileset create API uses to retrieve features to generate tiles. The `datasetId` must have been obtained from a successful [Dataset Create API](/en-us/rest/api/maps/dataset/createpreview) call.", @@ -107,7 +116,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/DatasetIdQuery" @@ -157,7 +166,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "#/parameters/ApiVersionV2" } ], "x-ms-pageable": { @@ -203,7 +212,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/TilesetId" @@ -246,7 +255,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/TilesetId" @@ -288,7 +297,7 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "#/parameters/ApiVersionV2" }, { "$ref": "#/parameters/TilesetOperationId" diff --git a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json index 665495ccfec5..d18aebb45cb0 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json +++ b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json @@ -56,6 +56,15 @@ }, "responses": {}, "parameters": { + "ApiVersion": { + "name": "api-version", + "description": "Version number of Azure Maps API.", + "type": "string", + "in": "query", + "required": true, + "default": "1.0", + "x-ms-parameter-location": "client" + }, "TimezoneAcceptLanguage": { "name": "Accept-Language", "in": "header", @@ -137,7 +146,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "#/parameters/TimezoneAcceptLanguage" @@ -204,7 +213,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "#/parameters/TimezoneAcceptLanguage" @@ -271,7 +280,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -316,7 +325,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -361,7 +370,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -406,7 +415,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" diff --git a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json index 9d62ddcccf69..1b69fb69d35e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json +++ b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json @@ -56,6 +56,15 @@ }, "responses": {}, "parameters": { + "ApiVersion": { + "name": "api-version", + "description": "Version number of Azure Maps API.", + "type": "string", + "in": "query", + "required": true, + "default": "1.0", + "x-ms-parameter-location": "client" + }, "TileFormat": { "name": "format", "description": "Desired format of the response. Possible values are png & pbf.", @@ -116,7 +125,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "#/parameters/TileFormat" @@ -229,7 +238,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" @@ -339,7 +348,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "#/parameters/TileFormat" @@ -450,7 +459,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" @@ -620,7 +629,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json index b18529b304d7..86056147e0ea 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json @@ -56,6 +56,15 @@ }, "responses": {}, "parameters": { + "ApiVersionV2": { + "name": "api-version", + "description": "Version number of Azure Maps API.", + "type": "string", + "in": "query", + "required": true, + "default": "2.0", + "x-ms-parameter-location": "client" + }, "LimitWfs": { "name": "limit", "in": "query", @@ -111,7 +120,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "#/parameters/ApiVersionV2" }, { "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" @@ -156,7 +165,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "#/parameters/ApiVersionV2" }, { "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" @@ -201,7 +210,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "#/parameters/ApiVersionV2" }, { "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" @@ -246,7 +255,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "#/parameters/ApiVersionV2" }, { "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" @@ -294,7 +303,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "#/parameters/ApiVersionV2" }, { "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" @@ -342,7 +351,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "#/parameters/ApiVersionV2" }, { "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" @@ -396,7 +405,7 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "#/parameters/ApiVersionV2" }, { "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" @@ -442,7 +451,7 @@ }, "parameters": [ { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersionV2" + "$ref": "#/parameters/ApiVersionV2" }, { "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" diff --git a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json index 79b814d44c32..b1c90fa284cf 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json +++ b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json @@ -55,6 +55,15 @@ }, "responses": {}, "parameters": { + "ApiVersion": { + "name": "api-version", + "description": "Version number of Azure Maps API.", + "type": "string", + "in": "query", + "required": true, + "default": "1.0", + "x-ms-parameter-location": "client" + }, "WeatherLanguage": { "name": "language", "description": "Language in which search results should be returned. Should be one of supported IETF language tags, case insensitive. When data in specified language is not available for a specific field, default language is used. Default value is en-us. \n\nPlease refer to [Supported languages](https://docs.microsoft.com/azure/azure-maps/supported-languages) for details.", @@ -103,7 +112,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -167,7 +176,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -228,7 +237,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -292,7 +301,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -362,7 +371,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -426,7 +435,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -481,7 +490,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -542,7 +551,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "../../../Common/preview/1.0/common.json#/parameters/ApiVersion" + "$ref": "#/parameters/ApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" From 3238c6bfd2abc7baa7de658ab9c240f085a000c4 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Wed, 9 Jun 2021 15:15:08 +0200 Subject: [PATCH 193/210] Add default error. --- .../common-types/data-plane/v1/types.json | 64 +++++ .../Alias/preview/2.0/alias.json | 80 +----- .../Common/preview/1.0/common.json | 47 +--- .../DEM/preview/1.0/elevation.json | 80 +----- .../Microsoft.Maps/Data/preview/2.0/data.json | 74 +----- .../Dataset/preview/2.0/dataset.json | 71 +----- .../preview/2.0/dwgconversion.json | 68 +---- .../preview/2.0/featurestate.json | 125 ++------- .../Geolocation/preview/1.0/geolocation.json | 16 +- .../Mobility/preview/1.0/mobility.json | 128 ++-------- .../Render/preview/1.0/render.json | 128 ++-------- .../Render/preview/2.0/render.json | 16 +- .../Route/preview/1.0/route.json | 128 ++-------- .../Search/preview/1.0/search.json | 240 +++--------------- .../Spatial/preview/1.0/spatial.json | 144 ++--------- .../Tileset/preview/2.0/tileset.json | 68 +---- .../Timezone/preview/1.0/timezone.json | 96 +------ .../Traffic/preview/1.0/traffic.json | 80 +----- .../Microsoft.Maps/WFS/preview/2.0/wfs.json | 128 ++-------- .../Weather/preview/1.0/weather.json | 128 ++-------- 20 files changed, 298 insertions(+), 1611 deletions(-) create mode 100644 specification/common-types/data-plane/v1/types.json diff --git a/specification/common-types/data-plane/v1/types.json b/specification/common-types/data-plane/v1/types.json new file mode 100644 index 000000000000..654b7555592f --- /dev/null +++ b/specification/common-types/data-plane/v1/types.json @@ -0,0 +1,64 @@ +{ + "swagger": "2.0", + "info": { + "version": "1.0", + "title": "Common types" + }, + "paths": {}, + "definitions": { + "ErrorResponse": { + "title": "Error Response", + "description": "Common error response for all Azure Data Plane APIs to return error details for failed operations. (This also follows the OData error response format.)", + "type": "object", + "properties": { + "code": { + "readOnly": true, + "type": "string", + "description": "The error code." + }, + "message": { + "readOnly": true, + "type": "string", + "description": "The error message." + }, + "target": { + "readOnly": true, + "type": "string", + "description": "The error target." + }, + "details": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/ErrorResponse" + }, + "description": "The error details." + }, + "additionalInfo": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/ErrorAdditionalInfo" + }, + "description": "The error additional info." + } + } + }, + "ErrorAdditionalInfo": { + "type": "object", + "properties": { + "type": { + "readOnly": true, + "type": "string", + "description": "The additional info type." + }, + "info": { + "readOnly": true, + "type": "object", + "description": "The additional info." + } + }, + "description": "The data plane error additional info." + } + } +} diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json index 3078591f30de..83cef31ba9da 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json @@ -120,20 +120,8 @@ } } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } }, @@ -161,20 +149,8 @@ "$ref": "#/definitions/AliasListResponse" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -206,20 +182,8 @@ "$ref": "#/definitions/AliasListItem" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } }, @@ -243,20 +207,8 @@ "204": { "description": "Alias delete request completed successfully. The content for `aliasId` was deleted on the server." }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } }, @@ -283,20 +235,8 @@ "$ref": "#/definitions/AliasListItem" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index 9ca057982f2e..8ba8caedd227 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -668,47 +668,6 @@ } } }, - "400": { - "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "401": { - "description": "Access denied due to invalid subscription key or invalid Azure Active Directory (Azure AD) bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided Azure AD bearer token.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "headers": { - "WWW-Authenticate": { - "type": "string", - "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" - } - }, - "x-ms-error-response": true - }, - "403": { - "description": "Permission, capacity, or authentication issues.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "404": { - "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, - "408": { - "description": "Timeout: The request took longer to finish than the maximum amount of time defined in the api.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true - }, "409": { "description": "The request could not be completed due to a conflict with the current state of the resource. Likely caused by a parallel update to the same resource.", "schema": { @@ -723,10 +682,10 @@ }, "x-ms-error-response": true }, - "500": { - "description": "An error occurred while processing the request. Please try again later.", + "default": { + "description": "An unexpected error occurred.", "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../../common-types/data-plane/v1/types.json#/definitions/ErrorResponse" }, "x-ms-error-response": true } diff --git a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json index 84f212ace6b2..86d80239c4ae 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json +++ b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json @@ -111,20 +111,8 @@ "$ref": "#/definitions/PointsResult" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } }, @@ -167,20 +155,8 @@ "$ref": "#/definitions/PointsResult" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -237,20 +213,8 @@ "$ref": "#/definitions/LinesResult" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } }, @@ -301,20 +265,8 @@ "$ref": "#/definitions/LinesResult" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -378,20 +330,8 @@ "$ref": "#/definitions/BoundingBoxResult" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json index 7f69cb37b003..aa3603e9895d 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json @@ -167,23 +167,11 @@ "202": { "$ref": "../../../Common/preview/1.0/common.json#/responses/202AsyncV2" }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, "409": { "$ref": "../../../Common/preview/1.0/common.json#/responses/409StorageLimit" }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } }, @@ -210,20 +198,8 @@ "$ref": "#/definitions/MapDataListResponse" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -271,23 +247,11 @@ "202": { "$ref": "../../../Common/preview/1.0/common.json#/responses/202AsyncV2" }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, "409": { "$ref": "../../../Common/preview/1.0/common.json#/responses/409StorageLimit" }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } }, @@ -329,11 +293,7 @@ } }, "default": { - "description": "An error occurred while processing the request. Please try again later.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } }, @@ -360,20 +320,8 @@ "204": { "description": "Data delete request completed successfully. The content for `udid` was deleted on the server." }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -402,8 +350,8 @@ "200": { "$ref": "../../../Common/preview/1.0/common.json#/responses/200AsyncV2" }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json index 6fee32203873..0b7f1dc26c13 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json @@ -137,23 +137,8 @@ "200": { "$ref": "../../../Common/preview/1.0/common.json#/responses/200AsyncV2" }, - "202": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/202AsyncV2" - }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } }, @@ -181,20 +166,8 @@ "$ref": "#/definitions/DatasetListResponse" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -223,20 +196,8 @@ "$ref": "#/definitions/DatasetDetailInfo" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } }, @@ -260,20 +221,8 @@ "204": { "description": "The dataset delete request completed successfully. The resource referenced by the `datasetId` was deleted from the server." }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -302,8 +251,8 @@ "200": { "$ref": "../../../Common/preview/1.0/common.json#/responses/200AsyncV2" }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json index f6ca963e5b3d..78cb347e0e23 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json @@ -143,20 +143,8 @@ "202": { "$ref": "../../../Common/preview/1.0/common.json#/responses/202AsyncV2" }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } }, @@ -187,20 +175,8 @@ "$ref": "#/definitions/ConversionListResponse" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -232,20 +208,8 @@ "$ref": "#/definitions/ConversionListDetailInfo" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } }, @@ -272,20 +236,8 @@ "204": { "description": "Conversion delete request completed successfully. The content for `conversionId` was deleted on the server." }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -314,8 +266,8 @@ "200": { "$ref": "../../../Common/preview/1.0/common.json#/responses/200AsyncV2" }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json index 463d3879f086..6442a3648760 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json @@ -162,17 +162,8 @@ "400": { "$ref": "../../../Common/preview/1.0/common.json#/responses/400" }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } }, @@ -200,20 +191,8 @@ "$ref": "#/definitions/StatesetListResponse" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -248,20 +227,8 @@ "200": { "description": "Stateset styles are updated successfully." }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } }, @@ -285,20 +252,8 @@ "204": { "description": "Stateset Deleted." }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } }, @@ -325,20 +280,8 @@ "$ref": "#/definitions/StatesetGetResponse" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -376,20 +319,8 @@ "200": { "description": "Feature states are updated successfully." }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } }, @@ -419,23 +350,11 @@ "204": { "description": "Feature states deleted successfully." }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, "409": { "$ref": "../../../Common/preview/1.0/common.json#/responses/409" }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } }, @@ -465,20 +384,8 @@ "$ref": "#/definitions/FeatureStatesStructure" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json index 82309a34e12e..9447fc35badf 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json +++ b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json @@ -101,20 +101,8 @@ "$ref": "#/definitions/IpAddressToLocationResult" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json index 7e3ddfab9c20..4a4067269b4c 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json +++ b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json @@ -142,20 +142,8 @@ "$ref": "#/definitions/MetroAreaResponse" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -236,20 +224,8 @@ "$ref": "#/definitions/MetroAreaInfoResponse" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -314,20 +290,8 @@ "$ref": "#/definitions/NearbyTransitResponse" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -419,20 +383,8 @@ "$ref": "#/definitions/TransitLineInfoResponse" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -538,20 +490,8 @@ "$ref": "#/definitions/TransitStopInfoResponse" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -858,20 +798,8 @@ "$ref": "#/definitions/TransitRouteResponse" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -940,20 +868,8 @@ "$ref": "#/definitions/TransitItineraryResponse" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -1172,20 +1088,8 @@ "$ref": "#/definitions/RealTimeArrivalsResponse" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json index 6f9009257b55..34146b9901d4 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json @@ -355,20 +355,8 @@ } } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -519,20 +507,8 @@ } } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -589,20 +565,8 @@ } } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -634,20 +598,8 @@ "$ref": "#/definitions/GetCopyrightCaptionResult" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -721,20 +673,8 @@ } } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -783,20 +723,8 @@ "$ref": "#/definitions/GetCopyrightFromBoundingBoxResult" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -840,20 +768,8 @@ "$ref": "#/definitions/GetCopyrightForTileResult" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -888,20 +804,8 @@ "$ref": "#/definitions/GetCopyrightForWorldResult" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json index 5e4a3b49560d..4ad4db279423 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json @@ -239,20 +239,8 @@ } } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json index 1b34b26fc984..657971418d23 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json @@ -859,20 +859,8 @@ "202": { "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } }, @@ -909,20 +897,8 @@ "202": { "description": "OK" }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -1098,20 +1074,8 @@ "$ref": "#/definitions/RouteDirectionsResponse" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } }, @@ -1294,20 +1258,8 @@ "$ref": "#/definitions/RouteDirectionsResponse" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -1458,20 +1410,8 @@ "$ref": "#/definitions/GetRouteRangeResponse" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -1519,20 +1459,8 @@ "202": { "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } }, @@ -1569,20 +1497,8 @@ "202": { "description": "Batch request was accepted but is still being processed. Please try again in some time." }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -1623,23 +1539,11 @@ "$ref": "#/definitions/RouteDirectionsBatchResponse" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, "408": { "$ref": "../../../Common/preview/1.0/common.json#/responses/408" }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json index 6b611c54d151..4941211fd760 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json @@ -410,20 +410,8 @@ "$ref": "#/definitions/SearchPolygonResponse" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } }, "produces": [ @@ -532,20 +520,8 @@ "$ref": "#/definitions/SearchCommonResponse" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -632,20 +608,8 @@ "$ref": "#/definitions/SearchCommonResponse" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -716,20 +680,8 @@ "$ref": "#/definitions/SearchCommonResponse" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -816,20 +768,8 @@ "$ref": "#/definitions/SearchCommonResponse" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -867,20 +807,8 @@ "$ref": "#/definitions/SearchPoiCategoryTreeResponse" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -955,20 +883,8 @@ "$ref": "#/definitions/SearchCommonResponse" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -1110,20 +1026,8 @@ "$ref": "#/definitions/SearchAddressReverseResponse" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -1178,20 +1082,8 @@ "$ref": "#/definitions/SearchAddressReverseCrossStreetResponse" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -1299,20 +1191,8 @@ "$ref": "#/definitions/SearchCommonResponse" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -1383,20 +1263,8 @@ "$ref": "#/definitions/SearchCommonResponse" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -1470,20 +1338,8 @@ "$ref": "#/definitions/SearchCommonResponse" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -1531,20 +1387,8 @@ "202": { "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } }, "produces": [ @@ -1595,20 +1439,8 @@ "202": { "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } }, "produces": [ @@ -1659,20 +1491,8 @@ "202": { "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } }, "produces": [ diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json index 1e7932c909fb..2cefa21a3f74 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json @@ -222,20 +222,8 @@ "$ref": "#/definitions/GeofenceResponse" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } }, @@ -323,20 +311,8 @@ "$ref": "#/definitions/GeofenceResponse" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -377,20 +353,8 @@ "$ref": "#/definitions/BufferResponse" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } }, @@ -430,20 +394,8 @@ "$ref": "#/definitions/BufferResponse" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -496,20 +448,8 @@ "$ref": "#/definitions/ClosestPointResponse" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } }, @@ -554,20 +494,8 @@ "$ref": "#/definitions/ClosestPointResponse" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -614,20 +542,8 @@ "$ref": "#/definitions/PointInPolygonResponse" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } }, @@ -666,20 +582,8 @@ "$ref": "#/definitions/PointInPolygonResponse" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -718,20 +622,8 @@ "$ref": "#/definitions/GreatCircleDistanceResponse" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json index 30d5ddb74ddb..f5f41f3273af 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json @@ -136,20 +136,8 @@ "202": { "$ref": "../../../Common/preview/1.0/common.json#/responses/202AsyncV2" }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } }, @@ -180,20 +168,8 @@ "$ref": "#/definitions/TilesetListResponse" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -225,20 +201,8 @@ "$ref": "#/definitions/TilesetDetailInfo" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } }, @@ -265,20 +229,8 @@ "204": { "description": "Tileset delete request completed successfully." }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -307,8 +259,8 @@ "200": { "$ref": "../../../Common/preview/1.0/common.json#/responses/200AsyncV2" }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json index d18aebb45cb0..93ca59e01aed 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json +++ b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json @@ -181,20 +181,8 @@ "$ref": "#/definitions/TimezoneByIdResult" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -248,20 +236,8 @@ "$ref": "#/definitions/TimezoneByCoordinatesResult" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -293,20 +269,8 @@ "$ref": "#/definitions/TimezoneEnumWindowsResult" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -338,20 +302,8 @@ "$ref": "#/definitions/TimezoneEnumIanaResult" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -383,20 +335,8 @@ "$ref": "#/definitions/TimezoneIanaVersionResult" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -441,20 +381,8 @@ "$ref": "#/definitions/TimezoneWindowsToIanaResult" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json index 1b69fb69d35e..5087fa225ced 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json +++ b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json @@ -206,20 +206,8 @@ } } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -316,20 +304,8 @@ "$ref": "#/definitions/TrafficFlowSegmentResult" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -427,20 +403,8 @@ } } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -597,20 +561,8 @@ "$ref": "#/definitions/TrafficIncidentDetailResult" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -683,20 +635,8 @@ "$ref": "#/definitions/TrafficIncidentViewportResult" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json index 86056147e0ea..77f4bc3969d9 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json @@ -133,20 +133,8 @@ "$ref": "#/definitions/LandingPageResponse" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -178,20 +166,8 @@ "$ref": "#/definitions/ConformanceResponse" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -223,20 +199,8 @@ "$ref": "#/definitions/CollectionsResponse" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -271,20 +235,8 @@ "$ref": "#/definitions/CollectionInfo" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -319,20 +271,8 @@ "$ref": "#/definitions/CollectionDefinitionResponse" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -376,20 +316,8 @@ "$ref": "#/definitions/ExtendedGeoJsonFeatureCollection" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -424,20 +352,8 @@ "$ref": "#/definitions/FeatureResponse" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } }, @@ -467,20 +383,8 @@ "204": { "description": "Feature Deleted." }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json index b1c90fa284cf..0df5f8295781 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json +++ b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json @@ -144,20 +144,8 @@ "$ref": "#/definitions/HourlyForecastResponse" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -205,20 +193,8 @@ "$ref": "#/definitions/MinuteForecastResponse" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -269,20 +245,8 @@ "$ref": "#/definitions/QuarterDayForecastResponse" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -339,20 +303,8 @@ "$ref": "#/definitions/CurrentConditionsResponse" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -403,20 +355,8 @@ "$ref": "#/definitions/DailyForecastResponse" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -458,20 +398,8 @@ "$ref": "#/definitions/WeatherAlongRouteResponse" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -519,20 +447,8 @@ "$ref": "#/definitions/SevereWeatherAlertsResponse" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } @@ -592,20 +508,8 @@ "$ref": "#/definitions/DailyIndicesResponse" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, - "401": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/401" - }, - "403": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/403" - }, - "404": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/404" - }, - "500": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/500" + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } } } From 806de829871550dfdd3a49a752ffbb5ae50a2478 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Wed, 9 Jun 2021 16:44:23 +0200 Subject: [PATCH 194/210] Update version and route and search with batch. Remove subscription key from examples. --- .../Alias/preview/2.0/alias.json | 12 +- .../preview/2.0/examples/Alias_Assign.json | 1 - .../preview/2.0/examples/Alias_Create.json | 3 +- .../preview/2.0/examples/Alias_Delete.json | 1 - .../2.0/examples/Alias_GetDetails.json | 1 - .../preview/2.0/examples/Alias_List.json | 3 +- .../Common/preview/1.0/common.json | 3 + .../DEM/preview/1.0/elevation.json | 12 +- .../1.0/examples/GetDataForBoundingBox.json | 1 - .../1.0/examples/GetDataForPoints.json | 3 +- .../1.0/examples/GetDataForPolyline.json | 1 - .../1.0/examples/PostDataForPoints.json | 3 +- .../1.0/examples/PostDataForPolyline.json | 1 - .../Microsoft.Maps/Data/preview/2.0/data.json | 14 +- .../Data/preview/2.0/examples/Delete.json | 1 - .../Data/preview/2.0/examples/Download.json | 1 - .../preview/2.0/examples/GetOperation.json | 1 - .../examples/GetOperationStillRunning.json | 1 - .../Data/preview/2.0/examples/List.json | 3 +- .../Data/preview/2.0/examples/Update.json | 1 - .../Data/preview/2.0/examples/Upload.json | 1 - .../Dataset/preview/2.0/dataset.json | 12 +- .../preview/2.0/examples/Dataset_Create.json | 1 - .../preview/2.0/examples/Dataset_Delete.json | 1 - .../2.0/examples/Dataset_GetDetails.json | 1 - .../preview/2.0/examples/Dataset_List.json | 3 +- .../preview/2.0/examples/GetOperation.json | 1 - .../examples/GetOperationStillRunning.json | 1 - .../preview/2.0/dwgconversion.json | 12 +- .../preview/2.0/examples/Conversion.json | 1 - .../preview/2.0/examples/Delete.json | 1 - .../preview/2.0/examples/Get.json | 1 - .../preview/2.0/examples/GetOperation.json | 1 - .../examples/GetOperationStillRunning.json | 1 - .../preview/2.0/examples/List.json | 3 +- .../preview/2.0/examples/CreateStateset.json | 1 - .../2.0/examples/DeleteFeatureState.json | 1 - .../preview/2.0/examples/DeleteStateset.json | 1 - .../preview/2.0/examples/GetStates.json | 1 - .../preview/2.0/examples/GetStateset.json | 1 - .../preview/2.0/examples/Stateset_List.json | 3 +- .../preview/2.0/examples/UpdateStates.json | 1 - .../preview/2.0/examples/UpdateStateset.json | 1 - .../preview/2.0/featurestate.json | 18 +- .../1.0/examples/GetLocationByIpAddress.json | 1 - .../Geolocation/preview/1.0/geolocation.json | 4 +- .../Mobility/preview/1.0/mobility.json | 18 +- .../1.0/examples/GetCopyrightCaption.json | 3 +- .../1.0/examples/GetCopyrightForTile.json | 3 +- .../1.0/examples/GetCopyrightForWorld.json | 3 +- .../examples/GetCopyrightFromBoundingBox.json | 3 +- .../1.0/examples/GetMapImageryTile.json | 3 +- .../preview/1.0/examples/GetMapStateTile.json | 3 +- .../1.0/examples/GetMapStaticImage.json | 3 +- .../preview/1.0/examples/GetMapTile.json | 3 +- .../Render/preview/1.0/render.json | 18 +- .../preview/2.0/examples/GetMapTileV2.json | 3 +- .../Render/preview/2.0/render.json | 4 +- .../1.0/examples/GetRouteDirections.json | 3 +- .../1.0/examples/GetRouteDirectionsBatch.json | 18 +- .../preview/1.0/examples/GetRouteMatrix.json | 3 +- .../preview/1.0/examples/GetRouteRange.json | 1 - .../1.0/examples/PostRouteDirections.json | 1 - .../examples/PostRouteDirectionsBatch.json | 141 -- .../PostRouteDirectionsBatchSync.json | 1 - .../preview/1.0/examples/PostRouteMatrix.json | 1 - .../Route/preview/1.0/route.json | 26 +- .../1.0/examples/GetSearchAddress.json | 3 +- .../1.0/examples/GetSearchAddressBatch.json | 336 ++++ .../1.0/examples/GetSearchAddressReverse.json | 3 +- .../GetSearchAddressReverseBatch.json | 175 ++ .../GetSearchAddressReverseCrossStreet.json | 3 +- .../examples/GetSearchAddressStructured.json | 3 +- .../preview/1.0/examples/GetSearchFuzzy.json | 3 +- .../1.0/examples/GetSearchFuzzyBatch.json | 1439 ++++++++++++++++ .../preview/1.0/examples/GetSearchNearby.json | 3 +- .../preview/1.0/examples/GetSearchPOI.json | 1 - .../1.0/examples/GetSearchPOICategory.json | 1 - .../examples/GetSearchPOICategoryTree.json | 3 +- .../1.0/examples/GetSearchPolygon.json | 3 +- .../1.0/examples/PostSearchAddressBatch.json | 280 ---- .../examples/PostSearchAddressBatchSync.json | 355 ++++ .../PostSearchAddressReverseBatch.json | 119 -- .../PostSearchAddressReverseBatchSync.json | 185 +++ .../1.0/examples/PostSearchAlongRoute.json | 1 - .../1.0/examples/PostSearchFuzzyBatch.json | 1382 ---------------- .../examples/PostSearchFuzzyBatchSync.json | 1459 +++++++++++++++++ .../PostSearchInsideFeatureCollection.json | 1 - .../examples/PostSearchInsideGeometry.json | 1 - .../PostSearchInsideGeometryCollection.json | 1 - .../Search/preview/1.0/search.json | 291 +++- .../preview/1.0/examples/GetBuffer.json | 1 - .../preview/1.0/examples/GetClosestPoint.json | 1 - .../preview/1.0/examples/GetGeofence.json | 3 +- .../1.0/examples/GetGreatCircleDistance.json | 1 - .../1.0/examples/GetPointInPolygon.json | 1 - .../preview/1.0/examples/PostBuffer.json | 1 - .../1.0/examples/PostClosestPoint.json | 1 - .../preview/1.0/examples/PostGeofence.json | 1 - .../1.0/examples/PostPointInPolygon.json | 1 - .../Spatial/preview/1.0/spatial.json | 20 +- .../Tileset/preview/2.0/examples/Create.json | 1 - .../Tileset/preview/2.0/examples/Delete.json | 1 - .../Tileset/preview/2.0/examples/Get.json | 1 - .../preview/2.0/examples/GetOperation.json | 1 - .../examples/GetOperationStillRunning.json | 1 - .../Tileset/preview/2.0/examples/List.json | 3 +- .../Tileset/preview/2.0/tileset.json | 12 +- .../examples/GetTimezoneByCoordinates.json | 3 +- .../preview/1.0/examples/GetTimezoneByID.json | 3 +- .../1.0/examples/GetTimezoneEnumIANA.json | 3 +- .../1.0/examples/GetTimezoneEnumWindows.json | 3 +- .../1.0/examples/GetTimezoneIANAVersion.json | 3 +- .../examples/GetTimezoneWindowsToIANA.json | 3 +- .../Timezone/preview/1.0/timezone.json | 14 +- .../1.0/examples/GetTrafficFlowSegment.json | 3 +- .../1.0/examples/GetTrafficFlowTile.json | 3 +- .../examples/GetTrafficIncidentDetail.json | 3 +- .../1.0/examples/GetTrafficIncidentTile.json | 3 +- .../examples/GetTrafficIncidentViewport.json | 3 +- .../Traffic/preview/1.0/traffic.json | 12 +- .../preview/2.0/examples/DeleteFeature.json | 1 - .../preview/2.0/examples/GetCollection.json | 1 - .../2.0/examples/GetCollectionDefinition.json | 1 - .../preview/2.0/examples/GetCollections.json | 3 +- .../preview/2.0/examples/GetConformance.json | 3 +- .../WFS/preview/2.0/examples/GetFeature.json | 1 - .../WFS/preview/2.0/examples/GetFeatures.json | 1 - .../preview/2.0/examples/GetLandingPage.json | 3 +- .../Microsoft.Maps/WFS/preview/2.0/wfs.json | 18 +- .../Weather/preview/1.0/weather.json | 18 +- 131 files changed, 4390 insertions(+), 2224 deletions(-) create mode 100644 specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddressBatch.json create mode 100644 specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddressReverseBatch.json create mode 100644 specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchFuzzyBatch.json create mode 100644 specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchAddressBatchSync.json create mode 100644 specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchAddressReverseBatchSync.json create mode 100644 specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchFuzzyBatchSync.json diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json index 83cef31ba9da..2eed01466403 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json @@ -56,7 +56,7 @@ }, "responses": {}, "parameters": { - "ApiVersionV2": { + "AliasApiVersionV2": { "name": "api-version", "description": "Version number of Azure Maps API.", "type": "string", @@ -101,7 +101,7 @@ }, "parameters": [ { - "$ref": "#/parameters/ApiVersionV2" + "$ref": "#/parameters/AliasApiVersionV2" }, { "$ref": "#/parameters/CreateCreatorDataItemId" @@ -135,7 +135,7 @@ }, "parameters": [ { - "$ref": "#/parameters/ApiVersionV2" + "$ref": "#/parameters/AliasApiVersionV2" } ], "x-ms-pageable": { @@ -169,7 +169,7 @@ "$ref": "#/parameters/AliasId" }, { - "$ref": "#/parameters/ApiVersionV2" + "$ref": "#/parameters/AliasApiVersionV2" }, { "$ref": "#/parameters/AssignCreatorDataItemId" @@ -200,7 +200,7 @@ "$ref": "#/parameters/AliasId" }, { - "$ref": "#/parameters/ApiVersionV2" + "$ref": "#/parameters/AliasApiVersionV2" } ], "responses": { @@ -225,7 +225,7 @@ "$ref": "#/parameters/AliasId" }, { - "$ref": "#/parameters/ApiVersionV2" + "$ref": "#/parameters/AliasApiVersionV2" } ], "responses": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/examples/Alias_Assign.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/examples/Alias_Assign.json index 06c22746fa8a..9290b72917a3 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/examples/Alias_Assign.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/examples/Alias_Assign.json @@ -2,7 +2,6 @@ "parameters": { "geography": "us", "api-version": "2.0", - "subscription-key": "[subscription-key]", "aliasId": "[aliasId]", "creatorDataItemId": "[creatorDataItemId]" }, diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/examples/Alias_Create.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/examples/Alias_Create.json index 5f84baa43a03..ab47b98864b9 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/examples/Alias_Create.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/examples/Alias_Create.json @@ -1,8 +1,7 @@ { "parameters": { "geography": "us", - "api-version": "2.0", - "subscription-key": "[subscription-key]" + "api-version": "2.0" }, "responses": { "201": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/examples/Alias_Delete.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/examples/Alias_Delete.json index 5e847f338d4e..3bb33a694c4b 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/examples/Alias_Delete.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/examples/Alias_Delete.json @@ -2,7 +2,6 @@ "parameters": { "geography": "us", "api-version": "2.0", - "subscription-key": "[subscription-key]", "aliasId": "[aliasId]" }, "responses": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/examples/Alias_GetDetails.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/examples/Alias_GetDetails.json index 432cd5547706..62ae0821e403 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/examples/Alias_GetDetails.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/examples/Alias_GetDetails.json @@ -2,7 +2,6 @@ "parameters": { "geography": "us", "api-version": "2.0", - "subscription-key": "[subscription-key]", "aliasId": "[aliasId]" }, "responses": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/examples/Alias_List.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/examples/Alias_List.json index 078148c410a1..74f19e51e5df 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/examples/Alias_List.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/examples/Alias_List.json @@ -1,8 +1,7 @@ { "parameters": { "geography": "us", - "api-version": "2.0", - "subscription-key": "[subscription-key]" + "api-version": "2.0" }, "responses": { "200": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index 8ba8caedd227..502e7a78f7dc 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -659,6 +659,9 @@ } } }, + "202Batch": { + "description": "Batch request was accepted but is still being processed. Please try again in some time." + }, "202AsyncV2": { "description": "Request Accepted: The request has been accepted for processing. Please use the URL in the Operation-Location Header to obtain status.", "headers": { diff --git a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json index 86d80239c4ae..4f25fb8d872c 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json +++ b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json @@ -56,7 +56,7 @@ }, "responses": {}, "parameters": { - "ApiVersion": { + "ElevationApiVersion": { "name": "api-version", "description": "Version number of Azure Maps API.", "type": "string", @@ -82,7 +82,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/ElevationApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -130,7 +130,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/ElevationApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -176,7 +176,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/ElevationApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -232,7 +232,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/ElevationApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -286,7 +286,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/ElevationApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" diff --git a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/examples/GetDataForBoundingBox.json b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/examples/GetDataForBoundingBox.json index a7c618231a70..7a45d4ca9585 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/examples/GetDataForBoundingBox.json +++ b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/examples/GetDataForBoundingBox.json @@ -4,7 +4,6 @@ "format": "json", "api-version": "1.0", "bounds": "-121.66853362143818, 46.84646479863713,-121.65853362143818, 46.85646479863713", - "subscription-key": "[subscription-key]", "rows": 2, "columns": 3 }, diff --git a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/examples/GetDataForPoints.json b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/examples/GetDataForPoints.json index 22e6210e054a..706ac05d9f85 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/examples/GetDataForPoints.json +++ b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/examples/GetDataForPoints.json @@ -3,8 +3,7 @@ "geography": "us", "format": "json", "api-version": "1.0", - "points": "-121.66853362143818, 46.84646479863713|-121.68853362143818, 46.856464798637127", - "subscription-key": "[subscription-key]" + "points": "-121.66853362143818, 46.84646479863713|-121.68853362143818, 46.856464798637127" }, "responses": { "200": { diff --git a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/examples/GetDataForPolyline.json b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/examples/GetDataForPolyline.json index e733339d611a..b73e5b91c387 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/examples/GetDataForPolyline.json +++ b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/examples/GetDataForPolyline.json @@ -4,7 +4,6 @@ "format": "json", "api-version": "1.0", "lines": "-121.66853362143818, 46.84646479863713|-121.67853362143818, 46.85646479863713", - "subscription-key": "[subscription-key]", "samples": 5 }, "responses": { diff --git a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/examples/PostDataForPoints.json b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/examples/PostDataForPoints.json index ddfd51fd8f91..03c11cbb43ce 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/examples/PostDataForPoints.json +++ b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/examples/PostDataForPoints.json @@ -12,8 +12,7 @@ "lon": -121.68853362143818, "lat": 46.856464798637127 } - ], - "subscription-key": "[subscription-key]" + ] }, "responses": { "200": { diff --git a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/examples/PostDataForPolyline.json b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/examples/PostDataForPolyline.json index 79f0c4587949..4458b2bc87e0 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/examples/PostDataForPolyline.json +++ b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/examples/PostDataForPolyline.json @@ -13,7 +13,6 @@ "lat": 46.85646479863713 } ], - "subscription-key": "[subscription-key]", "samples": 5 }, "responses": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json index aa3603e9895d..e33feb07b6b9 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/data.json @@ -56,7 +56,7 @@ }, "responses": {}, "parameters": { - "ApiVersionV2": { + "DataApiVersionV2": { "name": "api-version", "description": "Version number of Azure Maps API.", "type": "string", @@ -142,7 +142,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersionV2" + "$ref": "#/parameters/DataApiVersionV2" }, { "$ref": "#/parameters/UploadDataDescription" @@ -188,7 +188,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersionV2" + "$ref": "#/parameters/DataApiVersionV2" } ], "responses": { @@ -222,7 +222,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersionV2" + "$ref": "#/parameters/DataApiVersionV2" }, { "$ref": "#/parameters/UniqueDataId" @@ -273,7 +273,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersionV2" + "$ref": "#/parameters/DataApiVersionV2" }, { "$ref": "#/parameters/UniqueDataId" @@ -310,7 +310,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersionV2" + "$ref": "#/parameters/DataApiVersionV2" }, { "$ref": "#/parameters/UniqueDataId" @@ -340,7 +340,7 @@ }, "parameters": [ { - "$ref": "#/parameters/ApiVersionV2" + "$ref": "#/parameters/DataApiVersionV2" }, { "$ref": "#/parameters/DataUploadOperationId" diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/Delete.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/Delete.json index b7c4a889fc7d..ca01b3cd23d8 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/Delete.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/Delete.json @@ -2,7 +2,6 @@ "parameters": { "geography": "us", "api-version": "2.0", - "subscription-key": "[subscription-key]", "udid": "25084fb7-307a-4720-8f91-7952a0b91012" }, "responses": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/Download.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/Download.json index faeeb5153274..8c6658d7bbe2 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/Download.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/Download.json @@ -2,7 +2,6 @@ "parameters": { "geography": "us", "api-version": "2.0", - "subscription-key": "[subscription-key]", "udid": "25084fb7-307a-4720-8f91-7952a0b91012" }, "responses": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/GetOperation.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/GetOperation.json index 2bef2e8eb555..e566e96b370b 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/GetOperation.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/GetOperation.json @@ -2,7 +2,6 @@ "parameters": { "geography": "us", "api-version": "2.0", - "subscription-key": "[subscription-key]", "operationId": "8b1288fa-1958-4a2b-b68e-13a7i5af7d7c" }, "responses": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/GetOperationStillRunning.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/GetOperationStillRunning.json index 4a0559be1343..559e751b6b46 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/GetOperationStillRunning.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/GetOperationStillRunning.json @@ -2,7 +2,6 @@ "parameters": { "geography": "us", "api-version": "2.0", - "subscription-key": "[subscription-key]", "operationId": "8b1288fa-1958-4a2b-b68e-13a7i5af7d7c" }, "responses": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/List.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/List.json index 12b929a1bca9..3899cabd7f51 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/List.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/List.json @@ -1,8 +1,7 @@ { "parameters": { "geography": "us", - "api-version": "2.0", - "subscription-key": "[subscription-key]" + "api-version": "2.0" }, "responses": { "200": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/Update.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/Update.json index e6ce6bd5b627..1f06ea0f04b7 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/Update.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/Update.json @@ -2,7 +2,6 @@ "parameters": { "geography": "us", "api-version": "2.0", - "subscription-key": "[subscription-key]", "udid": "25084fb7-307a-4720-8f91-7952a0b91012", "UpdateContent": { "type": "FeatureCollection", diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/Upload.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/Upload.json index f2b09921cdbd..99690927d900 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/Upload.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/Upload.json @@ -2,7 +2,6 @@ "parameters": { "geography": "us", "api-version": "2.0", - "subscription-key": "[subscription-key]", "dataFormat": "geojson", "UploadContent": { "type": "FeatureCollection", diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json index 0b7f1dc26c13..ba6ba861218e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json @@ -56,7 +56,7 @@ }, "responses": {}, "parameters": { - "ApiVersionV2": { + "DataApiVersionV2": { "name": "api-version", "description": "Version number of Azure Maps API.", "type": "string", @@ -121,7 +121,7 @@ }, "parameters": [ { - "$ref": "#/parameters/ApiVersionV2" + "$ref": "#/parameters/DataApiVersionV2" }, { "$ref": "#/parameters/ConversionIdQuery" @@ -152,7 +152,7 @@ }, "parameters": [ { - "$ref": "#/parameters/ApiVersionV2" + "$ref": "#/parameters/DataApiVersionV2" } ], "x-ms-pageable": { @@ -186,7 +186,7 @@ "$ref": "#/parameters/DatasetId" }, { - "$ref": "#/parameters/ApiVersionV2" + "$ref": "#/parameters/DataApiVersionV2" } ], "responses": { @@ -211,7 +211,7 @@ }, "parameters": [ { - "$ref": "#/parameters/ApiVersionV2" + "$ref": "#/parameters/DataApiVersionV2" }, { "$ref": "#/parameters/DatasetId" @@ -241,7 +241,7 @@ }, "parameters": [ { - "$ref": "#/parameters/ApiVersionV2" + "$ref": "#/parameters/DataApiVersionV2" }, { "$ref": "#/parameters/DatasetOperationId" diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/Dataset_Create.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/Dataset_Create.json index 1d9c59df6d80..89bb1b89676c 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/Dataset_Create.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/Dataset_Create.json @@ -2,7 +2,6 @@ "parameters": { "geography": "us", "api-version": "2.0", - "subscription-key": "[subscription-key]", "conversionId": "[conversionId]" }, "responses": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/Dataset_Delete.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/Dataset_Delete.json index 93c5dc5ed157..3bc65bdf5248 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/Dataset_Delete.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/Dataset_Delete.json @@ -2,7 +2,6 @@ "parameters": { "geography": "us", "api-version": "2.0", - "subscription-key": "[subscription-key]", "datasetId": "[datasetId]" }, "responses": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/Dataset_GetDetails.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/Dataset_GetDetails.json index 1b096ca550d9..4e2de927cfbd 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/Dataset_GetDetails.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/Dataset_GetDetails.json @@ -2,7 +2,6 @@ "parameters": { "geography": "us", "api-version": "2.0", - "subscription-key": "[subscription-key]", "datasetId": "[datasetId]" }, "responses": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/Dataset_List.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/Dataset_List.json index 6f94246882ff..6ce652258b5a 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/Dataset_List.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/Dataset_List.json @@ -1,8 +1,7 @@ { "parameters": { "geography": "us", - "api-version": "2.0", - "subscription-key": "[subscription-key]" + "api-version": "2.0" }, "responses": { "200": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/GetOperation.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/GetOperation.json index f213ab7656b9..949ed3c087a0 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/GetOperation.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/GetOperation.json @@ -2,7 +2,6 @@ "parameters": { "geography": "us", "api-version": "2.0", - "subscription-key": "[subscription-key]", "operationId": "8b1288fa-1958-4a2b-b68e-13a7i5af7d7c" }, "responses": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/GetOperationStillRunning.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/GetOperationStillRunning.json index 4a0559be1343..559e751b6b46 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/GetOperationStillRunning.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/GetOperationStillRunning.json @@ -2,7 +2,6 @@ "parameters": { "geography": "us", "api-version": "2.0", - "subscription-key": "[subscription-key]", "operationId": "8b1288fa-1958-4a2b-b68e-13a7i5af7d7c" }, "responses": { diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json index 78cb347e0e23..c2ec44f2094f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/dwgconversion.json @@ -56,7 +56,7 @@ }, "responses": {}, "parameters": { - "ApiVersionV2": { + "ConversionApiVersionV2": { "name": "api-version", "description": "Version number of Azure Maps API.", "type": "string", @@ -124,7 +124,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersionV2" + "$ref": "#/parameters/ConversionApiVersionV2" }, { "$ref": "#/parameters/UdidQuery" @@ -161,7 +161,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersionV2" + "$ref": "#/parameters/ConversionApiVersionV2" } ], "x-ms-pageable": { @@ -195,7 +195,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersionV2" + "$ref": "#/parameters/ConversionApiVersionV2" }, { "$ref": "#/parameters/ConversionId" @@ -226,7 +226,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersionV2" + "$ref": "#/parameters/ConversionApiVersionV2" }, { "$ref": "#/parameters/ConversionId" @@ -256,7 +256,7 @@ }, "parameters": [ { - "$ref": "#/parameters/ApiVersionV2" + "$ref": "#/parameters/ConversionApiVersionV2" }, { "$ref": "#/parameters/ConversionOperationId" diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/Conversion.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/Conversion.json index 1e600aacaa2e..ab5e05703702 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/Conversion.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/Conversion.json @@ -2,7 +2,6 @@ "parameters": { "geography": "us", "api-version": "2.0", - "subscription-key": "[subscription-key]", "udid": "25084fb7-307a-4720-8f91-7952a0b91012", "outputOntology": "facility-2.0" }, diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/Delete.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/Delete.json index 4c85aa105362..e4edf2ec7979 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/Delete.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/Delete.json @@ -2,7 +2,6 @@ "parameters": { "geography": "us", "api-version": "2.0", - "subscription-key": "[subscription-key]", "conversionId": "99884fb7-87a9-0920-7f93-7952a0b91012" }, "responses": { diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/Get.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/Get.json index 58c847dd3957..9bf2d0cca0fe 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/Get.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/Get.json @@ -2,7 +2,6 @@ "parameters": { "geography": "us", "api-version": "2.0", - "subscription-key": "[subscription-key]", "conversionId": "54398242-ea6c-1f31-4fa6-79b1ae0fc24d" }, "responses": { diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/GetOperation.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/GetOperation.json index a5e709e1acb8..1a61de42384f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/GetOperation.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/GetOperation.json @@ -2,7 +2,6 @@ "parameters": { "geography": "us", "api-version": "2.0", - "subscription-key": "[subscription-key]", "operationId": "8b1288fa-1958-4a2b-b68e-13a7i5af7d7c" }, "responses": { diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/GetOperationStillRunning.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/GetOperationStillRunning.json index 4a0559be1343..559e751b6b46 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/GetOperationStillRunning.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/GetOperationStillRunning.json @@ -2,7 +2,6 @@ "parameters": { "geography": "us", "api-version": "2.0", - "subscription-key": "[subscription-key]", "operationId": "8b1288fa-1958-4a2b-b68e-13a7i5af7d7c" }, "responses": { diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/List.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/List.json index 1f95d858a3f5..b25e9dd00184 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/List.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/List.json @@ -1,8 +1,7 @@ { "parameters": { "geography": "us", - "api-version": "2.0", - "subscription-key": "[subscription-key]" + "api-version": "2.0" }, "responses": { "200": { diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/CreateStateset.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/CreateStateset.json index 79d04155861d..df8bc64a5464 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/CreateStateset.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/CreateStateset.json @@ -2,7 +2,6 @@ "parameters": { "geography": "us", "api-version": "2.0", - "subscription-key": "[subscription-key]", "description": "Stateset for Azure Maps POC.", "datasetId": "5d34fbe8-87b7-f7c0-3144-c50e003a3c75", "statesetCreateRequestBody": { diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/DeleteFeatureState.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/DeleteFeatureState.json index ed49ef199221..69aed3c06e40 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/DeleteFeatureState.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/DeleteFeatureState.json @@ -2,7 +2,6 @@ "parameters": { "geography": "us", "api-version": "2.0", - "subscription-key": "[subscription-key]", "statesetId": "b24bdb73-1305-3212-1909-a428d937b64", "featureId": "SPC4709", "stateKeyName": "keyName1" diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/DeleteStateset.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/DeleteStateset.json index 0cf29bde1d89..f03fea23fde1 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/DeleteStateset.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/DeleteStateset.json @@ -2,7 +2,6 @@ "parameters": { "geography": "us", "api-version": "2.0", - "subscription-key": "[subscription-key]", "statesetId": "b24bdb73-1305-3212-1909-a428d937b64f" }, "responses": { diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/GetStates.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/GetStates.json index 4d25498eb5a2..6e487cc9af6e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/GetStates.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/GetStates.json @@ -2,7 +2,6 @@ "parameters": { "geography": "us", "api-version": "2.0", - "subscription-key": "[subscription-key]", "statesetId": "b24bdb73-1305-3212-1909-a428d937b64", "featureId": "SPC4709" }, diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/GetStateset.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/GetStateset.json index 76a2c03e5c6f..21715b73e089 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/GetStateset.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/GetStateset.json @@ -2,7 +2,6 @@ "parameters": { "geography": "us", "api-version": "2.0", - "subscription-key": "[subscription-key]", "statesetId": "b24bdb73-1305-3212-1909-a428d937b64" }, "responses": { diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/Stateset_List.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/Stateset_List.json index 49235910bc91..cbd21aba039f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/Stateset_List.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/Stateset_List.json @@ -1,8 +1,7 @@ { "parameters": { "geography": "us", - "api-version": "2.0", - "subscription-key": "[subscription-key]" + "api-version": "2.0" }, "responses": { "200": { diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/UpdateStates.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/UpdateStates.json index ce3ec07ee9c6..c93b887e5e37 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/UpdateStates.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/UpdateStates.json @@ -2,7 +2,6 @@ "parameters": { "geography": "us", "api-version": "2.0", - "subscription-key": "[subscription-key]", "statesetId": "b24bdb73-1305-3212-1909-a428d937b64", "featureId": "SPC4709", "featureStateUpdateRequestBody": { diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/UpdateStateset.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/UpdateStateset.json index 6e9a7b6b1780..531fc189b744 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/UpdateStateset.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/UpdateStateset.json @@ -2,7 +2,6 @@ "parameters": { "geography": "us", "api-version": "2.0", - "subscription-key": "[subscription-key]", "statesetId": "b24bdb73-1305-3212-1909-a428d937b64", "statesetStyleUpdateRequestBody": { "styles": [ diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json index 6442a3648760..bb0a6a2cceda 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json @@ -56,7 +56,7 @@ }, "responses": {}, "parameters": { - "ApiVersionV2": { + "FeaturestateApiVersionV2": { "name": "api-version", "description": "Version number of Azure Maps API.", "type": "string", @@ -134,7 +134,7 @@ }, "parameters": [ { - "$ref": "#/parameters/ApiVersionV2" + "$ref": "#/parameters/FeaturestateApiVersionV2" }, { "$ref": "#/parameters/DatasetIdForCreate" @@ -177,7 +177,7 @@ }, "parameters": [ { - "$ref": "#/parameters/ApiVersionV2" + "$ref": "#/parameters/FeaturestateApiVersionV2" } ], "x-ms-pageable": { @@ -208,7 +208,7 @@ }, "parameters": [ { - "$ref": "#/parameters/ApiVersionV2" + "$ref": "#/parameters/FeaturestateApiVersionV2" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -242,7 +242,7 @@ }, "parameters": [ { - "$ref": "#/parameters/ApiVersionV2" + "$ref": "#/parameters/FeaturestateApiVersionV2" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -267,7 +267,7 @@ }, "parameters": [ { - "$ref": "#/parameters/ApiVersionV2" + "$ref": "#/parameters/FeaturestateApiVersionV2" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -297,7 +297,7 @@ }, "parameters": [ { - "$ref": "#/parameters/ApiVersionV2" + "$ref": "#/parameters/FeaturestateApiVersionV2" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -334,7 +334,7 @@ }, "parameters": [ { - "$ref": "#/parameters/ApiVersionV2" + "$ref": "#/parameters/FeaturestateApiVersionV2" }, { "$ref": "#/parameters/StatesetIdInPath" @@ -368,7 +368,7 @@ }, "parameters": [ { - "$ref": "#/parameters/ApiVersionV2" + "$ref": "#/parameters/FeaturestateApiVersionV2" }, { "$ref": "#/parameters/StatesetIdInPath" diff --git a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/examples/GetLocationByIpAddress.json b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/examples/GetLocationByIpAddress.json index 4c24a6070f5f..4fff59c47fc2 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/examples/GetLocationByIpAddress.json +++ b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/examples/GetLocationByIpAddress.json @@ -1,7 +1,6 @@ { "parameters": { "geography": "us", - "subscription-key": "[subscription-key]", "api-version": "1.0", "format": "json", "ip": "2001:4898:80e8:b::189" diff --git a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json index 9447fc35badf..e1a6e177ddbe 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json +++ b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/geolocation.json @@ -56,7 +56,7 @@ }, "responses": {}, "parameters": { - "ApiVersion": { + "GeolocationApiVersion": { "name": "api-version", "description": "Version number of Azure Maps API.", "type": "string", @@ -81,7 +81,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/GeolocationApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" diff --git a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json index 4a4067269b4c..d7cc7d83c173 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json +++ b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/mobility.json @@ -55,7 +55,7 @@ }, "responses": {}, "parameters": { - "ApiVersion": { + "MobilityApiVersion": { "name": "api-version", "description": "Version number of Azure Maps API.", "type": "string", @@ -95,7 +95,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/MobilityApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -162,7 +162,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/MobilityApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -244,7 +244,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/MobilityApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -310,7 +310,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/MobilityApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -403,7 +403,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/MobilityApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -510,7 +510,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/MobilityApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -818,7 +818,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/MobilityApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -888,7 +888,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/MobilityApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetCopyrightCaption.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetCopyrightCaption.json index 3aa2c33e4206..52c1029cddd3 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetCopyrightCaption.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetCopyrightCaption.json @@ -2,8 +2,7 @@ "parameters": { "geography": "us", "api-version": "1.0", - "format": "json", - "subscription-key": "[subscription-key]" + "format": "json" }, "responses": { "200": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetCopyrightForTile.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetCopyrightForTile.json index 744610813e23..01d429709719 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetCopyrightForTile.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetCopyrightForTile.json @@ -5,8 +5,7 @@ "format": "json", "zoom": 6, "x": 9, - "y": 22, - "subscription-key": "[subscription-key]" + "y": 22 }, "responses": { "200": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetCopyrightForWorld.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetCopyrightForWorld.json index 4eacfad8e911..27e4d0fae7c6 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetCopyrightForWorld.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetCopyrightForWorld.json @@ -2,8 +2,7 @@ "parameters": { "geography": "us", "api-version": "1.0", - "format": "json", - "subscription-key": "[subscription-key]" + "format": "json" }, "responses": { "200": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetCopyrightFromBoundingBox.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetCopyrightFromBoundingBox.json index d52e8fbdbe1b..dbd2d161148e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetCopyrightFromBoundingBox.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetCopyrightFromBoundingBox.json @@ -5,8 +5,7 @@ "format": "json", "mincoordinates": "52.41064,4.84228", "maxcoordinates": "52.41072,4.84239", - "text": "yes", - "subscription-key": "[subscription-key]" + "text": "yes" }, "responses": { "200": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapImageryTile.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapImageryTile.json index f9266126eda8..7d209dda5530 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapImageryTile.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapImageryTile.json @@ -6,8 +6,7 @@ "style": "satellite", "zoom": 6, "x": 10, - "y": 22, - "subscription-key": "[subscription-key]" + "y": 22 }, "responses": { "200": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapStateTile.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapStateTile.json index dee831819cbd..0b095438ac69 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapStateTile.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapStateTile.json @@ -5,8 +5,7 @@ "statesetId": "[statesetId]", "zoom": 6, "x": 10, - "y": 22, - "subscription-key": "[subscription-key]" + "y": 22 }, "responses": { "200": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapStaticImage.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapStaticImage.json index 64a8a9d062ea..06b0715ecfd3 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapStaticImage.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapStaticImage.json @@ -6,8 +6,7 @@ "zoom": 2, "bbox": "1.355233,42.982261,24.980233,56.526017", "layer": "basic", - "style": "main", - "subscription-key": "[subscription-key]" + "style": "main" }, "responses": { "200": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapTile.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapTile.json index 6ae598096705..c8f663e296d0 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapTile.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapTile.json @@ -8,8 +8,7 @@ "zoom": 6, "x": 10, "y": 22, - "tilesize": 512, - "subscription-key": "[subscription-key]" + "tilesize": 512 }, "responses": { "200": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json index 34146b9901d4..a5475bdafc62 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/render.json @@ -56,7 +56,7 @@ }, "responses": {}, "parameters": { - "ApiVersion": { + "RenderApiVersion": { "name": "api-version", "description": "Version number of Azure Maps API.", "type": "string", @@ -209,7 +209,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/RenderApiVersion" }, { "$ref": "#/parameters/RasterTileFormat" @@ -375,7 +375,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/RenderApiVersion" }, { "$ref": "#/parameters/TileFormat" @@ -527,7 +527,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/RenderApiVersion" }, { "$ref": "#/parameters/VectorZoom" @@ -585,7 +585,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/RenderApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" @@ -618,7 +618,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/RenderApiVersion" }, { "$ref": "#/parameters/RasterTileFormat" @@ -693,7 +693,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/RenderApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" @@ -743,7 +743,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/RenderApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" @@ -788,7 +788,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/RenderApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/examples/GetMapTileV2.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/examples/GetMapTileV2.json index ede99d3cfc57..fe4c3d0aeefa 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/examples/GetMapTileV2.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/examples/GetMapTileV2.json @@ -5,8 +5,7 @@ "tilesetId": "microsoft.base", "zoom": 6, "x": 10, - "y": 22, - "subscription-key": "[subscription-key]" + "y": 22 }, "responses": { "200": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json index 4ad4db279423..cb59312ded62 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/render.json @@ -56,7 +56,7 @@ }, "responses": {}, "parameters": { - "ApiVersionV2": { + "RenderApiVersionV2": { "name": "api-version", "description": "Version number of Azure Maps API.", "type": "string", @@ -166,7 +166,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersionV2" + "$ref": "#/parameters/RenderApiVersionV2" }, { "$ref": "#/parameters/TilesetId_rv2" diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/GetRouteDirections.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/GetRouteDirections.json index af37c2023854..a78c630dd2d7 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/GetRouteDirections.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/GetRouteDirections.json @@ -3,8 +3,7 @@ "geography": "us", "format": "json", "api-version": "1.0", - "query": "52.50931,13.42936:52.50274,13.43872", - "subscription-key": "[subscription-key]" + "query": "52.50931,13.42936:52.50274,13.43872" }, "responses": { "200": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/GetRouteDirectionsBatch.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/GetRouteDirectionsBatch.json index d31170aaa7c2..08f1dfab8b59 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/GetRouteDirectionsBatch.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/GetRouteDirectionsBatch.json @@ -2,21 +2,7 @@ "parameters": { "geography": "us", "format": "11111111-2222-3333-4444-555555555555", - "api-version": "1.0", - "subscription-key": "[subscription-key]", - "postRouteDirectionsBatchRequestBody": { - "batchItems": [ - { - "query": "?query=47.639987,-122.128384:47.621252,-122.184408:47.596437,-122.332000&routeType=fastest&travelMode=car&maxAlternatives=99" - }, - { - "query": "?query=47.620659,-122.348934:47.610101,-122.342015&travelMode=bicycle&routeType=eco&traffic=false" - }, - { - "query": "?query=40.759856,-73.985108:40.771136,-73.973506&travelMode=pedestrian&routeType=shortest" - } - ] - } + "api-version": "1.0" }, "responses": { "200": { @@ -160,7 +146,7 @@ } }, "202": { - "headers": {} + "description": "Batch request was accepted but is still being processed. Please try again in some time." }, "400": { "headers": {}, diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/GetRouteMatrix.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/GetRouteMatrix.json index 030ad2567bff..b5759068ad99 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/GetRouteMatrix.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/GetRouteMatrix.json @@ -2,8 +2,7 @@ "parameters": { "geography": "us", "format": "11111111-2222-3333-4444-555555555555", - "api-version": "1.0", - "subscription-key": "[subscription-key]" + "api-version": "1.0" }, "responses": { "200": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/GetRouteRange.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/GetRouteRange.json index 0506bd57fd25..06dadd88e2f6 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/GetRouteRange.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/GetRouteRange.json @@ -4,7 +4,6 @@ "format": "json", "api-version": "1.0", "query": "50.97452,5.86605", - "subscription-key": "[subscription-key]", "timeBudgetInSec": 6000 }, "responses": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteDirections.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteDirections.json index a409940d5798..99268c578488 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteDirections.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteDirections.json @@ -4,7 +4,6 @@ "format": "json", "api-version": "1.0", "query": "52.50931,13.42936:52.50274,13.43872", - "subscription-key": "[subscription-key]", "postRouteDirectionsRequestBody": { "supportingPoints": { "type": "GeometryCollection", diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteDirectionsBatch.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteDirectionsBatch.json index c4d008878488..89e316eaa6fd 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteDirectionsBatch.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteDirectionsBatch.json @@ -3,7 +3,6 @@ "geography": "us", "format": "json", "api-version": "1.0", - "subscription-key": "[subscription-key]", "postRouteDirectionsBatchRequestBody": { "batchItems": [ { @@ -19,146 +18,6 @@ } }, "responses": { - "200": { - "headers": {}, - "body": { - "batchItems": [ - { - "statusCode": 400, - "response": { - "error": { - "code": "400 BadRequest", - "message": "maxAlternatives parameter value should be between 0 and 5 inclusive" - } - } - }, - { - "statusCode": 200, - "response": { - "formatVersion": "0.0.12", - "routes": [ - { - "summary": { - "lengthInMeters": 1754, - "travelTimeInSeconds": 386, - "trafficDelayInSeconds": 0, - "departureTime": "2019-06-21T22:56:23+00:00", - "arrivalTime": "2019-06-21T23:02:49+00:00" - }, - "legs": [ - { - "summary": { - "lengthInMeters": 1754, - "travelTimeInSeconds": 386, - "trafficDelayInSeconds": 0, - "departureTime": "2019-06-21T22:56:23+00:00", - "arrivalTime": "2019-06-21T23:02:49+00:00" - }, - "points": [ - { - "latitude": 47.62094, - "longitude": -122.34892 - }, - { - "latitude": 47.62094, - "longitude": -122.3485 - }, - { - "latitude": 47.62095, - "longitude": -122.3476 - }, - { - "latitude": 47.60995, - "longitude": -122.34174 - }, - { - "latitude": 47.61011, - "longitude": -122.342 - } - ] - } - ], - "sections": [ - { - "startPointIndex": 0, - "endPointIndex": 44, - "sectionType": "TRAVEL_MODE", - "travelMode": "bicycle" - } - ] - } - ] - } - }, - { - "statusCode": 200, - "response": { - "formatVersion": "0.0.12", - "routes": [ - { - "summary": { - "lengthInMeters": 1772, - "travelTimeInSeconds": 1276, - "trafficDelayInSeconds": 0, - "departureTime": "2019-06-21T22:56:23+00:00", - "arrivalTime": "2019-06-21T23:17:38+00:00" - }, - "legs": [ - { - "summary": { - "lengthInMeters": 1772, - "travelTimeInSeconds": 1276, - "trafficDelayInSeconds": 0, - "departureTime": "2019-06-21T22:56:23+00:00", - "arrivalTime": "2019-06-21T23:17:38+00:00" - }, - "points": [ - { - "latitude": 40.75982, - "longitude": -73.98493 - }, - { - "latitude": 40.7601, - "longitude": -73.98483 - }, - { - "latitude": 40.75984, - "longitude": -73.98417 - }, - { - "latitude": 40.76047, - "longitude": -73.9837 - }, - { - "latitude": 40.77095, - "longitude": -73.9736 - }, - { - "latitude": 40.77114, - "longitude": -73.97356 - } - ] - } - ], - "sections": [ - { - "startPointIndex": 0, - "endPointIndex": 47, - "sectionType": "TRAVEL_MODE", - "travelMode": "pedestrian" - } - ] - } - ] - } - } - ], - "summary": { - "successfulRequests": 2, - "totalRequests": 3 - } - } - }, "202": { "headers": { "Location": "URL to download the results of the long-running batch request." diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteDirectionsBatchSync.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteDirectionsBatchSync.json index 780e457e31f8..a255a3add4b6 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteDirectionsBatchSync.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteDirectionsBatchSync.json @@ -3,7 +3,6 @@ "geography": "us", "format": "json", "api-version": "1.0", - "subscription-key": "[subscription-key]", "postRouteDirectionsBatchRequestBody": { "batchItems": [ { diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteMatrix.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteMatrix.json index 964313e41d7e..27d4cc423276 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteMatrix.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteMatrix.json @@ -3,7 +3,6 @@ "geography": "us", "format": "json", "api-version": "1.0", - "subscription-key": "[subscription-key]", "routeType": "shortest", "postRouteMatrixRequestBody": { "origins": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json index 657971418d23..e8c46cdb0114 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json @@ -56,7 +56,7 @@ }, "responses": {}, "parameters": { - "ApiVersion": { + "RouteApiVersion": { "name": "api-version", "description": "Version number of Azure Maps API.", "type": "string", @@ -777,7 +777,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/RouteApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -881,7 +881,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/RouteApiVersion" }, { "$ref": "#/parameters/MatrixId" @@ -917,7 +917,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/RouteApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" @@ -1092,7 +1092,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/RouteApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" @@ -1278,7 +1278,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/RouteApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" @@ -1434,7 +1434,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/RouteApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -1450,14 +1450,8 @@ } ], "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/RouteDirectionsBatchResponse" - } - }, "202": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/202Batch" }, "default": { "$ref": "../../../Common/preview/1.0/common.json#/responses/default" @@ -1481,7 +1475,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/RouteApiVersion" }, { "$ref": "#/parameters/BatchId" @@ -1517,7 +1511,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/RouteApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddress.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddress.json index eb546d66ed6e..d3d1d6868bb8 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddress.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddress.json @@ -3,8 +3,7 @@ "geography": "us", "format": "json", "api-version": "1.0", - "query": "15127 NE 24th Street, Redmond, WA 98052", - "subscription-key": "[subscription-key]" + "query": "15127 NE 24th Street, Redmond, WA 98052" }, "responses": { "200": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddressBatch.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddressBatch.json new file mode 100644 index 000000000000..2632963526d1 --- /dev/null +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddressBatch.json @@ -0,0 +1,336 @@ +{ + "parameters": { + "geography": "us", + "format": "11111111-2222-3333-4444-555555555555", + "api-version": "1.0" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "summary": { + "successfulRequests": 3, + "totalRequests": 3 + }, + "batchItems": [ + { + "statusCode": 200, + "response": { + "summary": { + "query": "400 broad st seattle wa 98109", + "queryType": "NON_NEAR", + "queryTime": 127, + "numResults": 3, + "offset": 0, + "totalResults": 9, + "fuzzyLevel": 1 + }, + "results": [ + { + "type": "Point Address", + "id": "US/PAD/p0/20843845", + "score": 11.966, + "address": { + "streetNumber": "400", + "streetName": "Broad Street", + "municipalitySubdivision": "Seattle, South Lake Union, Lower Queen Anne", + "municipality": "Seattle", + "countrySecondarySubdivision": "King", + "countryTertiarySubdivision": "Seattle", + "countrySubdivision": "WA", + "postalCode": "98109", + "countryCode": "US", + "country": "United States Of America", + "countryCodeISO3": "USA", + "freeformAddress": "400 Broad Street, Seattle, WA 98109", + "countrySubdivisionName": "Washington" + }, + "position": { + "lat": 47.62039, + "lon": -122.34928 + }, + "viewport": { + "topLeftPoint": { + "lat": 47.62129, + "lon": -122.35061 + }, + "btmRightPoint": { + "lat": 47.61949, + "lon": -122.34795 + } + }, + "entryPoints": [ + { + "type": "main", + "position": { + "lat": 47.61982, + "lon": -122.34886 + } + } + ] + }, + { + "type": "Street", + "id": "US/STR/p0/388442", + "score": 10.225, + "address": { + "streetName": "Broad Street", + "municipalitySubdivision": "Seattle, South Lake Union", + "municipality": "Seattle", + "countrySecondarySubdivision": "King", + "countryTertiarySubdivision": "Seattle", + "countrySubdivision": "WA", + "postalCode": "98109", + "extendedPostalCode": "981094612", + "countryCode": "US", + "country": "United States Of America", + "countryCodeISO3": "USA", + "freeformAddress": "Broad Street, Seattle, WA 98109", + "countrySubdivisionName": "Washington" + }, + "position": { + "lat": 47.62001, + "lon": -122.34843 + }, + "viewport": { + "topLeftPoint": { + "lat": 47.61965, + "lon": -122.34761 + }, + "btmRightPoint": { + "lat": 47.62066, + "lon": -122.349 + } + } + }, + { + "type": "Street", + "id": "US/STR/p0/388680", + "score": 10.225, + "address": { + "streetName": "Broad Street", + "municipalitySubdivision": "Seattle, Belltown", + "municipality": "Seattle", + "countrySecondarySubdivision": "King", + "countryTertiarySubdivision": "Seattle", + "countrySubdivision": "WA", + "postalCode": "98109,98121", + "extendedPostalCode": "981094991,981211117,981211237,981213206", + "countryCode": "US", + "country": "United States Of America", + "countryCodeISO3": "USA", + "freeformAddress": "Broad Street, Seattle, WA", + "countrySubdivisionName": "Washington" + }, + "position": { + "lat": 47.61691, + "lon": -122.35251 + }, + "viewport": { + "topLeftPoint": { + "lat": 47.61502, + "lon": -122.35041 + }, + "btmRightPoint": { + "lat": 47.61857, + "lon": -122.35484 + } + } + } + ] + } + }, + { + "statusCode": 200, + "response": { + "summary": { + "query": "one microsoft way redmond wa 98052", + "queryType": "NON_NEAR", + "queryTime": 169, + "numResults": 2, + "offset": 0, + "totalResults": 3292, + "fuzzyLevel": 2 + }, + "results": [ + { + "type": "Street", + "id": "US/STR/p0/1692663", + "score": 10.225, + "address": { + "streetName": "Microsoft Way", + "municipality": "Redmond", + "countrySecondarySubdivision": "King", + "countryTertiarySubdivision": "Seattle East", + "countrySubdivision": "WA", + "postalCode": "98052", + "extendedPostalCode": "980526399,980528300", + "countryCode": "US", + "country": "United States Of America", + "countryCodeISO3": "USA", + "freeformAddress": "Microsoft Way, Redmond, WA 98052", + "countrySubdivisionName": "Washington" + }, + "position": { + "lat": 47.63989, + "lon": -122.12509 + }, + "viewport": { + "topLeftPoint": { + "lat": 47.63748, + "lon": -122.12309 + }, + "btmRightPoint": { + "lat": 47.64223, + "lon": -122.13061 + } + } + }, + { + "type": "Cross Street", + "id": "US/XSTR/p1/4779971", + "score": 8.506, + "address": { + "streetName": "Microsoft Way & 157th Avenue Northeast, Microsoft Way", + "municipality": "Redmond", + "countrySecondarySubdivision": "King", + "countryTertiarySubdivision": "Seattle East", + "countrySubdivision": "WA", + "postalCode": "98052", + "countryCode": "US", + "country": "United States Of America", + "countryCodeISO3": "USA", + "freeformAddress": "Microsoft Way & 157th Avenue Northeast, Redmond, WA 98052", + "countrySubdivisionName": "Washington" + }, + "position": { + "lat": 47.63962, + "lon": -122.13061 + }, + "viewport": { + "topLeftPoint": { + "lat": 47.64052, + "lon": -122.13194 + }, + "btmRightPoint": { + "lat": 47.63872, + "lon": -122.12928 + } + } + } + ] + } + }, + { + "statusCode": 200, + "response": { + "summary": { + "query": "350 5th ave new york ny 10118", + "queryType": "NON_NEAR", + "queryTime": 233, + "numResults": 1, + "offset": 0, + "totalResults": 8032, + "fuzzyLevel": 1 + }, + "results": [ + { + "type": "Point Address", + "id": "US/PAD/p0/48052000", + "score": 14.334, + "address": { + "streetNumber": "350", + "streetName": "5th Avenue", + "municipalitySubdivision": "New York, Midtown South", + "municipality": "New York, Manhattan", + "countrySecondarySubdivision": "New York", + "countryTertiarySubdivision": "Manhattan", + "countrySubdivision": "NY", + "postalCode": "10118", + "extendedPostalCode": "1011800", + "countryCode": "US", + "country": "United States Of America", + "countryCodeISO3": "USA", + "freeformAddress": "350 5th Avenue, NYC, NY 10118", + "countrySubdivisionName": "New York" + }, + "position": { + "lat": 40.74817, + "lon": -73.985 + }, + "viewport": { + "topLeftPoint": { + "lat": 40.74907, + "lon": -73.98619 + }, + "btmRightPoint": { + "lat": 40.74727, + "lon": -73.98381 + } + }, + "entryPoints": [ + { + "type": "main", + "position": { + "lat": 40.74808, + "lon": -73.98482 + } + } + ] + } + ] + } + } + ] + } + }, + "202": { + "description": "Batch request was accepted but is still being processed. Please try again in some time." + }, + "400": { + "headers": {}, + "body": { + "error": { + "code": "400 BadRequest", + "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." + } + } + }, + "401": { + "headers": {}, + "body": { + "error": { + "code": "401 Unauthorized", + "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." + } + } + }, + "403": { + "headers": {}, + "body": { + "error": { + "code": "403 Forbidden", + "message": "Permission, capacity, or authentication issues." + } + } + }, + "404": { + "headers": {}, + "body": { + "error": { + "code": "404 NotFound", + "message": "Not Found: the requested resource could not be found, but it may be available again in the future." + } + } + }, + "500": { + "headers": {}, + "body": { + "error": { + "code": "500 InternalServerError", + "message": "An error occurred while processing the request. Please try again later." + } + } + } + } +} diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddressReverse.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddressReverse.json index 45918af54a49..37b9118e4ca9 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddressReverse.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddressReverse.json @@ -3,8 +3,7 @@ "geography": "us", "format": "json", "api-version": "1.0", - "query": "37.337,-121.89", - "subscription-key": "[subscription-key]" + "query": "37.337,-121.89" }, "responses": { "200": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddressReverseBatch.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddressReverseBatch.json new file mode 100644 index 000000000000..1008d63eaa36 --- /dev/null +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddressReverseBatch.json @@ -0,0 +1,175 @@ +{ + "parameters": { + "geography": "us", + "format": "11111111-2222-3333-4444-555555555555", + "api-version": "1.0" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "summary": { + "successfulRequests": 3, + "totalRequests": 3 + }, + "batchItems": [ + { + "statusCode": 200, + "response": { + "summary": { + "queryTime": 8, + "numResults": 1 + }, + "addresses": [ + { + "address": { + "buildingNumber": "7", + "streetNumber": "7", + "routeNumbers": [], + "street": "Avenue Anatole France", + "streetName": "Avenue Anatole France", + "streetNameAndNumber": "7 Avenue Anatole France", + "countryCode": "FR", + "countrySubdivision": "Île-de-France", + "countrySecondarySubdivision": "Paris", + "municipality": "Paris", + "postalCode": "75007", + "municipalitySubdivision": "7ème Arrondissement", + "country": "France", + "countryCodeISO3": "FRA", + "freeformAddress": "7 Avenue Anatole France, Paris, 75007", + "boundingBox": { + "northEast": "48.858321,2.295167", + "southWest": "48.858136,2.295027", + "entity": "position" + } + }, + "position": "48.858231,2.295089" + } + ] + } + }, + { + "statusCode": 200, + "response": { + "summary": { + "queryTime": 8, + "numResults": 1 + }, + "addresses": [ + { + "address": { + "routeNumbers": [], + "countryCode": "US", + "countrySubdivision": "WA", + "countrySecondarySubdivision": "King", + "countryTertiarySubdivision": "Seattle East", + "municipality": "Redmond", + "postalCode": "98052", + "country": "United States", + "countryCodeISO3": "USA", + "freeformAddress": "Redmond, WA 98052", + "boundingBox": { + "northEast": "47.639765,-122.128661", + "southWest": "47.639502,-122.129456", + "entity": "position" + }, + "countrySubdivisionName": "Washington" + }, + "position": "47.639687,-122.128677" + } + ] + } + }, + { + "statusCode": 200, + "response": { + "summary": { + "queryTime": 19, + "numResults": 1 + }, + "addresses": [ + { + "address": { + "buildingNumber": "410", + "streetNumber": "410", + "routeNumbers": [], + "street": "Thomas Street", + "streetName": "Thomas Street", + "streetNameAndNumber": "410 Thomas Street", + "countryCode": "US", + "countrySubdivision": "WA", + "countrySecondarySubdivision": "King", + "countryTertiarySubdivision": "Seattle", + "municipality": "Seattle", + "postalCode": "98109", + "municipalitySubdivision": "Seattle, Lower Queen Anne", + "country": "United States", + "countryCodeISO3": "USA", + "freeformAddress": "410 Thomas Street, Seattle, WA 98109", + "boundingBox": { + "northEast": "47.620954,-122.347601", + "southWest": "47.620944,-122.348498", + "entity": "position" + }, + "extendedPostalCode": "981094621", + "countrySubdivisionName": "Washington" + }, + "position": "47.620945,-122.348175" + } + ] + } + } + ] + } + }, + "202": { + "description": "Batch request was accepted but is still being processed. Please try again in some time." + }, + "400": { + "headers": {}, + "body": { + "error": { + "code": "400 BadRequest", + "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." + } + } + }, + "401": { + "headers": {}, + "body": { + "error": { + "code": "401 Unauthorized", + "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." + } + } + }, + "403": { + "headers": {}, + "body": { + "error": { + "code": "403 Forbidden", + "message": "Permission, capacity, or authentication issues." + } + } + }, + "404": { + "headers": {}, + "body": { + "error": { + "code": "404 NotFound", + "message": "Not Found: the requested resource could not be found, but it may be available again in the future." + } + } + }, + "500": { + "headers": {}, + "body": { + "error": { + "code": "500 InternalServerError", + "message": "An error occurred while processing the request. Please try again later." + } + } + } + } +} diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddressReverseCrossStreet.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddressReverseCrossStreet.json index 29ddbaa72a17..a66103d8e484 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddressReverseCrossStreet.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddressReverseCrossStreet.json @@ -3,8 +3,7 @@ "geography": "us", "format": "json", "api-version": "1.0", - "query": "37.337,-121.89", - "subscription-key": "[subscription-key]" + "query": "37.337,-121.89" }, "responses": { "200": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddressStructured.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddressStructured.json index cae633673bcb..7d5f7587ee93 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddressStructured.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddressStructured.json @@ -8,8 +8,7 @@ "streetNumber": "15127", "municipality": "Redmond", "countrySubdivision": "WA", - "postalCode": "98052", - "subscription-key": "[subscription-key]" + "postalCode": "98052" }, "responses": { "200": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchFuzzy.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchFuzzy.json index 41d89b558bff..8756266d72f7 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchFuzzy.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchFuzzy.json @@ -3,8 +3,7 @@ "geography": "us", "format": "json", "api-version": "1.0", - "query": "seattle", - "subscription-key": "[subscription-key]" + "query": "seattle" }, "responses": { "200": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchFuzzyBatch.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchFuzzyBatch.json new file mode 100644 index 000000000000..105f8142dd88 --- /dev/null +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchFuzzyBatch.json @@ -0,0 +1,1439 @@ +{ + "parameters": { + "geography": "us", + "format": "11111111-2222-3333-4444-555555555555", + "api-version": "1.0" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "batchItems": [ + { + "statusCode": 200, + "response": { + "summary": { + "query": "atm", + "queryType": "NON_NEAR", + "queryTime": 5, + "numResults": 5, + "offset": 0, + "totalResults": 262, + "fuzzyLevel": 1, + "geoBias": { + "lat": 47.639769, + "lon": -122.128362 + } + }, + "results": [ + { + "type": "POI", + "id": "US/POI/p0/3656546", + "score": 2.671, + "dist": 1336.1815386162032, + "info": "search:ta:840539002005905-US", + "poi": { + "name": "US Bank ATM-MONEYPASS", + "brands": [ + { + "name": "US Bank ATM" + } + ], + "categorySet": [ + { + "id": 7397 + } + ], + "classifications": [ + { + "code": "CASH_DISPENSER", + "names": [ + { + "nameLocale": "en-US", + "name": "cash dispenser" + } + ] + } + ] + }, + "address": { + "streetNumber": "14808", + "streetName": "NE 24th St", + "municipalitySubdivision": "Redmond", + "municipality": "Redmond", + "countrySecondarySubdivision": "King", + "countryTertiarySubdivision": "Seattle East", + "countrySubdivision": "WA", + "postalCode": "98052", + "countryCode": "US", + "country": "United States", + "countryCodeISO3": "USA", + "freeformAddress": "14808 NE 24th St, Redmond, WA 98052", + "localName": "Redmond", + "countrySubdivisionName": "Washington" + }, + "position": { + "lat": 47.63229, + "lon": -122.14232 + }, + "viewport": { + "topLeftPoint": { + "lat": 47.63319, + "lon": -122.14365 + }, + "btmRightPoint": { + "lat": 47.63139, + "lon": -122.14099 + } + }, + "entryPoints": [ + { + "type": "main", + "position": { + "lat": 47.63154, + "lon": -122.1423 + } + } + ] + }, + { + "type": "POI", + "id": "US/POI/p0/8673325", + "score": 2.671, + "dist": 1206.8488178244172, + "info": "search:ta:840539002022072-US", + "poi": { + "name": "US Bank ATM NATIONAL ASSOCIATION", + "brands": [ + { + "name": "US Bank ATM" + } + ], + "categorySet": [ + { + "id": 7397 + } + ], + "classifications": [ + { + "code": "CASH_DISPENSER", + "names": [ + { + "nameLocale": "en-US", + "name": "cash dispenser" + } + ] + } + ] + }, + "address": { + "streetNumber": "15000", + "streetName": "Northeast 24Th Street", + "municipalitySubdivision": "Redmond", + "municipality": "Redmond", + "countrySecondarySubdivision": "King", + "countryTertiarySubdivision": "Seattle East", + "countrySubdivision": "WA", + "postalCode": "98052", + "extendedPostalCode": "980525522", + "countryCode": "US", + "country": "United States", + "countryCodeISO3": "USA", + "freeformAddress": "15000 Northeast 24Th Street, Redmond, WA 98052", + "localName": "Redmond", + "countrySubdivisionName": "Washington" + }, + "position": { + "lat": 47.63265, + "lon": -122.14052 + }, + "viewport": { + "topLeftPoint": { + "lat": 47.63355, + "lon": -122.14185 + }, + "btmRightPoint": { + "lat": 47.63175, + "lon": -122.13919 + } + }, + "entryPoints": [ + { + "type": "minor", + "position": { + "lat": 47.63156, + "lon": -122.14056 + } + }, + { + "type": "minor", + "position": { + "lat": 47.63156, + "lon": -122.14058 + } + }, + { + "type": "main", + "position": { + "lat": 47.63156, + "lon": -122.14048 + } + }, + { + "type": "main", + "position": { + "lat": 47.6324, + "lon": -122.13938 + } + } + ] + }, + { + "type": "POI", + "id": "US/POI/p1/2736315", + "score": 2.671, + "dist": 864.75917765198585, + "info": "search:ta:840539002187855-US", + "poi": { + "name": "US Bank ATM-MONEYPASS", + "brands": [ + { + "name": "US Bank ATM" + } + ], + "categorySet": [ + { + "id": 7397 + } + ], + "classifications": [ + { + "code": "CASH_DISPENSER", + "names": [ + { + "nameLocale": "en-US", + "name": "cash dispenser" + } + ] + } + ] + }, + "address": { + "streetNumber": "15521", + "streetName": "Bel Red Rd", + "municipalitySubdivision": "Redmond, Northeast Bellevue, Bellevue", + "municipality": "Redmond, Bellevue", + "countrySecondarySubdivision": "King", + "countryTertiarySubdivision": "Seattle East", + "countrySubdivision": "WA", + "postalCode": "98052", + "extendedPostalCode": "980525501", + "countryCode": "US", + "country": "United States", + "countryCodeISO3": "USA", + "freeformAddress": "15521 Bel Red Rd, Redmond, WA 98052", + "localName": "Redmond", + "countrySubdivisionName": "Washington" + }, + "position": { + "lat": 47.63259, + "lon": -122.1328 + }, + "viewport": { + "topLeftPoint": { + "lat": 47.63349, + "lon": -122.13413 + }, + "btmRightPoint": { + "lat": 47.63169, + "lon": -122.13147 + } + }, + "entryPoints": [ + { + "type": "main", + "position": { + "lat": 47.63255, + "lon": -122.13275 + } + } + ] + }, + { + "type": "POI", + "id": "US/POI/p0/3656412", + "score": 2.67, + "dist": 2140.1985385809412, + "info": "search:ta:840539001998867-US", + "poi": { + "name": "US Bank ATM NATIONAL ASSOCIATION", + "brands": [ + { + "name": "US Bank ATM" + } + ], + "categorySet": [ + { + "id": 7397 + } + ], + "classifications": [ + { + "code": "CASH_DISPENSER", + "names": [ + { + "nameLocale": "en-US", + "name": "cash dispenser" + } + ] + } + ] + }, + "address": { + "streetNumber": "1128", + "streetName": "156th Ave NE", + "municipalitySubdivision": "Crossroads, Bellevue", + "municipality": "Bellevue", + "countrySecondarySubdivision": "King", + "countryTertiarySubdivision": "Seattle East", + "countrySubdivision": "WA", + "postalCode": "98007", + "countryCode": "US", + "country": "United States", + "countryCodeISO3": "USA", + "freeformAddress": "1128 156th Ave NE, Bellevue, WA 98007", + "localName": "Bellevue", + "countrySubdivisionName": "Washington" + }, + "position": { + "lat": 47.62069, + "lon": -122.13213 + }, + "viewport": { + "topLeftPoint": { + "lat": 47.62159, + "lon": -122.13346 + }, + "btmRightPoint": { + "lat": 47.61979, + "lon": -122.1308 + } + }, + "entryPoints": [ + { + "type": "main", + "position": { + "lat": 47.62069, + "lon": -122.13236 + } + } + ] + }, + { + "type": "POI", + "id": "US/POI/p1/2736876", + "score": 2.67, + "dist": 2140.1985385809412, + "info": "search:ta:840539001396789-US", + "poi": { + "name": "US Bank ATM", + "phone": "+(1)-(800)-8722657", + "brands": [ + { + "name": "US Bank ATM" + } + ], + "categorySet": [ + { + "id": 7397 + } + ], + "url": "www.usbank.com", + "classifications": [ + { + "code": "CASH_DISPENSER", + "names": [ + { + "nameLocale": "en-US", + "name": "cash dispenser" + } + ] + } + ] + }, + "address": { + "streetNumber": "1128", + "streetName": "156th Ave NE", + "municipalitySubdivision": "Crossroads, Bellevue", + "municipality": "Bellevue", + "countrySecondarySubdivision": "King", + "countryTertiarySubdivision": "Seattle East", + "countrySubdivision": "WA", + "postalCode": "98007", + "countryCode": "US", + "country": "United States", + "countryCodeISO3": "USA", + "freeformAddress": "1128 156th Ave NE, Bellevue, WA 98007", + "localName": "Bellevue", + "countrySubdivisionName": "Washington" + }, + "position": { + "lat": 47.62069, + "lon": -122.13213 + }, + "viewport": { + "topLeftPoint": { + "lat": 47.62159, + "lon": -122.13346 + }, + "btmRightPoint": { + "lat": 47.61979, + "lon": -122.1308 + } + }, + "entryPoints": [ + { + "type": "main", + "position": { + "lat": 47.62069, + "lon": -122.13236 + } + } + ] + } + ] + } + }, + { + "statusCode": 200, + "response": { + "summary": { + "query": "statue of liberty", + "queryType": "NON_NEAR", + "queryTime": 37, + "numResults": 2, + "offset": 0, + "totalResults": 18, + "fuzzyLevel": 1 + }, + "results": [ + { + "type": "POI", + "id": "US/POI/p0/9189660", + "score": 6.942, + "info": "search:ta:840369001174316-US", + "poi": { + "name": "Statue of Liberty", + "categorySet": [ + { + "id": 7376003 + } + ], + "classifications": [ + { + "code": "IMPORTANT_TOURIST_ATTRACTION", + "names": [ + { + "nameLocale": "en-US", + "name": "monument" + }, + { + "nameLocale": "en-US", + "name": "important tourist attraction" + } + ] + } + ] + }, + "address": { + "municipalitySubdivision": "New York", + "municipality": "New York", + "countrySecondarySubdivision": "New York", + "countryTertiarySubdivision": "Manhattan", + "countrySubdivision": "NY", + "postalCode": "10004", + "countryCode": "US", + "country": "United States", + "countryCodeISO3": "USA", + "freeformAddress": "New York, NY 10004", + "localName": "New York", + "countrySubdivisionName": "New York" + }, + "position": { + "lat": 40.68955, + "lon": -74.04483 + }, + "viewport": { + "topLeftPoint": { + "lat": 40.69045, + "lon": -74.04602 + }, + "btmRightPoint": { + "lat": 40.68865, + "lon": -74.04364 + } + }, + "entryPoints": [ + { + "type": "main", + "position": { + "lat": 40.69001, + "lon": -74.04683 + } + } + ] + }, + { + "type": "POI", + "id": "US/POI/p1/3264566", + "score": 6.942, + "info": "search:ta:840019000670588-US", + "poi": { + "name": "Statue of Liberty", + "phone": "+(1)-(205)-9700251", + "categorySet": [ + { + "id": 7376003 + } + ], + "url": "www.1bsa.org", + "classifications": [ + { + "code": "IMPORTANT_TOURIST_ATTRACTION", + "names": [ + { + "nameLocale": "en-US", + "name": "important tourist attraction" + } + ] + } + ] + }, + "address": { + "streetNumber": "516", + "streetName": "Liberty Pkwy", + "municipalitySubdivision": "Vestavia Hills", + "municipality": "Vestavia Hills, Birmingham", + "countrySecondarySubdivision": "Jefferson", + "countryTertiarySubdivision": "Leeds", + "countrySubdivision": "AL", + "postalCode": "35242", + "countryCode": "US", + "country": "United States", + "countryCodeISO3": "USA", + "freeformAddress": "516 Liberty Pkwy, Vestavia Hills, AL 35242", + "localName": "Vestavia Hills", + "countrySubdivisionName": "Alabama" + }, + "position": { + "lat": 33.48234, + "lon": -86.70719 + }, + "viewport": { + "topLeftPoint": { + "lat": 33.48324, + "lon": -86.70827 + }, + "btmRightPoint": { + "lat": 33.48144, + "lon": -86.70611 + } + }, + "entryPoints": [ + { + "type": "main", + "position": { + "lat": 33.48129, + "lon": -86.7065 + } + } + ] + } + ] + } + }, + { + "statusCode": 200, + "response": { + "summary": { + "query": "starbucks", + "queryType": "NON_NEAR", + "queryTime": 35, + "numResults": 10, + "offset": 0, + "totalResults": 17, + "fuzzyLevel": 1, + "geoBias": { + "lat": 47.639769, + "lon": -122.128362 + } + }, + "results": [ + { + "type": "POI", + "id": "US/POI/p0/153678", + "score": 2.671, + "dist": 1206.8488178244172, + "info": "search:ta:840531000006554-US", + "poi": { + "name": "Starbucks", + "phone": "+(1)-(425)-8695816", + "brands": [ + { + "name": "Starbucks" + } + ], + "categorySet": [ + { + "id": 9376006 + } + ], + "url": "www.starbucks.com/site-selector", + "classifications": [ + { + "code": "CAFE_PUB", + "names": [ + { + "nameLocale": "en-US", + "name": "coffee shop" + }, + { + "nameLocale": "en-US", + "name": "café/pub" + } + ] + } + ] + }, + "address": { + "streetNumber": "15000", + "streetName": "NE 24th St", + "municipalitySubdivision": "Redmond", + "municipality": "Redmond", + "countrySecondarySubdivision": "King", + "countryTertiarySubdivision": "Seattle East", + "countrySubdivision": "WA", + "postalCode": "98052", + "extendedPostalCode": "980525522", + "countryCode": "US", + "country": "United States", + "countryCodeISO3": "USA", + "freeformAddress": "15000 NE 24th St, Redmond, WA 98052", + "localName": "Redmond", + "countrySubdivisionName": "Washington" + }, + "position": { + "lat": 47.63265, + "lon": -122.14052 + }, + "viewport": { + "topLeftPoint": { + "lat": 47.63355, + "lon": -122.14185 + }, + "btmRightPoint": { + "lat": 47.63175, + "lon": -122.13919 + } + }, + "entryPoints": [ + { + "type": "minor", + "position": { + "lat": 47.63156, + "lon": -122.14056 + } + }, + { + "type": "minor", + "position": { + "lat": 47.63156, + "lon": -122.14058 + } + }, + { + "type": "main", + "position": { + "lat": 47.63156, + "lon": -122.14048 + } + }, + { + "type": "main", + "position": { + "lat": 47.6324, + "lon": -122.13938 + } + } + ] + }, + { + "type": "POI", + "id": "US/POI/p0/152316", + "score": 2.67, + "dist": 2315.294397491255, + "info": "search:ta:840539000484552-US", + "poi": { + "name": "Starbucks", + "phone": "+(1)-(425)-6436471", + "brands": [ + { + "name": "Starbucks" + } + ], + "categorySet": [ + { + "id": 9376006 + } + ], + "url": "www.starbucks.com/store/15097", + "classifications": [ + { + "code": "CAFE_PUB", + "names": [ + { + "nameLocale": "en-US", + "name": "coffee shop" + }, + { + "nameLocale": "en-US", + "name": "café/pub" + } + ] + } + ] + }, + "address": { + "streetNumber": "15600", + "streetName": "NE 8th St", + "municipalitySubdivision": "Crossroads, Bellevue", + "municipality": "Bellevue", + "countrySecondarySubdivision": "King", + "countryTertiarySubdivision": "Seattle East", + "countrySubdivision": "WA", + "postalCode": "98008", + "countryCode": "US", + "country": "United States", + "countryCodeISO3": "USA", + "freeformAddress": "15600 NE 8th St, Bellevue, WA 98008", + "localName": "Bellevue", + "countrySubdivisionName": "Washington" + }, + "position": { + "lat": 47.61896, + "lon": -122.12945 + }, + "viewport": { + "topLeftPoint": { + "lat": 47.61986, + "lon": -122.13078 + }, + "btmRightPoint": { + "lat": 47.61806, + "lon": -122.12812 + } + }, + "entryPoints": [ + { + "type": "main", + "position": { + "lat": 47.619, + "lon": -122.12945 + } + } + ] + }, + { + "type": "POI", + "id": "US/POI/p1/167545", + "score": 2.67, + "dist": 1979.2222952267998, + "info": "search:ta:840539001950429-US", + "poi": { + "name": "Starbucks", + "phone": "+(1)-(425)-7470690", + "brands": [ + { + "name": "Starbucks" + } + ], + "categorySet": [ + { + "id": 9376006 + } + ], + "url": "www.starbucks.com/site-selector", + "classifications": [ + { + "code": "CAFE_PUB", + "names": [ + { + "nameLocale": "en-US", + "name": "coffee shop" + }, + { + "nameLocale": "en-US", + "name": "café/pub" + } + ] + } + ] + }, + "address": { + "streetNumber": "1350", + "streetName": "156th Ave NE", + "municipalitySubdivision": "Crossroads, Bellevue", + "municipality": "Bellevue", + "countrySecondarySubdivision": "King", + "countryTertiarySubdivision": "Seattle East", + "countrySubdivision": "WA", + "postalCode": "98007", + "countryCode": "US", + "country": "United States", + "countryCodeISO3": "USA", + "freeformAddress": "1350 156th Ave NE, Bellevue, WA 98007", + "localName": "Bellevue", + "countrySubdivisionName": "Washington" + }, + "position": { + "lat": 47.62212, + "lon": -122.13179 + }, + "viewport": { + "topLeftPoint": { + "lat": 47.62302, + "lon": -122.13312 + }, + "btmRightPoint": { + "lat": 47.62122, + "lon": -122.13046 + } + }, + "entryPoints": [ + { + "type": "main", + "position": { + "lat": 47.62213, + "lon": -122.13236 + } + } + ] + }, + { + "type": "POI", + "id": "US/POI/p1/168519", + "score": 2.67, + "dist": 2490.3337046455963, + "info": "search:ta:840539001015090-US", + "poi": { + "name": "Starbucks", + "phone": "+(1)-(425)-4556500", + "brands": [ + { + "name": "Starbucks" + } + ], + "categorySet": [ + { + "id": 9376006 + } + ], + "url": "https://www.starbucks.com/store-locator/store/15901", + "classifications": [ + { + "code": "CAFE_PUB", + "names": [ + { + "nameLocale": "en-US", + "name": "coffee shop" + }, + { + "nameLocale": "en-US", + "name": "café/pub" + } + ] + } + ] + }, + "address": { + "streetNumber": "1645", + "streetName": "140th Ave NE", + "municipalitySubdivision": "Crossroads, Bellevue", + "municipality": "Bellevue", + "countrySecondarySubdivision": "King", + "countryTertiarySubdivision": "Seattle East", + "countrySubdivision": "WA", + "postalCode": "98005", + "countryCode": "US", + "country": "United States", + "countryCodeISO3": "USA", + "freeformAddress": "1645 140th Ave NE, Bellevue, WA 98005", + "localName": "Bellevue", + "countrySubdivisionName": "Washington" + }, + "position": { + "lat": 47.62626, + "lon": -122.15487 + }, + "viewport": { + "topLeftPoint": { + "lat": 47.62716, + "lon": -122.1562 + }, + "btmRightPoint": { + "lat": 47.62536, + "lon": -122.15354 + } + }, + "entryPoints": [ + { + "type": "main", + "position": { + "lat": 47.62645, + "lon": -122.15446 + } + }, + { + "type": "minor", + "position": { + "lat": 47.62579, + "lon": -122.15377 + } + } + ] + }, + { + "type": "POI", + "id": "US/POI/p0/152428", + "score": 2.668, + "dist": 3529.7080738812224, + "info": "search:ta:840539001033722-US", + "poi": { + "name": "Starbucks", + "phone": "+(1)-(425)-3789496", + "brands": [ + { + "name": "Starbucks" + } + ], + "categorySet": [ + { + "id": 9376006 + } + ], + "url": "www.starbucks.com/site-selector", + "classifications": [ + { + "code": "CAFE_PUB", + "names": [ + { + "nameLocale": "en-US", + "name": "coffee shop" + }, + { + "nameLocale": "en-US", + "name": "café/pub" + } + ] + } + ] + }, + "address": { + "streetNumber": "180", + "streetName": "148th Ave SE", + "municipalitySubdivision": "West Lake Hills, Bellevue", + "municipality": "Bellevue", + "countrySecondarySubdivision": "King", + "countryTertiarySubdivision": "Seattle East", + "countrySubdivision": "WA", + "postalCode": "98007", + "countryCode": "US", + "country": "United States", + "countryCodeISO3": "USA", + "freeformAddress": "180 148th Ave SE, Bellevue, WA 98007", + "localName": "Bellevue", + "countrySubdivisionName": "Washington" + }, + "position": { + "lat": 47.60901, + "lon": -122.14 + }, + "viewport": { + "topLeftPoint": { + "lat": 47.60991, + "lon": -122.14133 + }, + "btmRightPoint": { + "lat": 47.60811, + "lon": -122.13867 + } + }, + "entryPoints": [ + { + "type": "main", + "position": { + "lat": 47.60901, + "lon": -122.14008 + } + } + ] + }, + { + "type": "POI", + "id": "US/POI/p1/167147", + "score": 2.668, + "dist": 3479.393294615887, + "info": "search:ta:840539000326896-US", + "poi": { + "name": "Starbucks", + "phone": "+(1)-(425)-8619198", + "brands": [ + { + "name": "Starbucks" + } + ], + "categorySet": [ + { + "id": 9376006 + } + ], + "url": "www.starbucks.com/site-selector", + "classifications": [ + { + "code": "CAFE_PUB", + "names": [ + { + "nameLocale": "en-US", + "name": "coffee shop" + }, + { + "nameLocale": "en-US", + "name": "café/pub" + } + ] + } + ] + }, + "address": { + "streetNumber": "7425", + "streetName": "166th Ave NE", + "municipalitySubdivision": "Redmond", + "municipality": "Redmond", + "countrySecondarySubdivision": "King", + "countryTertiarySubdivision": "Seattle East", + "countrySubdivision": "WA", + "postalCode": "98052", + "extendedPostalCode": "980526288", + "countryCode": "US", + "country": "United States", + "countryCodeISO3": "USA", + "freeformAddress": "7425 166th Ave NE, Redmond, WA 98052", + "localName": "Redmond", + "countrySubdivisionName": "Washington" + }, + "position": { + "lat": 47.67055, + "lon": -122.12001 + }, + "viewport": { + "topLeftPoint": { + "lat": 47.67145, + "lon": -122.12135 + }, + "btmRightPoint": { + "lat": 47.66965, + "lon": -122.11867 + } + }, + "entryPoints": [ + { + "type": "main", + "position": { + "lat": 47.67069, + "lon": -122.11889 + } + } + ] + }, + { + "type": "POI", + "id": "US/POI/p0/153695", + "score": 2.667, + "dist": 3622.4410746187291, + "info": "search:ta:840531000006551-US", + "poi": { + "name": "Starbucks", + "phone": "+(1)-(425)-8822881", + "brands": [ + { + "name": "Starbucks" + } + ], + "categorySet": [ + { + "id": 9376006 + } + ], + "url": "www.starbucks.com/store/15022", + "classifications": [ + { + "code": "CAFE_PUB", + "names": [ + { + "nameLocale": "en-US", + "name": "coffee shop" + }, + { + "nameLocale": "en-US", + "name": "café/pub" + } + ] + } + ] + }, + "address": { + "streetNumber": "7625", + "streetName": "170th Ave NE", + "municipalitySubdivision": "Redmond", + "municipality": "Redmond", + "countrySecondarySubdivision": "King", + "countryTertiarySubdivision": "Seattle East", + "countrySubdivision": "WA", + "postalCode": "98052", + "extendedPostalCode": "980520910", + "countryCode": "US", + "country": "United States", + "countryCodeISO3": "USA", + "freeformAddress": "7625 170th Ave NE, Redmond, WA 98052", + "localName": "Redmond", + "countrySubdivisionName": "Washington" + }, + "position": { + "lat": 47.67086, + "lon": -122.11392 + }, + "viewport": { + "topLeftPoint": { + "lat": 47.67176, + "lon": -122.11526 + }, + "btmRightPoint": { + "lat": 47.66996, + "lon": -122.11258 + } + }, + "entryPoints": [ + { + "type": "main", + "position": { + "lat": 47.67073, + "lon": -122.1135 + } + } + ] + }, + { + "type": "POI", + "id": "US/POI/p1/167420", + "score": 2.667, + "dist": 3818.293513029088, + "info": "search:ta:840539000640782-US", + "poi": { + "name": "Starbucks", + "phone": "+(1)-(425)-8853323", + "brands": [ + { + "name": "Starbucks" + } + ], + "categorySet": [ + { + "id": 9376006 + } + ], + "url": "www.starbucks.com/site-selector", + "classifications": [ + { + "code": "CAFE_PUB", + "names": [ + { + "nameLocale": "en-US", + "name": "coffee shop" + }, + { + "nameLocale": "en-US", + "name": "café/pub" + } + ] + } + ] + }, + "address": { + "streetNumber": "17246", + "streetName": "Redmond Way", + "municipalitySubdivision": "Redmond", + "municipality": "Redmond", + "countrySecondarySubdivision": "King", + "countryTertiarySubdivision": "Seattle East", + "countrySubdivision": "WA", + "postalCode": "98052", + "extendedPostalCode": "980524403", + "countryCode": "US", + "country": "United States", + "countryCodeISO3": "USA", + "freeformAddress": "17246 Redmond Way, Redmond, WA 98052", + "localName": "Redmond", + "countrySubdivisionName": "Washington" + }, + "position": { + "lat": 47.67174, + "lon": -122.10976 + }, + "viewport": { + "topLeftPoint": { + "lat": 47.67264, + "lon": -122.1111 + }, + "btmRightPoint": { + "lat": 47.67084, + "lon": -122.10842 + } + }, + "entryPoints": [ + { + "type": "main", + "position": { + "lat": 47.6706, + "lon": -122.11026 + } + } + ] + }, + { + "type": "POI", + "id": "US/POI/p0/153686", + "score": 2.666, + "dist": 4009.9222051470738, + "info": "search:ta:840531000006548-US", + "poi": { + "name": "Starbucks", + "phone": "+(1)-(425)-8859590", + "brands": [ + { + "name": "Starbucks" + } + ], + "categorySet": [ + { + "id": 9376006 + } + ], + "url": "www.starbucks.com/site-selector", + "classifications": [ + { + "code": "CAFE_PUB", + "names": [ + { + "nameLocale": "en-US", + "name": "coffee shop" + }, + { + "nameLocale": "en-US", + "name": "café/pub" + } + ] + } + ] + }, + "address": { + "streetNumber": "15738", + "streetName": "Redmond Way Pad 3 Redmond Center", + "municipalitySubdivision": "Redmond", + "municipality": "Redmond", + "countrySecondarySubdivision": "King", + "countryTertiarySubdivision": "Seattle East", + "countrySubdivision": "WA", + "postalCode": "98052", + "extendedPostalCode": "980523873", + "countryCode": "US", + "country": "United States", + "countryCodeISO3": "USA", + "freeformAddress": "15738 Redmond Way Pad 3 Redmond Center, Redmond, WA 98052", + "localName": "Redmond", + "countrySubdivisionName": "Washington" + }, + "position": { + "lat": 47.67583, + "lon": -122.12877 + }, + "viewport": { + "topLeftPoint": { + "lat": 47.67673, + "lon": -122.13011 + }, + "btmRightPoint": { + "lat": 47.67493, + "lon": -122.12743 + } + }, + "entryPoints": [ + { + "type": "minor", + "position": { + "lat": 47.67456, + "lon": -122.12887 + } + }, + { + "type": "main", + "position": { + "lat": 47.67668, + "lon": -122.12829 + } + } + ] + }, + { + "type": "POI", + "id": "US/POI/p1/168511", + "score": 2.666, + "dist": 3987.80992387863, + "info": "search:ta:840531000006669-US", + "poi": { + "name": "Starbucks", + "phone": "+(1)-(425)-8818265", + "brands": [ + { + "name": "Starbucks" + } + ], + "categorySet": [ + { + "id": 9376006 + } + ], + "url": "www.starbucks.com/site-selector", + "classifications": [ + { + "code": "CAFE_PUB", + "names": [ + { + "nameLocale": "en-US", + "name": "coffee shop" + }, + { + "nameLocale": "en-US", + "name": "café/pub" + } + ] + } + ] + }, + "address": { + "streetNumber": "6617", + "streetName": "132Nd Ave Ne Bridle Trails Shopping Center", + "municipalitySubdivision": "Kirkland, Bridle Trails", + "municipality": "Kirkland", + "countrySecondarySubdivision": "King", + "countryTertiarySubdivision": "Seattle East", + "countrySubdivision": "WA", + "postalCode": "98033", + "extendedPostalCode": "980338234", + "countryCode": "US", + "country": "United States", + "countryCodeISO3": "USA", + "freeformAddress": "6617 132Nd Ave Ne Bridle Trails Shopping Center, Kirkland, WA 98033", + "localName": "Kirkland", + "countrySubdivisionName": "Washington" + }, + "position": { + "lat": 47.66514, + "lon": -122.16599 + }, + "viewport": { + "topLeftPoint": { + "lat": 47.66604, + "lon": -122.16733 + }, + "btmRightPoint": { + "lat": 47.66424, + "lon": -122.16465 + } + }, + "entryPoints": [ + { + "type": "main", + "position": { + "lat": 47.666, + "lon": -122.16669 + } + }, + { + "type": "minor", + "position": { + "lat": 47.66553, + "lon": -122.16405 + } + } + ] + } + ] + } + } + ], + "summary": { + "successfulRequests": 3, + "totalRequests": 3 + } + } + }, + "202": { + "description": "Batch request was accepted but is still being processed. Please try again in some time." + }, + "400": { + "headers": {}, + "body": { + "error": { + "code": "400 BadRequest", + "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." + } + } + }, + "401": { + "headers": {}, + "body": { + "error": { + "code": "401 Unauthorized", + "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." + } + } + }, + "403": { + "headers": {}, + "body": { + "error": { + "code": "403 Forbidden", + "message": "Permission, capacity, or authentication issues." + } + } + }, + "404": { + "headers": {}, + "body": { + "error": { + "code": "404 NotFound", + "message": "Not Found: the requested resource could not be found, but it may be available again in the future." + } + } + }, + "500": { + "headers": {}, + "body": { + "error": { + "code": "500 InternalServerError", + "message": "An error occurred while processing the request. Please try again later." + } + } + } + } +} diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchNearby.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchNearby.json index 7faa6beb5fb4..43342382f0fe 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchNearby.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchNearby.json @@ -6,8 +6,7 @@ "lat": 40.706270, "lon": -74.011454, "radius": 8046, - "limit": 10, - "subscription-key": "[subscription-key]" + "limit": 10 }, "responses": { "200": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchPOI.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchPOI.json index bbdfa40a604a..4f1914be3ecc 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchPOI.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchPOI.json @@ -4,7 +4,6 @@ "format": "json", "api-version": "1.0", "query": "juice bars", - "subscription-key": "[subscription-key]", "limit": 5, "lat": 47.606038, "lon": -122.333345, diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchPOICategory.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchPOICategory.json index 171316e34179..8972d898b6d4 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchPOICategory.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchPOICategory.json @@ -4,7 +4,6 @@ "format": "json", "api-version": "1.0", "query": "atm", - "subscription-key": "[subscription-key]", "limit": 3, "lat": 40.758953, "lon": -73.985263, diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchPOICategoryTree.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchPOICategoryTree.json index 1113239130a3..5b1772e629b4 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchPOICategoryTree.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchPOICategoryTree.json @@ -2,8 +2,7 @@ "parameters": { "geography": "us", "format": "json", - "api-version": "1.0", - "subscription-key": "[subscription-key]" + "api-version": "1.0" }, "responses": { "200": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchPolygon.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchPolygon.json index 5c534d1f63c0..4ad851ee1e5f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchPolygon.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchPolygon.json @@ -3,8 +3,7 @@ "geography": "us", "format": "json", "api-version": "1.0", - "geometries": "[geometry-ids]", - "subscription-key": "[subscription-key]" + "geometries": "[geometry-ids]" }, "responses": { "200": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchAddressBatch.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchAddressBatch.json index 3b0a20a86dbe..3a411ab9cb95 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchAddressBatch.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchAddressBatch.json @@ -3,7 +3,6 @@ "geography": "us", "format": "json", "api-version": "1.0", - "subscription-key": "[subscription-key]", "searchAddressBatchRequestBody": { "batchItems": [ { @@ -19,285 +18,6 @@ } }, "responses": { - "200": { - "headers": {}, - "body": { - "summary": { - "successfulRequests": 3, - "totalRequests": 3 - }, - "batchItems": [ - { - "statusCode": 200, - "response": { - "summary": { - "query": "400 broad st seattle wa 98109", - "queryType": "NON_NEAR", - "queryTime": 127, - "numResults": 3, - "offset": 0, - "totalResults": 9, - "fuzzyLevel": 1 - }, - "results": [ - { - "type": "Point Address", - "id": "US/PAD/p0/20843845", - "score": 11.966, - "address": { - "streetNumber": "400", - "streetName": "Broad Street", - "municipalitySubdivision": "Seattle, South Lake Union, Lower Queen Anne", - "municipality": "Seattle", - "countrySecondarySubdivision": "King", - "countryTertiarySubdivision": "Seattle", - "countrySubdivision": "WA", - "postalCode": "98109", - "countryCode": "US", - "country": "United States Of America", - "countryCodeISO3": "USA", - "freeformAddress": "400 Broad Street, Seattle, WA 98109", - "countrySubdivisionName": "Washington" - }, - "position": { - "lat": 47.62039, - "lon": -122.34928 - }, - "viewport": { - "topLeftPoint": { - "lat": 47.62129, - "lon": -122.35061 - }, - "btmRightPoint": { - "lat": 47.61949, - "lon": -122.34795 - } - }, - "entryPoints": [ - { - "type": "main", - "position": { - "lat": 47.61982, - "lon": -122.34886 - } - } - ] - }, - { - "type": "Street", - "id": "US/STR/p0/388442", - "score": 10.225, - "address": { - "streetName": "Broad Street", - "municipalitySubdivision": "Seattle, South Lake Union", - "municipality": "Seattle", - "countrySecondarySubdivision": "King", - "countryTertiarySubdivision": "Seattle", - "countrySubdivision": "WA", - "postalCode": "98109", - "extendedPostalCode": "981094612", - "countryCode": "US", - "country": "United States Of America", - "countryCodeISO3": "USA", - "freeformAddress": "Broad Street, Seattle, WA 98109", - "countrySubdivisionName": "Washington" - }, - "position": { - "lat": 47.62001, - "lon": -122.34843 - }, - "viewport": { - "topLeftPoint": { - "lat": 47.61965, - "lon": -122.34761 - }, - "btmRightPoint": { - "lat": 47.62066, - "lon": -122.349 - } - } - }, - { - "type": "Street", - "id": "US/STR/p0/388680", - "score": 10.225, - "address": { - "streetName": "Broad Street", - "municipalitySubdivision": "Seattle, Belltown", - "municipality": "Seattle", - "countrySecondarySubdivision": "King", - "countryTertiarySubdivision": "Seattle", - "countrySubdivision": "WA", - "postalCode": "98109,98121", - "extendedPostalCode": "981094991,981211117,981211237,981213206", - "countryCode": "US", - "country": "United States Of America", - "countryCodeISO3": "USA", - "freeformAddress": "Broad Street, Seattle, WA", - "countrySubdivisionName": "Washington" - }, - "position": { - "lat": 47.61691, - "lon": -122.35251 - }, - "viewport": { - "topLeftPoint": { - "lat": 47.61502, - "lon": -122.35041 - }, - "btmRightPoint": { - "lat": 47.61857, - "lon": -122.35484 - } - } - } - ] - } - }, - { - "statusCode": 200, - "response": { - "summary": { - "query": "one microsoft way redmond wa 98052", - "queryType": "NON_NEAR", - "queryTime": 169, - "numResults": 2, - "offset": 0, - "totalResults": 3292, - "fuzzyLevel": 2 - }, - "results": [ - { - "type": "Street", - "id": "US/STR/p0/1692663", - "score": 10.225, - "address": { - "streetName": "Microsoft Way", - "municipality": "Redmond", - "countrySecondarySubdivision": "King", - "countryTertiarySubdivision": "Seattle East", - "countrySubdivision": "WA", - "postalCode": "98052", - "extendedPostalCode": "980526399,980528300", - "countryCode": "US", - "country": "United States Of America", - "countryCodeISO3": "USA", - "freeformAddress": "Microsoft Way, Redmond, WA 98052", - "countrySubdivisionName": "Washington" - }, - "position": { - "lat": 47.63989, - "lon": -122.12509 - }, - "viewport": { - "topLeftPoint": { - "lat": 47.63748, - "lon": -122.12309 - }, - "btmRightPoint": { - "lat": 47.64223, - "lon": -122.13061 - } - } - }, - { - "type": "Cross Street", - "id": "US/XSTR/p1/4779971", - "score": 8.506, - "address": { - "streetName": "Microsoft Way & 157th Avenue Northeast, Microsoft Way", - "municipality": "Redmond", - "countrySecondarySubdivision": "King", - "countryTertiarySubdivision": "Seattle East", - "countrySubdivision": "WA", - "postalCode": "98052", - "countryCode": "US", - "country": "United States Of America", - "countryCodeISO3": "USA", - "freeformAddress": "Microsoft Way & 157th Avenue Northeast, Redmond, WA 98052", - "countrySubdivisionName": "Washington" - }, - "position": { - "lat": 47.63962, - "lon": -122.13061 - }, - "viewport": { - "topLeftPoint": { - "lat": 47.64052, - "lon": -122.13194 - }, - "btmRightPoint": { - "lat": 47.63872, - "lon": -122.12928 - } - } - } - ] - } - }, - { - "statusCode": 200, - "response": { - "summary": { - "query": "350 5th ave new york ny 10118", - "queryType": "NON_NEAR", - "queryTime": 233, - "numResults": 1, - "offset": 0, - "totalResults": 8032, - "fuzzyLevel": 1 - }, - "results": [ - { - "type": "Point Address", - "id": "US/PAD/p0/48052000", - "score": 14.334, - "address": { - "streetNumber": "350", - "streetName": "5th Avenue", - "municipalitySubdivision": "New York, Midtown South", - "municipality": "New York, Manhattan", - "countrySecondarySubdivision": "New York", - "countryTertiarySubdivision": "Manhattan", - "countrySubdivision": "NY", - "postalCode": "10118", - "extendedPostalCode": "1011800", - "countryCode": "US", - "country": "United States Of America", - "countryCodeISO3": "USA", - "freeformAddress": "350 5th Avenue, NYC, NY 10118", - "countrySubdivisionName": "New York" - }, - "position": { - "lat": 40.74817, - "lon": -73.985 - }, - "viewport": { - "topLeftPoint": { - "lat": 40.74907, - "lon": -73.98619 - }, - "btmRightPoint": { - "lat": 40.74727, - "lon": -73.98381 - } - }, - "entryPoints": [ - { - "type": "main", - "position": { - "lat": 40.74808, - "lon": -73.98482 - } - } - ] - } - ] - } - } - ] - } - }, "202": { "headers": { "Location": "URL to download the results of the long-running batch request." diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchAddressBatchSync.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchAddressBatchSync.json new file mode 100644 index 000000000000..95c1fa1c1cd7 --- /dev/null +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchAddressBatchSync.json @@ -0,0 +1,355 @@ +{ + "parameters": { + "geography": "us", + "format": "json", + "api-version": "1.0", + "searchAddressBatchRequestBody": { + "batchItems": [ + { + "query": "?query=400 Broad St, Seattle, WA 98109&limit=3" + }, + { + "query": "?query=One, Microsoft Way, Redmond, WA 98052&limit=3" + }, + { + "query": "?query=350 5th Ave, New York, NY 10118&limit=1" + } + ] + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "summary": { + "successfulRequests": 3, + "totalRequests": 3 + }, + "batchItems": [ + { + "statusCode": 200, + "response": { + "summary": { + "query": "400 broad st seattle wa 98109", + "queryType": "NON_NEAR", + "queryTime": 127, + "numResults": 3, + "offset": 0, + "totalResults": 9, + "fuzzyLevel": 1 + }, + "results": [ + { + "type": "Point Address", + "id": "US/PAD/p0/20843845", + "score": 11.966, + "address": { + "streetNumber": "400", + "streetName": "Broad Street", + "municipalitySubdivision": "Seattle, South Lake Union, Lower Queen Anne", + "municipality": "Seattle", + "countrySecondarySubdivision": "King", + "countryTertiarySubdivision": "Seattle", + "countrySubdivision": "WA", + "postalCode": "98109", + "countryCode": "US", + "country": "United States Of America", + "countryCodeISO3": "USA", + "freeformAddress": "400 Broad Street, Seattle, WA 98109", + "countrySubdivisionName": "Washington" + }, + "position": { + "lat": 47.62039, + "lon": -122.34928 + }, + "viewport": { + "topLeftPoint": { + "lat": 47.62129, + "lon": -122.35061 + }, + "btmRightPoint": { + "lat": 47.61949, + "lon": -122.34795 + } + }, + "entryPoints": [ + { + "type": "main", + "position": { + "lat": 47.61982, + "lon": -122.34886 + } + } + ] + }, + { + "type": "Street", + "id": "US/STR/p0/388442", + "score": 10.225, + "address": { + "streetName": "Broad Street", + "municipalitySubdivision": "Seattle, South Lake Union", + "municipality": "Seattle", + "countrySecondarySubdivision": "King", + "countryTertiarySubdivision": "Seattle", + "countrySubdivision": "WA", + "postalCode": "98109", + "extendedPostalCode": "981094612", + "countryCode": "US", + "country": "United States Of America", + "countryCodeISO3": "USA", + "freeformAddress": "Broad Street, Seattle, WA 98109", + "countrySubdivisionName": "Washington" + }, + "position": { + "lat": 47.62001, + "lon": -122.34843 + }, + "viewport": { + "topLeftPoint": { + "lat": 47.61965, + "lon": -122.34761 + }, + "btmRightPoint": { + "lat": 47.62066, + "lon": -122.349 + } + } + }, + { + "type": "Street", + "id": "US/STR/p0/388680", + "score": 10.225, + "address": { + "streetName": "Broad Street", + "municipalitySubdivision": "Seattle, Belltown", + "municipality": "Seattle", + "countrySecondarySubdivision": "King", + "countryTertiarySubdivision": "Seattle", + "countrySubdivision": "WA", + "postalCode": "98109,98121", + "extendedPostalCode": "981094991,981211117,981211237,981213206", + "countryCode": "US", + "country": "United States Of America", + "countryCodeISO3": "USA", + "freeformAddress": "Broad Street, Seattle, WA", + "countrySubdivisionName": "Washington" + }, + "position": { + "lat": 47.61691, + "lon": -122.35251 + }, + "viewport": { + "topLeftPoint": { + "lat": 47.61502, + "lon": -122.35041 + }, + "btmRightPoint": { + "lat": 47.61857, + "lon": -122.35484 + } + } + } + ] + } + }, + { + "statusCode": 200, + "response": { + "summary": { + "query": "one microsoft way redmond wa 98052", + "queryType": "NON_NEAR", + "queryTime": 169, + "numResults": 2, + "offset": 0, + "totalResults": 3292, + "fuzzyLevel": 2 + }, + "results": [ + { + "type": "Street", + "id": "US/STR/p0/1692663", + "score": 10.225, + "address": { + "streetName": "Microsoft Way", + "municipality": "Redmond", + "countrySecondarySubdivision": "King", + "countryTertiarySubdivision": "Seattle East", + "countrySubdivision": "WA", + "postalCode": "98052", + "extendedPostalCode": "980526399,980528300", + "countryCode": "US", + "country": "United States Of America", + "countryCodeISO3": "USA", + "freeformAddress": "Microsoft Way, Redmond, WA 98052", + "countrySubdivisionName": "Washington" + }, + "position": { + "lat": 47.63989, + "lon": -122.12509 + }, + "viewport": { + "topLeftPoint": { + "lat": 47.63748, + "lon": -122.12309 + }, + "btmRightPoint": { + "lat": 47.64223, + "lon": -122.13061 + } + } + }, + { + "type": "Cross Street", + "id": "US/XSTR/p1/4779971", + "score": 8.506, + "address": { + "streetName": "Microsoft Way & 157th Avenue Northeast, Microsoft Way", + "municipality": "Redmond", + "countrySecondarySubdivision": "King", + "countryTertiarySubdivision": "Seattle East", + "countrySubdivision": "WA", + "postalCode": "98052", + "countryCode": "US", + "country": "United States Of America", + "countryCodeISO3": "USA", + "freeformAddress": "Microsoft Way & 157th Avenue Northeast, Redmond, WA 98052", + "countrySubdivisionName": "Washington" + }, + "position": { + "lat": 47.63962, + "lon": -122.13061 + }, + "viewport": { + "topLeftPoint": { + "lat": 47.64052, + "lon": -122.13194 + }, + "btmRightPoint": { + "lat": 47.63872, + "lon": -122.12928 + } + } + } + ] + } + }, + { + "statusCode": 200, + "response": { + "summary": { + "query": "350 5th ave new york ny 10118", + "queryType": "NON_NEAR", + "queryTime": 233, + "numResults": 1, + "offset": 0, + "totalResults": 8032, + "fuzzyLevel": 1 + }, + "results": [ + { + "type": "Point Address", + "id": "US/PAD/p0/48052000", + "score": 14.334, + "address": { + "streetNumber": "350", + "streetName": "5th Avenue", + "municipalitySubdivision": "New York, Midtown South", + "municipality": "New York, Manhattan", + "countrySecondarySubdivision": "New York", + "countryTertiarySubdivision": "Manhattan", + "countrySubdivision": "NY", + "postalCode": "10118", + "extendedPostalCode": "1011800", + "countryCode": "US", + "country": "United States Of America", + "countryCodeISO3": "USA", + "freeformAddress": "350 5th Avenue, NYC, NY 10118", + "countrySubdivisionName": "New York" + }, + "position": { + "lat": 40.74817, + "lon": -73.985 + }, + "viewport": { + "topLeftPoint": { + "lat": 40.74907, + "lon": -73.98619 + }, + "btmRightPoint": { + "lat": 40.74727, + "lon": -73.98381 + } + }, + "entryPoints": [ + { + "type": "main", + "position": { + "lat": 40.74808, + "lon": -73.98482 + } + } + ] + } + ] + } + } + ] + } + }, + "400": { + "headers": {}, + "body": { + "error": { + "code": "400 BadRequest", + "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." + } + } + }, + "401": { + "headers": {}, + "body": { + "error": { + "code": "401 Unauthorized", + "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." + } + } + }, + "403": { + "headers": {}, + "body": { + "error": { + "code": "403 Forbidden", + "message": "Permission, capacity, or authentication issues." + } + } + }, + "404": { + "headers": {}, + "body": { + "error": { + "code": "404 NotFound", + "message": "Not Found: the requested resource could not be found, but it may be available again in the future." + } + } + }, + "408": { + "headers": {}, + "body": { + "error": { + "code": "408 Timeout", + "message": "Timeout: The request took longer to finish than the maximum amount of time defined in the api." + } + } + }, + "500": { + "headers": {}, + "body": { + "error": { + "code": "500 InternalServerError", + "message": "An error occurred while processing the request. Please try again later." + } + } + } + } +} diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchAddressReverseBatch.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchAddressReverseBatch.json index a9fb16b9edef..492d613a2fa1 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchAddressReverseBatch.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchAddressReverseBatch.json @@ -3,7 +3,6 @@ "geography": "us", "format": "json", "api-version": "1.0", - "subscription-key": "[subscription-key]", "searchAddressReverseBatchRequestBody": { "batchItems": [ { @@ -19,124 +18,6 @@ } }, "responses": { - "200": { - "headers": {}, - "body": { - "summary": { - "successfulRequests": 3, - "totalRequests": 3 - }, - "batchItems": [ - { - "statusCode": 200, - "response": { - "summary": { - "queryTime": 8, - "numResults": 1 - }, - "addresses": [ - { - "address": { - "buildingNumber": "7", - "streetNumber": "7", - "routeNumbers": [], - "street": "Avenue Anatole France", - "streetName": "Avenue Anatole France", - "streetNameAndNumber": "7 Avenue Anatole France", - "countryCode": "FR", - "countrySubdivision": "Île-de-France", - "countrySecondarySubdivision": "Paris", - "municipality": "Paris", - "postalCode": "75007", - "municipalitySubdivision": "7ème Arrondissement", - "country": "France", - "countryCodeISO3": "FRA", - "freeformAddress": "7 Avenue Anatole France, Paris, 75007", - "boundingBox": { - "northEast": "48.858321,2.295167", - "southWest": "48.858136,2.295027", - "entity": "position" - } - }, - "position": "48.858231,2.295089" - } - ] - } - }, - { - "statusCode": 200, - "response": { - "summary": { - "queryTime": 8, - "numResults": 1 - }, - "addresses": [ - { - "address": { - "routeNumbers": [], - "countryCode": "US", - "countrySubdivision": "WA", - "countrySecondarySubdivision": "King", - "countryTertiarySubdivision": "Seattle East", - "municipality": "Redmond", - "postalCode": "98052", - "country": "United States", - "countryCodeISO3": "USA", - "freeformAddress": "Redmond, WA 98052", - "boundingBox": { - "northEast": "47.639765,-122.128661", - "southWest": "47.639502,-122.129456", - "entity": "position" - }, - "countrySubdivisionName": "Washington" - }, - "position": "47.639687,-122.128677" - } - ] - } - }, - { - "statusCode": 200, - "response": { - "summary": { - "queryTime": 19, - "numResults": 1 - }, - "addresses": [ - { - "address": { - "buildingNumber": "410", - "streetNumber": "410", - "routeNumbers": [], - "street": "Thomas Street", - "streetName": "Thomas Street", - "streetNameAndNumber": "410 Thomas Street", - "countryCode": "US", - "countrySubdivision": "WA", - "countrySecondarySubdivision": "King", - "countryTertiarySubdivision": "Seattle", - "municipality": "Seattle", - "postalCode": "98109", - "municipalitySubdivision": "Seattle, Lower Queen Anne", - "country": "United States", - "countryCodeISO3": "USA", - "freeformAddress": "410 Thomas Street, Seattle, WA 98109", - "boundingBox": { - "northEast": "47.620954,-122.347601", - "southWest": "47.620944,-122.348498", - "entity": "position" - }, - "extendedPostalCode": "981094621", - "countrySubdivisionName": "Washington" - }, - "position": "47.620945,-122.348175" - } - ] - } - } - ] - } - }, "202": { "headers": { "Location": "URL to download the results of the long-running batch request." diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchAddressReverseBatchSync.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchAddressReverseBatchSync.json new file mode 100644 index 000000000000..de32a04b85b3 --- /dev/null +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchAddressReverseBatchSync.json @@ -0,0 +1,185 @@ +{ + "parameters": { + "geography": "us", + "format": "json", + "api-version": "1.0", + "searchAddressReverseBatchRequestBody": { + "batchItems": [ + { + "query": "?query=48.858561,2.294911" + }, + { + "query": "?query=47.639765,-122.127896&radius=5000&limit=2" + }, + { + "query": "?query=47.621028,-122.348170" + } + ] + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "summary": { + "successfulRequests": 3, + "totalRequests": 3 + }, + "batchItems": [ + { + "statusCode": 200, + "response": { + "summary": { + "queryTime": 8, + "numResults": 1 + }, + "addresses": [ + { + "address": { + "buildingNumber": "7", + "streetNumber": "7", + "routeNumbers": [], + "street": "Avenue Anatole France", + "streetName": "Avenue Anatole France", + "streetNameAndNumber": "7 Avenue Anatole France", + "countryCode": "FR", + "countrySubdivision": "Île-de-France", + "countrySecondarySubdivision": "Paris", + "municipality": "Paris", + "postalCode": "75007", + "municipalitySubdivision": "7ème Arrondissement", + "country": "France", + "countryCodeISO3": "FRA", + "freeformAddress": "7 Avenue Anatole France, Paris, 75007", + "boundingBox": { + "northEast": "48.858321,2.295167", + "southWest": "48.858136,2.295027", + "entity": "position" + } + }, + "position": "48.858231,2.295089" + } + ] + } + }, + { + "statusCode": 200, + "response": { + "summary": { + "queryTime": 8, + "numResults": 1 + }, + "addresses": [ + { + "address": { + "routeNumbers": [], + "countryCode": "US", + "countrySubdivision": "WA", + "countrySecondarySubdivision": "King", + "countryTertiarySubdivision": "Seattle East", + "municipality": "Redmond", + "postalCode": "98052", + "country": "United States", + "countryCodeISO3": "USA", + "freeformAddress": "Redmond, WA 98052", + "boundingBox": { + "northEast": "47.639765,-122.128661", + "southWest": "47.639502,-122.129456", + "entity": "position" + }, + "countrySubdivisionName": "Washington" + }, + "position": "47.639687,-122.128677" + } + ] + } + }, + { + "statusCode": 200, + "response": { + "summary": { + "queryTime": 19, + "numResults": 1 + }, + "addresses": [ + { + "address": { + "buildingNumber": "410", + "streetNumber": "410", + "routeNumbers": [], + "street": "Thomas Street", + "streetName": "Thomas Street", + "streetNameAndNumber": "410 Thomas Street", + "countryCode": "US", + "countrySubdivision": "WA", + "countrySecondarySubdivision": "King", + "countryTertiarySubdivision": "Seattle", + "municipality": "Seattle", + "postalCode": "98109", + "municipalitySubdivision": "Seattle, Lower Queen Anne", + "country": "United States", + "countryCodeISO3": "USA", + "freeformAddress": "410 Thomas Street, Seattle, WA 98109", + "boundingBox": { + "northEast": "47.620954,-122.347601", + "southWest": "47.620944,-122.348498", + "entity": "position" + }, + "extendedPostalCode": "981094621", + "countrySubdivisionName": "Washington" + }, + "position": "47.620945,-122.348175" + } + ] + } + } + ] + } + }, + "400": { + "headers": {}, + "body": { + "error": { + "code": "400 BadRequest", + "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." + } + } + }, + "401": { + "headers": {}, + "body": { + "error": { + "code": "401 Unauthorized", + "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." + } + } + }, + "403": { + "headers": {}, + "body": { + "error": { + "code": "403 Forbidden", + "message": "Permission, capacity, or authentication issues." + } + } + }, + "404": { + "headers": {}, + "body": { + "error": { + "code": "404 NotFound", + "message": "Not Found: the requested resource could not be found, but it may be available again in the future." + } + } + }, + "500": { + "headers": {}, + "body": { + "error": { + "code": "500 InternalServerError", + "message": "An error occurred while processing the request. Please try again later." + } + } + } + } +} diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchAlongRoute.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchAlongRoute.json index b9f58d7d073b..831535e1a5a7 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchAlongRoute.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchAlongRoute.json @@ -6,7 +6,6 @@ "query": "burger", "maxDetourTime": 1000, "limit": 2, - "subscription-key": "[subscription-key]", "searchAlongRouteRequestBody": { "route": { "type": "LineString", diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchFuzzyBatch.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchFuzzyBatch.json index 00caacfa28bb..009b4447b3fc 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchFuzzyBatch.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchFuzzyBatch.json @@ -19,1388 +19,6 @@ } }, "responses": { - "200": { - "headers": {}, - "body": { - "batchItems": [ - { - "statusCode": 200, - "response": { - "summary": { - "query": "atm", - "queryType": "NON_NEAR", - "queryTime": 5, - "numResults": 5, - "offset": 0, - "totalResults": 262, - "fuzzyLevel": 1, - "geoBias": { - "lat": 47.639769, - "lon": -122.128362 - } - }, - "results": [ - { - "type": "POI", - "id": "US/POI/p0/3656546", - "score": 2.671, - "dist": 1336.1815386162032, - "info": "search:ta:840539002005905-US", - "poi": { - "name": "US Bank ATM-MONEYPASS", - "brands": [ - { - "name": "US Bank ATM" - } - ], - "categorySet": [ - { - "id": 7397 - } - ], - "classifications": [ - { - "code": "CASH_DISPENSER", - "names": [ - { - "nameLocale": "en-US", - "name": "cash dispenser" - } - ] - } - ] - }, - "address": { - "streetNumber": "14808", - "streetName": "NE 24th St", - "municipalitySubdivision": "Redmond", - "municipality": "Redmond", - "countrySecondarySubdivision": "King", - "countryTertiarySubdivision": "Seattle East", - "countrySubdivision": "WA", - "postalCode": "98052", - "countryCode": "US", - "country": "United States", - "countryCodeISO3": "USA", - "freeformAddress": "14808 NE 24th St, Redmond, WA 98052", - "localName": "Redmond", - "countrySubdivisionName": "Washington" - }, - "position": { - "lat": 47.63229, - "lon": -122.14232 - }, - "viewport": { - "topLeftPoint": { - "lat": 47.63319, - "lon": -122.14365 - }, - "btmRightPoint": { - "lat": 47.63139, - "lon": -122.14099 - } - }, - "entryPoints": [ - { - "type": "main", - "position": { - "lat": 47.63154, - "lon": -122.1423 - } - } - ] - }, - { - "type": "POI", - "id": "US/POI/p0/8673325", - "score": 2.671, - "dist": 1206.8488178244172, - "info": "search:ta:840539002022072-US", - "poi": { - "name": "US Bank ATM NATIONAL ASSOCIATION", - "brands": [ - { - "name": "US Bank ATM" - } - ], - "categorySet": [ - { - "id": 7397 - } - ], - "classifications": [ - { - "code": "CASH_DISPENSER", - "names": [ - { - "nameLocale": "en-US", - "name": "cash dispenser" - } - ] - } - ] - }, - "address": { - "streetNumber": "15000", - "streetName": "Northeast 24Th Street", - "municipalitySubdivision": "Redmond", - "municipality": "Redmond", - "countrySecondarySubdivision": "King", - "countryTertiarySubdivision": "Seattle East", - "countrySubdivision": "WA", - "postalCode": "98052", - "extendedPostalCode": "980525522", - "countryCode": "US", - "country": "United States", - "countryCodeISO3": "USA", - "freeformAddress": "15000 Northeast 24Th Street, Redmond, WA 98052", - "localName": "Redmond", - "countrySubdivisionName": "Washington" - }, - "position": { - "lat": 47.63265, - "lon": -122.14052 - }, - "viewport": { - "topLeftPoint": { - "lat": 47.63355, - "lon": -122.14185 - }, - "btmRightPoint": { - "lat": 47.63175, - "lon": -122.13919 - } - }, - "entryPoints": [ - { - "type": "minor", - "position": { - "lat": 47.63156, - "lon": -122.14056 - } - }, - { - "type": "minor", - "position": { - "lat": 47.63156, - "lon": -122.14058 - } - }, - { - "type": "main", - "position": { - "lat": 47.63156, - "lon": -122.14048 - } - }, - { - "type": "main", - "position": { - "lat": 47.6324, - "lon": -122.13938 - } - } - ] - }, - { - "type": "POI", - "id": "US/POI/p1/2736315", - "score": 2.671, - "dist": 864.75917765198585, - "info": "search:ta:840539002187855-US", - "poi": { - "name": "US Bank ATM-MONEYPASS", - "brands": [ - { - "name": "US Bank ATM" - } - ], - "categorySet": [ - { - "id": 7397 - } - ], - "classifications": [ - { - "code": "CASH_DISPENSER", - "names": [ - { - "nameLocale": "en-US", - "name": "cash dispenser" - } - ] - } - ] - }, - "address": { - "streetNumber": "15521", - "streetName": "Bel Red Rd", - "municipalitySubdivision": "Redmond, Northeast Bellevue, Bellevue", - "municipality": "Redmond, Bellevue", - "countrySecondarySubdivision": "King", - "countryTertiarySubdivision": "Seattle East", - "countrySubdivision": "WA", - "postalCode": "98052", - "extendedPostalCode": "980525501", - "countryCode": "US", - "country": "United States", - "countryCodeISO3": "USA", - "freeformAddress": "15521 Bel Red Rd, Redmond, WA 98052", - "localName": "Redmond", - "countrySubdivisionName": "Washington" - }, - "position": { - "lat": 47.63259, - "lon": -122.1328 - }, - "viewport": { - "topLeftPoint": { - "lat": 47.63349, - "lon": -122.13413 - }, - "btmRightPoint": { - "lat": 47.63169, - "lon": -122.13147 - } - }, - "entryPoints": [ - { - "type": "main", - "position": { - "lat": 47.63255, - "lon": -122.13275 - } - } - ] - }, - { - "type": "POI", - "id": "US/POI/p0/3656412", - "score": 2.67, - "dist": 2140.1985385809412, - "info": "search:ta:840539001998867-US", - "poi": { - "name": "US Bank ATM NATIONAL ASSOCIATION", - "brands": [ - { - "name": "US Bank ATM" - } - ], - "categorySet": [ - { - "id": 7397 - } - ], - "classifications": [ - { - "code": "CASH_DISPENSER", - "names": [ - { - "nameLocale": "en-US", - "name": "cash dispenser" - } - ] - } - ] - }, - "address": { - "streetNumber": "1128", - "streetName": "156th Ave NE", - "municipalitySubdivision": "Crossroads, Bellevue", - "municipality": "Bellevue", - "countrySecondarySubdivision": "King", - "countryTertiarySubdivision": "Seattle East", - "countrySubdivision": "WA", - "postalCode": "98007", - "countryCode": "US", - "country": "United States", - "countryCodeISO3": "USA", - "freeformAddress": "1128 156th Ave NE, Bellevue, WA 98007", - "localName": "Bellevue", - "countrySubdivisionName": "Washington" - }, - "position": { - "lat": 47.62069, - "lon": -122.13213 - }, - "viewport": { - "topLeftPoint": { - "lat": 47.62159, - "lon": -122.13346 - }, - "btmRightPoint": { - "lat": 47.61979, - "lon": -122.1308 - } - }, - "entryPoints": [ - { - "type": "main", - "position": { - "lat": 47.62069, - "lon": -122.13236 - } - } - ] - }, - { - "type": "POI", - "id": "US/POI/p1/2736876", - "score": 2.67, - "dist": 2140.1985385809412, - "info": "search:ta:840539001396789-US", - "poi": { - "name": "US Bank ATM", - "phone": "+(1)-(800)-8722657", - "brands": [ - { - "name": "US Bank ATM" - } - ], - "categorySet": [ - { - "id": 7397 - } - ], - "url": "www.usbank.com", - "classifications": [ - { - "code": "CASH_DISPENSER", - "names": [ - { - "nameLocale": "en-US", - "name": "cash dispenser" - } - ] - } - ] - }, - "address": { - "streetNumber": "1128", - "streetName": "156th Ave NE", - "municipalitySubdivision": "Crossroads, Bellevue", - "municipality": "Bellevue", - "countrySecondarySubdivision": "King", - "countryTertiarySubdivision": "Seattle East", - "countrySubdivision": "WA", - "postalCode": "98007", - "countryCode": "US", - "country": "United States", - "countryCodeISO3": "USA", - "freeformAddress": "1128 156th Ave NE, Bellevue, WA 98007", - "localName": "Bellevue", - "countrySubdivisionName": "Washington" - }, - "position": { - "lat": 47.62069, - "lon": -122.13213 - }, - "viewport": { - "topLeftPoint": { - "lat": 47.62159, - "lon": -122.13346 - }, - "btmRightPoint": { - "lat": 47.61979, - "lon": -122.1308 - } - }, - "entryPoints": [ - { - "type": "main", - "position": { - "lat": 47.62069, - "lon": -122.13236 - } - } - ] - } - ] - } - }, - { - "statusCode": 200, - "response": { - "summary": { - "query": "statue of liberty", - "queryType": "NON_NEAR", - "queryTime": 37, - "numResults": 2, - "offset": 0, - "totalResults": 18, - "fuzzyLevel": 1 - }, - "results": [ - { - "type": "POI", - "id": "US/POI/p0/9189660", - "score": 6.942, - "info": "search:ta:840369001174316-US", - "poi": { - "name": "Statue of Liberty", - "categorySet": [ - { - "id": 7376003 - } - ], - "classifications": [ - { - "code": "IMPORTANT_TOURIST_ATTRACTION", - "names": [ - { - "nameLocale": "en-US", - "name": "monument" - }, - { - "nameLocale": "en-US", - "name": "important tourist attraction" - } - ] - } - ] - }, - "address": { - "municipalitySubdivision": "New York", - "municipality": "New York", - "countrySecondarySubdivision": "New York", - "countryTertiarySubdivision": "Manhattan", - "countrySubdivision": "NY", - "postalCode": "10004", - "countryCode": "US", - "country": "United States", - "countryCodeISO3": "USA", - "freeformAddress": "New York, NY 10004", - "localName": "New York", - "countrySubdivisionName": "New York" - }, - "position": { - "lat": 40.68955, - "lon": -74.04483 - }, - "viewport": { - "topLeftPoint": { - "lat": 40.69045, - "lon": -74.04602 - }, - "btmRightPoint": { - "lat": 40.68865, - "lon": -74.04364 - } - }, - "entryPoints": [ - { - "type": "main", - "position": { - "lat": 40.69001, - "lon": -74.04683 - } - } - ] - }, - { - "type": "POI", - "id": "US/POI/p1/3264566", - "score": 6.942, - "info": "search:ta:840019000670588-US", - "poi": { - "name": "Statue of Liberty", - "phone": "+(1)-(205)-9700251", - "categorySet": [ - { - "id": 7376003 - } - ], - "url": "www.1bsa.org", - "classifications": [ - { - "code": "IMPORTANT_TOURIST_ATTRACTION", - "names": [ - { - "nameLocale": "en-US", - "name": "important tourist attraction" - } - ] - } - ] - }, - "address": { - "streetNumber": "516", - "streetName": "Liberty Pkwy", - "municipalitySubdivision": "Vestavia Hills", - "municipality": "Vestavia Hills, Birmingham", - "countrySecondarySubdivision": "Jefferson", - "countryTertiarySubdivision": "Leeds", - "countrySubdivision": "AL", - "postalCode": "35242", - "countryCode": "US", - "country": "United States", - "countryCodeISO3": "USA", - "freeformAddress": "516 Liberty Pkwy, Vestavia Hills, AL 35242", - "localName": "Vestavia Hills", - "countrySubdivisionName": "Alabama" - }, - "position": { - "lat": 33.48234, - "lon": -86.70719 - }, - "viewport": { - "topLeftPoint": { - "lat": 33.48324, - "lon": -86.70827 - }, - "btmRightPoint": { - "lat": 33.48144, - "lon": -86.70611 - } - }, - "entryPoints": [ - { - "type": "main", - "position": { - "lat": 33.48129, - "lon": -86.7065 - } - } - ] - } - ] - } - }, - { - "statusCode": 200, - "response": { - "summary": { - "query": "starbucks", - "queryType": "NON_NEAR", - "queryTime": 35, - "numResults": 10, - "offset": 0, - "totalResults": 17, - "fuzzyLevel": 1, - "geoBias": { - "lat": 47.639769, - "lon": -122.128362 - } - }, - "results": [ - { - "type": "POI", - "id": "US/POI/p0/153678", - "score": 2.671, - "dist": 1206.8488178244172, - "info": "search:ta:840531000006554-US", - "poi": { - "name": "Starbucks", - "phone": "+(1)-(425)-8695816", - "brands": [ - { - "name": "Starbucks" - } - ], - "categorySet": [ - { - "id": 9376006 - } - ], - "url": "www.starbucks.com/site-selector", - "classifications": [ - { - "code": "CAFE_PUB", - "names": [ - { - "nameLocale": "en-US", - "name": "coffee shop" - }, - { - "nameLocale": "en-US", - "name": "café/pub" - } - ] - } - ] - }, - "address": { - "streetNumber": "15000", - "streetName": "NE 24th St", - "municipalitySubdivision": "Redmond", - "municipality": "Redmond", - "countrySecondarySubdivision": "King", - "countryTertiarySubdivision": "Seattle East", - "countrySubdivision": "WA", - "postalCode": "98052", - "extendedPostalCode": "980525522", - "countryCode": "US", - "country": "United States", - "countryCodeISO3": "USA", - "freeformAddress": "15000 NE 24th St, Redmond, WA 98052", - "localName": "Redmond", - "countrySubdivisionName": "Washington" - }, - "position": { - "lat": 47.63265, - "lon": -122.14052 - }, - "viewport": { - "topLeftPoint": { - "lat": 47.63355, - "lon": -122.14185 - }, - "btmRightPoint": { - "lat": 47.63175, - "lon": -122.13919 - } - }, - "entryPoints": [ - { - "type": "minor", - "position": { - "lat": 47.63156, - "lon": -122.14056 - } - }, - { - "type": "minor", - "position": { - "lat": 47.63156, - "lon": -122.14058 - } - }, - { - "type": "main", - "position": { - "lat": 47.63156, - "lon": -122.14048 - } - }, - { - "type": "main", - "position": { - "lat": 47.6324, - "lon": -122.13938 - } - } - ] - }, - { - "type": "POI", - "id": "US/POI/p0/152316", - "score": 2.67, - "dist": 2315.294397491255, - "info": "search:ta:840539000484552-US", - "poi": { - "name": "Starbucks", - "phone": "+(1)-(425)-6436471", - "brands": [ - { - "name": "Starbucks" - } - ], - "categorySet": [ - { - "id": 9376006 - } - ], - "url": "www.starbucks.com/store/15097", - "classifications": [ - { - "code": "CAFE_PUB", - "names": [ - { - "nameLocale": "en-US", - "name": "coffee shop" - }, - { - "nameLocale": "en-US", - "name": "café/pub" - } - ] - } - ] - }, - "address": { - "streetNumber": "15600", - "streetName": "NE 8th St", - "municipalitySubdivision": "Crossroads, Bellevue", - "municipality": "Bellevue", - "countrySecondarySubdivision": "King", - "countryTertiarySubdivision": "Seattle East", - "countrySubdivision": "WA", - "postalCode": "98008", - "countryCode": "US", - "country": "United States", - "countryCodeISO3": "USA", - "freeformAddress": "15600 NE 8th St, Bellevue, WA 98008", - "localName": "Bellevue", - "countrySubdivisionName": "Washington" - }, - "position": { - "lat": 47.61896, - "lon": -122.12945 - }, - "viewport": { - "topLeftPoint": { - "lat": 47.61986, - "lon": -122.13078 - }, - "btmRightPoint": { - "lat": 47.61806, - "lon": -122.12812 - } - }, - "entryPoints": [ - { - "type": "main", - "position": { - "lat": 47.619, - "lon": -122.12945 - } - } - ] - }, - { - "type": "POI", - "id": "US/POI/p1/167545", - "score": 2.67, - "dist": 1979.2222952267998, - "info": "search:ta:840539001950429-US", - "poi": { - "name": "Starbucks", - "phone": "+(1)-(425)-7470690", - "brands": [ - { - "name": "Starbucks" - } - ], - "categorySet": [ - { - "id": 9376006 - } - ], - "url": "www.starbucks.com/site-selector", - "classifications": [ - { - "code": "CAFE_PUB", - "names": [ - { - "nameLocale": "en-US", - "name": "coffee shop" - }, - { - "nameLocale": "en-US", - "name": "café/pub" - } - ] - } - ] - }, - "address": { - "streetNumber": "1350", - "streetName": "156th Ave NE", - "municipalitySubdivision": "Crossroads, Bellevue", - "municipality": "Bellevue", - "countrySecondarySubdivision": "King", - "countryTertiarySubdivision": "Seattle East", - "countrySubdivision": "WA", - "postalCode": "98007", - "countryCode": "US", - "country": "United States", - "countryCodeISO3": "USA", - "freeformAddress": "1350 156th Ave NE, Bellevue, WA 98007", - "localName": "Bellevue", - "countrySubdivisionName": "Washington" - }, - "position": { - "lat": 47.62212, - "lon": -122.13179 - }, - "viewport": { - "topLeftPoint": { - "lat": 47.62302, - "lon": -122.13312 - }, - "btmRightPoint": { - "lat": 47.62122, - "lon": -122.13046 - } - }, - "entryPoints": [ - { - "type": "main", - "position": { - "lat": 47.62213, - "lon": -122.13236 - } - } - ] - }, - { - "type": "POI", - "id": "US/POI/p1/168519", - "score": 2.67, - "dist": 2490.3337046455963, - "info": "search:ta:840539001015090-US", - "poi": { - "name": "Starbucks", - "phone": "+(1)-(425)-4556500", - "brands": [ - { - "name": "Starbucks" - } - ], - "categorySet": [ - { - "id": 9376006 - } - ], - "url": "https://www.starbucks.com/store-locator/store/15901", - "classifications": [ - { - "code": "CAFE_PUB", - "names": [ - { - "nameLocale": "en-US", - "name": "coffee shop" - }, - { - "nameLocale": "en-US", - "name": "café/pub" - } - ] - } - ] - }, - "address": { - "streetNumber": "1645", - "streetName": "140th Ave NE", - "municipalitySubdivision": "Crossroads, Bellevue", - "municipality": "Bellevue", - "countrySecondarySubdivision": "King", - "countryTertiarySubdivision": "Seattle East", - "countrySubdivision": "WA", - "postalCode": "98005", - "countryCode": "US", - "country": "United States", - "countryCodeISO3": "USA", - "freeformAddress": "1645 140th Ave NE, Bellevue, WA 98005", - "localName": "Bellevue", - "countrySubdivisionName": "Washington" - }, - "position": { - "lat": 47.62626, - "lon": -122.15487 - }, - "viewport": { - "topLeftPoint": { - "lat": 47.62716, - "lon": -122.1562 - }, - "btmRightPoint": { - "lat": 47.62536, - "lon": -122.15354 - } - }, - "entryPoints": [ - { - "type": "main", - "position": { - "lat": 47.62645, - "lon": -122.15446 - } - }, - { - "type": "minor", - "position": { - "lat": 47.62579, - "lon": -122.15377 - } - } - ] - }, - { - "type": "POI", - "id": "US/POI/p0/152428", - "score": 2.668, - "dist": 3529.7080738812224, - "info": "search:ta:840539001033722-US", - "poi": { - "name": "Starbucks", - "phone": "+(1)-(425)-3789496", - "brands": [ - { - "name": "Starbucks" - } - ], - "categorySet": [ - { - "id": 9376006 - } - ], - "url": "www.starbucks.com/site-selector", - "classifications": [ - { - "code": "CAFE_PUB", - "names": [ - { - "nameLocale": "en-US", - "name": "coffee shop" - }, - { - "nameLocale": "en-US", - "name": "café/pub" - } - ] - } - ] - }, - "address": { - "streetNumber": "180", - "streetName": "148th Ave SE", - "municipalitySubdivision": "West Lake Hills, Bellevue", - "municipality": "Bellevue", - "countrySecondarySubdivision": "King", - "countryTertiarySubdivision": "Seattle East", - "countrySubdivision": "WA", - "postalCode": "98007", - "countryCode": "US", - "country": "United States", - "countryCodeISO3": "USA", - "freeformAddress": "180 148th Ave SE, Bellevue, WA 98007", - "localName": "Bellevue", - "countrySubdivisionName": "Washington" - }, - "position": { - "lat": 47.60901, - "lon": -122.14 - }, - "viewport": { - "topLeftPoint": { - "lat": 47.60991, - "lon": -122.14133 - }, - "btmRightPoint": { - "lat": 47.60811, - "lon": -122.13867 - } - }, - "entryPoints": [ - { - "type": "main", - "position": { - "lat": 47.60901, - "lon": -122.14008 - } - } - ] - }, - { - "type": "POI", - "id": "US/POI/p1/167147", - "score": 2.668, - "dist": 3479.393294615887, - "info": "search:ta:840539000326896-US", - "poi": { - "name": "Starbucks", - "phone": "+(1)-(425)-8619198", - "brands": [ - { - "name": "Starbucks" - } - ], - "categorySet": [ - { - "id": 9376006 - } - ], - "url": "www.starbucks.com/site-selector", - "classifications": [ - { - "code": "CAFE_PUB", - "names": [ - { - "nameLocale": "en-US", - "name": "coffee shop" - }, - { - "nameLocale": "en-US", - "name": "café/pub" - } - ] - } - ] - }, - "address": { - "streetNumber": "7425", - "streetName": "166th Ave NE", - "municipalitySubdivision": "Redmond", - "municipality": "Redmond", - "countrySecondarySubdivision": "King", - "countryTertiarySubdivision": "Seattle East", - "countrySubdivision": "WA", - "postalCode": "98052", - "extendedPostalCode": "980526288", - "countryCode": "US", - "country": "United States", - "countryCodeISO3": "USA", - "freeformAddress": "7425 166th Ave NE, Redmond, WA 98052", - "localName": "Redmond", - "countrySubdivisionName": "Washington" - }, - "position": { - "lat": 47.67055, - "lon": -122.12001 - }, - "viewport": { - "topLeftPoint": { - "lat": 47.67145, - "lon": -122.12135 - }, - "btmRightPoint": { - "lat": 47.66965, - "lon": -122.11867 - } - }, - "entryPoints": [ - { - "type": "main", - "position": { - "lat": 47.67069, - "lon": -122.11889 - } - } - ] - }, - { - "type": "POI", - "id": "US/POI/p0/153695", - "score": 2.667, - "dist": 3622.4410746187291, - "info": "search:ta:840531000006551-US", - "poi": { - "name": "Starbucks", - "phone": "+(1)-(425)-8822881", - "brands": [ - { - "name": "Starbucks" - } - ], - "categorySet": [ - { - "id": 9376006 - } - ], - "url": "www.starbucks.com/store/15022", - "classifications": [ - { - "code": "CAFE_PUB", - "names": [ - { - "nameLocale": "en-US", - "name": "coffee shop" - }, - { - "nameLocale": "en-US", - "name": "café/pub" - } - ] - } - ] - }, - "address": { - "streetNumber": "7625", - "streetName": "170th Ave NE", - "municipalitySubdivision": "Redmond", - "municipality": "Redmond", - "countrySecondarySubdivision": "King", - "countryTertiarySubdivision": "Seattle East", - "countrySubdivision": "WA", - "postalCode": "98052", - "extendedPostalCode": "980520910", - "countryCode": "US", - "country": "United States", - "countryCodeISO3": "USA", - "freeformAddress": "7625 170th Ave NE, Redmond, WA 98052", - "localName": "Redmond", - "countrySubdivisionName": "Washington" - }, - "position": { - "lat": 47.67086, - "lon": -122.11392 - }, - "viewport": { - "topLeftPoint": { - "lat": 47.67176, - "lon": -122.11526 - }, - "btmRightPoint": { - "lat": 47.66996, - "lon": -122.11258 - } - }, - "entryPoints": [ - { - "type": "main", - "position": { - "lat": 47.67073, - "lon": -122.1135 - } - } - ] - }, - { - "type": "POI", - "id": "US/POI/p1/167420", - "score": 2.667, - "dist": 3818.293513029088, - "info": "search:ta:840539000640782-US", - "poi": { - "name": "Starbucks", - "phone": "+(1)-(425)-8853323", - "brands": [ - { - "name": "Starbucks" - } - ], - "categorySet": [ - { - "id": 9376006 - } - ], - "url": "www.starbucks.com/site-selector", - "classifications": [ - { - "code": "CAFE_PUB", - "names": [ - { - "nameLocale": "en-US", - "name": "coffee shop" - }, - { - "nameLocale": "en-US", - "name": "café/pub" - } - ] - } - ] - }, - "address": { - "streetNumber": "17246", - "streetName": "Redmond Way", - "municipalitySubdivision": "Redmond", - "municipality": "Redmond", - "countrySecondarySubdivision": "King", - "countryTertiarySubdivision": "Seattle East", - "countrySubdivision": "WA", - "postalCode": "98052", - "extendedPostalCode": "980524403", - "countryCode": "US", - "country": "United States", - "countryCodeISO3": "USA", - "freeformAddress": "17246 Redmond Way, Redmond, WA 98052", - "localName": "Redmond", - "countrySubdivisionName": "Washington" - }, - "position": { - "lat": 47.67174, - "lon": -122.10976 - }, - "viewport": { - "topLeftPoint": { - "lat": 47.67264, - "lon": -122.1111 - }, - "btmRightPoint": { - "lat": 47.67084, - "lon": -122.10842 - } - }, - "entryPoints": [ - { - "type": "main", - "position": { - "lat": 47.6706, - "lon": -122.11026 - } - } - ] - }, - { - "type": "POI", - "id": "US/POI/p0/153686", - "score": 2.666, - "dist": 4009.9222051470738, - "info": "search:ta:840531000006548-US", - "poi": { - "name": "Starbucks", - "phone": "+(1)-(425)-8859590", - "brands": [ - { - "name": "Starbucks" - } - ], - "categorySet": [ - { - "id": 9376006 - } - ], - "url": "www.starbucks.com/site-selector", - "classifications": [ - { - "code": "CAFE_PUB", - "names": [ - { - "nameLocale": "en-US", - "name": "coffee shop" - }, - { - "nameLocale": "en-US", - "name": "café/pub" - } - ] - } - ] - }, - "address": { - "streetNumber": "15738", - "streetName": "Redmond Way Pad 3 Redmond Center", - "municipalitySubdivision": "Redmond", - "municipality": "Redmond", - "countrySecondarySubdivision": "King", - "countryTertiarySubdivision": "Seattle East", - "countrySubdivision": "WA", - "postalCode": "98052", - "extendedPostalCode": "980523873", - "countryCode": "US", - "country": "United States", - "countryCodeISO3": "USA", - "freeformAddress": "15738 Redmond Way Pad 3 Redmond Center, Redmond, WA 98052", - "localName": "Redmond", - "countrySubdivisionName": "Washington" - }, - "position": { - "lat": 47.67583, - "lon": -122.12877 - }, - "viewport": { - "topLeftPoint": { - "lat": 47.67673, - "lon": -122.13011 - }, - "btmRightPoint": { - "lat": 47.67493, - "lon": -122.12743 - } - }, - "entryPoints": [ - { - "type": "minor", - "position": { - "lat": 47.67456, - "lon": -122.12887 - } - }, - { - "type": "main", - "position": { - "lat": 47.67668, - "lon": -122.12829 - } - } - ] - }, - { - "type": "POI", - "id": "US/POI/p1/168511", - "score": 2.666, - "dist": 3987.80992387863, - "info": "search:ta:840531000006669-US", - "poi": { - "name": "Starbucks", - "phone": "+(1)-(425)-8818265", - "brands": [ - { - "name": "Starbucks" - } - ], - "categorySet": [ - { - "id": 9376006 - } - ], - "url": "www.starbucks.com/site-selector", - "classifications": [ - { - "code": "CAFE_PUB", - "names": [ - { - "nameLocale": "en-US", - "name": "coffee shop" - }, - { - "nameLocale": "en-US", - "name": "café/pub" - } - ] - } - ] - }, - "address": { - "streetNumber": "6617", - "streetName": "132Nd Ave Ne Bridle Trails Shopping Center", - "municipalitySubdivision": "Kirkland, Bridle Trails", - "municipality": "Kirkland", - "countrySecondarySubdivision": "King", - "countryTertiarySubdivision": "Seattle East", - "countrySubdivision": "WA", - "postalCode": "98033", - "extendedPostalCode": "980338234", - "countryCode": "US", - "country": "United States", - "countryCodeISO3": "USA", - "freeformAddress": "6617 132Nd Ave Ne Bridle Trails Shopping Center, Kirkland, WA 98033", - "localName": "Kirkland", - "countrySubdivisionName": "Washington" - }, - "position": { - "lat": 47.66514, - "lon": -122.16599 - }, - "viewport": { - "topLeftPoint": { - "lat": 47.66604, - "lon": -122.16733 - }, - "btmRightPoint": { - "lat": 47.66424, - "lon": -122.16465 - } - }, - "entryPoints": [ - { - "type": "main", - "position": { - "lat": 47.666, - "lon": -122.16669 - } - }, - { - "type": "minor", - "position": { - "lat": 47.66553, - "lon": -122.16405 - } - } - ] - } - ] - } - } - ], - "summary": { - "successfulRequests": 3, - "totalRequests": 3 - } - } - }, "202": { "headers": { "Location": "URL to download the results of the long-running batch request." diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchFuzzyBatchSync.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchFuzzyBatchSync.json new file mode 100644 index 000000000000..5ea95c396f55 --- /dev/null +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchFuzzyBatchSync.json @@ -0,0 +1,1459 @@ +{ + "parameters": { + "geography": "us", + "format": "json", + "api-version": "1.0", + "subscription-key": "[subscription-key]", + "searchFuzzyBatchRequestBody": { + "batchItems": [ + { + "query": "?query=atm&lat=47.639769&lon=-122.128362&radius=5000&limit=5" + }, + { + "query": "?query=Statue Of Liberty&limit=2" + }, + { + "query": "?query=Starbucks&lat=47.639769&lon=-122.128362&radius=5000" + } + ] + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "batchItems": [ + { + "statusCode": 200, + "response": { + "summary": { + "query": "atm", + "queryType": "NON_NEAR", + "queryTime": 5, + "numResults": 5, + "offset": 0, + "totalResults": 262, + "fuzzyLevel": 1, + "geoBias": { + "lat": 47.639769, + "lon": -122.128362 + } + }, + "results": [ + { + "type": "POI", + "id": "US/POI/p0/3656546", + "score": 2.671, + "dist": 1336.1815386162032, + "info": "search:ta:840539002005905-US", + "poi": { + "name": "US Bank ATM-MONEYPASS", + "brands": [ + { + "name": "US Bank ATM" + } + ], + "categorySet": [ + { + "id": 7397 + } + ], + "classifications": [ + { + "code": "CASH_DISPENSER", + "names": [ + { + "nameLocale": "en-US", + "name": "cash dispenser" + } + ] + } + ] + }, + "address": { + "streetNumber": "14808", + "streetName": "NE 24th St", + "municipalitySubdivision": "Redmond", + "municipality": "Redmond", + "countrySecondarySubdivision": "King", + "countryTertiarySubdivision": "Seattle East", + "countrySubdivision": "WA", + "postalCode": "98052", + "countryCode": "US", + "country": "United States", + "countryCodeISO3": "USA", + "freeformAddress": "14808 NE 24th St, Redmond, WA 98052", + "localName": "Redmond", + "countrySubdivisionName": "Washington" + }, + "position": { + "lat": 47.63229, + "lon": -122.14232 + }, + "viewport": { + "topLeftPoint": { + "lat": 47.63319, + "lon": -122.14365 + }, + "btmRightPoint": { + "lat": 47.63139, + "lon": -122.14099 + } + }, + "entryPoints": [ + { + "type": "main", + "position": { + "lat": 47.63154, + "lon": -122.1423 + } + } + ] + }, + { + "type": "POI", + "id": "US/POI/p0/8673325", + "score": 2.671, + "dist": 1206.8488178244172, + "info": "search:ta:840539002022072-US", + "poi": { + "name": "US Bank ATM NATIONAL ASSOCIATION", + "brands": [ + { + "name": "US Bank ATM" + } + ], + "categorySet": [ + { + "id": 7397 + } + ], + "classifications": [ + { + "code": "CASH_DISPENSER", + "names": [ + { + "nameLocale": "en-US", + "name": "cash dispenser" + } + ] + } + ] + }, + "address": { + "streetNumber": "15000", + "streetName": "Northeast 24Th Street", + "municipalitySubdivision": "Redmond", + "municipality": "Redmond", + "countrySecondarySubdivision": "King", + "countryTertiarySubdivision": "Seattle East", + "countrySubdivision": "WA", + "postalCode": "98052", + "extendedPostalCode": "980525522", + "countryCode": "US", + "country": "United States", + "countryCodeISO3": "USA", + "freeformAddress": "15000 Northeast 24Th Street, Redmond, WA 98052", + "localName": "Redmond", + "countrySubdivisionName": "Washington" + }, + "position": { + "lat": 47.63265, + "lon": -122.14052 + }, + "viewport": { + "topLeftPoint": { + "lat": 47.63355, + "lon": -122.14185 + }, + "btmRightPoint": { + "lat": 47.63175, + "lon": -122.13919 + } + }, + "entryPoints": [ + { + "type": "minor", + "position": { + "lat": 47.63156, + "lon": -122.14056 + } + }, + { + "type": "minor", + "position": { + "lat": 47.63156, + "lon": -122.14058 + } + }, + { + "type": "main", + "position": { + "lat": 47.63156, + "lon": -122.14048 + } + }, + { + "type": "main", + "position": { + "lat": 47.6324, + "lon": -122.13938 + } + } + ] + }, + { + "type": "POI", + "id": "US/POI/p1/2736315", + "score": 2.671, + "dist": 864.75917765198585, + "info": "search:ta:840539002187855-US", + "poi": { + "name": "US Bank ATM-MONEYPASS", + "brands": [ + { + "name": "US Bank ATM" + } + ], + "categorySet": [ + { + "id": 7397 + } + ], + "classifications": [ + { + "code": "CASH_DISPENSER", + "names": [ + { + "nameLocale": "en-US", + "name": "cash dispenser" + } + ] + } + ] + }, + "address": { + "streetNumber": "15521", + "streetName": "Bel Red Rd", + "municipalitySubdivision": "Redmond, Northeast Bellevue, Bellevue", + "municipality": "Redmond, Bellevue", + "countrySecondarySubdivision": "King", + "countryTertiarySubdivision": "Seattle East", + "countrySubdivision": "WA", + "postalCode": "98052", + "extendedPostalCode": "980525501", + "countryCode": "US", + "country": "United States", + "countryCodeISO3": "USA", + "freeformAddress": "15521 Bel Red Rd, Redmond, WA 98052", + "localName": "Redmond", + "countrySubdivisionName": "Washington" + }, + "position": { + "lat": 47.63259, + "lon": -122.1328 + }, + "viewport": { + "topLeftPoint": { + "lat": 47.63349, + "lon": -122.13413 + }, + "btmRightPoint": { + "lat": 47.63169, + "lon": -122.13147 + } + }, + "entryPoints": [ + { + "type": "main", + "position": { + "lat": 47.63255, + "lon": -122.13275 + } + } + ] + }, + { + "type": "POI", + "id": "US/POI/p0/3656412", + "score": 2.67, + "dist": 2140.1985385809412, + "info": "search:ta:840539001998867-US", + "poi": { + "name": "US Bank ATM NATIONAL ASSOCIATION", + "brands": [ + { + "name": "US Bank ATM" + } + ], + "categorySet": [ + { + "id": 7397 + } + ], + "classifications": [ + { + "code": "CASH_DISPENSER", + "names": [ + { + "nameLocale": "en-US", + "name": "cash dispenser" + } + ] + } + ] + }, + "address": { + "streetNumber": "1128", + "streetName": "156th Ave NE", + "municipalitySubdivision": "Crossroads, Bellevue", + "municipality": "Bellevue", + "countrySecondarySubdivision": "King", + "countryTertiarySubdivision": "Seattle East", + "countrySubdivision": "WA", + "postalCode": "98007", + "countryCode": "US", + "country": "United States", + "countryCodeISO3": "USA", + "freeformAddress": "1128 156th Ave NE, Bellevue, WA 98007", + "localName": "Bellevue", + "countrySubdivisionName": "Washington" + }, + "position": { + "lat": 47.62069, + "lon": -122.13213 + }, + "viewport": { + "topLeftPoint": { + "lat": 47.62159, + "lon": -122.13346 + }, + "btmRightPoint": { + "lat": 47.61979, + "lon": -122.1308 + } + }, + "entryPoints": [ + { + "type": "main", + "position": { + "lat": 47.62069, + "lon": -122.13236 + } + } + ] + }, + { + "type": "POI", + "id": "US/POI/p1/2736876", + "score": 2.67, + "dist": 2140.1985385809412, + "info": "search:ta:840539001396789-US", + "poi": { + "name": "US Bank ATM", + "phone": "+(1)-(800)-8722657", + "brands": [ + { + "name": "US Bank ATM" + } + ], + "categorySet": [ + { + "id": 7397 + } + ], + "url": "www.usbank.com", + "classifications": [ + { + "code": "CASH_DISPENSER", + "names": [ + { + "nameLocale": "en-US", + "name": "cash dispenser" + } + ] + } + ] + }, + "address": { + "streetNumber": "1128", + "streetName": "156th Ave NE", + "municipalitySubdivision": "Crossroads, Bellevue", + "municipality": "Bellevue", + "countrySecondarySubdivision": "King", + "countryTertiarySubdivision": "Seattle East", + "countrySubdivision": "WA", + "postalCode": "98007", + "countryCode": "US", + "country": "United States", + "countryCodeISO3": "USA", + "freeformAddress": "1128 156th Ave NE, Bellevue, WA 98007", + "localName": "Bellevue", + "countrySubdivisionName": "Washington" + }, + "position": { + "lat": 47.62069, + "lon": -122.13213 + }, + "viewport": { + "topLeftPoint": { + "lat": 47.62159, + "lon": -122.13346 + }, + "btmRightPoint": { + "lat": 47.61979, + "lon": -122.1308 + } + }, + "entryPoints": [ + { + "type": "main", + "position": { + "lat": 47.62069, + "lon": -122.13236 + } + } + ] + } + ] + } + }, + { + "statusCode": 200, + "response": { + "summary": { + "query": "statue of liberty", + "queryType": "NON_NEAR", + "queryTime": 37, + "numResults": 2, + "offset": 0, + "totalResults": 18, + "fuzzyLevel": 1 + }, + "results": [ + { + "type": "POI", + "id": "US/POI/p0/9189660", + "score": 6.942, + "info": "search:ta:840369001174316-US", + "poi": { + "name": "Statue of Liberty", + "categorySet": [ + { + "id": 7376003 + } + ], + "classifications": [ + { + "code": "IMPORTANT_TOURIST_ATTRACTION", + "names": [ + { + "nameLocale": "en-US", + "name": "monument" + }, + { + "nameLocale": "en-US", + "name": "important tourist attraction" + } + ] + } + ] + }, + "address": { + "municipalitySubdivision": "New York", + "municipality": "New York", + "countrySecondarySubdivision": "New York", + "countryTertiarySubdivision": "Manhattan", + "countrySubdivision": "NY", + "postalCode": "10004", + "countryCode": "US", + "country": "United States", + "countryCodeISO3": "USA", + "freeformAddress": "New York, NY 10004", + "localName": "New York", + "countrySubdivisionName": "New York" + }, + "position": { + "lat": 40.68955, + "lon": -74.04483 + }, + "viewport": { + "topLeftPoint": { + "lat": 40.69045, + "lon": -74.04602 + }, + "btmRightPoint": { + "lat": 40.68865, + "lon": -74.04364 + } + }, + "entryPoints": [ + { + "type": "main", + "position": { + "lat": 40.69001, + "lon": -74.04683 + } + } + ] + }, + { + "type": "POI", + "id": "US/POI/p1/3264566", + "score": 6.942, + "info": "search:ta:840019000670588-US", + "poi": { + "name": "Statue of Liberty", + "phone": "+(1)-(205)-9700251", + "categorySet": [ + { + "id": 7376003 + } + ], + "url": "www.1bsa.org", + "classifications": [ + { + "code": "IMPORTANT_TOURIST_ATTRACTION", + "names": [ + { + "nameLocale": "en-US", + "name": "important tourist attraction" + } + ] + } + ] + }, + "address": { + "streetNumber": "516", + "streetName": "Liberty Pkwy", + "municipalitySubdivision": "Vestavia Hills", + "municipality": "Vestavia Hills, Birmingham", + "countrySecondarySubdivision": "Jefferson", + "countryTertiarySubdivision": "Leeds", + "countrySubdivision": "AL", + "postalCode": "35242", + "countryCode": "US", + "country": "United States", + "countryCodeISO3": "USA", + "freeformAddress": "516 Liberty Pkwy, Vestavia Hills, AL 35242", + "localName": "Vestavia Hills", + "countrySubdivisionName": "Alabama" + }, + "position": { + "lat": 33.48234, + "lon": -86.70719 + }, + "viewport": { + "topLeftPoint": { + "lat": 33.48324, + "lon": -86.70827 + }, + "btmRightPoint": { + "lat": 33.48144, + "lon": -86.70611 + } + }, + "entryPoints": [ + { + "type": "main", + "position": { + "lat": 33.48129, + "lon": -86.7065 + } + } + ] + } + ] + } + }, + { + "statusCode": 200, + "response": { + "summary": { + "query": "starbucks", + "queryType": "NON_NEAR", + "queryTime": 35, + "numResults": 10, + "offset": 0, + "totalResults": 17, + "fuzzyLevel": 1, + "geoBias": { + "lat": 47.639769, + "lon": -122.128362 + } + }, + "results": [ + { + "type": "POI", + "id": "US/POI/p0/153678", + "score": 2.671, + "dist": 1206.8488178244172, + "info": "search:ta:840531000006554-US", + "poi": { + "name": "Starbucks", + "phone": "+(1)-(425)-8695816", + "brands": [ + { + "name": "Starbucks" + } + ], + "categorySet": [ + { + "id": 9376006 + } + ], + "url": "www.starbucks.com/site-selector", + "classifications": [ + { + "code": "CAFE_PUB", + "names": [ + { + "nameLocale": "en-US", + "name": "coffee shop" + }, + { + "nameLocale": "en-US", + "name": "café/pub" + } + ] + } + ] + }, + "address": { + "streetNumber": "15000", + "streetName": "NE 24th St", + "municipalitySubdivision": "Redmond", + "municipality": "Redmond", + "countrySecondarySubdivision": "King", + "countryTertiarySubdivision": "Seattle East", + "countrySubdivision": "WA", + "postalCode": "98052", + "extendedPostalCode": "980525522", + "countryCode": "US", + "country": "United States", + "countryCodeISO3": "USA", + "freeformAddress": "15000 NE 24th St, Redmond, WA 98052", + "localName": "Redmond", + "countrySubdivisionName": "Washington" + }, + "position": { + "lat": 47.63265, + "lon": -122.14052 + }, + "viewport": { + "topLeftPoint": { + "lat": 47.63355, + "lon": -122.14185 + }, + "btmRightPoint": { + "lat": 47.63175, + "lon": -122.13919 + } + }, + "entryPoints": [ + { + "type": "minor", + "position": { + "lat": 47.63156, + "lon": -122.14056 + } + }, + { + "type": "minor", + "position": { + "lat": 47.63156, + "lon": -122.14058 + } + }, + { + "type": "main", + "position": { + "lat": 47.63156, + "lon": -122.14048 + } + }, + { + "type": "main", + "position": { + "lat": 47.6324, + "lon": -122.13938 + } + } + ] + }, + { + "type": "POI", + "id": "US/POI/p0/152316", + "score": 2.67, + "dist": 2315.294397491255, + "info": "search:ta:840539000484552-US", + "poi": { + "name": "Starbucks", + "phone": "+(1)-(425)-6436471", + "brands": [ + { + "name": "Starbucks" + } + ], + "categorySet": [ + { + "id": 9376006 + } + ], + "url": "www.starbucks.com/store/15097", + "classifications": [ + { + "code": "CAFE_PUB", + "names": [ + { + "nameLocale": "en-US", + "name": "coffee shop" + }, + { + "nameLocale": "en-US", + "name": "café/pub" + } + ] + } + ] + }, + "address": { + "streetNumber": "15600", + "streetName": "NE 8th St", + "municipalitySubdivision": "Crossroads, Bellevue", + "municipality": "Bellevue", + "countrySecondarySubdivision": "King", + "countryTertiarySubdivision": "Seattle East", + "countrySubdivision": "WA", + "postalCode": "98008", + "countryCode": "US", + "country": "United States", + "countryCodeISO3": "USA", + "freeformAddress": "15600 NE 8th St, Bellevue, WA 98008", + "localName": "Bellevue", + "countrySubdivisionName": "Washington" + }, + "position": { + "lat": 47.61896, + "lon": -122.12945 + }, + "viewport": { + "topLeftPoint": { + "lat": 47.61986, + "lon": -122.13078 + }, + "btmRightPoint": { + "lat": 47.61806, + "lon": -122.12812 + } + }, + "entryPoints": [ + { + "type": "main", + "position": { + "lat": 47.619, + "lon": -122.12945 + } + } + ] + }, + { + "type": "POI", + "id": "US/POI/p1/167545", + "score": 2.67, + "dist": 1979.2222952267998, + "info": "search:ta:840539001950429-US", + "poi": { + "name": "Starbucks", + "phone": "+(1)-(425)-7470690", + "brands": [ + { + "name": "Starbucks" + } + ], + "categorySet": [ + { + "id": 9376006 + } + ], + "url": "www.starbucks.com/site-selector", + "classifications": [ + { + "code": "CAFE_PUB", + "names": [ + { + "nameLocale": "en-US", + "name": "coffee shop" + }, + { + "nameLocale": "en-US", + "name": "café/pub" + } + ] + } + ] + }, + "address": { + "streetNumber": "1350", + "streetName": "156th Ave NE", + "municipalitySubdivision": "Crossroads, Bellevue", + "municipality": "Bellevue", + "countrySecondarySubdivision": "King", + "countryTertiarySubdivision": "Seattle East", + "countrySubdivision": "WA", + "postalCode": "98007", + "countryCode": "US", + "country": "United States", + "countryCodeISO3": "USA", + "freeformAddress": "1350 156th Ave NE, Bellevue, WA 98007", + "localName": "Bellevue", + "countrySubdivisionName": "Washington" + }, + "position": { + "lat": 47.62212, + "lon": -122.13179 + }, + "viewport": { + "topLeftPoint": { + "lat": 47.62302, + "lon": -122.13312 + }, + "btmRightPoint": { + "lat": 47.62122, + "lon": -122.13046 + } + }, + "entryPoints": [ + { + "type": "main", + "position": { + "lat": 47.62213, + "lon": -122.13236 + } + } + ] + }, + { + "type": "POI", + "id": "US/POI/p1/168519", + "score": 2.67, + "dist": 2490.3337046455963, + "info": "search:ta:840539001015090-US", + "poi": { + "name": "Starbucks", + "phone": "+(1)-(425)-4556500", + "brands": [ + { + "name": "Starbucks" + } + ], + "categorySet": [ + { + "id": 9376006 + } + ], + "url": "https://www.starbucks.com/store-locator/store/15901", + "classifications": [ + { + "code": "CAFE_PUB", + "names": [ + { + "nameLocale": "en-US", + "name": "coffee shop" + }, + { + "nameLocale": "en-US", + "name": "café/pub" + } + ] + } + ] + }, + "address": { + "streetNumber": "1645", + "streetName": "140th Ave NE", + "municipalitySubdivision": "Crossroads, Bellevue", + "municipality": "Bellevue", + "countrySecondarySubdivision": "King", + "countryTertiarySubdivision": "Seattle East", + "countrySubdivision": "WA", + "postalCode": "98005", + "countryCode": "US", + "country": "United States", + "countryCodeISO3": "USA", + "freeformAddress": "1645 140th Ave NE, Bellevue, WA 98005", + "localName": "Bellevue", + "countrySubdivisionName": "Washington" + }, + "position": { + "lat": 47.62626, + "lon": -122.15487 + }, + "viewport": { + "topLeftPoint": { + "lat": 47.62716, + "lon": -122.1562 + }, + "btmRightPoint": { + "lat": 47.62536, + "lon": -122.15354 + } + }, + "entryPoints": [ + { + "type": "main", + "position": { + "lat": 47.62645, + "lon": -122.15446 + } + }, + { + "type": "minor", + "position": { + "lat": 47.62579, + "lon": -122.15377 + } + } + ] + }, + { + "type": "POI", + "id": "US/POI/p0/152428", + "score": 2.668, + "dist": 3529.7080738812224, + "info": "search:ta:840539001033722-US", + "poi": { + "name": "Starbucks", + "phone": "+(1)-(425)-3789496", + "brands": [ + { + "name": "Starbucks" + } + ], + "categorySet": [ + { + "id": 9376006 + } + ], + "url": "www.starbucks.com/site-selector", + "classifications": [ + { + "code": "CAFE_PUB", + "names": [ + { + "nameLocale": "en-US", + "name": "coffee shop" + }, + { + "nameLocale": "en-US", + "name": "café/pub" + } + ] + } + ] + }, + "address": { + "streetNumber": "180", + "streetName": "148th Ave SE", + "municipalitySubdivision": "West Lake Hills, Bellevue", + "municipality": "Bellevue", + "countrySecondarySubdivision": "King", + "countryTertiarySubdivision": "Seattle East", + "countrySubdivision": "WA", + "postalCode": "98007", + "countryCode": "US", + "country": "United States", + "countryCodeISO3": "USA", + "freeformAddress": "180 148th Ave SE, Bellevue, WA 98007", + "localName": "Bellevue", + "countrySubdivisionName": "Washington" + }, + "position": { + "lat": 47.60901, + "lon": -122.14 + }, + "viewport": { + "topLeftPoint": { + "lat": 47.60991, + "lon": -122.14133 + }, + "btmRightPoint": { + "lat": 47.60811, + "lon": -122.13867 + } + }, + "entryPoints": [ + { + "type": "main", + "position": { + "lat": 47.60901, + "lon": -122.14008 + } + } + ] + }, + { + "type": "POI", + "id": "US/POI/p1/167147", + "score": 2.668, + "dist": 3479.393294615887, + "info": "search:ta:840539000326896-US", + "poi": { + "name": "Starbucks", + "phone": "+(1)-(425)-8619198", + "brands": [ + { + "name": "Starbucks" + } + ], + "categorySet": [ + { + "id": 9376006 + } + ], + "url": "www.starbucks.com/site-selector", + "classifications": [ + { + "code": "CAFE_PUB", + "names": [ + { + "nameLocale": "en-US", + "name": "coffee shop" + }, + { + "nameLocale": "en-US", + "name": "café/pub" + } + ] + } + ] + }, + "address": { + "streetNumber": "7425", + "streetName": "166th Ave NE", + "municipalitySubdivision": "Redmond", + "municipality": "Redmond", + "countrySecondarySubdivision": "King", + "countryTertiarySubdivision": "Seattle East", + "countrySubdivision": "WA", + "postalCode": "98052", + "extendedPostalCode": "980526288", + "countryCode": "US", + "country": "United States", + "countryCodeISO3": "USA", + "freeformAddress": "7425 166th Ave NE, Redmond, WA 98052", + "localName": "Redmond", + "countrySubdivisionName": "Washington" + }, + "position": { + "lat": 47.67055, + "lon": -122.12001 + }, + "viewport": { + "topLeftPoint": { + "lat": 47.67145, + "lon": -122.12135 + }, + "btmRightPoint": { + "lat": 47.66965, + "lon": -122.11867 + } + }, + "entryPoints": [ + { + "type": "main", + "position": { + "lat": 47.67069, + "lon": -122.11889 + } + } + ] + }, + { + "type": "POI", + "id": "US/POI/p0/153695", + "score": 2.667, + "dist": 3622.4410746187291, + "info": "search:ta:840531000006551-US", + "poi": { + "name": "Starbucks", + "phone": "+(1)-(425)-8822881", + "brands": [ + { + "name": "Starbucks" + } + ], + "categorySet": [ + { + "id": 9376006 + } + ], + "url": "www.starbucks.com/store/15022", + "classifications": [ + { + "code": "CAFE_PUB", + "names": [ + { + "nameLocale": "en-US", + "name": "coffee shop" + }, + { + "nameLocale": "en-US", + "name": "café/pub" + } + ] + } + ] + }, + "address": { + "streetNumber": "7625", + "streetName": "170th Ave NE", + "municipalitySubdivision": "Redmond", + "municipality": "Redmond", + "countrySecondarySubdivision": "King", + "countryTertiarySubdivision": "Seattle East", + "countrySubdivision": "WA", + "postalCode": "98052", + "extendedPostalCode": "980520910", + "countryCode": "US", + "country": "United States", + "countryCodeISO3": "USA", + "freeformAddress": "7625 170th Ave NE, Redmond, WA 98052", + "localName": "Redmond", + "countrySubdivisionName": "Washington" + }, + "position": { + "lat": 47.67086, + "lon": -122.11392 + }, + "viewport": { + "topLeftPoint": { + "lat": 47.67176, + "lon": -122.11526 + }, + "btmRightPoint": { + "lat": 47.66996, + "lon": -122.11258 + } + }, + "entryPoints": [ + { + "type": "main", + "position": { + "lat": 47.67073, + "lon": -122.1135 + } + } + ] + }, + { + "type": "POI", + "id": "US/POI/p1/167420", + "score": 2.667, + "dist": 3818.293513029088, + "info": "search:ta:840539000640782-US", + "poi": { + "name": "Starbucks", + "phone": "+(1)-(425)-8853323", + "brands": [ + { + "name": "Starbucks" + } + ], + "categorySet": [ + { + "id": 9376006 + } + ], + "url": "www.starbucks.com/site-selector", + "classifications": [ + { + "code": "CAFE_PUB", + "names": [ + { + "nameLocale": "en-US", + "name": "coffee shop" + }, + { + "nameLocale": "en-US", + "name": "café/pub" + } + ] + } + ] + }, + "address": { + "streetNumber": "17246", + "streetName": "Redmond Way", + "municipalitySubdivision": "Redmond", + "municipality": "Redmond", + "countrySecondarySubdivision": "King", + "countryTertiarySubdivision": "Seattle East", + "countrySubdivision": "WA", + "postalCode": "98052", + "extendedPostalCode": "980524403", + "countryCode": "US", + "country": "United States", + "countryCodeISO3": "USA", + "freeformAddress": "17246 Redmond Way, Redmond, WA 98052", + "localName": "Redmond", + "countrySubdivisionName": "Washington" + }, + "position": { + "lat": 47.67174, + "lon": -122.10976 + }, + "viewport": { + "topLeftPoint": { + "lat": 47.67264, + "lon": -122.1111 + }, + "btmRightPoint": { + "lat": 47.67084, + "lon": -122.10842 + } + }, + "entryPoints": [ + { + "type": "main", + "position": { + "lat": 47.6706, + "lon": -122.11026 + } + } + ] + }, + { + "type": "POI", + "id": "US/POI/p0/153686", + "score": 2.666, + "dist": 4009.9222051470738, + "info": "search:ta:840531000006548-US", + "poi": { + "name": "Starbucks", + "phone": "+(1)-(425)-8859590", + "brands": [ + { + "name": "Starbucks" + } + ], + "categorySet": [ + { + "id": 9376006 + } + ], + "url": "www.starbucks.com/site-selector", + "classifications": [ + { + "code": "CAFE_PUB", + "names": [ + { + "nameLocale": "en-US", + "name": "coffee shop" + }, + { + "nameLocale": "en-US", + "name": "café/pub" + } + ] + } + ] + }, + "address": { + "streetNumber": "15738", + "streetName": "Redmond Way Pad 3 Redmond Center", + "municipalitySubdivision": "Redmond", + "municipality": "Redmond", + "countrySecondarySubdivision": "King", + "countryTertiarySubdivision": "Seattle East", + "countrySubdivision": "WA", + "postalCode": "98052", + "extendedPostalCode": "980523873", + "countryCode": "US", + "country": "United States", + "countryCodeISO3": "USA", + "freeformAddress": "15738 Redmond Way Pad 3 Redmond Center, Redmond, WA 98052", + "localName": "Redmond", + "countrySubdivisionName": "Washington" + }, + "position": { + "lat": 47.67583, + "lon": -122.12877 + }, + "viewport": { + "topLeftPoint": { + "lat": 47.67673, + "lon": -122.13011 + }, + "btmRightPoint": { + "lat": 47.67493, + "lon": -122.12743 + } + }, + "entryPoints": [ + { + "type": "minor", + "position": { + "lat": 47.67456, + "lon": -122.12887 + } + }, + { + "type": "main", + "position": { + "lat": 47.67668, + "lon": -122.12829 + } + } + ] + }, + { + "type": "POI", + "id": "US/POI/p1/168511", + "score": 2.666, + "dist": 3987.80992387863, + "info": "search:ta:840531000006669-US", + "poi": { + "name": "Starbucks", + "phone": "+(1)-(425)-8818265", + "brands": [ + { + "name": "Starbucks" + } + ], + "categorySet": [ + { + "id": 9376006 + } + ], + "url": "www.starbucks.com/site-selector", + "classifications": [ + { + "code": "CAFE_PUB", + "names": [ + { + "nameLocale": "en-US", + "name": "coffee shop" + }, + { + "nameLocale": "en-US", + "name": "café/pub" + } + ] + } + ] + }, + "address": { + "streetNumber": "6617", + "streetName": "132Nd Ave Ne Bridle Trails Shopping Center", + "municipalitySubdivision": "Kirkland, Bridle Trails", + "municipality": "Kirkland", + "countrySecondarySubdivision": "King", + "countryTertiarySubdivision": "Seattle East", + "countrySubdivision": "WA", + "postalCode": "98033", + "extendedPostalCode": "980338234", + "countryCode": "US", + "country": "United States", + "countryCodeISO3": "USA", + "freeformAddress": "6617 132Nd Ave Ne Bridle Trails Shopping Center, Kirkland, WA 98033", + "localName": "Kirkland", + "countrySubdivisionName": "Washington" + }, + "position": { + "lat": 47.66514, + "lon": -122.16599 + }, + "viewport": { + "topLeftPoint": { + "lat": 47.66604, + "lon": -122.16733 + }, + "btmRightPoint": { + "lat": 47.66424, + "lon": -122.16465 + } + }, + "entryPoints": [ + { + "type": "main", + "position": { + "lat": 47.666, + "lon": -122.16669 + } + }, + { + "type": "minor", + "position": { + "lat": 47.66553, + "lon": -122.16405 + } + } + ] + } + ] + } + } + ], + "summary": { + "successfulRequests": 3, + "totalRequests": 3 + } + } + }, + "400": { + "headers": {}, + "body": { + "error": { + "code": "400 BadRequest", + "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." + } + } + }, + "401": { + "headers": {}, + "body": { + "error": { + "code": "401 Unauthorized", + "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." + } + } + }, + "403": { + "headers": {}, + "body": { + "error": { + "code": "403 Forbidden", + "message": "Permission, capacity, or authentication issues." + } + } + }, + "404": { + "headers": {}, + "body": { + "error": { + "code": "404 NotFound", + "message": "Not Found: the requested resource could not be found, but it may be available again in the future." + } + } + }, + "408": { + "headers": {}, + "body": { + "error": { + "code": "408 Timeout", + "message": "Timeout: The request took longer to finish than the maximum amount of time defined in the api." + } + } + }, + "500": { + "headers": {}, + "body": { + "error": { + "code": "500 InternalServerError", + "message": "An error occurred while processing the request. Please try again later." + } + } + } + } +} diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchInsideFeatureCollection.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchInsideFeatureCollection.json index f87869a9a7cf..d49bd7a143b3 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchInsideFeatureCollection.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchInsideFeatureCollection.json @@ -5,7 +5,6 @@ "api-version": "1.0", "query": "pizza", "limit": 2, - "subscription-key": "[subscription-key]", "searchInsideGeometryRequestBody": { "geometry": { "type": "FeatureCollection", diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchInsideGeometry.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchInsideGeometry.json index 688fd05ef5ee..b048edf4871e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchInsideGeometry.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchInsideGeometry.json @@ -5,7 +5,6 @@ "api-version": "1.0", "query": "burger", "limit": 2, - "subscription-key": "[subscription-key]", "searchInsideGeometryRequestBody": { "geometry": { "type": "Polygon", diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchInsideGeometryCollection.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchInsideGeometryCollection.json index eb3743ebc0e9..90924d4eb2ce 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchInsideGeometryCollection.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchInsideGeometryCollection.json @@ -5,7 +5,6 @@ "api-version": "1.0", "query": "pizza", "limit": 2, - "subscription-key": "[subscription-key]", "searchInsideGeometryRequestBody": { "geometry": { "type": "GeometryCollection", diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json index 4941211fd760..a725d601667b 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json @@ -56,7 +56,7 @@ }, "responses": {}, "parameters": { - "ApiVersion": { + "SearchApiVersion": { "name": "api-version", "description": "Version number of Azure Maps API.", "type": "string", @@ -65,6 +65,14 @@ "default": "1.0", "x-ms-parameter-location": "client" }, + "BatchId": { + "name": "format", + "description": "Batch id.", + "type": "string", + "in": "path", + "required": true, + "x-ms-parameter-location": "method" + }, "LimitSearch": { "name": "limit", "in": "query", @@ -387,7 +395,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/SearchApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -433,7 +441,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/SearchApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" @@ -540,7 +548,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/SearchApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" @@ -628,7 +636,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/SearchApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" @@ -700,7 +708,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/SearchApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" @@ -788,7 +796,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/SearchApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -827,7 +835,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/SearchApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" @@ -903,7 +911,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/SearchApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" @@ -1046,7 +1054,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/SearchApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" @@ -1102,7 +1110,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/SearchApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" @@ -1217,7 +1225,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/SearchApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" @@ -1283,7 +1291,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/SearchApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" @@ -1344,6 +1352,54 @@ } } }, + "/search/fuzzy/batch/sync/{format}": { + "post": { + "description": "**Search Fuzzy Batch API**\n\n\n**Applies to**: S1 pricing tier.\n\n\n\nThe Search Address Batch API sends batches of queries to [Search Fuzzy API](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchfuzzy) using just a single API call. You can call Search Address Fuzzy Batch API to run either asynchronously (async) or synchronously (sync). The async API allows caller to batch up to **10,000** queries and sync API up to **100** queries.\n### Submit Synchronous Batch Request\nThe Synchronous API is recommended for lightweight batch requests. When the service receives a request, it will respond as soon as the batch items are calculated and there will be no possibility to retrieve the results later. The Synchronous API will return a timeout error (a 408 response) if the request takes longer than 60 seconds. The number of batch items is limited to **100** for this API.\n```\nPOST https://atlas.microsoft.com/search/fuzzy/batch/sync/json?api-version=1.0&subscription-key={subscription-key}\n```\n### Submit Asynchronous Batch Request\nThe Asynchronous API is appropriate for processing big volumes of relatively complex search requests\n- It allows the retrieval of results in a separate call (multiple downloads are possible).\n- The asynchronous API is optimized for reliability and is not expected to run into a timeout.\n- The number of batch items is limited to **10,000** for this API.\n\nWhen you make a request by using async request, by default the service returns a 202 response code along a redirect URL in the Location field of the response header. This URL should be checked periodically until the response data or error information is available.\nThe asynchronous responses are stored for **14** days. The redirect URL returns a 404 response if used after the expiration period.\n\nPlease note that asynchronous batch request is a long-running request. Here's a typical sequence of operations:\n1. Client sends a Search Address Batch `POST` request to Azure Maps\n2. The server will respond with one of the following:\n\n > HTTP `202 Accepted` - Batch request has been accepted.\n\n > HTTP `Error` - There was an error processing your Batch request. This could either be a `400 Bad Request` or any other `Error` status code.\n\n3. If the batch request was accepted successfully, the `Location` header in the response contains the URL to download the results of the batch request.\n This status URI looks like following:\n\n```\n GET https://atlas.microsoft.com/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\n4. Client issues a `GET` request on the _download URL_ obtained in Step 3 to download the batch results.\n\n### POST Body for Batch Request\nTo send the _search fuzzy_ queries you will use a `POST` request where the request body will contain the `batchItems` array in `json` format and the `Content-Type` header will be set to `application/json`. Here's a sample request body containing 5 _search fuzzy_ queries:\n\n\n```json\n{\n \"batchItems\": [\n {\"query\": \"?query=atm&lat=47.639769&lon=-122.128362&radius=5000&limit=5\"},\n {\"query\": \"?query=Statue Of Liberty&limit=2\"},\n {\"query\": \"?query=Starbucks&lat=47.639769&lon=-122.128362&radius=5000\"},\n {\"query\": \"?query=Space Needle\"},\n {\"query\": \"?query=pizza&limit=10\"}\n ]\n}\n```\n\nA _search fuzzy_ query in a batch is just a partial URL _without_ the protocol, base URL, path, api-version and subscription-key. It can accept any of the supported _search fuzzy_ [URI parameters](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchfuzzy#uri-parameters). The string values in the _search fuzzy_ query must be properly escaped (e.g. \" character should be escaped with \\\\ ) and it should also be properly URL-encoded.\n\n\nThe async API allows caller to batch up to **10,000** queries and sync API up to **100** queries, and the batch should contain at least **1** query.\n\n\n### Download Asynchronous Batch Results\nTo download the async batch results you will issue a `GET` request to the batch download endpoint. This _download URL_ can be obtained from the `Location` header of a successful `POST` batch request and looks like the following:\n\n```\nhttps://atlas.microsoft.com/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\nHere's the typical sequence of operations for downloading the batch results:\n1. Client sends a `GET` request using the _download URL_.\n2. The server will respond with one of the following:\n\n > HTTP `202 Accepted` - Batch request was accepted but is still being processed. Please try again in some time.\n\n > HTTP `200 OK` - Batch request successfully processed. The response body contains all the batch results.\n\n\n\n### Batch Response Model\nThe returned data content is similar for async and sync requests. When downloading the results of an async batch request, if the batch has finished processing, the response body contains the batch response. This batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests`i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item in `batchItems` contains `statusCode` and `response` fields. Each `response` in `batchItems` is of one of the following types:\n\n - [`SearchCommonResponse`](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchfuzzy#searchcommonresponse) - If the query completed successfully.\n\n - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.\n\n\nHere's a sample Batch Response with 2 _successful_ and 1 _failed_ result:\n\n\n```json\n{\n \"summary\": {\n \"successfulRequests\": 2,\n \"totalRequests\": 3\n },\n \"batchItems\": [\n {\n \"statusCode\": 200,\n \"response\":\n {\n \"summary\": {\n \"query\": \"atm\"\n },\n \"results\": [\n {\n \"type\": \"POI\",\n \"poi\": {\n \"name\": \"ATM at Wells Fargo\"\n },\n \"address\": {\n \"country\": \"United States Of America\",\n \"freeformAddress\": \"3240 157th Ave NE, Redmond, WA 98052\"\n }\n }\n ]\n }\n },\n {\n \"statusCode\": 200,\n \"response\":\n {\n \"summary\": {\n \"query\": \"statue of liberty\"\n },\n \"results\": [\n {\n \"type\": \"POI\",\n \"poi\": {\n \"name\": \"Statue of Liberty\"\n },\n \"address\": {\n \"country\": \"United States Of America\",\n \"freeformAddress\": \"New York, NY 10004\"\n }\n }\n ]\n }\n },\n {\n \"statusCode\": 400,\n \"response\":\n {\n \"error\":\n {\n \"code\": \"400 BadRequest\",\n \"message\": \"Bad request: one or more parameters were incorrectly specified or are mutually exclusive.\"\n }\n }\n }\n ]\n}\n```", + "operationId": "Search_PostSearchFuzzyBatch", + "x-ms-examples": { + "A Sync Search Fuzzy Batch API call containing 5 Search Fuzzy API queries": { + "$ref": "./examples/PostSearchFuzzyBatchSync.json" + } + }, + "parameters": [ + { + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + }, + { + "$ref": "#/parameters/SearchApiVersion" + }, + { + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" + }, + { + "name": "searchFuzzyBatchRequestBody", + "in": "body", + "description": "The list of search fuzzy queries/requests to process. The list can contain a max of 10,000 queries and must contain at least 1 query.", + "required": true, + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/BatchRequestBody" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SearchFuzzyBatchResponse" + } + }, + "408": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/408" + }, + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" + } + }, + "produces": [ + "application/json" + ] + } + }, "/search/fuzzy/batch/{format}": { "post": { "description": "**Search Fuzzy Batch API**\n\n\n**Applies to**: S1 pricing tier.\n\n\n\nThe Search Address Batch API sends batches of queries to [Search Fuzzy API](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchfuzzy) using just a single API call. You can call Search Address Fuzzy Batch API to run either asynchronously (async) or synchronously (sync). The async API allows caller to batch up to **10,000** queries and sync API up to **100** queries.\n### Submit Synchronous Batch Request\nThe Synchronous API is recommended for lightweight batch requests. When the service receives a request, it will respond as soon as the batch items are calculated and there will be no possibility to retrieve the results later. The Synchronous API will return a timeout error (a 408 response) if the request takes longer than 60 seconds. The number of batch items is limited to **100** for this API.\n```\nPOST https://atlas.microsoft.com/search/fuzzy/batch/sync/json?api-version=1.0&subscription-key={subscription-key}\n```\n### Submit Asynchronous Batch Request\nThe Asynchronous API is appropriate for processing big volumes of relatively complex search requests\n- It allows the retrieval of results in a separate call (multiple downloads are possible).\n- The asynchronous API is optimized for reliability and is not expected to run into a timeout.\n- The number of batch items is limited to **10,000** for this API.\n\nWhen you make a request by using async request, by default the service returns a 202 response code along a redirect URL in the Location field of the response header. This URL should be checked periodically until the response data or error information is available.\nThe asynchronous responses are stored for **14** days. The redirect URL returns a 404 response if used after the expiration period.\n\nPlease note that asynchronous batch request is a long-running request. Here's a typical sequence of operations:\n1. Client sends a Search Address Batch `POST` request to Azure Maps\n2. The server will respond with one of the following:\n\n > HTTP `202 Accepted` - Batch request has been accepted.\n\n > HTTP `Error` - There was an error processing your Batch request. This could either be a `400 Bad Request` or any other `Error` status code.\n\n3. If the batch request was accepted successfully, the `Location` header in the response contains the URL to download the results of the batch request.\n This status URI looks like following:\n\n```\n GET https://atlas.microsoft.com/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\n4. Client issues a `GET` request on the _download URL_ obtained in Step 3 to download the batch results.\n\n### POST Body for Batch Request\nTo send the _search fuzzy_ queries you will use a `POST` request where the request body will contain the `batchItems` array in `json` format and the `Content-Type` header will be set to `application/json`. Here's a sample request body containing 5 _search fuzzy_ queries:\n\n\n```json\n{\n \"batchItems\": [\n {\"query\": \"?query=atm&lat=47.639769&lon=-122.128362&radius=5000&limit=5\"},\n {\"query\": \"?query=Statue Of Liberty&limit=2\"},\n {\"query\": \"?query=Starbucks&lat=47.639769&lon=-122.128362&radius=5000\"},\n {\"query\": \"?query=Space Needle\"},\n {\"query\": \"?query=pizza&limit=10\"}\n ]\n}\n```\n\nA _search fuzzy_ query in a batch is just a partial URL _without_ the protocol, base URL, path, api-version and subscription-key. It can accept any of the supported _search fuzzy_ [URI parameters](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchfuzzy#uri-parameters). The string values in the _search fuzzy_ query must be properly escaped (e.g. \" character should be escaped with \\\\ ) and it should also be properly URL-encoded.\n\n\nThe async API allows caller to batch up to **10,000** queries and sync API up to **100** queries, and the batch should contain at least **1** query.\n\n\n### Download Asynchronous Batch Results\nTo download the async batch results you will issue a `GET` request to the batch download endpoint. This _download URL_ can be obtained from the `Location` header of a successful `POST` batch request and looks like the following:\n\n```\nhttps://atlas.microsoft.com/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\nHere's the typical sequence of operations for downloading the batch results:\n1. Client sends a `GET` request using the _download URL_.\n2. The server will respond with one of the following:\n\n > HTTP `202 Accepted` - Batch request was accepted but is still being processed. Please try again in some time.\n\n > HTTP `200 OK` - Batch request successfully processed. The response body contains all the batch results.\n\n\n\n### Batch Response Model\nThe returned data content is similar for async and sync requests. When downloading the results of an async batch request, if the batch has finished processing, the response body contains the batch response. This batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests`i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item in `batchItems` contains `statusCode` and `response` fields. Each `response` in `batchItems` is of one of the following types:\n\n - [`SearchCommonResponse`](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchfuzzy#searchcommonresponse) - If the query completed successfully.\n\n - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.\n\n\nHere's a sample Batch Response with 2 _successful_ and 1 _failed_ result:\n\n\n```json\n{\n \"summary\": {\n \"successfulRequests\": 2,\n \"totalRequests\": 3\n },\n \"batchItems\": [\n {\n \"statusCode\": 200,\n \"response\":\n {\n \"summary\": {\n \"query\": \"atm\"\n },\n \"results\": [\n {\n \"type\": \"POI\",\n \"poi\": {\n \"name\": \"ATM at Wells Fargo\"\n },\n \"address\": {\n \"country\": \"United States Of America\",\n \"freeformAddress\": \"3240 157th Ave NE, Redmond, WA 98052\"\n }\n }\n ]\n }\n },\n {\n \"statusCode\": 200,\n \"response\":\n {\n \"summary\": {\n \"query\": \"statue of liberty\"\n },\n \"results\": [\n {\n \"type\": \"POI\",\n \"poi\": {\n \"name\": \"Statue of Liberty\"\n },\n \"address\": {\n \"country\": \"United States Of America\",\n \"freeformAddress\": \"New York, NY 10004\"\n }\n }\n ]\n }\n },\n {\n \"statusCode\": 400,\n \"response\":\n {\n \"error\":\n {\n \"code\": \"400 BadRequest\",\n \"message\": \"Bad request: one or more parameters were incorrectly specified or are mutually exclusive.\"\n }\n }\n }\n ]\n}\n```", @@ -1362,7 +1418,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/SearchApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -1377,6 +1433,41 @@ } } ], + "responses": { + "202": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" + }, + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" + } + }, + "produces": [ + "application/json" + ] + }, + "get": { + "description": "**Search Fuzzy Batch API**\n\n\n**Applies to**: S1 pricing tier.\n\n\n\nThe Search Address Batch API sends batches of queries to [Search Fuzzy API](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchfuzzy) using just a single API call. You can call Search Address Fuzzy Batch API to run either asynchronously (async) or synchronously (sync). The async API allows caller to batch up to **10,000** queries and sync API up to **100** queries.\n### Submit Synchronous Batch Request\nThe Synchronous API is recommended for lightweight batch requests. When the service receives a request, it will respond as soon as the batch items are calculated and there will be no possibility to retrieve the results later. The Synchronous API will return a timeout error (a 408 response) if the request takes longer than 60 seconds. The number of batch items is limited to **100** for this API.\n```\nPOST https://atlas.microsoft.com/search/fuzzy/batch/sync/json?api-version=1.0&subscription-key={subscription-key}\n```\n### Submit Asynchronous Batch Request\nThe Asynchronous API is appropriate for processing big volumes of relatively complex search requests\n- It allows the retrieval of results in a separate call (multiple downloads are possible).\n- The asynchronous API is optimized for reliability and is not expected to run into a timeout.\n- The number of batch items is limited to **10,000** for this API.\n\nWhen you make a request by using async request, by default the service returns a 202 response code along a redirect URL in the Location field of the response header. This URL should be checked periodically until the response data or error information is available.\nThe asynchronous responses are stored for **14** days. The redirect URL returns a 404 response if used after the expiration period.\n\nPlease note that asynchronous batch request is a long-running request. Here's a typical sequence of operations:\n1. Client sends a Search Address Batch `POST` request to Azure Maps\n2. The server will respond with one of the following:\n\n > HTTP `202 Accepted` - Batch request has been accepted.\n\n > HTTP `Error` - There was an error processing your Batch request. This could either be a `400 Bad Request` or any other `Error` status code.\n\n3. If the batch request was accepted successfully, the `Location` header in the response contains the URL to download the results of the batch request.\n This status URI looks like following:\n\n```\n GET https://atlas.microsoft.com/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\n4. Client issues a `GET` request on the _download URL_ obtained in Step 3 to download the batch results.\n\n### POST Body for Batch Request\nTo send the _search fuzzy_ queries you will use a `POST` request where the request body will contain the `batchItems` array in `json` format and the `Content-Type` header will be set to `application/json`. Here's a sample request body containing 5 _search fuzzy_ queries:\n\n\n```json\n{\n \"batchItems\": [\n {\"query\": \"?query=atm&lat=47.639769&lon=-122.128362&radius=5000&limit=5\"},\n {\"query\": \"?query=Statue Of Liberty&limit=2\"},\n {\"query\": \"?query=Starbucks&lat=47.639769&lon=-122.128362&radius=5000\"},\n {\"query\": \"?query=Space Needle\"},\n {\"query\": \"?query=pizza&limit=10\"}\n ]\n}\n```\n\nA _search fuzzy_ query in a batch is just a partial URL _without_ the protocol, base URL, path, api-version and subscription-key. It can accept any of the supported _search fuzzy_ [URI parameters](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchfuzzy#uri-parameters). The string values in the _search fuzzy_ query must be properly escaped (e.g. \" character should be escaped with \\\\ ) and it should also be properly URL-encoded.\n\n\nThe async API allows caller to batch up to **10,000** queries and sync API up to **100** queries, and the batch should contain at least **1** query.\n\n\n### Download Asynchronous Batch Results\nTo download the async batch results you will issue a `GET` request to the batch download endpoint. This _download URL_ can be obtained from the `Location` header of a successful `POST` batch request and looks like the following:\n\n```\nhttps://atlas.microsoft.com/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\nHere's the typical sequence of operations for downloading the batch results:\n1. Client sends a `GET` request using the _download URL_.\n2. The server will respond with one of the following:\n\n > HTTP `202 Accepted` - Batch request was accepted but is still being processed. Please try again in some time.\n\n > HTTP `200 OK` - Batch request successfully processed. The response body contains all the batch results.\n\n\n\n### Batch Response Model\nThe returned data content is similar for async and sync requests. When downloading the results of an async batch request, if the batch has finished processing, the response body contains the batch response. This batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests`i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item in `batchItems` contains `statusCode` and `response` fields. Each `response` in `batchItems` is of one of the following types:\n\n - [`SearchCommonResponse`](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchfuzzy#searchcommonresponse) - If the query completed successfully.\n\n - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.\n\n\nHere's a sample Batch Response with 2 _successful_ and 1 _failed_ result:\n\n\n```json\n{\n \"summary\": {\n \"successfulRequests\": 2,\n \"totalRequests\": 3\n },\n \"batchItems\": [\n {\n \"statusCode\": 200,\n \"response\":\n {\n \"summary\": {\n \"query\": \"atm\"\n },\n \"results\": [\n {\n \"type\": \"POI\",\n \"poi\": {\n \"name\": \"ATM at Wells Fargo\"\n },\n \"address\": {\n \"country\": \"United States Of America\",\n \"freeformAddress\": \"3240 157th Ave NE, Redmond, WA 98052\"\n }\n }\n ]\n }\n },\n {\n \"statusCode\": 200,\n \"response\":\n {\n \"summary\": {\n \"query\": \"statue of liberty\"\n },\n \"results\": [\n {\n \"type\": \"POI\",\n \"poi\": {\n \"name\": \"Statue of Liberty\"\n },\n \"address\": {\n \"country\": \"United States Of America\",\n \"freeformAddress\": \"New York, NY 10004\"\n }\n }\n ]\n }\n },\n {\n \"statusCode\": 400,\n \"response\":\n {\n \"error\":\n {\n \"code\": \"400 BadRequest\",\n \"message\": \"Bad request: one or more parameters were incorrectly specified or are mutually exclusive.\"\n }\n }\n }\n ]\n}\n```", + "operationId": "Search_PostSearchFuzzyBatch", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "original-uri" + }, + "x-ms-examples": { + "A Search Fuzzy Batch API GET call containing 5 Search Fuzzy API queries": { + "$ref": "./examples/GetSearchFuzzyBatch.json" + } + }, + "parameters": [ + { + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + }, + { + "$ref": "#/parameters/SearchApiVersion" + }, + { + "$ref": "#/parameters/BatchId" + } + ], "responses": { "200": { "description": "OK", @@ -1385,7 +1476,7 @@ } }, "202": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" + "$ref": "../../../Common/preview/1.0/common.json#/responses/202Batch" }, "default": { "$ref": "../../../Common/preview/1.0/common.json#/responses/default" @@ -1414,7 +1505,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/SearchApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -1429,6 +1520,41 @@ } } ], + "responses": { + "202": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" + }, + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" + } + }, + "produces": [ + "application/json" + ] + }, + "get": { + "description": "**Search Address Batch API**\n\n\n**Applies to**: S1 pricing tier.\n\n\n\nThe Search Address Batch API sends batches of queries to [Search Address API](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchaddress) using just a single API call. You can call Search Address Batch API to run either asynchronously (async) or synchronously (sync). The async API allows caller to batch up to **10,000** queries and sync API up to **100** queries.\n### Submit Synchronous Batch Request\nThe Synchronous API is recommended for lightweight batch requests. When the service receives a request, it will respond as soon as the batch items are calculated and there will be no possibility to retrieve the results later. The Synchronous API will return a timeout error (a 408 response) if the request takes longer than 60 seconds. The number of batch items is limited to **100** for this API.\n```\nPOST https://atlas.microsoft.com/search/address/batch/sync/json?api-version=1.0&subscription-key={subscription-key}\n```\n### Submit Asynchronous Batch Request\nThe Asynchronous API is appropriate for processing big volumes of relatively complex search requests\n- It allows the retrieval of results in a separate call (multiple downloads are possible).\n- The asynchronous API is optimized for reliability and is not expected to run into a timeout.\n- The number of batch items is limited to **10,000** for this API.\n\nWhen you make a request by using async request, by default the service returns a 202 response code along a redirect URL in the Location field of the response header. This URL should be checked periodically until the response data or error information is available.\nThe asynchronous responses are stored for **14** days. The redirect URL returns a 404 response if used after the expiration period.\n\nPlease note that asynchronous batch request is a long-running request. Here's a typical sequence of operations:\n1. Client sends a Search Address Batch `POST` request to Azure Maps\n2. The server will respond with one of the following:\n\n > HTTP `202 Accepted` - Batch request has been accepted.\n\n > HTTP `Error` - There was an error processing your Batch request. This could either be a `400 Bad Request` or any other `Error` status code.\n\n3. If the batch request was accepted successfully, the `Location` header in the response contains the URL to download the results of the batch request.\n This status URI looks like following:\n\n```\n GET https://atlas.microsoft.com/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\n4. Client issues a `GET` request on the _download URL_ obtained in Step 3 to download the batch results.\n\n### POST Body for Batch Request\nTo send the _search address_ queries you will use a `POST` request where the request body will contain the `batchItems` array in `json` format and the `Content-Type` header will be set to `application/json`. Here's a sample request body containing 5 _search address_ queries:\n\n\n```json\n{\n \"batchItems\": [\n {\"query\": \"?query=400 Broad St, Seattle, WA 98109&limit=3\"},\n {\"query\": \"?query=One, Microsoft Way, Redmond, WA 98052&limit=3\"},\n {\"query\": \"?query=350 5th Ave, New York, NY 10118&limit=1\"},\n {\"query\": \"?query=Pike Pl, Seattle, WA 98101&lat=47.610970&lon=-122.342469&radius=1000\"},\n {\"query\": \"?query=Champ de Mars, 5 Avenue Anatole France, 75007 Paris, France&limit=1\"}\n ]\n}\n```\n\nA _search address_ query in a batch is just a partial URL _without_ the protocol, base URL, path, api-version and subscription-key. It can accept any of the supported _search address_ [URI parameters](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchaddress#uri-parameters). The string values in the _search address_ query must be properly escaped (e.g. \" character should be escaped with \\\\ ) and it should also be properly URL-encoded.\n\n\nThe async API allows caller to batch up to **10,000** queries and sync API up to **100** queries, and the batch should contain at least **1** query.\n\n\n### Download Asynchronous Batch Results\nTo download the async batch results you will issue a `GET` request to the batch download endpoint. This _download URL_ can be obtained from the `Location` header of a successful `POST` batch request and looks like the following:\n\n```\nhttps://atlas.microsoft.com/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\nHere's the typical sequence of operations for downloading the batch results:\n1. Client sends a `GET` request using the _download URL_.\n2. The server will respond with one of the following:\n\n > HTTP `202 Accepted` - Batch request was accepted but is still being processed. Please try again in some time.\n\n > HTTP `200 OK` - Batch request successfully processed. The response body contains all the batch results.\n\n\n\n### Batch Response Model\nThe returned data content is similar for async and sync requests. When downloading the results of an async batch request, if the batch has finished processing, the response body contains the batch response. This batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests`i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item in `batchItems` contains `statusCode` and `response` fields. Each `response` in `batchItems` is of one of the following types:\n\n - [`SearchCommonResponse`](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchaddress#SearchCommonResponse) - If the query completed successfully.\n\n - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.\n\n\nHere's a sample Batch Response with 2 _successful_ and 1 _failed_ result:\n\n\n```json\n{\n \"summary\": {\n \"successfulRequests\": 2,\n \"totalRequests\": 3\n },\n \"batchItems\": [\n {\n \"statusCode\": 200,\n \"response\":\n {\n \"summary\": {\n \"query\": \"one microsoft way redmond wa 98052\"\n },\n \"results\": [\n {\n \"position\": {\n \"lat\": 47.63989,\n \"lon\": -122.12509\n }\n }\n ]\n }\n },\n {\n \"statusCode\": 200,\n \"response\":\n {\n \"summary\": {\n \"query\": \"pike pl seattle wa 98101\"\n },\n \"results\": [\n {\n \"position\": {\n \"lat\": 47.60963,\n \"lon\": -122.34215\n }\n }\n ]\n }\n },\n {\n \"statusCode\": 400,\n \"response\":\n {\n \"error\":\n {\n \"code\": \"400 BadRequest\",\n \"message\": \"Bad request: one or more parameters were incorrectly specified or are mutually exclusive.\"\n }\n }\n }\n ]\n}\n```", + "operationId": "Search_PostSearchAddressBatch", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "original-uri" + }, + "x-ms-examples": { + "An Address Geocoding Batch API GET call containing 5 Address Geocoding API queries": { + "$ref": "./examples/GetSearchAddressBatch.json" + } + }, + "parameters": [ + { + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + }, + { + "$ref": "#/parameters/SearchApiVersion" + }, + { + "$ref": "#/parameters/BatchId" + } + ], "responses": { "200": { "description": "OK", @@ -1448,6 +1574,54 @@ ] } }, + "/search/address/batch/sync/{format}": { + "post": { + "description": "**Search Address Batch API**\n\n\n**Applies to**: S1 pricing tier.\n\n\n\nThe Search Address Batch API sends batches of queries to [Search Address API](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchaddress) using just a single API call. You can call Search Address Batch API to run either asynchronously (async) or synchronously (sync). The async API allows caller to batch up to **10,000** queries and sync API up to **100** queries.\n### Submit Synchronous Batch Request\nThe Synchronous API is recommended for lightweight batch requests. When the service receives a request, it will respond as soon as the batch items are calculated and there will be no possibility to retrieve the results later. The Synchronous API will return a timeout error (a 408 response) if the request takes longer than 60 seconds. The number of batch items is limited to **100** for this API.\n```\nPOST https://atlas.microsoft.com/search/address/batch/sync/json?api-version=1.0&subscription-key={subscription-key}\n```\n### Submit Asynchronous Batch Request\nThe Asynchronous API is appropriate for processing big volumes of relatively complex search requests\n- It allows the retrieval of results in a separate call (multiple downloads are possible).\n- The asynchronous API is optimized for reliability and is not expected to run into a timeout.\n- The number of batch items is limited to **10,000** for this API.\n\nWhen you make a request by using async request, by default the service returns a 202 response code along a redirect URL in the Location field of the response header. This URL should be checked periodically until the response data or error information is available.\nThe asynchronous responses are stored for **14** days. The redirect URL returns a 404 response if used after the expiration period.\n\nPlease note that asynchronous batch request is a long-running request. Here's a typical sequence of operations:\n1. Client sends a Search Address Batch `POST` request to Azure Maps\n2. The server will respond with one of the following:\n\n > HTTP `202 Accepted` - Batch request has been accepted.\n\n > HTTP `Error` - There was an error processing your Batch request. This could either be a `400 Bad Request` or any other `Error` status code.\n\n3. If the batch request was accepted successfully, the `Location` header in the response contains the URL to download the results of the batch request.\n This status URI looks like following:\n\n```\n GET https://atlas.microsoft.com/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\n4. Client issues a `GET` request on the _download URL_ obtained in Step 3 to download the batch results.\n\n### POST Body for Batch Request\nTo send the _search address_ queries you will use a `POST` request where the request body will contain the `batchItems` array in `json` format and the `Content-Type` header will be set to `application/json`. Here's a sample request body containing 5 _search address_ queries:\n\n\n```json\n{\n \"batchItems\": [\n {\"query\": \"?query=400 Broad St, Seattle, WA 98109&limit=3\"},\n {\"query\": \"?query=One, Microsoft Way, Redmond, WA 98052&limit=3\"},\n {\"query\": \"?query=350 5th Ave, New York, NY 10118&limit=1\"},\n {\"query\": \"?query=Pike Pl, Seattle, WA 98101&lat=47.610970&lon=-122.342469&radius=1000\"},\n {\"query\": \"?query=Champ de Mars, 5 Avenue Anatole France, 75007 Paris, France&limit=1\"}\n ]\n}\n```\n\nA _search address_ query in a batch is just a partial URL _without_ the protocol, base URL, path, api-version and subscription-key. It can accept any of the supported _search address_ [URI parameters](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchaddress#uri-parameters). The string values in the _search address_ query must be properly escaped (e.g. \" character should be escaped with \\\\ ) and it should also be properly URL-encoded.\n\n\nThe async API allows caller to batch up to **10,000** queries and sync API up to **100** queries, and the batch should contain at least **1** query.\n\n\n### Download Asynchronous Batch Results\nTo download the async batch results you will issue a `GET` request to the batch download endpoint. This _download URL_ can be obtained from the `Location` header of a successful `POST` batch request and looks like the following:\n\n```\nhttps://atlas.microsoft.com/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\nHere's the typical sequence of operations for downloading the batch results:\n1. Client sends a `GET` request using the _download URL_.\n2. The server will respond with one of the following:\n\n > HTTP `202 Accepted` - Batch request was accepted but is still being processed. Please try again in some time.\n\n > HTTP `200 OK` - Batch request successfully processed. The response body contains all the batch results.\n\n\n\n### Batch Response Model\nThe returned data content is similar for async and sync requests. When downloading the results of an async batch request, if the batch has finished processing, the response body contains the batch response. This batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests`i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item in `batchItems` contains `statusCode` and `response` fields. Each `response` in `batchItems` is of one of the following types:\n\n - [`SearchCommonResponse`](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchaddress#SearchCommonResponse) - If the query completed successfully.\n\n - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.\n\n\nHere's a sample Batch Response with 2 _successful_ and 1 _failed_ result:\n\n\n```json\n{\n \"summary\": {\n \"successfulRequests\": 2,\n \"totalRequests\": 3\n },\n \"batchItems\": [\n {\n \"statusCode\": 200,\n \"response\":\n {\n \"summary\": {\n \"query\": \"one microsoft way redmond wa 98052\"\n },\n \"results\": [\n {\n \"position\": {\n \"lat\": 47.63989,\n \"lon\": -122.12509\n }\n }\n ]\n }\n },\n {\n \"statusCode\": 200,\n \"response\":\n {\n \"summary\": {\n \"query\": \"pike pl seattle wa 98101\"\n },\n \"results\": [\n {\n \"position\": {\n \"lat\": 47.60963,\n \"lon\": -122.34215\n }\n }\n ]\n }\n },\n {\n \"statusCode\": 400,\n \"response\":\n {\n \"error\":\n {\n \"code\": \"400 BadRequest\",\n \"message\": \"Bad request: one or more parameters were incorrectly specified or are mutually exclusive.\"\n }\n }\n }\n ]\n}\n```", + "operationId": "Search_PostSearchAddressBatch", + "x-ms-examples": { + "An Address Geocoding Batch API Sync call containing 5 Address Geocoding API queries": { + "$ref": "./examples/PostSearchAddressBatchSync.json" + } + }, + "parameters": [ + { + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + }, + { + "$ref": "#/parameters/SearchApiVersion" + }, + { + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" + }, + { + "name": "searchAddressBatchRequestBody", + "in": "body", + "description": "The list of address geocoding queries/requests to process. The list can contain a max of 10,000 queries and must contain at least 1 query.", + "required": true, + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/BatchRequestBody" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SearchAddressBatchResponse" + } + }, + "408": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/408" + }, + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" + } + }, + "produces": [ + "application/json" + ] + } + }, "/search/address/reverse/batch/{format}": { "post": { "description": "**Search Address Reverse Batch API**\n\n\n**Applies to**: S1 pricing tier.\n\n\n\nThe Search Address Batch API sends batches of queries to [Search Address Reverse API](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchaddressreverse) using just a single API call. You can call Search Address Reverse Batch API to run either asynchronously (async) or synchronously (sync). The async API allows caller to batch up to **10,000** queries and sync API up to **100** queries.\n### Submit Synchronous Batch Request\nThe Synchronous API is recommended for lightweight batch requests. When the service receives a request, it will respond as soon as the batch items are calculated and there will be no possibility to retrieve the results later. The Synchronous API will return a timeout error (a 408 response) if the request takes longer than 60 seconds. The number of batch items is limited to **100** for this API.\n```\nPOST https://atlas.microsoft.com/search/address/reverse/batch/sync/json?api-version=1.0&subscription-key={subscription-key}\n```\n### Submit Asynchronous Batch Request\nThe Asynchronous API is appropriate for processing big volumes of relatively complex search requests\n- It allows the retrieval of results in a separate call (multiple downloads are possible).\n- The asynchronous API is optimized for reliability and is not expected to run into a timeout.\n- The number of batch items is limited to **10,000** for this API.\n\nWhen you make a request by using async request, by default the service returns a 202 response code along a redirect URL in the Location field of the response header. This URL should be checked periodically until the response data or error information is available.\nThe asynchronous responses are stored for **14** days. The redirect URL returns a 404 response if used after the expiration period.\n\nPlease note that asynchronous batch request is a long-running request. Here's a typical sequence of operations:\n1. Client sends a Search Address Batch `POST` request to Azure Maps\n2. The server will respond with one of the following:\n\n > HTTP `202 Accepted` - Batch request has been accepted.\n\n > HTTP `Error` - There was an error processing your Batch request. This could either be a `400 Bad Request` or any other `Error` status code.\n\n3. If the batch request was accepted successfully, the `Location` header in the response contains the URL to download the results of the batch request.\n This status URI looks like following:\n\n```\n GET https://atlas.microsoft.com/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\n4. Client issues a `GET` request on the _download URL_ obtained in Step 3 to download the batch results.\n\n### POST Body for Batch Request\nTo send the _search address reverse_ queries you will use a `POST` request where the request body will contain the `batchItems` array in `json` format and the `Content-Type` header will be set to `application/json`. Here's a sample request body containing 5 _search address reverse_ queries:\n\n\n```json\n{\n \"batchItems\": [\n {\"query\": \"?query=48.858561,2.294911\"},\n {\"query\": \"?query=47.639765,-122.127896&radius=5000&limit=2\"},\n {\"query\": \"?query=47.621028,-122.348170\"},\n {\"query\": \"?query=43.722990,10.396695\"},\n {\"query\": \"?query=40.750958,-73.982336\"}\n ]\n}\n```\n\nA _search address reverse_ query in a batch is just a partial URL _without_ the protocol, base URL, path, api-version and subscription-key. It can accept any of the supported _search address reverse_ [URI parameters](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchaddressreverse#uri-parameters). The string values in the _search address reverse_ query must be properly escaped (e.g. \" character should be escaped with \\\\ ) and it should also be properly URL-encoded.\n\n\nThe async API allows caller to batch up to **10,000** queries and sync API up to **100** queries, and the batch should contain at least **1** query.\n\n\n### Download Asynchronous Batch Results\nTo download the async batch results you will issue a `GET` request to the batch download endpoint. This _download URL_ can be obtained from the `Location` header of a successful `POST` batch request and looks like the following:\n\n```\nhttps://atlas.microsoft.com/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\nHere's the typical sequence of operations for downloading the batch results:\n1. Client sends a `GET` request using the _download URL_.\n2. The server will respond with one of the following:\n\n > HTTP `202 Accepted` - Batch request was accepted but is still being processed. Please try again in some time.\n\n > HTTP `200 OK` - Batch request successfully processed. The response body contains all the batch results.\n\n\n\n### Batch Response Model\nThe returned data content is similar for async and sync requests. When downloading the results of an async batch request, if the batch has finished processing, the response body contains the batch response. This batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests`i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item in `batchItems` contains `statusCode` and `response` fields. Each `response` in `batchItems` is of one of the following types:\n\n - [`SearchAddressReverseResponse`](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchaddressreverse#searchaddressreverseresponse) - If the query completed successfully.\n\n - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.\n\n\nHere's a sample Batch Response with 2 _successful_ and 1 _failed_ result:\n\n\n```json\n{\n \"summary\": {\n \"successfulRequests\": 2,\n \"totalRequests\": 3\n },\n \"batchItems\": [\n {\n \"statusCode\": 200,\n \"response\":\n {\n \"summary\": {\n \"queryTime\": 11\n },\n \"addresses\": [\n {\n \"address\": {\n \"country\": \"France\",\n \"freeformAddress\": \"Avenue Anatole France, 75007 Paris\"\n },\n \"position\": \"48.858490,2.294820\"\n }\n ]\n }\n },\n {\n \"statusCode\": 200,\n \"response\":\n {\n \"summary\": {\n \"queryTime\": 1\n },\n \"addresses\": [\n {\n \"address\": {\n \"country\": \"United States of America\",\n \"freeformAddress\": \"157th Pl NE, Redmond WA 98052\"\n },\n \"position\": \"47.640470,-122.129430\"\n }\n ]\n }\n },\n {\n \"statusCode\": 400,\n \"response\":\n {\n \"error\":\n {\n \"code\": \"400 BadRequest\",\n \"message\": \"Bad request: one or more parameters were incorrectly specified or are mutually exclusive.\"\n }\n }\n }\n ]\n}\n```", @@ -1466,7 +1640,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/SearchApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -1481,6 +1655,41 @@ } } ], + "responses": { + "202": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/202Async" + }, + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" + } + }, + "produces": [ + "application/json" + ] + }, + "get": { + "description": "**Search Address Reverse Batch API**\n\n\n**Applies to**: S1 pricing tier.\n\n\n\nThe Search Address Batch API sends batches of queries to [Search Address Reverse API](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchaddressreverse) using just a single API call. You can call Search Address Reverse Batch API to run either asynchronously (async) or synchronously (sync). The async API allows caller to batch up to **10,000** queries and sync API up to **100** queries.\n### Submit Synchronous Batch Request\nThe Synchronous API is recommended for lightweight batch requests. When the service receives a request, it will respond as soon as the batch items are calculated and there will be no possibility to retrieve the results later. The Synchronous API will return a timeout error (a 408 response) if the request takes longer than 60 seconds. The number of batch items is limited to **100** for this API.\n```\nPOST https://atlas.microsoft.com/search/address/reverse/batch/sync/json?api-version=1.0&subscription-key={subscription-key}\n```\n### Submit Asynchronous Batch Request\nThe Asynchronous API is appropriate for processing big volumes of relatively complex search requests\n- It allows the retrieval of results in a separate call (multiple downloads are possible).\n- The asynchronous API is optimized for reliability and is not expected to run into a timeout.\n- The number of batch items is limited to **10,000** for this API.\n\nWhen you make a request by using async request, by default the service returns a 202 response code along a redirect URL in the Location field of the response header. This URL should be checked periodically until the response data or error information is available.\nThe asynchronous responses are stored for **14** days. The redirect URL returns a 404 response if used after the expiration period.\n\nPlease note that asynchronous batch request is a long-running request. Here's a typical sequence of operations:\n1. Client sends a Search Address Batch `POST` request to Azure Maps\n2. The server will respond with one of the following:\n\n > HTTP `202 Accepted` - Batch request has been accepted.\n\n > HTTP `Error` - There was an error processing your Batch request. This could either be a `400 Bad Request` or any other `Error` status code.\n\n3. If the batch request was accepted successfully, the `Location` header in the response contains the URL to download the results of the batch request.\n This status URI looks like following:\n\n```\n GET https://atlas.microsoft.com/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\n4. Client issues a `GET` request on the _download URL_ obtained in Step 3 to download the batch results.\n\n### POST Body for Batch Request\nTo send the _search address reverse_ queries you will use a `POST` request where the request body will contain the `batchItems` array in `json` format and the `Content-Type` header will be set to `application/json`. Here's a sample request body containing 5 _search address reverse_ queries:\n\n\n```json\n{\n \"batchItems\": [\n {\"query\": \"?query=48.858561,2.294911\"},\n {\"query\": \"?query=47.639765,-122.127896&radius=5000&limit=2\"},\n {\"query\": \"?query=47.621028,-122.348170\"},\n {\"query\": \"?query=43.722990,10.396695\"},\n {\"query\": \"?query=40.750958,-73.982336\"}\n ]\n}\n```\n\nA _search address reverse_ query in a batch is just a partial URL _without_ the protocol, base URL, path, api-version and subscription-key. It can accept any of the supported _search address reverse_ [URI parameters](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchaddressreverse#uri-parameters). The string values in the _search address reverse_ query must be properly escaped (e.g. \" character should be escaped with \\\\ ) and it should also be properly URL-encoded.\n\n\nThe async API allows caller to batch up to **10,000** queries and sync API up to **100** queries, and the batch should contain at least **1** query.\n\n\n### Download Asynchronous Batch Results\nTo download the async batch results you will issue a `GET` request to the batch download endpoint. This _download URL_ can be obtained from the `Location` header of a successful `POST` batch request and looks like the following:\n\n```\nhttps://atlas.microsoft.com/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\nHere's the typical sequence of operations for downloading the batch results:\n1. Client sends a `GET` request using the _download URL_.\n2. The server will respond with one of the following:\n\n > HTTP `202 Accepted` - Batch request was accepted but is still being processed. Please try again in some time.\n\n > HTTP `200 OK` - Batch request successfully processed. The response body contains all the batch results.\n\n\n\n### Batch Response Model\nThe returned data content is similar for async and sync requests. When downloading the results of an async batch request, if the batch has finished processing, the response body contains the batch response. This batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests`i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item in `batchItems` contains `statusCode` and `response` fields. Each `response` in `batchItems` is of one of the following types:\n\n - [`SearchAddressReverseResponse`](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchaddressreverse#searchaddressreverseresponse) - If the query completed successfully.\n\n - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.\n\n\nHere's a sample Batch Response with 2 _successful_ and 1 _failed_ result:\n\n\n```json\n{\n \"summary\": {\n \"successfulRequests\": 2,\n \"totalRequests\": 3\n },\n \"batchItems\": [\n {\n \"statusCode\": 200,\n \"response\":\n {\n \"summary\": {\n \"queryTime\": 11\n },\n \"addresses\": [\n {\n \"address\": {\n \"country\": \"France\",\n \"freeformAddress\": \"Avenue Anatole France, 75007 Paris\"\n },\n \"position\": \"48.858490,2.294820\"\n }\n ]\n }\n },\n {\n \"statusCode\": 200,\n \"response\":\n {\n \"summary\": {\n \"queryTime\": 1\n },\n \"addresses\": [\n {\n \"address\": {\n \"country\": \"United States of America\",\n \"freeformAddress\": \"157th Pl NE, Redmond WA 98052\"\n },\n \"position\": \"47.640470,-122.129430\"\n }\n ]\n }\n },\n {\n \"statusCode\": 400,\n \"response\":\n {\n \"error\":\n {\n \"code\": \"400 BadRequest\",\n \"message\": \"Bad request: one or more parameters were incorrectly specified or are mutually exclusive.\"\n }\n }\n }\n ]\n}\n```", + "operationId": "Search_PostSearchAddressReverseBatch", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "original-uri" + }, + "x-ms-examples": { + "A Reverse Geocoding Batch API GET call containing 5 Reverse Geocoding API queries": { + "$ref": "./examples/GetSearchAddressReverseBatch.json" + } + }, + "parameters": [ + { + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + }, + { + "$ref": "#/parameters/SearchApiVersion" + }, + { + "$ref": "#/parameters/BatchId" + } + ], "responses": { "200": { "description": "OK", @@ -1499,6 +1708,54 @@ "application/json" ] } + }, + "/search/address/reverse/batch/sync/{format}": { + "post": { + "description": "**Search Address Reverse Batch API**\n\n\n**Applies to**: S1 pricing tier.\n\n\n\nThe Search Address Batch API sends batches of queries to [Search Address Reverse API](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchaddressreverse) using just a single API call. You can call Search Address Reverse Batch API to run either asynchronously (async) or synchronously (sync). The async API allows caller to batch up to **10,000** queries and sync API up to **100** queries.\n### Submit Synchronous Batch Request\nThe Synchronous API is recommended for lightweight batch requests. When the service receives a request, it will respond as soon as the batch items are calculated and there will be no possibility to retrieve the results later. The Synchronous API will return a timeout error (a 408 response) if the request takes longer than 60 seconds. The number of batch items is limited to **100** for this API.\n```\nPOST https://atlas.microsoft.com/search/address/reverse/batch/sync/json?api-version=1.0&subscription-key={subscription-key}\n```\n### Submit Asynchronous Batch Request\nThe Asynchronous API is appropriate for processing big volumes of relatively complex search requests\n- It allows the retrieval of results in a separate call (multiple downloads are possible).\n- The asynchronous API is optimized for reliability and is not expected to run into a timeout.\n- The number of batch items is limited to **10,000** for this API.\n\nWhen you make a request by using async request, by default the service returns a 202 response code along a redirect URL in the Location field of the response header. This URL should be checked periodically until the response data or error information is available.\nThe asynchronous responses are stored for **14** days. The redirect URL returns a 404 response if used after the expiration period.\n\nPlease note that asynchronous batch request is a long-running request. Here's a typical sequence of operations:\n1. Client sends a Search Address Batch `POST` request to Azure Maps\n2. The server will respond with one of the following:\n\n > HTTP `202 Accepted` - Batch request has been accepted.\n\n > HTTP `Error` - There was an error processing your Batch request. This could either be a `400 Bad Request` or any other `Error` status code.\n\n3. If the batch request was accepted successfully, the `Location` header in the response contains the URL to download the results of the batch request.\n This status URI looks like following:\n\n```\n GET https://atlas.microsoft.com/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\n4. Client issues a `GET` request on the _download URL_ obtained in Step 3 to download the batch results.\n\n### POST Body for Batch Request\nTo send the _search address reverse_ queries you will use a `POST` request where the request body will contain the `batchItems` array in `json` format and the `Content-Type` header will be set to `application/json`. Here's a sample request body containing 5 _search address reverse_ queries:\n\n\n```json\n{\n \"batchItems\": [\n {\"query\": \"?query=48.858561,2.294911\"},\n {\"query\": \"?query=47.639765,-122.127896&radius=5000&limit=2\"},\n {\"query\": \"?query=47.621028,-122.348170\"},\n {\"query\": \"?query=43.722990,10.396695\"},\n {\"query\": \"?query=40.750958,-73.982336\"}\n ]\n}\n```\n\nA _search address reverse_ query in a batch is just a partial URL _without_ the protocol, base URL, path, api-version and subscription-key. It can accept any of the supported _search address reverse_ [URI parameters](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchaddressreverse#uri-parameters). The string values in the _search address reverse_ query must be properly escaped (e.g. \" character should be escaped with \\\\ ) and it should also be properly URL-encoded.\n\n\nThe async API allows caller to batch up to **10,000** queries and sync API up to **100** queries, and the batch should contain at least **1** query.\n\n\n### Download Asynchronous Batch Results\nTo download the async batch results you will issue a `GET` request to the batch download endpoint. This _download URL_ can be obtained from the `Location` header of a successful `POST` batch request and looks like the following:\n\n```\nhttps://atlas.microsoft.com/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\nHere's the typical sequence of operations for downloading the batch results:\n1. Client sends a `GET` request using the _download URL_.\n2. The server will respond with one of the following:\n\n > HTTP `202 Accepted` - Batch request was accepted but is still being processed. Please try again in some time.\n\n > HTTP `200 OK` - Batch request successfully processed. The response body contains all the batch results.\n\n\n\n### Batch Response Model\nThe returned data content is similar for async and sync requests. When downloading the results of an async batch request, if the batch has finished processing, the response body contains the batch response. This batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests`i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item in `batchItems` contains `statusCode` and `response` fields. Each `response` in `batchItems` is of one of the following types:\n\n - [`SearchAddressReverseResponse`](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchaddressreverse#searchaddressreverseresponse) - If the query completed successfully.\n\n - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.\n\n\nHere's a sample Batch Response with 2 _successful_ and 1 _failed_ result:\n\n\n```json\n{\n \"summary\": {\n \"successfulRequests\": 2,\n \"totalRequests\": 3\n },\n \"batchItems\": [\n {\n \"statusCode\": 200,\n \"response\":\n {\n \"summary\": {\n \"queryTime\": 11\n },\n \"addresses\": [\n {\n \"address\": {\n \"country\": \"France\",\n \"freeformAddress\": \"Avenue Anatole France, 75007 Paris\"\n },\n \"position\": \"48.858490,2.294820\"\n }\n ]\n }\n },\n {\n \"statusCode\": 200,\n \"response\":\n {\n \"summary\": {\n \"queryTime\": 1\n },\n \"addresses\": [\n {\n \"address\": {\n \"country\": \"United States of America\",\n \"freeformAddress\": \"157th Pl NE, Redmond WA 98052\"\n },\n \"position\": \"47.640470,-122.129430\"\n }\n ]\n }\n },\n {\n \"statusCode\": 400,\n \"response\":\n {\n \"error\":\n {\n \"code\": \"400 BadRequest\",\n \"message\": \"Bad request: one or more parameters were incorrectly specified or are mutually exclusive.\"\n }\n }\n }\n ]\n}\n```", + "operationId": "Search_PostSearchAddressReverseBatch", + "x-ms-examples": { + "A Reverse Geocoding Batch API Sync call containing 5 Reverse Geocoding API queries": { + "$ref": "./examples/PostSearchAddressReverseBatchSync.json" + } + }, + "parameters": [ + { + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" + }, + { + "$ref": "#/parameters/SearchApiVersion" + }, + { + "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" + }, + { + "name": "searchAddressReverseBatchRequestBody", + "in": "body", + "description": "The list of reverse geocoding queries/requests to process. The list can contain a max of 10,000 queries and must contain at least 1 query.", + "required": true, + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/BatchRequestBody" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SearchAddressReverseBatchResponse" + } + }, + "408": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/408" + }, + "default": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/default" + } + }, + "produces": [ + "application/json" + ] + } } }, "definitions": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetBuffer.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetBuffer.json index 6c3348488598..ed7bbdb1ac9c 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetBuffer.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetBuffer.json @@ -3,7 +3,6 @@ "geography": "us", "format": "json", "api-version": "1.0", - "subscription-key": "[subscription-key]", "udid": "[udid]", "distances": "176.3" }, diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetClosestPoint.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetClosestPoint.json index f176b6b24193..62c03fb8a6b7 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetClosestPoint.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetClosestPoint.json @@ -3,7 +3,6 @@ "geography": "us", "format": "json", "api-version": "1.0", - "subscription-key": "[subscription-key]", "udid": "[udid]", "lat": 47.622942, "lon": -122.316456 diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetGeofence.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetGeofence.json index a3dbf69abe24..fa774352b089 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetGeofence.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetGeofence.json @@ -10,8 +10,7 @@ "searchBuffer": 50, "userTime": "2017-07-21T17:32:28Z", "isAsync": true, - "mode": "EnterAndExit", - "subscription-key": "[subscription-key]" + "mode": "EnterAndExit" }, "responses": { "200": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetGreatCircleDistance.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetGreatCircleDistance.json index 5f9c2e1dd2af..97b2c0680d10 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetGreatCircleDistance.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetGreatCircleDistance.json @@ -3,7 +3,6 @@ "geography": "us", "format": "json", "api-version": "1.0", - "subscription-key": "[subscription-key]", "query": "47.622942,-122.316456:47.610378,-122.200676" }, "responses": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetPointInPolygon.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetPointInPolygon.json index 55007ded16a9..a39c186717ca 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetPointInPolygon.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetPointInPolygon.json @@ -3,7 +3,6 @@ "geography": "us", "format": "json", "api-version": "1.0", - "subscription-key": "[subscription-key]", "udid": "[udid]", "lat": 47.622942, "lon": -122.316456 diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/PostBuffer.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/PostBuffer.json index 98584c6f7557..3bb776d7adf1 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/PostBuffer.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/PostBuffer.json @@ -3,7 +3,6 @@ "geography": "us", "format": "json", "api-version": "1.0", - "subscription-key": "[subscription-key]", "bufferRequestBody": { "geometries": { "type": "FeatureCollection", diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/PostClosestPoint.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/PostClosestPoint.json index fa84100344dd..8e8568f6269e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/PostClosestPoint.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/PostClosestPoint.json @@ -3,7 +3,6 @@ "geography": "us", "format": "json", "api-version": "1.0", - "subscription-key": "[subscription-key]", "lat": 47.622942, "lon": -122.316456, "closestPointRequestBody": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/PostGeofence.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/PostGeofence.json index 0ed72deae2a9..6c4b9ce797c1 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/PostGeofence.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/PostGeofence.json @@ -10,7 +10,6 @@ "usertime": "2017-07-21T17:32:28Z", "isAsync": true, "mode": "EnterAndExit", - "subscription-key": "[subscription-key]", "searchGeofenceRequestBody": { "type": "FeatureCollection", "features": [ diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/PostPointInPolygon.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/PostPointInPolygon.json index 2e8c946aaa5f..72b165fa46db 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/PostPointInPolygon.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/PostPointInPolygon.json @@ -3,7 +3,6 @@ "geography": "us", "format": "json", "api-version": "1.0", - "subscription-key": "[subscription-key]", "lat": 33.5362475, "lon": -111.9267386, "pointInPolygonRequestBody": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json index 2cefa21a3f74..2a6263bddaab 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json @@ -56,7 +56,7 @@ }, "responses": {}, "parameters": { - "ApiVersion": { + "SpatialApiVersion": { "name": "api-version", "description": "Version number of Azure Maps API.", "type": "string", @@ -153,7 +153,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/SpatialApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -240,7 +240,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/SpatialApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -331,7 +331,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/SpatialApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -371,7 +371,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/SpatialApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -414,7 +414,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/SpatialApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -466,7 +466,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/SpatialApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -514,7 +514,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/SpatialApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -560,7 +560,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/SpatialApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -602,7 +602,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/SpatialApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/examples/Create.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/examples/Create.json index ef7ccc020111..3a739eb497f4 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/examples/Create.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/examples/Create.json @@ -2,7 +2,6 @@ "parameters": { "geography": "us", "api-version": "2.0", - "subscription-key": "[subscription-key]", "datasetId": "[dataset-Id]" }, "responses": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/examples/Delete.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/examples/Delete.json index ae7659af0fd1..327073249057 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/examples/Delete.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/examples/Delete.json @@ -2,7 +2,6 @@ "parameters": { "geography": "us", "api-version": "2.0", - "subscription-key": "[subscription-key]", "tilesetId": "25084fb7-307a-4720-8f91-7952a0b91012" }, "responses": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/examples/Get.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/examples/Get.json index f5020314cf6d..8bc232ea544e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/examples/Get.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/examples/Get.json @@ -2,7 +2,6 @@ "parameters": { "geography": "us", "api-version": "2.0", - "subscription-key": "[subscription-key]", "tilesetId": "d8fa86de-bb0f-4a02-a6ff-62ae7545dd84" }, "responses": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/examples/GetOperation.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/examples/GetOperation.json index c3ec377fb2a7..baaba1c0637f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/examples/GetOperation.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/examples/GetOperation.json @@ -2,7 +2,6 @@ "parameters": { "geography": "us", "api-version": "2.0", - "subscription-key": "[subscription-key]", "operationId": "8b1288fa-1958-4a2b-b68e-13a7i5af7d7c" }, "responses": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/examples/GetOperationStillRunning.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/examples/GetOperationStillRunning.json index 4a0559be1343..559e751b6b46 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/examples/GetOperationStillRunning.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/examples/GetOperationStillRunning.json @@ -2,7 +2,6 @@ "parameters": { "geography": "us", "api-version": "2.0", - "subscription-key": "[subscription-key]", "operationId": "8b1288fa-1958-4a2b-b68e-13a7i5af7d7c" }, "responses": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/examples/List.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/examples/List.json index 5132f8691aef..23d4d3b61e7b 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/examples/List.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/examples/List.json @@ -1,8 +1,7 @@ { "parameters": { "geography": "us", - "api-version": "2.0", - "subscription-key": "[subscription-key]" + "api-version": "2.0" }, "responses": { "200": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json index f5f41f3273af..abea4a081322 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json @@ -56,7 +56,7 @@ }, "responses": {}, "parameters": { - "ApiVersionV2": { + "TilesetApiVersionV2": { "name": "api-version", "description": "Version number of Azure Maps API.", "type": "string", @@ -116,7 +116,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersionV2" + "$ref": "#/parameters/TilesetApiVersionV2" }, { "$ref": "#/parameters/DatasetIdQuery" @@ -154,7 +154,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersionV2" + "$ref": "#/parameters/TilesetApiVersionV2" } ], "x-ms-pageable": { @@ -188,7 +188,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersionV2" + "$ref": "#/parameters/TilesetApiVersionV2" }, { "$ref": "#/parameters/TilesetId" @@ -219,7 +219,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersionV2" + "$ref": "#/parameters/TilesetApiVersionV2" }, { "$ref": "#/parameters/TilesetId" @@ -249,7 +249,7 @@ }, "parameters": [ { - "$ref": "#/parameters/ApiVersionV2" + "$ref": "#/parameters/TilesetApiVersionV2" }, { "$ref": "#/parameters/TilesetOperationId" diff --git a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneByCoordinates.json b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneByCoordinates.json index 2b1c4eae34cf..bd4c0290a0b2 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneByCoordinates.json +++ b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneByCoordinates.json @@ -4,8 +4,7 @@ "format": "json", "api-version": "1.0", "query": "47.0,-122", - "options": "all", - "subscription-key": "[subscription-key]" + "options": "all" }, "responses": { "200": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneByID.json b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneByID.json index b042dd021ae9..de0ce433a6ca 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneByID.json +++ b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneByID.json @@ -4,8 +4,7 @@ "format": "json", "api-version": "1.0", "query": "Asia/Bahrain", - "options": "all", - "subscription-key": "[subscription-key]" + "options": "all" }, "responses": { "200": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneEnumIANA.json b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneEnumIANA.json index 442be172d463..86b47fde4446 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneEnumIANA.json +++ b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneEnumIANA.json @@ -2,8 +2,7 @@ "parameters": { "geography": "us", "format": "json", - "api-version": "1.0", - "subscription-key": "[subscription-key]" + "api-version": "1.0" }, "responses": { "200": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneEnumWindows.json b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneEnumWindows.json index 34fa8338a140..97aec25e6cfd 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneEnumWindows.json +++ b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneEnumWindows.json @@ -2,8 +2,7 @@ "parameters": { "geography": "us", "format": "json", - "api-version": "1.0", - "subscription-key": "[subscription-key]" + "api-version": "1.0" }, "responses": { "200": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneIANAVersion.json b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneIANAVersion.json index 6b7cc2373646..21e7af8e2554 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneIANAVersion.json +++ b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneIANAVersion.json @@ -2,8 +2,7 @@ "parameters": { "geography": "us", "format": "json", - "api-version": "1.0", - "subscription-key": "[subscription-key]" + "api-version": "1.0" }, "responses": { "200": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneWindowsToIANA.json b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneWindowsToIANA.json index aeeaaa00377f..07eabb952347 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneWindowsToIANA.json +++ b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneWindowsToIANA.json @@ -3,8 +3,7 @@ "geography": "us", "format": "json", "api-version": "1.0", - "query": "pacific standard time", - "subscription-key": "[subscription-key]" + "query": "pacific standard time" }, "responses": { "200": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json index 93ca59e01aed..a53627e89779 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json +++ b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/timezone.json @@ -56,7 +56,7 @@ }, "responses": {}, "parameters": { - "ApiVersion": { + "TimezoneApiVersion": { "name": "api-version", "description": "Version number of Azure Maps API.", "type": "string", @@ -146,7 +146,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/TimezoneApiVersion" }, { "$ref": "#/parameters/TimezoneAcceptLanguage" @@ -201,7 +201,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/TimezoneApiVersion" }, { "$ref": "#/parameters/TimezoneAcceptLanguage" @@ -256,7 +256,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/TimezoneApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -289,7 +289,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/TimezoneApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -322,7 +322,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/TimezoneApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -355,7 +355,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/TimezoneApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" diff --git a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/examples/GetTrafficFlowSegment.json b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/examples/GetTrafficFlowSegment.json index e1ff8436265b..feb75352b855 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/examples/GetTrafficFlowSegment.json +++ b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/examples/GetTrafficFlowSegment.json @@ -5,8 +5,7 @@ "format": "json", "style": "absolute", "zoom": 10, - "query": "52.41072,4.84239", - "subscription-key": "[subscription-key]" + "query": "52.41072,4.84239" }, "responses": { "200": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/examples/GetTrafficFlowTile.json b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/examples/GetTrafficFlowTile.json index b36909ae763b..27792ff699e1 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/examples/GetTrafficFlowTile.json +++ b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/examples/GetTrafficFlowTile.json @@ -6,8 +6,7 @@ "style": "absolute", "zoom": 12, "x": 2044, - "y": 1360, - "subscription-key": "[subscription-key]" + "y": 1360 }, "responses": { "200": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/examples/GetTrafficIncidentDetail.json b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/examples/GetTrafficIncidentDetail.json index 79576600a09f..0751e2511d46 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/examples/GetTrafficIncidentDetail.json +++ b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/examples/GetTrafficIncidentDetail.json @@ -6,8 +6,7 @@ "style": "s3", "boundingbox": "6841263.950712,511972.674418,6886056.049288,582676.925582", "boundingZoom": 11, - "trafficmodelid": "1335294634919", - "subscription-key": "[subscription-key]" + "trafficmodelid": "1335294634919" }, "responses": { "200": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/examples/GetTrafficIncidentTile.json b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/examples/GetTrafficIncidentTile.json index af321b80deb5..ecc415d6650c 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/examples/GetTrafficIncidentTile.json +++ b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/examples/GetTrafficIncidentTile.json @@ -6,8 +6,7 @@ "style": "night", "zoom": 10, "x": 175, - "y": 408, - "subscription-key": "[subscription-key]" + "y": 408 }, "responses": { "200": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/examples/GetTrafficIncidentViewport.json b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/examples/GetTrafficIncidentViewport.json index 8b4c68b52a3e..f14e0b2bbb80 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/examples/GetTrafficIncidentViewport.json +++ b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/examples/GetTrafficIncidentViewport.json @@ -7,8 +7,7 @@ "boundingzoom": 2, "overviewbox": "-939584.4813018347,-23954526.723651607,14675583.153020501,25043442.8958229083", "overviewzoom": 2, - "copyright": true, - "subscription-key": "[subscription-key]" + "copyright": true }, "responses": { "200": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json index 5087fa225ced..0c5d0d4df53f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json +++ b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/traffic.json @@ -56,7 +56,7 @@ }, "responses": {}, "parameters": { - "ApiVersion": { + "TrafficApiVersion": { "name": "api-version", "description": "Version number of Azure Maps API.", "type": "string", @@ -125,7 +125,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/TrafficApiVersion" }, { "$ref": "#/parameters/TileFormat" @@ -226,7 +226,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/TrafficApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" @@ -324,7 +324,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/TrafficApiVersion" }, { "$ref": "#/parameters/TileFormat" @@ -423,7 +423,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/TrafficApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" @@ -581,7 +581,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/TrafficApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat" diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/DeleteFeature.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/DeleteFeature.json index cfa32ddaba74..c60535b22456 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/DeleteFeature.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/DeleteFeature.json @@ -3,7 +3,6 @@ "geography": "us", "api-version": "2.0", "datasetId": "218fda98-e638-0edf-5ef7-28491ff3bed4", - "subscription-key": "[subscription-key]", "collectionId": "facility", "featureId": "FCL39" }, diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollection.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollection.json index ac23caa02a0b..d8c009ff6cc0 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollection.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollection.json @@ -3,7 +3,6 @@ "geography": "us", "api-version": "2.0", "datasetId": "218fda98-e638-0edf-5ef7-28491ff3bed4", - "subscription-key": "[subscription-key]", "collectionId": "unit" }, "responses": { diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollectionDefinition.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollectionDefinition.json index 74d7b6a02c4a..b99f96da4e3f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollectionDefinition.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollectionDefinition.json @@ -3,7 +3,6 @@ "geography": "us", "api-version": "2.0", "datasetId": "218fda98-e638-0edf-5ef7-28491ff3bed4", - "subscription-key": "[subscription-key]", "collectionId": "unit" }, "responses": { diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollections.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollections.json index 6351d0956005..c0aa496bd1a9 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollections.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollections.json @@ -2,8 +2,7 @@ "parameters": { "geography": "us", "api-version": "2.0", - "datasetId": "218fda98-e638-0edf-5ef7-28491ff3bed4", - "subscription-key": "[subscription-key]" + "datasetId": "218fda98-e638-0edf-5ef7-28491ff3bed4" }, "responses": { "200": { diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetConformance.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetConformance.json index 47407a822eb0..3c2e73a39859 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetConformance.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetConformance.json @@ -2,8 +2,7 @@ "parameters": { "geography": "us", "api-version": "2.0", - "datasetId": "218fda98-e638-0edf-5ef7-28491ff3bed4", - "subscription-key": "[subscription-key]" + "datasetId": "218fda98-e638-0edf-5ef7-28491ff3bed4" }, "responses": { "200": { diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetFeature.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetFeature.json index d01b2229ec86..3b71b4d7a203 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetFeature.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetFeature.json @@ -3,7 +3,6 @@ "geography": "us", "api-version": "2.0", "datasetId": "218fda98-e638-0edf-5ef7-28491ff3bed4", - "subscription-key": "[subscription-key]", "collectionId": "unit", "featureId": "UNIT39" }, diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetFeatures.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetFeatures.json index 867aa5709635..0f37bd6e8147 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetFeatures.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetFeatures.json @@ -3,7 +3,6 @@ "geography": "us", "api-version": "2.0", "datasetId": "018fda98-e638-0edf-5ef7-28491ff3bed4", - "subscription-key": "[subscription-key]", "collectionId": "unit", "limit": 1, "bbox": "-122, 47, -120, 46" diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetLandingPage.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetLandingPage.json index b85b94b2dc1c..2e752208538d 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetLandingPage.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetLandingPage.json @@ -2,8 +2,7 @@ "parameters": { "geography": "us", "api-version": "2.0", - "datasetId": "218fda98-e638-0edf-5ef7-28491ff3bed4", - "subscription-key": "[subscription-key]" + "datasetId": "218fda98-e638-0edf-5ef7-28491ff3bed4" }, "responses": { "200": { diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json index 77f4bc3969d9..90cfd266cd87 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/wfs.json @@ -56,7 +56,7 @@ }, "responses": {}, "parameters": { - "ApiVersionV2": { + "WFSApiVersionV2": { "name": "api-version", "description": "Version number of Azure Maps API.", "type": "string", @@ -120,7 +120,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersionV2" + "$ref": "#/parameters/WFSApiVersionV2" }, { "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" @@ -153,7 +153,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersionV2" + "$ref": "#/parameters/WFSApiVersionV2" }, { "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" @@ -186,7 +186,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersionV2" + "$ref": "#/parameters/WFSApiVersionV2" }, { "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" @@ -219,7 +219,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersionV2" + "$ref": "#/parameters/WFSApiVersionV2" }, { "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" @@ -255,7 +255,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersionV2" + "$ref": "#/parameters/WFSApiVersionV2" }, { "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" @@ -291,7 +291,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersionV2" + "$ref": "#/parameters/WFSApiVersionV2" }, { "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" @@ -333,7 +333,7 @@ }, "parameters": [ { - "$ref": "#/parameters/ApiVersionV2" + "$ref": "#/parameters/WFSApiVersionV2" }, { "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" @@ -367,7 +367,7 @@ }, "parameters": [ { - "$ref": "#/parameters/ApiVersionV2" + "$ref": "#/parameters/WFSApiVersionV2" }, { "$ref": "../../../Dataset/preview/2.0/dataset.json#/parameters/DatasetId" diff --git a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json index 0df5f8295781..17db7cd5830b 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json +++ b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/weather.json @@ -55,7 +55,7 @@ }, "responses": {}, "parameters": { - "ApiVersion": { + "WeatherApiVersion": { "name": "api-version", "description": "Version number of Azure Maps API.", "type": "string", @@ -112,7 +112,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/WeatherApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -164,7 +164,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/WeatherApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -213,7 +213,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/WeatherApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -265,7 +265,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/WeatherApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -323,7 +323,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/WeatherApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -375,7 +375,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/WeatherApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -418,7 +418,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/WeatherApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" @@ -467,7 +467,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" }, { - "$ref": "#/parameters/ApiVersion" + "$ref": "#/parameters/WeatherApiVersion" }, { "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" From 9aca553900bd440f269a0488799845fa18768596 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Wed, 9 Jun 2021 16:49:29 +0200 Subject: [PATCH 195/210] fixes. --- .../data-plane/Microsoft.Maps/Common/preview/1.0/common.json | 4 ++-- .../Microsoft.Maps/FeatureState/preview/2.0/featurestate.json | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index 502e7a78f7dc..3647aaf83384 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -674,14 +674,14 @@ "409": { "description": "The request could not be completed due to a conflict with the current state of the resource. Likely caused by a parallel update to the same resource.", "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../../common-types/data-plane/v1/types.json#/definitions/ErrorResponse" }, "x-ms-error-response": true }, "409StorageLimit": { "description": "The [data storage limit](https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/azure-subscription-service-limits#azure-maps-limits) is reached on the Azure Maps account. You can always use the [Data Delete API](https://docs.microsoft.com/en-us/rest/api/maps/data/deletepreview) to delete old/unused content and create space for new uploads.", "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../../common-types/data-plane/v1/types.json#/definitions/ErrorResponse" }, "x-ms-error-response": true }, diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json index bb0a6a2cceda..73bf4769aa06 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json @@ -159,9 +159,6 @@ "$ref": "#/definitions/StatesetCreatedResponse" } }, - "400": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/400" - }, "default": { "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } From 9a7e25b16c80baa80c5cb0c46be5e9a039325445 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Wed, 9 Jun 2021 16:53:20 +0200 Subject: [PATCH 196/210] Re-add 408. --- .../Microsoft.Maps/Common/preview/1.0/common.json | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index 3647aaf83384..942bf92bfee2 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -671,6 +671,13 @@ } } }, + "408": { + "description": "Timeout: The request took longer to finish than the maximum amount of time defined in the api.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + }, "409": { "description": "The request could not be completed due to a conflict with the current state of the resource. Likely caused by a parallel update to the same resource.", "schema": { From a1e2ce0a61dec11b313ae74bd5823857b090b336 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Wed, 9 Jun 2021 17:01:37 +0200 Subject: [PATCH 197/210] fixes to errors. --- .../common-types/data-plane/v1/types.json | 21 ++++++++++++------- .../Common/preview/1.0/common.json | 6 +++--- .../Route/preview/1.0/route.json | 2 +- .../Search/preview/1.0/search.json | 18 ++++++++-------- .../Tileset/preview/2.0/tileset.json | 2 +- 5 files changed, 28 insertions(+), 21 deletions(-) diff --git a/specification/common-types/data-plane/v1/types.json b/specification/common-types/data-plane/v1/types.json index 654b7555592f..e7801d7d3774 100644 --- a/specification/common-types/data-plane/v1/types.json +++ b/specification/common-types/data-plane/v1/types.json @@ -6,10 +6,8 @@ }, "paths": {}, "definitions": { - "ErrorResponse": { - "title": "Error Response", - "description": "Common error response for all Azure Data Plane APIs to return error details for failed operations. (This also follows the OData error response format.)", - "type": "object", + "ErrorDetail": { + "description": "The error detail.", "properties": { "code": { "readOnly": true, @@ -30,7 +28,7 @@ "readOnly": true, "type": "array", "items": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/ErrorDetail" }, "description": "The error details." }, @@ -44,8 +42,17 @@ } } }, + "ErrorResponse": { + "title": "Error response", + "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).", + "properties": { + "error": { + "description": "The error object.", + "$ref": "#/definitions/ErrorDetail" + } + } + }, "ErrorAdditionalInfo": { - "type": "object", "properties": { "type": { "readOnly": true, @@ -58,7 +65,7 @@ "description": "The additional info." } }, - "description": "The data plane error additional info." + "description": "The resource management error additional info." } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index 942bf92bfee2..d3bd0ec198e4 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -73,10 +73,10 @@ "readOnly": true }, "error": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" + "$ref": "../../../../../../common-types/data-plane/v1/types.json#/definitions/ErrorDetail" }, "warning": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" + "$ref": "../../../../../../common-types/data-plane/v1/types.json#/definitions/ErrorDetail" } } }, @@ -674,7 +674,7 @@ "408": { "description": "Timeout: The request took longer to finish than the maximum amount of time defined in the api.", "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../../common-types/data-plane/v1/types.json#/definitions/ErrorResponse" }, "x-ms-error-response": true }, diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json index e8c46cdb0114..4da0299a8df3 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json @@ -2452,7 +2452,7 @@ "$ref": "#/definitions/RouteDirectionsResponse" }, { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../../common-types/data-plane/v1/types.json#/definitions/ErrorResponse" } ] } diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json index a725d601667b..d4f967a08e5f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json @@ -1355,7 +1355,7 @@ "/search/fuzzy/batch/sync/{format}": { "post": { "description": "**Search Fuzzy Batch API**\n\n\n**Applies to**: S1 pricing tier.\n\n\n\nThe Search Address Batch API sends batches of queries to [Search Fuzzy API](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchfuzzy) using just a single API call. You can call Search Address Fuzzy Batch API to run either asynchronously (async) or synchronously (sync). The async API allows caller to batch up to **10,000** queries and sync API up to **100** queries.\n### Submit Synchronous Batch Request\nThe Synchronous API is recommended for lightweight batch requests. When the service receives a request, it will respond as soon as the batch items are calculated and there will be no possibility to retrieve the results later. The Synchronous API will return a timeout error (a 408 response) if the request takes longer than 60 seconds. The number of batch items is limited to **100** for this API.\n```\nPOST https://atlas.microsoft.com/search/fuzzy/batch/sync/json?api-version=1.0&subscription-key={subscription-key}\n```\n### Submit Asynchronous Batch Request\nThe Asynchronous API is appropriate for processing big volumes of relatively complex search requests\n- It allows the retrieval of results in a separate call (multiple downloads are possible).\n- The asynchronous API is optimized for reliability and is not expected to run into a timeout.\n- The number of batch items is limited to **10,000** for this API.\n\nWhen you make a request by using async request, by default the service returns a 202 response code along a redirect URL in the Location field of the response header. This URL should be checked periodically until the response data or error information is available.\nThe asynchronous responses are stored for **14** days. The redirect URL returns a 404 response if used after the expiration period.\n\nPlease note that asynchronous batch request is a long-running request. Here's a typical sequence of operations:\n1. Client sends a Search Address Batch `POST` request to Azure Maps\n2. The server will respond with one of the following:\n\n > HTTP `202 Accepted` - Batch request has been accepted.\n\n > HTTP `Error` - There was an error processing your Batch request. This could either be a `400 Bad Request` or any other `Error` status code.\n\n3. If the batch request was accepted successfully, the `Location` header in the response contains the URL to download the results of the batch request.\n This status URI looks like following:\n\n```\n GET https://atlas.microsoft.com/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\n4. Client issues a `GET` request on the _download URL_ obtained in Step 3 to download the batch results.\n\n### POST Body for Batch Request\nTo send the _search fuzzy_ queries you will use a `POST` request where the request body will contain the `batchItems` array in `json` format and the `Content-Type` header will be set to `application/json`. Here's a sample request body containing 5 _search fuzzy_ queries:\n\n\n```json\n{\n \"batchItems\": [\n {\"query\": \"?query=atm&lat=47.639769&lon=-122.128362&radius=5000&limit=5\"},\n {\"query\": \"?query=Statue Of Liberty&limit=2\"},\n {\"query\": \"?query=Starbucks&lat=47.639769&lon=-122.128362&radius=5000\"},\n {\"query\": \"?query=Space Needle\"},\n {\"query\": \"?query=pizza&limit=10\"}\n ]\n}\n```\n\nA _search fuzzy_ query in a batch is just a partial URL _without_ the protocol, base URL, path, api-version and subscription-key. It can accept any of the supported _search fuzzy_ [URI parameters](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchfuzzy#uri-parameters). The string values in the _search fuzzy_ query must be properly escaped (e.g. \" character should be escaped with \\\\ ) and it should also be properly URL-encoded.\n\n\nThe async API allows caller to batch up to **10,000** queries and sync API up to **100** queries, and the batch should contain at least **1** query.\n\n\n### Download Asynchronous Batch Results\nTo download the async batch results you will issue a `GET` request to the batch download endpoint. This _download URL_ can be obtained from the `Location` header of a successful `POST` batch request and looks like the following:\n\n```\nhttps://atlas.microsoft.com/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\nHere's the typical sequence of operations for downloading the batch results:\n1. Client sends a `GET` request using the _download URL_.\n2. The server will respond with one of the following:\n\n > HTTP `202 Accepted` - Batch request was accepted but is still being processed. Please try again in some time.\n\n > HTTP `200 OK` - Batch request successfully processed. The response body contains all the batch results.\n\n\n\n### Batch Response Model\nThe returned data content is similar for async and sync requests. When downloading the results of an async batch request, if the batch has finished processing, the response body contains the batch response. This batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests`i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item in `batchItems` contains `statusCode` and `response` fields. Each `response` in `batchItems` is of one of the following types:\n\n - [`SearchCommonResponse`](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchfuzzy#searchcommonresponse) - If the query completed successfully.\n\n - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.\n\n\nHere's a sample Batch Response with 2 _successful_ and 1 _failed_ result:\n\n\n```json\n{\n \"summary\": {\n \"successfulRequests\": 2,\n \"totalRequests\": 3\n },\n \"batchItems\": [\n {\n \"statusCode\": 200,\n \"response\":\n {\n \"summary\": {\n \"query\": \"atm\"\n },\n \"results\": [\n {\n \"type\": \"POI\",\n \"poi\": {\n \"name\": \"ATM at Wells Fargo\"\n },\n \"address\": {\n \"country\": \"United States Of America\",\n \"freeformAddress\": \"3240 157th Ave NE, Redmond, WA 98052\"\n }\n }\n ]\n }\n },\n {\n \"statusCode\": 200,\n \"response\":\n {\n \"summary\": {\n \"query\": \"statue of liberty\"\n },\n \"results\": [\n {\n \"type\": \"POI\",\n \"poi\": {\n \"name\": \"Statue of Liberty\"\n },\n \"address\": {\n \"country\": \"United States Of America\",\n \"freeformAddress\": \"New York, NY 10004\"\n }\n }\n ]\n }\n },\n {\n \"statusCode\": 400,\n \"response\":\n {\n \"error\":\n {\n \"code\": \"400 BadRequest\",\n \"message\": \"Bad request: one or more parameters were incorrectly specified or are mutually exclusive.\"\n }\n }\n }\n ]\n}\n```", - "operationId": "Search_PostSearchFuzzyBatch", + "operationId": "Search_PostSearchFuzzyBatchSync", "x-ms-examples": { "A Sync Search Fuzzy Batch API call containing 5 Search Fuzzy API queries": { "$ref": "./examples/PostSearchFuzzyBatchSync.json" @@ -1447,7 +1447,7 @@ }, "get": { "description": "**Search Fuzzy Batch API**\n\n\n**Applies to**: S1 pricing tier.\n\n\n\nThe Search Address Batch API sends batches of queries to [Search Fuzzy API](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchfuzzy) using just a single API call. You can call Search Address Fuzzy Batch API to run either asynchronously (async) or synchronously (sync). The async API allows caller to batch up to **10,000** queries and sync API up to **100** queries.\n### Submit Synchronous Batch Request\nThe Synchronous API is recommended for lightweight batch requests. When the service receives a request, it will respond as soon as the batch items are calculated and there will be no possibility to retrieve the results later. The Synchronous API will return a timeout error (a 408 response) if the request takes longer than 60 seconds. The number of batch items is limited to **100** for this API.\n```\nPOST https://atlas.microsoft.com/search/fuzzy/batch/sync/json?api-version=1.0&subscription-key={subscription-key}\n```\n### Submit Asynchronous Batch Request\nThe Asynchronous API is appropriate for processing big volumes of relatively complex search requests\n- It allows the retrieval of results in a separate call (multiple downloads are possible).\n- The asynchronous API is optimized for reliability and is not expected to run into a timeout.\n- The number of batch items is limited to **10,000** for this API.\n\nWhen you make a request by using async request, by default the service returns a 202 response code along a redirect URL in the Location field of the response header. This URL should be checked periodically until the response data or error information is available.\nThe asynchronous responses are stored for **14** days. The redirect URL returns a 404 response if used after the expiration period.\n\nPlease note that asynchronous batch request is a long-running request. Here's a typical sequence of operations:\n1. Client sends a Search Address Batch `POST` request to Azure Maps\n2. The server will respond with one of the following:\n\n > HTTP `202 Accepted` - Batch request has been accepted.\n\n > HTTP `Error` - There was an error processing your Batch request. This could either be a `400 Bad Request` or any other `Error` status code.\n\n3. If the batch request was accepted successfully, the `Location` header in the response contains the URL to download the results of the batch request.\n This status URI looks like following:\n\n```\n GET https://atlas.microsoft.com/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\n4. Client issues a `GET` request on the _download URL_ obtained in Step 3 to download the batch results.\n\n### POST Body for Batch Request\nTo send the _search fuzzy_ queries you will use a `POST` request where the request body will contain the `batchItems` array in `json` format and the `Content-Type` header will be set to `application/json`. Here's a sample request body containing 5 _search fuzzy_ queries:\n\n\n```json\n{\n \"batchItems\": [\n {\"query\": \"?query=atm&lat=47.639769&lon=-122.128362&radius=5000&limit=5\"},\n {\"query\": \"?query=Statue Of Liberty&limit=2\"},\n {\"query\": \"?query=Starbucks&lat=47.639769&lon=-122.128362&radius=5000\"},\n {\"query\": \"?query=Space Needle\"},\n {\"query\": \"?query=pizza&limit=10\"}\n ]\n}\n```\n\nA _search fuzzy_ query in a batch is just a partial URL _without_ the protocol, base URL, path, api-version and subscription-key. It can accept any of the supported _search fuzzy_ [URI parameters](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchfuzzy#uri-parameters). The string values in the _search fuzzy_ query must be properly escaped (e.g. \" character should be escaped with \\\\ ) and it should also be properly URL-encoded.\n\n\nThe async API allows caller to batch up to **10,000** queries and sync API up to **100** queries, and the batch should contain at least **1** query.\n\n\n### Download Asynchronous Batch Results\nTo download the async batch results you will issue a `GET` request to the batch download endpoint. This _download URL_ can be obtained from the `Location` header of a successful `POST` batch request and looks like the following:\n\n```\nhttps://atlas.microsoft.com/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\nHere's the typical sequence of operations for downloading the batch results:\n1. Client sends a `GET` request using the _download URL_.\n2. The server will respond with one of the following:\n\n > HTTP `202 Accepted` - Batch request was accepted but is still being processed. Please try again in some time.\n\n > HTTP `200 OK` - Batch request successfully processed. The response body contains all the batch results.\n\n\n\n### Batch Response Model\nThe returned data content is similar for async and sync requests. When downloading the results of an async batch request, if the batch has finished processing, the response body contains the batch response. This batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests`i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item in `batchItems` contains `statusCode` and `response` fields. Each `response` in `batchItems` is of one of the following types:\n\n - [`SearchCommonResponse`](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchfuzzy#searchcommonresponse) - If the query completed successfully.\n\n - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.\n\n\nHere's a sample Batch Response with 2 _successful_ and 1 _failed_ result:\n\n\n```json\n{\n \"summary\": {\n \"successfulRequests\": 2,\n \"totalRequests\": 3\n },\n \"batchItems\": [\n {\n \"statusCode\": 200,\n \"response\":\n {\n \"summary\": {\n \"query\": \"atm\"\n },\n \"results\": [\n {\n \"type\": \"POI\",\n \"poi\": {\n \"name\": \"ATM at Wells Fargo\"\n },\n \"address\": {\n \"country\": \"United States Of America\",\n \"freeformAddress\": \"3240 157th Ave NE, Redmond, WA 98052\"\n }\n }\n ]\n }\n },\n {\n \"statusCode\": 200,\n \"response\":\n {\n \"summary\": {\n \"query\": \"statue of liberty\"\n },\n \"results\": [\n {\n \"type\": \"POI\",\n \"poi\": {\n \"name\": \"Statue of Liberty\"\n },\n \"address\": {\n \"country\": \"United States Of America\",\n \"freeformAddress\": \"New York, NY 10004\"\n }\n }\n ]\n }\n },\n {\n \"statusCode\": 400,\n \"response\":\n {\n \"error\":\n {\n \"code\": \"400 BadRequest\",\n \"message\": \"Bad request: one or more parameters were incorrectly specified or are mutually exclusive.\"\n }\n }\n }\n ]\n}\n```", - "operationId": "Search_PostSearchFuzzyBatch", + "operationId": "Search_GetSearchFuzzyBatch", "x-ms-long-running-operation": true, "x-ms-long-running-operation-options": { "final-state-via": "original-uri" @@ -1534,7 +1534,7 @@ }, "get": { "description": "**Search Address Batch API**\n\n\n**Applies to**: S1 pricing tier.\n\n\n\nThe Search Address Batch API sends batches of queries to [Search Address API](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchaddress) using just a single API call. You can call Search Address Batch API to run either asynchronously (async) or synchronously (sync). The async API allows caller to batch up to **10,000** queries and sync API up to **100** queries.\n### Submit Synchronous Batch Request\nThe Synchronous API is recommended for lightweight batch requests. When the service receives a request, it will respond as soon as the batch items are calculated and there will be no possibility to retrieve the results later. The Synchronous API will return a timeout error (a 408 response) if the request takes longer than 60 seconds. The number of batch items is limited to **100** for this API.\n```\nPOST https://atlas.microsoft.com/search/address/batch/sync/json?api-version=1.0&subscription-key={subscription-key}\n```\n### Submit Asynchronous Batch Request\nThe Asynchronous API is appropriate for processing big volumes of relatively complex search requests\n- It allows the retrieval of results in a separate call (multiple downloads are possible).\n- The asynchronous API is optimized for reliability and is not expected to run into a timeout.\n- The number of batch items is limited to **10,000** for this API.\n\nWhen you make a request by using async request, by default the service returns a 202 response code along a redirect URL in the Location field of the response header. This URL should be checked periodically until the response data or error information is available.\nThe asynchronous responses are stored for **14** days. The redirect URL returns a 404 response if used after the expiration period.\n\nPlease note that asynchronous batch request is a long-running request. Here's a typical sequence of operations:\n1. Client sends a Search Address Batch `POST` request to Azure Maps\n2. The server will respond with one of the following:\n\n > HTTP `202 Accepted` - Batch request has been accepted.\n\n > HTTP `Error` - There was an error processing your Batch request. This could either be a `400 Bad Request` or any other `Error` status code.\n\n3. If the batch request was accepted successfully, the `Location` header in the response contains the URL to download the results of the batch request.\n This status URI looks like following:\n\n```\n GET https://atlas.microsoft.com/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\n4. Client issues a `GET` request on the _download URL_ obtained in Step 3 to download the batch results.\n\n### POST Body for Batch Request\nTo send the _search address_ queries you will use a `POST` request where the request body will contain the `batchItems` array in `json` format and the `Content-Type` header will be set to `application/json`. Here's a sample request body containing 5 _search address_ queries:\n\n\n```json\n{\n \"batchItems\": [\n {\"query\": \"?query=400 Broad St, Seattle, WA 98109&limit=3\"},\n {\"query\": \"?query=One, Microsoft Way, Redmond, WA 98052&limit=3\"},\n {\"query\": \"?query=350 5th Ave, New York, NY 10118&limit=1\"},\n {\"query\": \"?query=Pike Pl, Seattle, WA 98101&lat=47.610970&lon=-122.342469&radius=1000\"},\n {\"query\": \"?query=Champ de Mars, 5 Avenue Anatole France, 75007 Paris, France&limit=1\"}\n ]\n}\n```\n\nA _search address_ query in a batch is just a partial URL _without_ the protocol, base URL, path, api-version and subscription-key. It can accept any of the supported _search address_ [URI parameters](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchaddress#uri-parameters). The string values in the _search address_ query must be properly escaped (e.g. \" character should be escaped with \\\\ ) and it should also be properly URL-encoded.\n\n\nThe async API allows caller to batch up to **10,000** queries and sync API up to **100** queries, and the batch should contain at least **1** query.\n\n\n### Download Asynchronous Batch Results\nTo download the async batch results you will issue a `GET` request to the batch download endpoint. This _download URL_ can be obtained from the `Location` header of a successful `POST` batch request and looks like the following:\n\n```\nhttps://atlas.microsoft.com/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\nHere's the typical sequence of operations for downloading the batch results:\n1. Client sends a `GET` request using the _download URL_.\n2. The server will respond with one of the following:\n\n > HTTP `202 Accepted` - Batch request was accepted but is still being processed. Please try again in some time.\n\n > HTTP `200 OK` - Batch request successfully processed. The response body contains all the batch results.\n\n\n\n### Batch Response Model\nThe returned data content is similar for async and sync requests. When downloading the results of an async batch request, if the batch has finished processing, the response body contains the batch response. This batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests`i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item in `batchItems` contains `statusCode` and `response` fields. Each `response` in `batchItems` is of one of the following types:\n\n - [`SearchCommonResponse`](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchaddress#SearchCommonResponse) - If the query completed successfully.\n\n - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.\n\n\nHere's a sample Batch Response with 2 _successful_ and 1 _failed_ result:\n\n\n```json\n{\n \"summary\": {\n \"successfulRequests\": 2,\n \"totalRequests\": 3\n },\n \"batchItems\": [\n {\n \"statusCode\": 200,\n \"response\":\n {\n \"summary\": {\n \"query\": \"one microsoft way redmond wa 98052\"\n },\n \"results\": [\n {\n \"position\": {\n \"lat\": 47.63989,\n \"lon\": -122.12509\n }\n }\n ]\n }\n },\n {\n \"statusCode\": 200,\n \"response\":\n {\n \"summary\": {\n \"query\": \"pike pl seattle wa 98101\"\n },\n \"results\": [\n {\n \"position\": {\n \"lat\": 47.60963,\n \"lon\": -122.34215\n }\n }\n ]\n }\n },\n {\n \"statusCode\": 400,\n \"response\":\n {\n \"error\":\n {\n \"code\": \"400 BadRequest\",\n \"message\": \"Bad request: one or more parameters were incorrectly specified or are mutually exclusive.\"\n }\n }\n }\n ]\n}\n```", - "operationId": "Search_PostSearchAddressBatch", + "operationId": "Search_GetSearchAddressBatch", "x-ms-long-running-operation": true, "x-ms-long-running-operation-options": { "final-state-via": "original-uri" @@ -1577,7 +1577,7 @@ "/search/address/batch/sync/{format}": { "post": { "description": "**Search Address Batch API**\n\n\n**Applies to**: S1 pricing tier.\n\n\n\nThe Search Address Batch API sends batches of queries to [Search Address API](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchaddress) using just a single API call. You can call Search Address Batch API to run either asynchronously (async) or synchronously (sync). The async API allows caller to batch up to **10,000** queries and sync API up to **100** queries.\n### Submit Synchronous Batch Request\nThe Synchronous API is recommended for lightweight batch requests. When the service receives a request, it will respond as soon as the batch items are calculated and there will be no possibility to retrieve the results later. The Synchronous API will return a timeout error (a 408 response) if the request takes longer than 60 seconds. The number of batch items is limited to **100** for this API.\n```\nPOST https://atlas.microsoft.com/search/address/batch/sync/json?api-version=1.0&subscription-key={subscription-key}\n```\n### Submit Asynchronous Batch Request\nThe Asynchronous API is appropriate for processing big volumes of relatively complex search requests\n- It allows the retrieval of results in a separate call (multiple downloads are possible).\n- The asynchronous API is optimized for reliability and is not expected to run into a timeout.\n- The number of batch items is limited to **10,000** for this API.\n\nWhen you make a request by using async request, by default the service returns a 202 response code along a redirect URL in the Location field of the response header. This URL should be checked periodically until the response data or error information is available.\nThe asynchronous responses are stored for **14** days. The redirect URL returns a 404 response if used after the expiration period.\n\nPlease note that asynchronous batch request is a long-running request. Here's a typical sequence of operations:\n1. Client sends a Search Address Batch `POST` request to Azure Maps\n2. The server will respond with one of the following:\n\n > HTTP `202 Accepted` - Batch request has been accepted.\n\n > HTTP `Error` - There was an error processing your Batch request. This could either be a `400 Bad Request` or any other `Error` status code.\n\n3. If the batch request was accepted successfully, the `Location` header in the response contains the URL to download the results of the batch request.\n This status URI looks like following:\n\n```\n GET https://atlas.microsoft.com/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\n4. Client issues a `GET` request on the _download URL_ obtained in Step 3 to download the batch results.\n\n### POST Body for Batch Request\nTo send the _search address_ queries you will use a `POST` request where the request body will contain the `batchItems` array in `json` format and the `Content-Type` header will be set to `application/json`. Here's a sample request body containing 5 _search address_ queries:\n\n\n```json\n{\n \"batchItems\": [\n {\"query\": \"?query=400 Broad St, Seattle, WA 98109&limit=3\"},\n {\"query\": \"?query=One, Microsoft Way, Redmond, WA 98052&limit=3\"},\n {\"query\": \"?query=350 5th Ave, New York, NY 10118&limit=1\"},\n {\"query\": \"?query=Pike Pl, Seattle, WA 98101&lat=47.610970&lon=-122.342469&radius=1000\"},\n {\"query\": \"?query=Champ de Mars, 5 Avenue Anatole France, 75007 Paris, France&limit=1\"}\n ]\n}\n```\n\nA _search address_ query in a batch is just a partial URL _without_ the protocol, base URL, path, api-version and subscription-key. It can accept any of the supported _search address_ [URI parameters](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchaddress#uri-parameters). The string values in the _search address_ query must be properly escaped (e.g. \" character should be escaped with \\\\ ) and it should also be properly URL-encoded.\n\n\nThe async API allows caller to batch up to **10,000** queries and sync API up to **100** queries, and the batch should contain at least **1** query.\n\n\n### Download Asynchronous Batch Results\nTo download the async batch results you will issue a `GET` request to the batch download endpoint. This _download URL_ can be obtained from the `Location` header of a successful `POST` batch request and looks like the following:\n\n```\nhttps://atlas.microsoft.com/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\nHere's the typical sequence of operations for downloading the batch results:\n1. Client sends a `GET` request using the _download URL_.\n2. The server will respond with one of the following:\n\n > HTTP `202 Accepted` - Batch request was accepted but is still being processed. Please try again in some time.\n\n > HTTP `200 OK` - Batch request successfully processed. The response body contains all the batch results.\n\n\n\n### Batch Response Model\nThe returned data content is similar for async and sync requests. When downloading the results of an async batch request, if the batch has finished processing, the response body contains the batch response. This batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests`i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item in `batchItems` contains `statusCode` and `response` fields. Each `response` in `batchItems` is of one of the following types:\n\n - [`SearchCommonResponse`](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchaddress#SearchCommonResponse) - If the query completed successfully.\n\n - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.\n\n\nHere's a sample Batch Response with 2 _successful_ and 1 _failed_ result:\n\n\n```json\n{\n \"summary\": {\n \"successfulRequests\": 2,\n \"totalRequests\": 3\n },\n \"batchItems\": [\n {\n \"statusCode\": 200,\n \"response\":\n {\n \"summary\": {\n \"query\": \"one microsoft way redmond wa 98052\"\n },\n \"results\": [\n {\n \"position\": {\n \"lat\": 47.63989,\n \"lon\": -122.12509\n }\n }\n ]\n }\n },\n {\n \"statusCode\": 200,\n \"response\":\n {\n \"summary\": {\n \"query\": \"pike pl seattle wa 98101\"\n },\n \"results\": [\n {\n \"position\": {\n \"lat\": 47.60963,\n \"lon\": -122.34215\n }\n }\n ]\n }\n },\n {\n \"statusCode\": 400,\n \"response\":\n {\n \"error\":\n {\n \"code\": \"400 BadRequest\",\n \"message\": \"Bad request: one or more parameters were incorrectly specified or are mutually exclusive.\"\n }\n }\n }\n ]\n}\n```", - "operationId": "Search_PostSearchAddressBatch", + "operationId": "Search_PostSearchAddressBatchSync", "x-ms-examples": { "An Address Geocoding Batch API Sync call containing 5 Address Geocoding API queries": { "$ref": "./examples/PostSearchAddressBatchSync.json" @@ -1669,7 +1669,7 @@ }, "get": { "description": "**Search Address Reverse Batch API**\n\n\n**Applies to**: S1 pricing tier.\n\n\n\nThe Search Address Batch API sends batches of queries to [Search Address Reverse API](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchaddressreverse) using just a single API call. You can call Search Address Reverse Batch API to run either asynchronously (async) or synchronously (sync). The async API allows caller to batch up to **10,000** queries and sync API up to **100** queries.\n### Submit Synchronous Batch Request\nThe Synchronous API is recommended for lightweight batch requests. When the service receives a request, it will respond as soon as the batch items are calculated and there will be no possibility to retrieve the results later. The Synchronous API will return a timeout error (a 408 response) if the request takes longer than 60 seconds. The number of batch items is limited to **100** for this API.\n```\nPOST https://atlas.microsoft.com/search/address/reverse/batch/sync/json?api-version=1.0&subscription-key={subscription-key}\n```\n### Submit Asynchronous Batch Request\nThe Asynchronous API is appropriate for processing big volumes of relatively complex search requests\n- It allows the retrieval of results in a separate call (multiple downloads are possible).\n- The asynchronous API is optimized for reliability and is not expected to run into a timeout.\n- The number of batch items is limited to **10,000** for this API.\n\nWhen you make a request by using async request, by default the service returns a 202 response code along a redirect URL in the Location field of the response header. This URL should be checked periodically until the response data or error information is available.\nThe asynchronous responses are stored for **14** days. The redirect URL returns a 404 response if used after the expiration period.\n\nPlease note that asynchronous batch request is a long-running request. Here's a typical sequence of operations:\n1. Client sends a Search Address Batch `POST` request to Azure Maps\n2. The server will respond with one of the following:\n\n > HTTP `202 Accepted` - Batch request has been accepted.\n\n > HTTP `Error` - There was an error processing your Batch request. This could either be a `400 Bad Request` or any other `Error` status code.\n\n3. If the batch request was accepted successfully, the `Location` header in the response contains the URL to download the results of the batch request.\n This status URI looks like following:\n\n```\n GET https://atlas.microsoft.com/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\n4. Client issues a `GET` request on the _download URL_ obtained in Step 3 to download the batch results.\n\n### POST Body for Batch Request\nTo send the _search address reverse_ queries you will use a `POST` request where the request body will contain the `batchItems` array in `json` format and the `Content-Type` header will be set to `application/json`. Here's a sample request body containing 5 _search address reverse_ queries:\n\n\n```json\n{\n \"batchItems\": [\n {\"query\": \"?query=48.858561,2.294911\"},\n {\"query\": \"?query=47.639765,-122.127896&radius=5000&limit=2\"},\n {\"query\": \"?query=47.621028,-122.348170\"},\n {\"query\": \"?query=43.722990,10.396695\"},\n {\"query\": \"?query=40.750958,-73.982336\"}\n ]\n}\n```\n\nA _search address reverse_ query in a batch is just a partial URL _without_ the protocol, base URL, path, api-version and subscription-key. It can accept any of the supported _search address reverse_ [URI parameters](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchaddressreverse#uri-parameters). The string values in the _search address reverse_ query must be properly escaped (e.g. \" character should be escaped with \\\\ ) and it should also be properly URL-encoded.\n\n\nThe async API allows caller to batch up to **10,000** queries and sync API up to **100** queries, and the batch should contain at least **1** query.\n\n\n### Download Asynchronous Batch Results\nTo download the async batch results you will issue a `GET` request to the batch download endpoint. This _download URL_ can be obtained from the `Location` header of a successful `POST` batch request and looks like the following:\n\n```\nhttps://atlas.microsoft.com/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\nHere's the typical sequence of operations for downloading the batch results:\n1. Client sends a `GET` request using the _download URL_.\n2. The server will respond with one of the following:\n\n > HTTP `202 Accepted` - Batch request was accepted but is still being processed. Please try again in some time.\n\n > HTTP `200 OK` - Batch request successfully processed. The response body contains all the batch results.\n\n\n\n### Batch Response Model\nThe returned data content is similar for async and sync requests. When downloading the results of an async batch request, if the batch has finished processing, the response body contains the batch response. This batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests`i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item in `batchItems` contains `statusCode` and `response` fields. Each `response` in `batchItems` is of one of the following types:\n\n - [`SearchAddressReverseResponse`](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchaddressreverse#searchaddressreverseresponse) - If the query completed successfully.\n\n - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.\n\n\nHere's a sample Batch Response with 2 _successful_ and 1 _failed_ result:\n\n\n```json\n{\n \"summary\": {\n \"successfulRequests\": 2,\n \"totalRequests\": 3\n },\n \"batchItems\": [\n {\n \"statusCode\": 200,\n \"response\":\n {\n \"summary\": {\n \"queryTime\": 11\n },\n \"addresses\": [\n {\n \"address\": {\n \"country\": \"France\",\n \"freeformAddress\": \"Avenue Anatole France, 75007 Paris\"\n },\n \"position\": \"48.858490,2.294820\"\n }\n ]\n }\n },\n {\n \"statusCode\": 200,\n \"response\":\n {\n \"summary\": {\n \"queryTime\": 1\n },\n \"addresses\": [\n {\n \"address\": {\n \"country\": \"United States of America\",\n \"freeformAddress\": \"157th Pl NE, Redmond WA 98052\"\n },\n \"position\": \"47.640470,-122.129430\"\n }\n ]\n }\n },\n {\n \"statusCode\": 400,\n \"response\":\n {\n \"error\":\n {\n \"code\": \"400 BadRequest\",\n \"message\": \"Bad request: one or more parameters were incorrectly specified or are mutually exclusive.\"\n }\n }\n }\n ]\n}\n```", - "operationId": "Search_PostSearchAddressReverseBatch", + "operationId": "Search_GetSearchAddressReverseBatch", "x-ms-long-running-operation": true, "x-ms-long-running-operation-options": { "final-state-via": "original-uri" @@ -1712,7 +1712,7 @@ "/search/address/reverse/batch/sync/{format}": { "post": { "description": "**Search Address Reverse Batch API**\n\n\n**Applies to**: S1 pricing tier.\n\n\n\nThe Search Address Batch API sends batches of queries to [Search Address Reverse API](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchaddressreverse) using just a single API call. You can call Search Address Reverse Batch API to run either asynchronously (async) or synchronously (sync). The async API allows caller to batch up to **10,000** queries and sync API up to **100** queries.\n### Submit Synchronous Batch Request\nThe Synchronous API is recommended for lightweight batch requests. When the service receives a request, it will respond as soon as the batch items are calculated and there will be no possibility to retrieve the results later. The Synchronous API will return a timeout error (a 408 response) if the request takes longer than 60 seconds. The number of batch items is limited to **100** for this API.\n```\nPOST https://atlas.microsoft.com/search/address/reverse/batch/sync/json?api-version=1.0&subscription-key={subscription-key}\n```\n### Submit Asynchronous Batch Request\nThe Asynchronous API is appropriate for processing big volumes of relatively complex search requests\n- It allows the retrieval of results in a separate call (multiple downloads are possible).\n- The asynchronous API is optimized for reliability and is not expected to run into a timeout.\n- The number of batch items is limited to **10,000** for this API.\n\nWhen you make a request by using async request, by default the service returns a 202 response code along a redirect URL in the Location field of the response header. This URL should be checked periodically until the response data or error information is available.\nThe asynchronous responses are stored for **14** days. The redirect URL returns a 404 response if used after the expiration period.\n\nPlease note that asynchronous batch request is a long-running request. Here's a typical sequence of operations:\n1. Client sends a Search Address Batch `POST` request to Azure Maps\n2. The server will respond with one of the following:\n\n > HTTP `202 Accepted` - Batch request has been accepted.\n\n > HTTP `Error` - There was an error processing your Batch request. This could either be a `400 Bad Request` or any other `Error` status code.\n\n3. If the batch request was accepted successfully, the `Location` header in the response contains the URL to download the results of the batch request.\n This status URI looks like following:\n\n```\n GET https://atlas.microsoft.com/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\n4. Client issues a `GET` request on the _download URL_ obtained in Step 3 to download the batch results.\n\n### POST Body for Batch Request\nTo send the _search address reverse_ queries you will use a `POST` request where the request body will contain the `batchItems` array in `json` format and the `Content-Type` header will be set to `application/json`. Here's a sample request body containing 5 _search address reverse_ queries:\n\n\n```json\n{\n \"batchItems\": [\n {\"query\": \"?query=48.858561,2.294911\"},\n {\"query\": \"?query=47.639765,-122.127896&radius=5000&limit=2\"},\n {\"query\": \"?query=47.621028,-122.348170\"},\n {\"query\": \"?query=43.722990,10.396695\"},\n {\"query\": \"?query=40.750958,-73.982336\"}\n ]\n}\n```\n\nA _search address reverse_ query in a batch is just a partial URL _without_ the protocol, base URL, path, api-version and subscription-key. It can accept any of the supported _search address reverse_ [URI parameters](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchaddressreverse#uri-parameters). The string values in the _search address reverse_ query must be properly escaped (e.g. \" character should be escaped with \\\\ ) and it should also be properly URL-encoded.\n\n\nThe async API allows caller to batch up to **10,000** queries and sync API up to **100** queries, and the batch should contain at least **1** query.\n\n\n### Download Asynchronous Batch Results\nTo download the async batch results you will issue a `GET` request to the batch download endpoint. This _download URL_ can be obtained from the `Location` header of a successful `POST` batch request and looks like the following:\n\n```\nhttps://atlas.microsoft.com/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\nHere's the typical sequence of operations for downloading the batch results:\n1. Client sends a `GET` request using the _download URL_.\n2. The server will respond with one of the following:\n\n > HTTP `202 Accepted` - Batch request was accepted but is still being processed. Please try again in some time.\n\n > HTTP `200 OK` - Batch request successfully processed. The response body contains all the batch results.\n\n\n\n### Batch Response Model\nThe returned data content is similar for async and sync requests. When downloading the results of an async batch request, if the batch has finished processing, the response body contains the batch response. This batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests`i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item in `batchItems` contains `statusCode` and `response` fields. Each `response` in `batchItems` is of one of the following types:\n\n - [`SearchAddressReverseResponse`](https://docs.microsoft.com/en-us/rest/api/maps/search/getsearchaddressreverse#searchaddressreverseresponse) - If the query completed successfully.\n\n - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.\n\n\nHere's a sample Batch Response with 2 _successful_ and 1 _failed_ result:\n\n\n```json\n{\n \"summary\": {\n \"successfulRequests\": 2,\n \"totalRequests\": 3\n },\n \"batchItems\": [\n {\n \"statusCode\": 200,\n \"response\":\n {\n \"summary\": {\n \"queryTime\": 11\n },\n \"addresses\": [\n {\n \"address\": {\n \"country\": \"France\",\n \"freeformAddress\": \"Avenue Anatole France, 75007 Paris\"\n },\n \"position\": \"48.858490,2.294820\"\n }\n ]\n }\n },\n {\n \"statusCode\": 200,\n \"response\":\n {\n \"summary\": {\n \"queryTime\": 1\n },\n \"addresses\": [\n {\n \"address\": {\n \"country\": \"United States of America\",\n \"freeformAddress\": \"157th Pl NE, Redmond WA 98052\"\n },\n \"position\": \"47.640470,-122.129430\"\n }\n ]\n }\n },\n {\n \"statusCode\": 400,\n \"response\":\n {\n \"error\":\n {\n \"code\": \"400 BadRequest\",\n \"message\": \"Bad request: one or more parameters were incorrectly specified or are mutually exclusive.\"\n }\n }\n }\n ]\n}\n```", - "operationId": "Search_PostSearchAddressReverseBatch", + "operationId": "Search_PostSearchAddressReverseBatchSync", "x-ms-examples": { "A Reverse Geocoding Batch API Sync call containing 5 Reverse Geocoding API queries": { "$ref": "./examples/PostSearchAddressReverseBatchSync.json" @@ -2554,7 +2554,7 @@ "$ref": "#/definitions/SearchCommonResponse" }, { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../../common-types/data-plane/v1/types.json#/definitions/ErrorResponse" } ] } @@ -2597,7 +2597,7 @@ "$ref": "#/definitions/SearchCommonResponse" }, { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../../common-types/data-plane/v1/types.json#/definitions/ErrorResponse" } ] } @@ -2640,7 +2640,7 @@ "$ref": "#/definitions/SearchAddressReverseResponse" }, { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../../common-types/data-plane/v1/types.json#/definitions/ErrorResponse" } ] } diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json index abea4a081322..35d113e5497f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json @@ -129,7 +129,7 @@ "200": { "description": "Tileset create failed. The uploaded content did not satisfy all the validation checks. The response body contains all the errors that were encountered.", "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../../common-types/data-plane/v1/types.json#/definitions/ErrorResponse" }, "x-ms-error-response": true }, From b1d0b14129212aea4e087b9ce779299701a95c76 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Wed, 9 Jun 2021 17:37:42 +0200 Subject: [PATCH 198/210] update types. --- specification/common-types/data-plane/v1/types.json | 3 +++ .../data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/specification/common-types/data-plane/v1/types.json b/specification/common-types/data-plane/v1/types.json index e7801d7d3774..b28088d93ada 100644 --- a/specification/common-types/data-plane/v1/types.json +++ b/specification/common-types/data-plane/v1/types.json @@ -7,6 +7,7 @@ "paths": {}, "definitions": { "ErrorDetail": { + "type": "object", "description": "The error detail.", "properties": { "code": { @@ -43,6 +44,7 @@ } }, "ErrorResponse": { + "type": "object", "title": "Error response", "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).", "properties": { @@ -53,6 +55,7 @@ } }, "ErrorAdditionalInfo": { + "type": "object", "properties": { "type": { "readOnly": true, diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json index 2eed01466403..6454352c9996 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/alias.json @@ -111,7 +111,7 @@ "201": { "description": "Content created successfully. The response body contains the newly created alias id `aliasId`.", "schema": { - "$ref": "#/definitions/AliasCreateResponse" + "$ref": "#/definitions/AliasesCreateResponse" }, "headers": { "Access-Control-Expose-Headers": { @@ -243,7 +243,7 @@ } }, "definitions": { - "AliasCreateResponse": { + "AliasesCreateResponse": { "description": "The response model for the Alias Create API for the case when the alias was successfully created.", "type": "object", "properties": { From eac0b3ef402995a1cb8a1ca9d8c103d1ddd01b7c Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Wed, 9 Jun 2021 17:46:29 +0200 Subject: [PATCH 199/210] Update description for batch. --- .../maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json | 2 +- .../data-plane/Microsoft.Maps/Search/preview/1.0/search.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json index 4da0299a8df3..5c52c5badfc9 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/route.json @@ -751,7 +751,7 @@ }, "BatchId": { "name": "format", - "description": "Batch id received after using the Matrix Route request was accepted successfully.", + "description": "Batch id for querying the operation.", "type": "string", "in": "path", "required": true, diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json index d4f967a08e5f..61df742491a7 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/search.json @@ -67,7 +67,7 @@ }, "BatchId": { "name": "format", - "description": "Batch id.", + "description": "Batch id for querying the operation.", "type": "string", "in": "path", "required": true, From 1886c53498f77523a9546a3ce79fd108c16eafc8 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Wed, 9 Jun 2021 18:00:49 +0200 Subject: [PATCH 200/210] remove unused errors from examples. --- .../preview/2.0/examples/Alias_Assign.json | 45 --------------- .../preview/2.0/examples/Alias_Create.json | 45 --------------- .../preview/2.0/examples/Alias_Delete.json | 36 ------------ .../2.0/examples/Alias_GetDetails.json | 45 --------------- .../preview/2.0/examples/Alias_List.json | 45 --------------- .../1.0/examples/GetDataForBoundingBox.json | 45 --------------- .../1.0/examples/GetDataForPoints.json | 45 --------------- .../1.0/examples/GetDataForPolyline.json | 45 --------------- .../1.0/examples/PostDataForPoints.json | 45 --------------- .../1.0/examples/PostDataForPolyline.json | 45 --------------- .../Data/preview/2.0/examples/Delete.json | 47 +--------------- .../preview/2.0/examples/GetOperation.json | 9 --- .../examples/GetOperationStillRunning.json | 9 --- .../Data/preview/2.0/examples/List.json | 45 --------------- .../Data/preview/2.0/examples/Update.json | 45 --------------- .../Data/preview/2.0/examples/Upload.json | 45 --------------- .../preview/2.0/examples/Dataset_Create.json | 45 --------------- .../preview/2.0/examples/Dataset_Delete.json | 36 ------------ .../2.0/examples/Dataset_GetDetails.json | 45 --------------- .../preview/2.0/examples/Dataset_List.json | 45 --------------- .../preview/2.0/examples/GetOperation.json | 9 --- .../examples/GetOperationStillRunning.json | 9 --- .../preview/2.0/examples/Conversion.json | 45 --------------- .../preview/2.0/examples/Delete.json | 36 ------------ .../preview/2.0/examples/Get.json | 45 --------------- .../preview/2.0/examples/GetOperation.json | 9 --- .../examples/GetOperationStillRunning.json | 9 --- .../preview/2.0/examples/List.json | 45 --------------- .../preview/2.0/examples/CreateStateset.json | 45 --------------- .../2.0/examples/DeleteFeatureState.json | 56 +------------------ .../preview/2.0/examples/DeleteStateset.json | 47 +--------------- .../preview/2.0/examples/GetStates.json | 45 --------------- .../preview/2.0/examples/GetStateset.json | 45 --------------- .../preview/2.0/examples/Stateset_List.json | 45 --------------- .../preview/2.0/examples/UpdateStates.json | 47 +--------------- .../preview/2.0/examples/UpdateStateset.json | 47 +--------------- .../1.0/examples/GetLocationByIpAddress.json | 45 --------------- .../preview/1.0/examples/GetMetroArea.json | 45 --------------- .../1.0/examples/GetMetroAreaInfo.json | 45 --------------- .../1.0/examples/GetNearbyTransit.json | 45 --------------- .../1.0/examples/GetRealTimeArrivals.json | 45 --------------- .../1.0/examples/GetTransitItinerary.json | 45 --------------- .../1.0/examples/GetTransitLineInfo.json | 45 --------------- .../preview/1.0/examples/GetTransitRoute.json | 45 --------------- .../1.0/examples/GetTransitStopInfo.json | 45 --------------- .../1.0/examples/GetCopyrightCaption.json | 45 --------------- .../1.0/examples/GetCopyrightForTile.json | 45 --------------- .../1.0/examples/GetCopyrightForWorld.json | 45 --------------- .../examples/GetCopyrightFromBoundingBox.json | 45 --------------- .../1.0/examples/GetMapImageryTile.json | 35 ------------ .../preview/1.0/examples/GetMapStateTile.json | 45 --------------- .../1.0/examples/GetMapStaticImage.json | 45 --------------- .../preview/1.0/examples/GetMapTile.json | 45 --------------- .../preview/2.0/examples/GetMapTileV2.json | 45 --------------- .../1.0/examples/GetRouteDirections.json | 45 --------------- .../1.0/examples/GetRouteDirectionsBatch.json | 45 --------------- .../preview/1.0/examples/GetRouteMatrix.json | 45 --------------- .../preview/1.0/examples/GetRouteRange.json | 45 --------------- .../1.0/examples/PostRouteDirections.json | 45 --------------- .../examples/PostRouteDirectionsBatch.json | 45 --------------- .../PostRouteDirectionsBatchSync.json | 45 --------------- .../preview/1.0/examples/PostRouteMatrix.json | 50 ----------------- .../1.0/examples/GetSearchAddress.json | 45 --------------- .../1.0/examples/GetSearchAddressBatch.json | 45 --------------- .../1.0/examples/GetSearchAddressReverse.json | 45 --------------- .../GetSearchAddressReverseBatch.json | 45 --------------- .../GetSearchAddressReverseCrossStreet.json | 45 --------------- .../examples/GetSearchAddressStructured.json | 45 --------------- .../preview/1.0/examples/GetSearchFuzzy.json | 45 --------------- .../1.0/examples/GetSearchFuzzyBatch.json | 45 --------------- .../preview/1.0/examples/GetSearchNearby.json | 45 --------------- .../preview/1.0/examples/GetSearchPOI.json | 45 --------------- .../1.0/examples/GetSearchPOICategory.json | 45 --------------- .../examples/GetSearchPOICategoryTree.json | 45 --------------- .../1.0/examples/GetSearchPolygon.json | 45 --------------- .../1.0/examples/PostSearchAddressBatch.json | 45 --------------- .../examples/PostSearchAddressBatchSync.json | 45 --------------- .../PostSearchAddressReverseBatch.json | 45 --------------- .../PostSearchAddressReverseBatchSync.json | 42 +------------- .../1.0/examples/PostSearchAlongRoute.json | 45 --------------- .../1.0/examples/PostSearchFuzzyBatch.json | 45 --------------- .../examples/PostSearchFuzzyBatchSync.json | 45 --------------- .../PostSearchInsideFeatureCollection.json | 45 --------------- .../examples/PostSearchInsideGeometry.json | 45 --------------- .../PostSearchInsideGeometryCollection.json | 45 --------------- .../preview/1.0/examples/GetBuffer.json | 49 ---------------- .../preview/1.0/examples/GetClosestPoint.json | 49 ---------------- .../preview/1.0/examples/GetGeofence.json | 48 ---------------- .../1.0/examples/GetGreatCircleDistance.json | 49 ---------------- .../1.0/examples/GetPointInPolygon.json | 48 ---------------- .../preview/1.0/examples/PostBuffer.json | 49 ---------------- .../1.0/examples/PostClosestPoint.json | 49 ---------------- .../preview/1.0/examples/PostGeofence.json | 50 ----------------- .../1.0/examples/PostPointInPolygon.json | 49 ---------------- .../Tileset/preview/2.0/examples/Create.json | 45 --------------- .../Tileset/preview/2.0/examples/Delete.json | 47 +--------------- .../Tileset/preview/2.0/examples/Get.json | 45 --------------- .../preview/2.0/examples/GetOperation.json | 9 --- .../examples/GetOperationStillRunning.json | 9 --- .../Tileset/preview/2.0/examples/List.json | 45 --------------- .../examples/GetTimezoneByCoordinates.json | 45 --------------- .../preview/1.0/examples/GetTimezoneByID.json | 45 --------------- .../1.0/examples/GetTimezoneEnumIANA.json | 45 --------------- .../1.0/examples/GetTimezoneEnumWindows.json | 45 --------------- .../1.0/examples/GetTimezoneIANAVersion.json | 45 --------------- .../examples/GetTimezoneWindowsToIANA.json | 45 --------------- .../1.0/examples/GetTrafficFlowSegment.json | 45 --------------- .../1.0/examples/GetTrafficFlowTile.json | 45 --------------- .../examples/GetTrafficIncidentDetail.json | 45 --------------- .../1.0/examples/GetTrafficIncidentTile.json | 45 --------------- .../examples/GetTrafficIncidentViewport.json | 45 --------------- .../preview/2.0/examples/DeleteFeature.json | 47 +--------------- .../preview/2.0/examples/GetCollection.json | 45 --------------- .../2.0/examples/GetCollectionDefinition.json | 45 --------------- .../preview/2.0/examples/GetCollections.json | 45 --------------- .../preview/2.0/examples/GetConformance.json | 45 --------------- .../WFS/preview/2.0/examples/GetFeature.json | 45 --------------- .../WFS/preview/2.0/examples/GetFeatures.json | 45 --------------- .../preview/2.0/examples/GetLandingPage.json | 45 --------------- .../1.0/examples/GetCurrentConditions.json | 45 --------------- .../1.0/examples/GetDailyForecast.json | 45 --------------- .../preview/1.0/examples/GetDailyIndices.json | 45 --------------- .../1.0/examples/GetHourlyForecast.json | 45 --------------- .../1.0/examples/GetMinuteForecast.json | 45 --------------- .../1.0/examples/GetQuarterDayForecast.json | 45 --------------- .../1.0/examples/GetSevereWeatherAlerts.json | 45 --------------- .../1.0/examples/GetWeatherAlongRoute.json | 45 --------------- 127 files changed, 10 insertions(+), 5440 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/examples/Alias_Assign.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/examples/Alias_Assign.json index 9290b72917a3..08e05a94045e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/examples/Alias_Assign.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/examples/Alias_Assign.json @@ -13,51 +13,6 @@ "creatorDataItemId": "633a009a-dfa2-4d51-a419-420122e11c94", "lastUpdatedTimestamp": "2021-05-01T01:02:03.456Z" } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request - Error message." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found - The requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "Unknown error - An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/examples/Alias_Create.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/examples/Alias_Create.json index ab47b98864b9..c1fff0412624 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/examples/Alias_Create.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/examples/Alias_Create.json @@ -12,51 +12,6 @@ "creatorDataItemId": null, "lastUpdatedTimestamp": "2021-05-01T01:02:03.456Z" } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request - Error message." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found - The requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "Unknown error - An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/examples/Alias_Delete.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/examples/Alias_Delete.json index 3bb33a694c4b..2263768043c1 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/examples/Alias_Delete.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/examples/Alias_Delete.json @@ -14,42 +14,6 @@ "message": "Bad request - One or more parameters were incorrectly specified or are mutually exclusive." } } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found - The requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "Unknown error - An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/examples/Alias_GetDetails.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/examples/Alias_GetDetails.json index 62ae0821e403..55034a1c734f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/examples/Alias_GetDetails.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/examples/Alias_GetDetails.json @@ -12,51 +12,6 @@ "creatorDataItemId": "e89aebb9-70a3-8fe1-32bb-1fbd0c725f14", "lastUpdatedTimestamp": "2020-02-13T21:19:22+00:00" } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request - One or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found - The requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "Unknown error - An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/examples/Alias_List.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/examples/Alias_List.json index 74f19e51e5df..12612ec5ff9c 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/examples/Alias_List.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/examples/Alias_List.json @@ -21,51 +21,6 @@ } ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request - One or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found - The requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "Unknown error - An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/examples/GetDataForBoundingBox.json b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/examples/GetDataForBoundingBox.json index 7a45d4ca9585..fdb2508355c7 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/examples/GetDataForBoundingBox.json +++ b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/examples/GetDataForBoundingBox.json @@ -55,51 +55,6 @@ } ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/examples/GetDataForPoints.json b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/examples/GetDataForPoints.json index 706ac05d9f85..fde68073dbe8 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/examples/GetDataForPoints.json +++ b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/examples/GetDataForPoints.json @@ -25,51 +25,6 @@ } ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/examples/GetDataForPolyline.json b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/examples/GetDataForPolyline.json index b73e5b91c387..5ca4133edee3 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/examples/GetDataForPolyline.json +++ b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/examples/GetDataForPolyline.json @@ -47,51 +47,6 @@ } ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/examples/PostDataForPoints.json b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/examples/PostDataForPoints.json index 03c11cbb43ce..75541a1da2f1 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/examples/PostDataForPoints.json +++ b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/examples/PostDataForPoints.json @@ -34,51 +34,6 @@ } ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/examples/PostDataForPolyline.json b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/examples/PostDataForPolyline.json index 4458b2bc87e0..dd20977f9124 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/examples/PostDataForPolyline.json +++ b/specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/examples/PostDataForPolyline.json @@ -56,51 +56,6 @@ } ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/Delete.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/Delete.json index ca01b3cd23d8..2e897dae615d 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/Delete.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/Delete.json @@ -5,51 +5,6 @@ "udid": "25084fb7-307a-4720-8f91-7952a0b91012" }, "responses": { - "204": {}, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } - } + "204": {} } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/GetOperation.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/GetOperation.json index e566e96b370b..d200cddb0cf6 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/GetOperation.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/GetOperation.json @@ -14,15 +14,6 @@ "headers": { "Resource-Location": "https://us.atlas.microsoft.com/mapData/3e36b996-f6d1-b068-0fcb-dd6b014c3447?api-version=2.0" } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/GetOperationStillRunning.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/GetOperationStillRunning.json index 559e751b6b46..52d48d34f311 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/GetOperationStillRunning.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/GetOperationStillRunning.json @@ -11,15 +11,6 @@ "created": "2021-04-23T19:14:03.2452596+00:00", "status": "Running" } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/List.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/List.json index 3899cabd7f51..132cab23e1b5 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/List.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/List.json @@ -27,51 +27,6 @@ } ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/Update.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/Update.json index 1f06ea0f04b7..aed756e8db34 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/Update.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/Update.json @@ -39,42 +39,6 @@ } } }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, "409": { "headers": {}, "body": { @@ -83,15 +47,6 @@ "message": "The data storage limit is reached on the Azure Maps account. You can always use the Data Delete API to delete old/unused content and create space for new uploads." } } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/Upload.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/Upload.json index 99690927d900..85f963b5198f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/Upload.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/Upload.json @@ -39,42 +39,6 @@ } } }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, "409": { "headers": {}, "body": { @@ -83,15 +47,6 @@ "message": "The data storage limit is reached on the Azure Maps account. You can always use the Data Delete API to delete old/unused content and create space for new uploads." } } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/Dataset_Create.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/Dataset_Create.json index 89bb1b89676c..aea9b7db5ce6 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/Dataset_Create.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/Dataset_Create.json @@ -25,51 +25,6 @@ "Operation-Location": "https://us.atlas.microsoft.com/datasets/operations/{operationId}?api-version=2.0", "Access-Control-Expose-Headers": "Operation-Location" } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request - Error message." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found - The requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "Unknown error - An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/Dataset_Delete.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/Dataset_Delete.json index 3bc65bdf5248..57f709e2dede 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/Dataset_Delete.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/Dataset_Delete.json @@ -14,42 +14,6 @@ "message": "Bad request - One or more parameters were incorrectly specified or are mutually exclusive." } } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found - The requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "Unknown error - An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/Dataset_GetDetails.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/Dataset_GetDetails.json index 4e2de927cfbd..33836ce57754 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/Dataset_GetDetails.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/Dataset_GetDetails.json @@ -34,51 +34,6 @@ }, "ontology": "facility-2.0" } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request - Error message." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found - The requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "Unknown error - An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/Dataset_List.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/Dataset_List.json index 6ce652258b5a..13e4eda45125 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/Dataset_List.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/Dataset_List.json @@ -52,51 +52,6 @@ } ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request - One or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found - The requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "Unknown error - An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/GetOperation.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/GetOperation.json index 949ed3c087a0..8ea9c0cb5da0 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/GetOperation.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/GetOperation.json @@ -14,15 +14,6 @@ "headers": { "Resource-Location": "https://us.atlas.microsoft.com/datasets/3e36b996-f6d1-b068-0fcb-dd6b014c3447?api-version=2.0" } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/GetOperationStillRunning.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/GetOperationStillRunning.json index 559e751b6b46..52d48d34f311 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/GetOperationStillRunning.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/GetOperationStillRunning.json @@ -11,15 +11,6 @@ "created": "2021-04-23T19:14:03.2452596+00:00", "status": "Running" } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/Conversion.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/Conversion.json index ab5e05703702..a41d2f8e56ec 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/Conversion.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/Conversion.json @@ -26,51 +26,6 @@ "Operation-Location": "https://us.atlas.microsoft.com/conversions/operations/{operationId}?api-version=2.0", "Access-Control-Expose-Headers": "Operation-Location" } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/Delete.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/Delete.json index e4edf2ec7979..fd8a2ec05544 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/Delete.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/Delete.json @@ -14,42 +14,6 @@ "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." } } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/Get.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/Get.json index 9bf2d0cca0fe..f081d3945f4e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/Get.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/Get.json @@ -21,51 +21,6 @@ "opening": 10 } } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/GetOperation.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/GetOperation.json index 1a61de42384f..0b718ab1da2e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/GetOperation.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/GetOperation.json @@ -28,15 +28,6 @@ "headers": { "Resource-Location": "https://us.atlas.microsoft.com/conversions/3e36b996-f6d1-b068-0fcb-dd6b014c3447?api-version=2.0" } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/GetOperationStillRunning.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/GetOperationStillRunning.json index 559e751b6b46..52d48d34f311 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/GetOperationStillRunning.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/GetOperationStillRunning.json @@ -11,15 +11,6 @@ "created": "2021-04-23T19:14:03.2452596+00:00", "status": "Running" } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/List.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/List.json index b25e9dd00184..158b416cefb8 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/List.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/List.json @@ -39,51 +39,6 @@ } ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/CreateStateset.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/CreateStateset.json index df8bc64a5464..880d8ffa2a42 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/CreateStateset.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/CreateStateset.json @@ -67,51 +67,6 @@ "body": { "statesetId": "b24bdb73-1305-3212-1909-a428d937b64f" } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/DeleteFeatureState.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/DeleteFeatureState.json index 69aed3c06e40..1b5f29227d13 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/DeleteFeatureState.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/DeleteFeatureState.json @@ -7,60 +7,6 @@ "stateKeyName": "keyName1" }, "responses": { - "204": {}, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "409": { - "headers": {}, - "body": { - "error": { - "code": "409 Conflict", - "message": "The request could not be completed due to a conflict with the current state of the resource." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } - } + "204": {} } } diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/DeleteStateset.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/DeleteStateset.json index f03fea23fde1..ae9a27be981f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/DeleteStateset.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/DeleteStateset.json @@ -5,51 +5,6 @@ "statesetId": "b24bdb73-1305-3212-1909-a428d937b64f" }, "responses": { - "204": {}, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } - } + "204": {} } } diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/GetStates.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/GetStates.json index 6e487cc9af6e..cfcd52089403 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/GetStates.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/GetStates.json @@ -16,51 +16,6 @@ } ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/GetStateset.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/GetStateset.json index 21715b73e089..e853a767027e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/GetStateset.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/GetStateset.json @@ -68,51 +68,6 @@ ] } } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/Stateset_List.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/Stateset_List.json index cbd21aba039f..555e8e54f3e7 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/Stateset_List.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/Stateset_List.json @@ -72,51 +72,6 @@ } ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/UpdateStates.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/UpdateStates.json index c93b887e5e37..48873f8a32d9 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/UpdateStates.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/UpdateStates.json @@ -15,51 +15,6 @@ } }, "responses": { - "200": {}, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } - } + "200": {} } } diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/UpdateStateset.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/UpdateStateset.json index 531fc189b744..9c3e9e62f2d3 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/UpdateStateset.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/examples/UpdateStateset.json @@ -51,51 +51,6 @@ } }, "responses": { - "200": {}, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } - } + "200": {} } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/examples/GetLocationByIpAddress.json b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/examples/GetLocationByIpAddress.json index 4fff59c47fc2..33c30b016801 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/examples/GetLocationByIpAddress.json +++ b/specification/maps/data-plane/Microsoft.Maps/Geolocation/preview/1.0/examples/GetLocationByIpAddress.json @@ -14,51 +14,6 @@ }, "ipAddress": "2001:4898:80e8:b::189" } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetMetroArea.json b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetMetroArea.json index 367fbb20f6d8..ca4ea99b20e2 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetMetroArea.json +++ b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetMetroArea.json @@ -61,51 +61,6 @@ } ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetMetroAreaInfo.json b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetMetroAreaInfo.json index 60b068f2944f..281ee7427c10 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetMetroAreaInfo.json +++ b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetMetroAreaInfo.json @@ -311,51 +311,6 @@ ], "isFaresSupported": "true" } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetNearbyTransit.json b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetNearbyTransit.json index 5854de009cfe..4e7ef19c6fdf 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetNearbyTransit.json +++ b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetNearbyTransit.json @@ -87,51 +87,6 @@ } ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetRealTimeArrivals.json b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetRealTimeArrivals.json index 9d7097f36828..45a903baf381 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetRealTimeArrivals.json +++ b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetRealTimeArrivals.json @@ -92,51 +92,6 @@ } ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetTransitItinerary.json b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetTransitItinerary.json index df91fc18b3c1..c3595704e485 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetTransitItinerary.json +++ b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetTransitItinerary.json @@ -204,51 +204,6 @@ ] } } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetTransitLineInfo.json b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetTransitLineInfo.json index 40d33e140985..e99bb9a702b5 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetTransitLineInfo.json +++ b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetTransitLineInfo.json @@ -550,51 +550,6 @@ } ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetTransitRoute.json b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetTransitRoute.json index 167d066bca36..8c70e20bf4b5 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetTransitRoute.json +++ b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetTransitRoute.json @@ -219,51 +219,6 @@ } ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetTransitStopInfo.json b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetTransitStopInfo.json index 0e3383b9661a..a36fb12a1615 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetTransitStopInfo.json +++ b/specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetTransitStopInfo.json @@ -117,51 +117,6 @@ } ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetCopyrightCaption.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetCopyrightCaption.json index 52c1029cddd3..5168f6a0fe19 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetCopyrightCaption.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetCopyrightCaption.json @@ -10,51 +10,6 @@ "formatVersion": "0.0.1", "copyrightsCaption": "© 1992 - 2017 TomTom." } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetCopyrightForTile.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetCopyrightForTile.json index 01d429709719..18e9b9644d2b 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetCopyrightForTile.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetCopyrightForTile.json @@ -75,51 +75,6 @@ } ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetCopyrightForWorld.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetCopyrightForWorld.json index 27e4d0fae7c6..7a55e043297c 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetCopyrightForWorld.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetCopyrightForWorld.json @@ -334,51 +334,6 @@ } ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetCopyrightFromBoundingBox.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetCopyrightFromBoundingBox.json index dbd2d161148e..392a6ef6eda9 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetCopyrightFromBoundingBox.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetCopyrightFromBoundingBox.json @@ -29,51 +29,6 @@ } ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapImageryTile.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapImageryTile.json index 7d209dda5530..ba3242718b24 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapImageryTile.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapImageryTile.json @@ -14,41 +14,6 @@ "Content-Type": "image/png" }, "body": "{file}" - }, - "400": { - "headers": {}, - "body": { - "statuscode": "400", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - }, - "401": { - "headers": {}, - "body": { - "statuscode": "401", - "message": "Unauthorized: Access is denied due to invalid credentials." - } - }, - "403": { - "headers": {}, - "body": { - "statuscode": "403", - "message": "Permission, capacity, or authentication issues." - } - }, - "404": { - "headers": {}, - "body": { - "statuscode": "404", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - }, - "500": { - "headers": {}, - "body": { - "statuscode": "500", - "message": "An error occurred while processing the request. Please try again later." - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapStateTile.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapStateTile.json index 0b095438ac69..72ef3cb5deed 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapStateTile.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapStateTile.json @@ -13,51 +13,6 @@ "Content-Type": "application/vnd.mapbox-vector-tile" }, "body": "{file}" - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapStaticImage.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapStaticImage.json index 06b0715ecfd3..2ff157d8f994 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapStaticImage.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapStaticImage.json @@ -14,51 +14,6 @@ "Content-Type": "image/png" }, "body": "{file}" - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapTile.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapTile.json index c8f663e296d0..e96464d77c53 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapTile.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/1.0/examples/GetMapTile.json @@ -16,51 +16,6 @@ "Content-Type": "image/png" }, "body": "{file}" - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/examples/GetMapTileV2.json b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/examples/GetMapTileV2.json index fe4c3d0aeefa..589af57c24fe 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/examples/GetMapTileV2.json +++ b/specification/maps/data-plane/Microsoft.Maps/Render/preview/2.0/examples/GetMapTileV2.json @@ -13,51 +13,6 @@ "Content-Type": "application/vnd.mapbox-vector-tile" }, "body": "{file}" - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/GetRouteDirections.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/GetRouteDirections.json index a78c630dd2d7..942b27eba948 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/GetRouteDirections.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/GetRouteDirections.json @@ -106,51 +106,6 @@ } ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/GetRouteDirectionsBatch.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/GetRouteDirectionsBatch.json index 08f1dfab8b59..c07f0afe9931 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/GetRouteDirectionsBatch.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/GetRouteDirectionsBatch.json @@ -147,51 +147,6 @@ }, "202": { "description": "Batch request was accepted but is still being processed. Please try again in some time." - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/GetRouteMatrix.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/GetRouteMatrix.json index b5759068ad99..207804bf7ae6 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/GetRouteMatrix.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/GetRouteMatrix.json @@ -71,51 +71,6 @@ }, "202": { "headers": {} - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/GetRouteRange.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/GetRouteRange.json index 06dadd88e2f6..868987b7241e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/GetRouteRange.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/GetRouteRange.json @@ -219,51 +219,6 @@ ] } } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteDirections.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteDirections.json index 99268c578488..d114884cbb3e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteDirections.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteDirections.json @@ -184,51 +184,6 @@ } ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteDirectionsBatch.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteDirectionsBatch.json index 89e316eaa6fd..c99613063c91 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteDirectionsBatch.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteDirectionsBatch.json @@ -22,51 +22,6 @@ "headers": { "Location": "URL to download the results of the long-running batch request." } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteDirectionsBatchSync.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteDirectionsBatchSync.json index a255a3add4b6..eab66ded6b79 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteDirectionsBatchSync.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteDirectionsBatchSync.json @@ -158,42 +158,6 @@ } } }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, "408": { "headers": {}, "body": { @@ -202,15 +166,6 @@ "message": "Timeout: The request took longer to finish than the maximum amount of time defined in the api." } } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteMatrix.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteMatrix.json index 27d4cc423276..ef5b0608d637 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteMatrix.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteMatrix.json @@ -97,56 +97,6 @@ "totalRoutes": 4 } } - }, - "202": { - "headers": { - "Location": "New URL to check the status of the long running request." - } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddress.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddress.json index d3d1d6868bb8..8aa456d648f1 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddress.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddress.json @@ -64,51 +64,6 @@ } ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddressBatch.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddressBatch.json index 2632963526d1..987e58519b62 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddressBatch.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddressBatch.json @@ -286,51 +286,6 @@ }, "202": { "description": "Batch request was accepted but is still being processed. Please try again in some time." - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddressReverse.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddressReverse.json index 37b9118e4ca9..ad5ad9cd0568 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddressReverse.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddressReverse.json @@ -35,51 +35,6 @@ } ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddressReverseBatch.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddressReverseBatch.json index 1008d63eaa36..a9b1667e9418 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddressReverseBatch.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddressReverseBatch.json @@ -125,51 +125,6 @@ }, "202": { "description": "Batch request was accepted but is still being processed. Please try again in some time." - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddressReverseCrossStreet.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddressReverseCrossStreet.json index a66103d8e484..f37eed7e5ed5 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddressReverseCrossStreet.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddressReverseCrossStreet.json @@ -34,51 +34,6 @@ } ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddressStructured.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddressStructured.json index 7d5f7587ee93..9c0e09610c0d 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddressStructured.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchAddressStructured.json @@ -74,51 +74,6 @@ } ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchFuzzy.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchFuzzy.json index 8756266d72f7..7c65cebe967e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchFuzzy.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchFuzzy.json @@ -653,51 +653,6 @@ } ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchFuzzyBatch.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchFuzzyBatch.json index 105f8142dd88..91836d244612 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchFuzzyBatch.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchFuzzyBatch.json @@ -1389,51 +1389,6 @@ }, "202": { "description": "Batch request was accepted but is still being processed. Please try again in some time." - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchNearby.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchNearby.json index 43342382f0fe..c8954152fcc2 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchNearby.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchNearby.json @@ -713,51 +713,6 @@ } ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchPOI.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchPOI.json index 4f1914be3ecc..155e4b217e23 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchPOI.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchPOI.json @@ -407,51 +407,6 @@ } ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchPOICategory.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchPOICategory.json index 8972d898b6d4..bde6d68ce490 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchPOICategory.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchPOICategory.json @@ -225,51 +225,6 @@ } ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchPOICategoryTree.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchPOICategoryTree.json index 5b1772e629b4..df132151b25d 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchPOICategoryTree.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchPOICategoryTree.json @@ -202,51 +202,6 @@ } ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchPolygon.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchPolygon.json index 4ad851ee1e5f..53f4bb118953 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchPolygon.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/GetSearchPolygon.json @@ -75,51 +75,6 @@ } ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchAddressBatch.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchAddressBatch.json index 3a411ab9cb95..b1d135830c82 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchAddressBatch.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchAddressBatch.json @@ -22,51 +22,6 @@ "headers": { "Location": "URL to download the results of the long-running batch request." } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchAddressBatchSync.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchAddressBatchSync.json index 95c1fa1c1cd7..267ac482af32 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchAddressBatchSync.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchAddressBatchSync.json @@ -297,42 +297,6 @@ ] } }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, "408": { "headers": {}, "body": { @@ -341,15 +305,6 @@ "message": "Timeout: The request took longer to finish than the maximum amount of time defined in the api." } } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchAddressReverseBatch.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchAddressReverseBatch.json index 492d613a2fa1..e220742d1e19 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchAddressReverseBatch.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchAddressReverseBatch.json @@ -22,51 +22,6 @@ "headers": { "Location": "URL to download the results of the long-running batch request." } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchAddressReverseBatchSync.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchAddressReverseBatchSync.json index de32a04b85b3..b4836b3c7afd 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchAddressReverseBatchSync.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchAddressReverseBatchSync.json @@ -136,48 +136,12 @@ ] } }, - "400": { + "408": { "headers": {}, "body": { "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." + "code": "408 Timeout", + "message": "Timeout: The request took longer to finish than the maximum amount of time defined in the api." } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchAlongRoute.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchAlongRoute.json index 831535e1a5a7..2c14d8ad0e95 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchAlongRoute.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchAlongRoute.json @@ -199,51 +199,6 @@ } ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchFuzzyBatch.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchFuzzyBatch.json index 009b4447b3fc..b2363370562a 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchFuzzyBatch.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchFuzzyBatch.json @@ -23,51 +23,6 @@ "headers": { "Location": "URL to download the results of the long-running batch request." } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchFuzzyBatchSync.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchFuzzyBatchSync.json index 5ea95c396f55..0cbd7b3bdcb3 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchFuzzyBatchSync.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchFuzzyBatchSync.json @@ -1401,42 +1401,6 @@ } } }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, "408": { "headers": {}, "body": { @@ -1445,15 +1409,6 @@ "message": "Timeout: The request took longer to finish than the maximum amount of time defined in the api." } } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchInsideFeatureCollection.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchInsideFeatureCollection.json index d49bd7a143b3..0f083c1ece65 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchInsideFeatureCollection.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchInsideFeatureCollection.json @@ -211,51 +211,6 @@ } ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchInsideGeometry.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchInsideGeometry.json index b048edf4871e..ea801e775cfa 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchInsideGeometry.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchInsideGeometry.json @@ -197,51 +197,6 @@ } ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchInsideGeometryCollection.json b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchInsideGeometryCollection.json index 90924d4eb2ce..9ad0a2b0cdc3 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchInsideGeometryCollection.json +++ b/specification/maps/data-plane/Microsoft.Maps/Search/preview/1.0/examples/PostSearchInsideGeometryCollection.json @@ -225,51 +225,6 @@ } ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetBuffer.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetBuffer.json index ed7bbdb1ac9c..f0cdf649b353 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetBuffer.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetBuffer.json @@ -165,55 +165,6 @@ ] } } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "ClientParams", - "message": "One or more parameters are missing.", - "innererror": { - "code": "MissingQueryParameter", - "message": "Input parameter udid is missing." - } - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetClosestPoint.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetClosestPoint.json index 62c03fb8a6b7..426ebeaf3725 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetClosestPoint.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetClosestPoint.json @@ -29,55 +29,6 @@ } ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "ClientParams", - "message": "One or more parameters are missing.", - "innererror": { - "code": "MissingQueryParameter", - "message": "Input parameter lon is missing." - } - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetGeofence.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetGeofence.json index fa774352b089..774de28742a6 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetGeofence.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetGeofence.json @@ -42,54 +42,6 @@ ], "isEventPublished": true } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "BadRequest", - "message": "Can't find user geofencing data with provided udid.", - "innererror": { - "code": "NoUserDataWithUdid" - } - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetGreatCircleDistance.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetGreatCircleDistance.json index 97b2c0680d10..0565252283f3 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetGreatCircleDistance.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetGreatCircleDistance.json @@ -22,55 +22,6 @@ "distanceInMeters": 8797.62 } } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "ClientParams", - "message": "Lat and/or lon parameters are invalid.", - "innererror": { - "code": "InvalidLatLon", - "message": "The provided coordinates '-122.316456,47.622942:47.610378,-122.200676' in query paramter are invalid, out of range, or not in the expected format" - } - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetPointInPolygon.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetPointInPolygon.json index a39c186717ca..5d94dd13c8c0 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetPointInPolygon.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/GetPointInPolygon.json @@ -26,54 +26,6 @@ ] } } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "ClientParams", - "message": "Udid should be acquired from user data ingestion API.", - "innererror": { - "code": "UdidWrongFormat" - } - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/PostBuffer.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/PostBuffer.json index 3bb776d7adf1..201618ac2347 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/PostBuffer.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/PostBuffer.json @@ -186,55 +186,6 @@ ] } } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "ClientParams", - "message": "Request body is not a valid json.", - "innererror": { - "code": "InvalidJson", - "message": "Only 2 Json Objects accepted; Received: 1 JSON Objects" - } - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/PostClosestPoint.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/PostClosestPoint.json index 8e8568f6269e..c47be26bac17 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/PostClosestPoint.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/PostClosestPoint.json @@ -72,55 +72,6 @@ } ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "ClientParams", - "message": "One or more parameters are missing.", - "innererror": { - "code": "MissingQueryParameter", - "message": "Input parameter lon is missing." - } - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/PostGeofence.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/PostGeofence.json index 6c4b9ce797c1..11c4fe5176c7 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/PostGeofence.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/PostGeofence.json @@ -128,56 +128,6 @@ "invalidPeriodGeofenceGeometryId": [], "isEventPublished": true } - }, - "400": { - "headers": { - "X-Correlation-ID": "80575fa1-2c1e-4738-834a-fcf45b58dd7c" - }, - "body": { - "error": { - "code": "BadRequest", - "message": "Lat and/or lon parameters are invalid.", - "innererror": { - "code": "InvalidLatLon" - } - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/PostPointInPolygon.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/PostPointInPolygon.json index 72b165fa46db..fc0ce0e8d71e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/PostPointInPolygon.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/examples/PostPointInPolygon.json @@ -58,55 +58,6 @@ ] } } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "ClientParams", - "message": "Lat and/or lon parameters are invalid.", - "innererror": { - "code": "InvalidLatLon", - "message": "lon parameter value should between -180 and 180 inclusive" - } - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/examples/Create.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/examples/Create.json index 3a739eb497f4..aa4dad880c3a 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/examples/Create.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/examples/Create.json @@ -25,51 +25,6 @@ "Operation-Location": "https://us.atlas.microsoft.com/tilesets/operations/{operationId}?api-version=2.0", "Access-Control-Expose-Headers": "Operation-Location" } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/examples/Delete.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/examples/Delete.json index 327073249057..71049ceba9d2 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/examples/Delete.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/examples/Delete.json @@ -5,51 +5,6 @@ "tilesetId": "25084fb7-307a-4720-8f91-7952a0b91012" }, "responses": { - "204": {}, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } - } + "204": {} } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/examples/Get.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/examples/Get.json index 8bc232ea544e..f4078cebc0b9 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/examples/Get.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/examples/Get.json @@ -19,51 +19,6 @@ 47.637525 ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/examples/GetOperation.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/examples/GetOperation.json index baaba1c0637f..671289b480bb 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/examples/GetOperation.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/examples/GetOperation.json @@ -14,15 +14,6 @@ "headers": { "Resource-Location": "https://us.atlas.microsoft.com/tilesets/3e36b996-f6d1-b068-0fcb-dd6b014c3447?api-version=2.0" } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/examples/GetOperationStillRunning.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/examples/GetOperationStillRunning.json index 559e751b6b46..52d48d34f311 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/examples/GetOperationStillRunning.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/examples/GetOperationStillRunning.json @@ -11,15 +11,6 @@ "created": "2021-04-23T19:14:03.2452596+00:00", "status": "Running" } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/examples/List.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/examples/List.json index 23d4d3b61e7b..93cf5ac3c2d2 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/examples/List.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/examples/List.json @@ -35,51 +35,6 @@ } ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneByCoordinates.json b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneByCoordinates.json index bd4c0290a0b2..64063ac8ceee 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneByCoordinates.json +++ b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneByCoordinates.json @@ -70,51 +70,6 @@ } ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneByID.json b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneByID.json index de0ce433a6ca..fbf24ec6e0dc 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneByID.json +++ b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneByID.json @@ -57,51 +57,6 @@ } ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneEnumIANA.json b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneEnumIANA.json index 86b47fde4446..ef36fd99830d 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneEnumIANA.json +++ b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneEnumIANA.json @@ -3181,51 +3181,6 @@ "hasZone1970Location": false } ] - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneEnumWindows.json b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneEnumWindows.json index 97aec25e6cfd..cadaf5300931 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneEnumWindows.json +++ b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneEnumWindows.json @@ -3599,51 +3599,6 @@ ] } ] - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneIANAVersion.json b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneIANAVersion.json index 21e7af8e2554..110b1eeea6c0 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneIANAVersion.json +++ b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneIANAVersion.json @@ -9,51 +9,6 @@ "body": { "version": "2017b" } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneWindowsToIANA.json b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneWindowsToIANA.json index 07eabb952347..d62af4a7f4a7 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneWindowsToIANA.json +++ b/specification/maps/data-plane/Microsoft.Maps/Timezone/preview/1.0/examples/GetTimezoneWindowsToIANA.json @@ -14,51 +14,6 @@ "hasZone1970Location": true } ] - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/examples/GetTrafficFlowSegment.json b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/examples/GetTrafficFlowSegment.json index feb75352b855..fc6142d1769d 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/examples/GetTrafficFlowSegment.json +++ b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/examples/GetTrafficFlowSegment.json @@ -33,51 +33,6 @@ "@version": "1.0.53-mascoma" } } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/examples/GetTrafficFlowTile.json b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/examples/GetTrafficFlowTile.json index 27792ff699e1..aba69f220abe 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/examples/GetTrafficFlowTile.json +++ b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/examples/GetTrafficFlowTile.json @@ -11,51 +11,6 @@ "responses": { "200": { "body": "binary string image" - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/examples/GetTrafficIncidentDetail.json b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/examples/GetTrafficIncidentDetail.json index 0751e2511d46..45d2368fe3e3 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/examples/GetTrafficIncidentDetail.json +++ b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/examples/GetTrafficIncidentDetail.json @@ -333,51 +333,6 @@ ] } } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/examples/GetTrafficIncidentTile.json b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/examples/GetTrafficIncidentTile.json index ecc415d6650c..e36448b48f16 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/examples/GetTrafficIncidentTile.json +++ b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/examples/GetTrafficIncidentTile.json @@ -11,51 +11,6 @@ "responses": { "200": { "body": {} - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/examples/GetTrafficIncidentViewport.json b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/examples/GetTrafficIncidentViewport.json index f14e0b2bbb80..231a3b4700ca 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/examples/GetTrafficIncidentViewport.json +++ b/specification/maps/data-plane/Microsoft.Maps/Traffic/preview/1.0/examples/GetTrafficIncidentViewport.json @@ -22,51 +22,6 @@ "@maps": "europe,taiwan,latam,northamerica,israel,middleeast,iraq,guam,australia,newzealand,india,africa,world,southeastasia" } } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/DeleteFeature.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/DeleteFeature.json index c60535b22456..e27d3eff14bf 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/DeleteFeature.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/DeleteFeature.json @@ -7,51 +7,6 @@ "featureId": "FCL39" }, "responses": { - "204": {}, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } - } + "204": {} } } diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollection.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollection.json index d8c009ff6cc0..9f263859487b 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollection.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollection.json @@ -29,51 +29,6 @@ } ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollectionDefinition.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollectionDefinition.json index b99f96da4e3f..e2e020b432c8 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollectionDefinition.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollectionDefinition.json @@ -147,51 +147,6 @@ } ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollections.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollections.json index c0aa496bd1a9..ab9196a76fc6 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollections.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetCollections.json @@ -248,51 +248,6 @@ } ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetConformance.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetConformance.json index 3c2e73a39859..00fc7956f640 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetConformance.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetConformance.json @@ -14,51 +14,6 @@ "http://tempuri.org/wfs/3.0/edit" ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetFeature.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetFeature.json index 3b71b4d7a203..2d90e3409188 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetFeature.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetFeature.json @@ -79,51 +79,6 @@ } ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetFeatures.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetFeatures.json index 0f37bd6e8147..baadf9b72821 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetFeatures.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetFeatures.json @@ -88,51 +88,6 @@ } ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetLandingPage.json b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetLandingPage.json index 2e752208538d..488dc128f5fc 100644 --- a/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetLandingPage.json +++ b/specification/maps/data-plane/Microsoft.Maps/WFS/preview/2.0/examples/GetLandingPage.json @@ -36,51 +36,6 @@ } ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetCurrentConditions.json b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetCurrentConditions.json index 7f7254ebf995..46c29b7b55af 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetCurrentConditions.json +++ b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetCurrentConditions.json @@ -175,51 +175,6 @@ } ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetDailyForecast.json b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetDailyForecast.json index fdb87d576b24..70f70f61f1b6 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetDailyForecast.json +++ b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetDailyForecast.json @@ -235,51 +235,6 @@ } ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetDailyIndices.json b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetDailyIndices.json index 34d8df5ba6c8..9220885d2504 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetDailyIndices.json +++ b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetDailyIndices.json @@ -202,51 +202,6 @@ } ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetHourlyForecast.json b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetHourlyForecast.json index 5be1aeff39f6..7f4150359173 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetHourlyForecast.json +++ b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetHourlyForecast.json @@ -1008,51 +1008,6 @@ } ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetMinuteForecast.json b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetMinuteForecast.json index b1c8fb300e81..089479b97981 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetMinuteForecast.json +++ b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetMinuteForecast.json @@ -131,51 +131,6 @@ } ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetQuarterDayForecast.json b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetQuarterDayForecast.json index d12d4a217ed5..052f229eed32 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetQuarterDayForecast.json +++ b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetQuarterDayForecast.json @@ -374,51 +374,6 @@ } ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetSevereWeatherAlerts.json b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetSevereWeatherAlerts.json index 3485a2a27e80..2d687d1bcf63 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetSevereWeatherAlerts.json +++ b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetSevereWeatherAlerts.json @@ -63,51 +63,6 @@ } ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetWeatherAlongRoute.json b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetWeatherAlongRoute.json index a3039dbf7e65..ca54d81a45c1 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetWeatherAlongRoute.json +++ b/specification/maps/data-plane/Microsoft.Maps/Weather/preview/1.0/examples/GetWeatherAlongRoute.json @@ -304,51 +304,6 @@ } ] } - }, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - }, - "401": { - "headers": {}, - "body": { - "error": { - "code": "401 Unauthorized", - "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." - } - } - }, - "403": { - "headers": {}, - "body": { - "error": { - "code": "403 Forbidden", - "message": "Permission, capacity, or authentication issues." - } - } - }, - "404": { - "headers": {}, - "body": { - "error": { - "code": "404 NotFound", - "message": "Not Found: the requested resource could not be found, but it may be available again in the future." - } - } - }, - "500": { - "headers": {}, - "body": { - "error": { - "code": "500 InternalServerError", - "message": "An error occurred while processing the request. Please try again later." - } - } } } } From 3f8c0949dcb71668b23be48bef14bddaebf5de75 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Wed, 9 Jun 2021 18:14:52 +0200 Subject: [PATCH 201/210] fix ci after changes. --- .../preview/2.0/examples/Alias_Delete.json | 11 +---------- .../Common/preview/1.0/common.json | 18 ------------------ .../Dataset/preview/2.0/dataset.json | 3 +++ .../preview/2.0/examples/Dataset_Delete.json | 11 +---------- .../preview/2.0/examples/Delete.json | 11 +---------- .../FeatureState/preview/2.0/featurestate.json | 3 --- .../1.0/examples/PostRouteDirections.json | 5 +++++ 7 files changed, 11 insertions(+), 51 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/examples/Alias_Delete.json b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/examples/Alias_Delete.json index 2263768043c1..1fc205ce43c3 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/examples/Alias_Delete.json +++ b/specification/maps/data-plane/Microsoft.Maps/Alias/preview/2.0/examples/Alias_Delete.json @@ -5,15 +5,6 @@ "aliasId": "[aliasId]" }, "responses": { - "204": {}, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request - One or more parameters were incorrectly specified or are mutually exclusive." - } - } - } + "204": {} } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json index d3bd0ec198e4..812d12252b83 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Microsoft.Maps/Common/preview/1.0/common.json @@ -620,12 +620,6 @@ } }, "responses": { - "200Async": { - "description": "The operation's status response.", - "schema": { - "$ref": "#/definitions/LongRunningOperationResult" - } - }, "200AsyncV2": { "description": "The operation is running or complete. If the operation was successful, use the Resource-Location header to obtain the path to the result.", "schema": { @@ -638,18 +632,6 @@ } } }, - "201Async": { - "description": "The resource has been created successfully.", - "schema": { - "$ref": "#/definitions/LongRunningOperationResult" - }, - "headers": { - "Location": { - "type": "string", - "description": "A URI where details on the newly created resource can be found." - } - } - }, "202Async": { "description": "**Supported only for async request.**\nRequest Accepted: The request has been accepted for processing. Please use the URL in the Location Header to retry or access the results.", "headers": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json index ba6ba861218e..3ae7c1ec6dd5 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json @@ -137,6 +137,9 @@ "200": { "$ref": "../../../Common/preview/1.0/common.json#/responses/200AsyncV2" }, + "202": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/200AsyncV2" + }, "default": { "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/Dataset_Delete.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/Dataset_Delete.json index 57f709e2dede..b2193a7993db 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/Dataset_Delete.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/Dataset_Delete.json @@ -5,15 +5,6 @@ "datasetId": "[datasetId]" }, "responses": { - "204": {}, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request - One or more parameters were incorrectly specified or are mutually exclusive." - } - } - } + "204": {} } } diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/Delete.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/Delete.json index fd8a2ec05544..5cf093ae5d8a 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/Delete.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/Delete.json @@ -5,15 +5,6 @@ "conversionId": "99884fb7-87a9-0920-7f93-7952a0b91012" }, "responses": { - "204": {}, - "400": { - "headers": {}, - "body": { - "error": { - "code": "400 BadRequest", - "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." - } - } - } + "204": {} } } diff --git a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json index 73bf4769aa06..45ecc634c193 100644 --- a/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json +++ b/specification/maps/data-plane/Microsoft.Maps/FeatureState/preview/2.0/featurestate.json @@ -347,9 +347,6 @@ "204": { "description": "Feature states deleted successfully." }, - "409": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/409" - }, "default": { "$ref": "../../../Common/preview/1.0/common.json#/responses/default" } diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteDirections.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteDirections.json index d114884cbb3e..d333d4314013 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteDirections.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteDirections.json @@ -184,6 +184,11 @@ } ] } + }, + "202": { + "headers": { + "Location": "New URL to check the status of the long running request." + } } } } From 6038041ab7236330d7b797cb1da30571b434f4cc Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Wed, 9 Jun 2021 18:20:22 +0200 Subject: [PATCH 202/210] fix again errors in examples. --- .../Microsoft.Maps/Dataset/preview/2.0/dataset.json | 2 +- .../Route/preview/1.0/examples/PostRouteDirections.json | 5 ----- .../Route/preview/1.0/examples/PostRouteMatrix.json | 5 +++++ 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json index 3ae7c1ec6dd5..f68eeb08747f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json @@ -138,7 +138,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/responses/200AsyncV2" }, "202": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/200AsyncV2" + "$ref": "../../../Common/preview/1.0/common.json#/responses/202AsyncV2" }, "default": { "$ref": "../../../Common/preview/1.0/common.json#/responses/default" diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteDirections.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteDirections.json index d333d4314013..d114884cbb3e 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteDirections.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteDirections.json @@ -184,11 +184,6 @@ } ] } - }, - "202": { - "headers": { - "Location": "New URL to check the status of the long running request." - } } } } diff --git a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteMatrix.json b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteMatrix.json index ef5b0608d637..9798e3389e4f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteMatrix.json +++ b/specification/maps/data-plane/Microsoft.Maps/Route/preview/1.0/examples/PostRouteMatrix.json @@ -97,6 +97,11 @@ "totalRoutes": 4 } } + }, + "202": { + "headers": { + "Location": "New URL to check the status of the long running request." + } } } } From 96167d233a377ae05c7b9d5a1e22dea1a1ede4fb Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Thu, 10 Jun 2021 10:47:20 +0200 Subject: [PATCH 203/210] remove package-preview-1.0 from go. --- specification/maps/data-plane/readme.go.md | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/specification/maps/data-plane/readme.go.md b/specification/maps/data-plane/readme.go.md index 4bde7ed34e0d..b11d0b07069d 100644 --- a/specification/maps/data-plane/readme.go.md +++ b/specification/maps/data-plane/readme.go.md @@ -13,7 +13,6 @@ go: ``` yaml $(go) && $(multiapi) batch: - - tag: package-1.0-preview - tag: package-preview-2.0 ``` @@ -25,12 +24,3 @@ Please also specify `--go-sdk-folder=`. - -``` yaml $(tag) == 'package-1.0-preview' && $(go) -output-folder: $(go-sdk-folder)/services/preview/maps/1.0/$(namespace) -``` \ No newline at end of file From 778c0bc0080e50c964080068db0b75f83a91766c Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Thu, 10 Jun 2021 11:12:38 +0200 Subject: [PATCH 204/210] Remove go codegen as track1 isn't supported for data-plane. --- specification/maps/data-plane/readme.go.md | 26 ---------------------- specification/maps/data-plane/readme.md | 3 --- 2 files changed, 29 deletions(-) delete mode 100644 specification/maps/data-plane/readme.go.md diff --git a/specification/maps/data-plane/readme.go.md b/specification/maps/data-plane/readme.go.md deleted file mode 100644 index b11d0b07069d..000000000000 --- a/specification/maps/data-plane/readme.go.md +++ /dev/null @@ -1,26 +0,0 @@ -## Go - -These settings apply only when `--go` is specified on the command line. - -``` yaml $(go) -go: - license-header: MICROSOFT_MIT_NO_VERSION - namespace: azmaps - clear-output-folder: true -``` - -### Go multi-api - -``` yaml $(go) && $(multiapi) -batch: - - tag: package-preview-2.0 -``` - -### Tag: package-preview-2.0 and go - -These settings apply only when `--tag=package-preview-2.0 --go` is specified on the command line. -Please also specify `--go-sdk-folder=`. - -``` yaml $(tag) == 'package-preview-2.0' && $(go) -output-folder: $(go-sdk-folder)/services/preview/maps/2.0/$(namespace) -``` diff --git a/specification/maps/data-plane/readme.md b/specification/maps/data-plane/readme.md index 1311085df2f0..18da8d414874 100644 --- a/specification/maps/data-plane/readme.md +++ b/specification/maps/data-plane/readme.md @@ -83,9 +83,6 @@ swagger-to-sdk: - repo: azure-sdk-for-java - repo: azure-sdk-for-js - repo: azure-sdk-for-net - - repo: azure-sdk-for-go - #after_scripts: - # - bundle install ``` ## Python From 33fd7927f926f6cc65de5eeb136aad477fc96fe9 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Thu, 10 Jun 2021 11:45:50 +0200 Subject: [PATCH 205/210] Leave go readme. Remove js from ci for now. --- specification/maps/data-plane/readme.go.md | 26 ++++++++++++++++++++++ specification/maps/data-plane/readme.md | 7 +++++- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 specification/maps/data-plane/readme.go.md diff --git a/specification/maps/data-plane/readme.go.md b/specification/maps/data-plane/readme.go.md new file mode 100644 index 000000000000..76311d78d22b --- /dev/null +++ b/specification/maps/data-plane/readme.go.md @@ -0,0 +1,26 @@ +## Go + +These settings apply only when `--go` is specified on the command line. + +``` yaml $(go) +go: + license-header: MICROSOFT_MIT_NO_VERSION + namespace: azmaps + clear-output-folder: true +``` + +### Go multi-api + +``` yaml $(go) && $(multiapi) +batch: + - tag: package-preview-2.0 +``` + +### Tag: package-preview-2.0 and go + +These settings apply only when `--tag=package-preview-2.0 --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'package-preview-2.0' && $(go) +output-folder: $(go-sdk-folder)/services/preview/maps/2.0/$(namespace) +``` \ No newline at end of file diff --git a/specification/maps/data-plane/readme.md b/specification/maps/data-plane/readme.md index 18da8d414874..cc647dacd093 100644 --- a/specification/maps/data-plane/readme.md +++ b/specification/maps/data-plane/readme.md @@ -81,7 +81,12 @@ This is not used by Autorest itself. swagger-to-sdk: - repo: azure-sdk-for-python-track2 - repo: azure-sdk-for-java - - repo: azure-sdk-for-js + #track1 doesn't support data-plane for go + #manually generate for now with track2 + #- repo: azure-sdk-for-go + #track1 doesn't support features needed for typescript + #manually generate for now with track2 + #- repo: azure-sdk-for-js - repo: azure-sdk-for-net ``` ## Python From a5d68c54cc27d757374cdd996018b81fcb729aec Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Thu, 10 Jun 2021 12:13:02 +0200 Subject: [PATCH 206/210] remove 200 from dataset. --- .../Dataset/preview/2.0/dataset.json | 3 --- .../preview/2.0/examples/Dataset_Create.json | 15 --------------- 2 files changed, 18 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json index f68eeb08747f..09d4599b7e26 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json @@ -134,9 +134,6 @@ } ], "responses": { - "200": { - "$ref": "../../../Common/preview/1.0/common.json#/responses/200AsyncV2" - }, "202": { "$ref": "../../../Common/preview/1.0/common.json#/responses/202AsyncV2" }, diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/Dataset_Create.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/Dataset_Create.json index aea9b7db5ce6..e85f967b989b 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/Dataset_Create.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/Dataset_Create.json @@ -5,21 +5,6 @@ "conversionId": "[conversionId]" }, "responses": { - "200": { - "headers": {}, - "body": { - "error": { - "code": "InvalidFeature", - "message": "The provided feature is invalid.", - "details": [ - { - "code": "NoGeometry", - "message": "No geometry was provided with the feature." - } - ] - } - } - }, "202": { "headers": { "Operation-Location": "https://us.atlas.microsoft.com/datasets/operations/{operationId}?api-version=2.0", From a8c89c5feb481f916e24375463baa48ffa1490cf Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Fri, 11 Jun 2021 11:00:25 +0200 Subject: [PATCH 207/210] Put 200 response back to the Maps LROs. Although those paths do not return 200 directly (202 instead) the TS codegen takes 200 definition for the response type, so it is needed to deserialize. --- .../Data/preview/2.0/examples/Update.json | 10 ++++++++++ .../Data/preview/2.0/examples/Upload.json | 10 ++++++++++ .../Dataset/preview/2.0/dataset.json | 3 +++ .../preview/2.0/examples/Dataset_Create.json | 10 ++++++++++ .../preview/2.0/examples/Conversion.json | 17 ++++++----------- .../Tileset/preview/2.0/examples/Create.json | 17 ++++++----------- .../Tileset/preview/2.0/tileset.json | 6 +----- 7 files changed, 46 insertions(+), 27 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/Update.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/Update.json index aed756e8db34..549d24b5604f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/Update.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/Update.json @@ -24,6 +24,16 @@ } }, "responses": { + "200": { + "body": { + "operationId": "8b1288fa-1958-4a2b-b68e-13a7i5af7d7c", + "created": "2021-04-20T22:43:14.9401559+00:00", + "status": "Succeeded" + }, + "headers": { + "Resource-Location": "https://us.atlas.microsoft.com/mapData/3e36b996-f6d1-b068-0fcb-dd6b014c3447?api-version=2.0" + } + }, "202": { "headers": { "Operation-Location": "https://us.atlas.microsoft.com/mapData/operations/{operationId}?api-version=1.0", diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/Upload.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/Upload.json index 85f963b5198f..1568e940af48 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/Upload.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/Upload.json @@ -24,6 +24,16 @@ } }, "responses": { + "200": { + "body": { + "operationId": "8b1288fa-1958-4a2b-b68e-13a7i5af7d7c", + "created": "2021-04-20T22:43:14.9401559+00:00", + "status": "Succeeded" + }, + "headers": { + "Resource-Location": "https://us.atlas.microsoft.com/mapData/3e36b996-f6d1-b068-0fcb-dd6b014c3447?api-version=2.0" + } + }, "202": { "headers": { "Operation-Location": "https://us.atlas.microsoft.com/mapData/operations/{udid}?api-version=2.0", diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json index 09d4599b7e26..f68eeb08747f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/dataset.json @@ -134,6 +134,9 @@ } ], "responses": { + "200": { + "$ref": "../../../Common/preview/1.0/common.json#/responses/200AsyncV2" + }, "202": { "$ref": "../../../Common/preview/1.0/common.json#/responses/202AsyncV2" }, diff --git a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/Dataset_Create.json b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/Dataset_Create.json index e85f967b989b..df5d8e659524 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/Dataset_Create.json +++ b/specification/maps/data-plane/Microsoft.Maps/Dataset/preview/2.0/examples/Dataset_Create.json @@ -5,6 +5,16 @@ "conversionId": "[conversionId]" }, "responses": { + "200": { + "body": { + "operationId": "8b1288fa-1958-4a2b-b68e-13a7i5af7d7c", + "created": "2021-04-20T22:43:14.9401559+00:00", + "status": "Succeeded" + }, + "headers": { + "Resource-Location": "https://us.atlas.microsoft.com/mapData/3e36b996-f6d1-b068-0fcb-dd6b014c3447?api-version=2.0" + } + }, "202": { "headers": { "Operation-Location": "https://us.atlas.microsoft.com/datasets/operations/{operationId}?api-version=2.0", diff --git a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/Conversion.json b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/Conversion.json index a41d2f8e56ec..149a34a8eda2 100644 --- a/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/Conversion.json +++ b/specification/maps/data-plane/Microsoft.Maps/DwgConversion/preview/2.0/examples/Conversion.json @@ -7,18 +7,13 @@ }, "responses": { "200": { - "headers": {}, "body": { - "error": { - "code": "InvalidFeature", - "message": "The provided feature is invalid.", - "details": [ - { - "code": "NoGeometry", - "message": "No geometry was provided with the feature." - } - ] - } + "operationId": "8b1288fa-1958-4a2b-b68e-13a7i5af7d7c", + "created": "2021-04-20T22:43:14.9401559+00:00", + "status": "Succeeded" + }, + "headers": { + "Resource-Location": "https://us.atlas.microsoft.com/mapData/3e36b996-f6d1-b068-0fcb-dd6b014c3447?api-version=2.0" } }, "202": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/examples/Create.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/examples/Create.json index aa4dad880c3a..0ca2acebc8d8 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/examples/Create.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/examples/Create.json @@ -6,18 +6,13 @@ }, "responses": { "200": { - "headers": {}, "body": { - "error": { - "code": "InvalidFeature", - "message": "The provided feature is invalid.", - "details": [ - { - "code": "NoGeometry", - "message": "No geometry was provided with the feature." - } - ] - } + "operationId": "8b1288fa-1958-4a2b-b68e-13a7i5af7d7c", + "created": "2021-04-20T22:43:14.9401559+00:00", + "status": "Succeeded" + }, + "headers": { + "Resource-Location": "https://us.atlas.microsoft.com/mapData/3e36b996-f6d1-b068-0fcb-dd6b014c3447?api-version=2.0" } }, "202": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json index 35d113e5497f..7b1a624117e0 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json +++ b/specification/maps/data-plane/Microsoft.Maps/Tileset/preview/2.0/tileset.json @@ -127,11 +127,7 @@ ], "responses": { "200": { - "description": "Tileset create failed. The uploaded content did not satisfy all the validation checks. The response body contains all the errors that were encountered.", - "schema": { - "$ref": "../../../../../../common-types/data-plane/v1/types.json#/definitions/ErrorResponse" - }, - "x-ms-error-response": true + "$ref": "../../../Common/preview/1.0/common.json#/responses/200AsyncV2" }, "202": { "$ref": "../../../Common/preview/1.0/common.json#/responses/202AsyncV2" From f204f29adaff8f2f6d42e866ca670fc4632f60d1 Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Fri, 11 Jun 2021 11:06:03 +0200 Subject: [PATCH 208/210] Try to use .NET Track 2 --- specification/maps/data-plane/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/maps/data-plane/readme.md b/specification/maps/data-plane/readme.md index cc647dacd093..6cb2b1dc8cf3 100644 --- a/specification/maps/data-plane/readme.md +++ b/specification/maps/data-plane/readme.md @@ -87,7 +87,7 @@ swagger-to-sdk: #track1 doesn't support features needed for typescript #manually generate for now with track2 #- repo: azure-sdk-for-js - - repo: azure-sdk-for-net + - repo: azure-sdk-for-net-track2 ``` ## Python From 7809b3c38ec2bbd4368bd0600afc5aae34f07480 Mon Sep 17 00:00:00 2001 From: Filip Proborszcz Date: Mon, 14 Jun 2021 19:52:40 +0200 Subject: [PATCH 209/210] Workaround TS autogen limitation - loses inherited class properties due to invalid deserialization of base class properties only --- .../Spatial/preview/1.0/spatial.json | 51 +++++++++++-------- .../maps/data-plane/readme.typescript.md | 46 +++++++++++++++++ 2 files changed, 76 insertions(+), 21 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json index 2a6263bddaab..08edffd68c99 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json +++ b/specification/maps/data-plane/Microsoft.Maps/Spatial/preview/1.0/spatial.json @@ -136,6 +136,33 @@ "in": "query", "required": true, "x-ms-parameter-location": "method" + }, + "SearchGeofenceRequestBody": { + "name": "searchGeofenceRequestBody", + "in": "body", + "description": "The geofencing GeoJSON data.", + "required": true, + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonFeatureCollection" + } + }, + "ClosestPointRequestBody": { + "name": "closestPointRequestBody", + "in": "body", + "description": "The FeatureCollection of Point geometries from which closest point to source point should be determined. All the feature's properties should contain `geometryId`, which is used for identifying the geometry and is case-sensitive.", + "required": true, + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonFeatureCollection" + } + }, + "PointInPolygonRequestBody": { + "name": "pointInPolygonRequestBody", + "in": "body", + "description": "A FeatureCollection with a set of Polygon/MultiPolygon geometries. The maximum number of vertices accepted to form a Polygon is 10,000. All the feature's properties should contain `geometryId`, which is used for identifying the geometry and is case-sensitive.", + "required": true, + "schema": { + "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonFeatureCollection" + } } }, "paths": { @@ -289,13 +316,7 @@ "$ref": "#/parameters/GeofenceMode" }, { - "name": "searchGeofenceRequestBody", - "in": "body", - "description": "The geofencing GeoJSON data.", - "required": true, - "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonFeatureCollection" - } + "$ref": "#/parameters/SearchGeofenceRequestBody" } ], "responses": { @@ -432,13 +453,7 @@ "type": "integer" }, { - "name": "closestPointRequestBody", - "in": "body", - "description": "The FeatureCollection of Point geometries from which closest point to source point should be determined. All the feature's properties should contain `geometryId`, which is used for identifying the geometry and is case-sensitive.", - "required": true, - "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonFeatureCollection" - } + "$ref": "#/parameters/ClosestPointRequestBody" } ], "responses": { @@ -526,13 +541,7 @@ "$ref": "#/parameters/SpatialLongitude" }, { - "name": "pointInPolygonRequestBody", - "in": "body", - "description": "A FeatureCollection with a set of Polygon/MultiPolygon geometries. The maximum number of vertices accepted to form a Polygon is 10,000. All the feature's properties should contain `geometryId`, which is used for identifying the geometry and is case-sensitive.", - "required": true, - "schema": { - "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonFeatureCollection" - } + "$ref": "#/parameters/PointInPolygonRequestBody" } ], "responses": { diff --git a/specification/maps/data-plane/readme.typescript.md b/specification/maps/data-plane/readme.typescript.md index ef8de16024dd..383b2f5ef20f 100644 --- a/specification/maps/data-plane/readme.typescript.md +++ b/specification/maps/data-plane/readme.typescript.md @@ -14,4 +14,50 @@ generate-metadata: false v3: true use-extension: "@autorest/typescript": "6.0.0-alpha.20210514.1" +directive: + - from: route.json + where: $.definitions.PostRouteDirectionsRequestBody.properties.supportingPoints + transform: > + $ = { + "description": "A GeoJSON Geometry collection representing sequence of coordinates used as input for route reconstruction and for calculating zero or more alternative routes to this reference route.\n - The provided sequence of supporting points is used as input for route reconstruction.\n - The alternative routes are calculated between the origin and destination points specified in the base path parameter locations.\n - If both _minDeviationDistance_ and _minDeviationTime_ are set to zero, then these origin and destination points are\n expected to be at (or very near) the beginning and end of the reference route, respectively.\n - Intermediate locations (_waypoints_) are not supported when using <_supportingPoints_>.\n - The reference route may contain traffic incidents of type _ROAD_CLOSURE_, which are\n ignored for the calculation of the reference route's travel time and traffic delay.", + "type": "object" + }; + reason: Autorest TS codegen does not deserialize array of base class objects as an operation parameter properly + - from: search.json + where: $.definitions.SearchInsideGeometryRequestBody.properties.geometry + transform: > + $ = { + "description": "A valid `GeoJSON` object. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3) for details.", + "type": "object" + }; + reason: Autorest TS codegen does not deserialize array of base class objects as an operation parameter properly + - from: spatial.json + where: $.parameters.SearchGeofenceRequestBody.schema + transform: > + $ = { + "type": "object" + }; + reason: Autorest TS codegen does not deserialize array of base class objects as an operation parameter properly + - from: spatial.json + where: $.parameters.ClosestPointRequestBody.schema + transform: > + $ = { + "type": "object" + }; + reason: Autorest TS codegen does not deserialize array of base class objects as an operation parameter properly + - from: spatial.json + where: $.parameters.PointInPolygonRequestBody.schema + transform: > + $ = { + "type": "object" + }; + reason: Autorest TS codegen does not deserialize array of base class objects as an operation parameter properly + - from: spatial.json + where: $.definitions.BufferRequestBody.properties.geometries + transform: > + $ = { + "description": "A valid `GeoJSON FeatureCollection` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.3) for details.", + "type": "object" + }; + reason: Autorest TS codegen does not deserialize array of base class objects as an operation parameter properly ``` From a9ba08c2b977c30b9f75fd40eaeb1ae5b736280e Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Tue, 15 Jun 2021 14:36:29 +0200 Subject: [PATCH 210/210] Fix 200 to be 400 error(fix duplicate) --- .../Microsoft.Maps/Data/preview/2.0/examples/Update.json | 9 --------- .../Microsoft.Maps/Data/preview/2.0/examples/Upload.json | 9 --------- 2 files changed, 18 deletions(-) diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/Update.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/Update.json index 549d24b5604f..a6057f3ec929 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/Update.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/Update.json @@ -40,15 +40,6 @@ "Access-Control-Expose-Headers": "Operation-Location" } }, - "200": { - "headers": {}, - "body": { - "error": { - "code": "400 Bad Request", - "message": "Upload request failed. Your data has been removed as we encountered the following problems with it: Map data is not a valid GeoJSON geometry." - } - } - }, "409": { "headers": {}, "body": { diff --git a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/Upload.json b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/Upload.json index 1568e940af48..f1736046f20f 100644 --- a/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/Upload.json +++ b/specification/maps/data-plane/Microsoft.Maps/Data/preview/2.0/examples/Upload.json @@ -40,15 +40,6 @@ "Access-Control-Expose-Headers": "Operation-Location" } }, - "200": { - "headers": {}, - "body": { - "error": { - "code": "400 Bad Request", - "message": "Upload request failed. Your data has been removed as we encountered the following problems with it: Map data is not a valid GeoJSON geometry." - } - } - }, "409": { "headers": {}, "body": {