diff --git a/specification/locationbasedservices/resource-manager/Microsoft.LocationBasedServices/preview/2017-01-01-preview/examples/GetOperations.json b/specification/locationbasedservices/resource-manager/Microsoft.LocationBasedServices/preview/2017-01-01-preview/examples/GetOperations.json deleted file mode 100644 index 1d1207e5fbf0..000000000000 --- a/specification/locationbasedservices/resource-manager/Microsoft.LocationBasedServices/preview/2017-01-01-preview/examples/GetOperations.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "parameters": { - "api-version": "2017-01-01-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "Microsoft.LocationBasedServices/register/action", - "display": { - "provider": "Microsoft Location Based Services", - "resource": "Location Based Services Account", - "operation": "Register the provider", - "description": "Register the provider" - } - }, - { - "name": "Microsoft.LocationBasedServices/accounts/write", - "display": { - "provider": "Microsoft Location Based Services", - "resource": "Location Based Services Account", - "operation": "Create or update a Location Based Services Account.", - "description": "Create or update a Location Based Services Account." - } - }, - { - "name": "Microsoft.LocationBasedServices/accounts/read", - "display": { - "provider": "Microsoft Location Based Services", - "resource": "Location Based Services Account", - "operation": "Get a Location Based Services Account.", - "description": "Get a Location Based Services Account." - } - }, - { - "name": "Microsoft.LocationBasedServices/accounts/delete", - "display": { - "provider": "Microsoft Location Based Services", - "resource": "Location Based Services Account", - "operation": "Delete a Location Based Services Account.", - "description": "Delete a Location Based Services Account." - } - }, - { - "name": "Microsoft.LocationBasedServices/accounts/listKeys/action", - "display": { - "provider": "Microsoft Location Based Services", - "resource": "Location Based Services Account", - "operation": "List keys", - "description": "List Location Based Services Account keys" - } - }, - { - "name": "Microsoft.LocationBasedServices/accounts/regenerateKey/action", - "display": { - "provider": "Microsoft Location Based Services", - "resource": "Location Based Services Account", - "operation": "Generate new primary or secondary key", - "description": "Generate new Location Based Services Account primary or secondary key" - } - } - ] - } - } - } -} diff --git a/specification/locationbasedservices/resource-manager/Microsoft.LocationBasedServices/preview/2017-01-01-preview/examples/CreateAccount.json b/specification/maps/resource-manager/Microsoft.Maps/stable/2017-01-01-preview/examples/CreateAccount.json similarity index 64% rename from specification/locationbasedservices/resource-manager/Microsoft.LocationBasedServices/preview/2017-01-01-preview/examples/CreateAccount.json rename to specification/maps/resource-manager/Microsoft.Maps/stable/2017-01-01-preview/examples/CreateAccount.json index c7d028f5ce43..9a5e50f533fa 100644 --- a/specification/locationbasedservices/resource-manager/Microsoft.LocationBasedServices/preview/2017-01-01-preview/examples/CreateAccount.json +++ b/specification/maps/resource-manager/Microsoft.Maps/stable/2017-01-01-preview/examples/CreateAccount.json @@ -3,8 +3,8 @@ "api-version": "2017-01-01-preview", "subscriptionId": "21a9967a-e8a9-4656-a70b-96ff1c4d05a0", "resourceGroupName": "myResourceGroup", - "accountName": "myLBSAccount", - "LocationBasedServicesAccountCreateParameters": { + "accountName": "myMapsAccount", + "MapsAccountCreateParameters": { "location": "global", "sku": { "name": "S0" @@ -17,9 +17,9 @@ "responses": { "200": { "body": { - "id": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.LocationBasedServices/accounts/myLBSAccount", - "name": "myLBSAccount", - "type": "Microsoft.LocationBasedServices/accounts", + "id": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.Maps/accounts/myMapsAccount", + "name": "myMapsAccount", + "type": "Microsoft.Maps/accounts", "location": "global", "tags": { "test": "true" @@ -32,9 +32,9 @@ }, "201": { "body": { - "id": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.LocationBasedServices/accounts/myLBSAccount", - "name": "myLBSAccount", - "type": "Microsoft.LocationBasedServices/accounts", + "id": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.Maps/accounts/myMapsAccount", + "name": "myMapsAccount", + "type": "Microsoft.Maps/accounts", "location": "global", "tags": { "test": "true" diff --git a/specification/locationbasedservices/resource-manager/Microsoft.LocationBasedServices/preview/2017-01-01-preview/examples/DeleteAccount.json b/specification/maps/resource-manager/Microsoft.Maps/stable/2017-01-01-preview/examples/DeleteAccount.json similarity index 86% rename from specification/locationbasedservices/resource-manager/Microsoft.LocationBasedServices/preview/2017-01-01-preview/examples/DeleteAccount.json rename to specification/maps/resource-manager/Microsoft.Maps/stable/2017-01-01-preview/examples/DeleteAccount.json index 8568e2d0a606..6d0fee2de058 100644 --- a/specification/locationbasedservices/resource-manager/Microsoft.LocationBasedServices/preview/2017-01-01-preview/examples/DeleteAccount.json +++ b/specification/maps/resource-manager/Microsoft.Maps/stable/2017-01-01-preview/examples/DeleteAccount.json @@ -3,7 +3,7 @@ "api-version": "2017-01-01-preview", "subscriptionId": "21a9967a-e8a9-4656-a70b-96ff1c4d05a0", "resourceGroupName": "myResourceGroup", - "accountName": "myLBSAccount" + "accountName": "myMapsAccount" }, "responses": { "200": {}, diff --git a/specification/locationbasedservices/resource-manager/Microsoft.LocationBasedServices/preview/2017-01-01-preview/examples/GetAccount.json b/specification/maps/resource-manager/Microsoft.Maps/stable/2017-01-01-preview/examples/GetAccount.json similarity index 68% rename from specification/locationbasedservices/resource-manager/Microsoft.LocationBasedServices/preview/2017-01-01-preview/examples/GetAccount.json rename to specification/maps/resource-manager/Microsoft.Maps/stable/2017-01-01-preview/examples/GetAccount.json index 6916516e550b..1901bd642252 100644 --- a/specification/locationbasedservices/resource-manager/Microsoft.LocationBasedServices/preview/2017-01-01-preview/examples/GetAccount.json +++ b/specification/maps/resource-manager/Microsoft.Maps/stable/2017-01-01-preview/examples/GetAccount.json @@ -3,14 +3,14 @@ "api-version": "2017-01-01-preview", "subscriptionId": "21a9967a-e8a9-4656-a70b-96ff1c4d05a0", "resourceGroupName": "myResourceGroup", - "accountName": "myLBSAccount" + "accountName": "myMapsAccount" }, "responses": { "200": { "body": { - "id": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.LocationBasedServices/accounts/myLBSAccount", - "name": "myLBSAccount", - "type": "Microsoft.LocationBasedServices/accounts", + "id": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.Maps/accounts/myMapsAccount", + "name": "myMapsAccount", + "type": "Microsoft.Maps/accounts", "location": "global", "tags": { "test": "true" diff --git a/specification/maps/resource-manager/Microsoft.Maps/stable/2017-01-01-preview/examples/GetOperations.json b/specification/maps/resource-manager/Microsoft.Maps/stable/2017-01-01-preview/examples/GetOperations.json new file mode 100644 index 000000000000..21771c94016a --- /dev/null +++ b/specification/maps/resource-manager/Microsoft.Maps/stable/2017-01-01-preview/examples/GetOperations.json @@ -0,0 +1,67 @@ +{ + "parameters": { + "api-version": "2017-01-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.Maps/register/action", + "display": { + "provider": "Microsoft Maps", + "resource": "Maps Account", + "operation": "Register the provider", + "description": "Register the provider" + } + }, + { + "name": "Microsoft.Maps/accounts/write", + "display": { + "provider": "Microsoft Maps", + "resource": "Maps Account", + "operation": "Create or update a Maps Account.", + "description": "Create or update a Maps Account." + } + }, + { + "name": "Microsoft.Maps/accounts/read", + "display": { + "provider": "Microsoft Maps", + "resource": "Maps Account", + "operation": "Get a Maps Account.", + "description": "Get a Maps Account." + } + }, + { + "name": "Microsoft.Maps/accounts/delete", + "display": { + "provider": "Microsoft Maps", + "resource": "Maps Account", + "operation": "Delete a Maps Account.", + "description": "Delete a Maps Account." + } + }, + { + "name": "Microsoft.Maps/accounts/listKeys/action", + "display": { + "provider": "Microsoft Maps", + "resource": "Maps Account", + "operation": "List keys", + "description": "List Maps Account keys" + } + }, + { + "name": "Microsoft.Maps/accounts/regenerateKey/action", + "display": { + "provider": "Microsoft Maps", + "resource": "Maps Account", + "operation": "Generate new primary or secondary key", + "description": "Generate new Maps Account primary or secondary key" + } + } + ] + } + } + } +} diff --git a/specification/locationbasedservices/resource-manager/Microsoft.LocationBasedServices/preview/2017-01-01-preview/examples/ListAccountsByResourceGroup.json b/specification/maps/resource-manager/Microsoft.Maps/stable/2017-01-01-preview/examples/ListAccountsByResourceGroup.json similarity index 68% rename from specification/locationbasedservices/resource-manager/Microsoft.LocationBasedServices/preview/2017-01-01-preview/examples/ListAccountsByResourceGroup.json rename to specification/maps/resource-manager/Microsoft.Maps/stable/2017-01-01-preview/examples/ListAccountsByResourceGroup.json index 7c6c29d87f25..c0f6026804f1 100644 --- a/specification/locationbasedservices/resource-manager/Microsoft.LocationBasedServices/preview/2017-01-01-preview/examples/ListAccountsByResourceGroup.json +++ b/specification/maps/resource-manager/Microsoft.Maps/stable/2017-01-01-preview/examples/ListAccountsByResourceGroup.json @@ -10,9 +10,9 @@ "value": [ { "id": - "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.LocationBasedServices/accounts/myLBSAccount2", - "name": "myLBSAccount2", - "type": "Microsoft.LocationBasedServices/accounts", + "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.Maps/accounts/myMapsAccount2", + "name": "myMapsAccount2", + "type": "Microsoft.Maps/accounts", "location": "global", "tags": { "test": "true" @@ -24,9 +24,9 @@ }, { "id": - "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.LocationBasedServices/accounts/myLBSAccount", - "name": "myLBSAccount", - "type": "Microsoft.LocationBasedServices/accounts", + "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.Maps/accounts/myMapsAccount", + "name": "myMapsAccount", + "type": "Microsoft.Maps/accounts", "location": "global", "tags": { "test": "true" diff --git a/specification/locationbasedservices/resource-manager/Microsoft.LocationBasedServices/preview/2017-01-01-preview/examples/ListAccountsBySubscription.json b/specification/maps/resource-manager/Microsoft.Maps/stable/2017-01-01-preview/examples/ListAccountsBySubscription.json similarity index 65% rename from specification/locationbasedservices/resource-manager/Microsoft.LocationBasedServices/preview/2017-01-01-preview/examples/ListAccountsBySubscription.json rename to specification/maps/resource-manager/Microsoft.Maps/stable/2017-01-01-preview/examples/ListAccountsBySubscription.json index aec206866f1e..6186f5bac989 100644 --- a/specification/locationbasedservices/resource-manager/Microsoft.LocationBasedServices/preview/2017-01-01-preview/examples/ListAccountsBySubscription.json +++ b/specification/maps/resource-manager/Microsoft.Maps/stable/2017-01-01-preview/examples/ListAccountsBySubscription.json @@ -8,9 +8,9 @@ "body": { "value": [ { - "id": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.LocationBasedServices/accounts/myLBSAccount2", - "name": "myLBSAccount2", - "type": "Microsoft.LocationBasedServices/accounts", + "id": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.Maps/accounts/myMapsAccount2", + "name": "myMapsAccount2", + "type": "Microsoft.Maps/accounts", "location": "global", "tags": { "test": "true" @@ -21,9 +21,9 @@ } }, { - "id": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.LocationBasedServices/accounts/myLBSAccount", - "name": "myLBSAccount", - "type": "Microsoft.LocationBasedServices/accounts", + "id": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.Maps/accounts/myMapsAccount", + "name": "myMapsAccount", + "type": "Microsoft.Maps/accounts", "location": "global", "tags": { "test": "true" diff --git a/specification/locationbasedservices/resource-manager/Microsoft.LocationBasedServices/preview/2017-01-01-preview/examples/ListKeys.json b/specification/maps/resource-manager/Microsoft.Maps/stable/2017-01-01-preview/examples/ListKeys.json similarity index 77% rename from specification/locationbasedservices/resource-manager/Microsoft.LocationBasedServices/preview/2017-01-01-preview/examples/ListKeys.json rename to specification/maps/resource-manager/Microsoft.Maps/stable/2017-01-01-preview/examples/ListKeys.json index 547be35c4852..17c743fcc2fb 100644 --- a/specification/locationbasedservices/resource-manager/Microsoft.LocationBasedServices/preview/2017-01-01-preview/examples/ListKeys.json +++ b/specification/maps/resource-manager/Microsoft.Maps/stable/2017-01-01-preview/examples/ListKeys.json @@ -3,12 +3,12 @@ "api-version": "2017-01-01-preview", "subscriptionId": "21a9967a-e8a9-4656-a70b-96ff1c4d05a0", "resourceGroupName": "myResourceGroup", - "accountName": "myLBSAccount" + "accountName": "myMapsAccount" }, "responses": { "200": { "body": { - "id": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.LocationBasedServices/accounts/myLBSAccount", + "id": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.Maps/accounts/myMapsAccount", "primaryKey": "ZiBllKWCwXXLTO13S2TaoHoK8kPFYaoyYlAcnCcE4PQ", "secondaryKey": "cJHpmUGNaGGO8H59p6NKGhfff9VjD278-2bi5wo0_mU" } diff --git a/specification/locationbasedservices/resource-manager/Microsoft.LocationBasedServices/preview/2017-01-01-preview/examples/MoveAccounts.json b/specification/maps/resource-manager/Microsoft.Maps/stable/2017-01-01-preview/examples/MoveAccounts.json similarity index 73% rename from specification/locationbasedservices/resource-manager/Microsoft.LocationBasedServices/preview/2017-01-01-preview/examples/MoveAccounts.json rename to specification/maps/resource-manager/Microsoft.Maps/stable/2017-01-01-preview/examples/MoveAccounts.json index a3d981a4815f..b9ccb514ea02 100644 --- a/specification/locationbasedservices/resource-manager/Microsoft.LocationBasedServices/preview/2017-01-01-preview/examples/MoveAccounts.json +++ b/specification/maps/resource-manager/Microsoft.Maps/stable/2017-01-01-preview/examples/MoveAccounts.json @@ -6,8 +6,8 @@ "moveRequest": { "targetResourceGroup": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup2", "resourceIds": [ - "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.LocationBasedServices/accounts/myLBSAccount", - "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.LocationBasedServices/accounts/myLBSAccount2" + "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.Maps/accounts/myMapsAccount", + "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.Maps/accounts/myMapsAccount2" ] } }, diff --git a/specification/locationbasedservices/resource-manager/Microsoft.LocationBasedServices/preview/2017-01-01-preview/examples/RegenerateKey.json b/specification/maps/resource-manager/Microsoft.Maps/stable/2017-01-01-preview/examples/RegenerateKey.json similarity index 79% rename from specification/locationbasedservices/resource-manager/Microsoft.LocationBasedServices/preview/2017-01-01-preview/examples/RegenerateKey.json rename to specification/maps/resource-manager/Microsoft.Maps/stable/2017-01-01-preview/examples/RegenerateKey.json index 441feabe1fb2..cc6bfd5624dc 100644 --- a/specification/locationbasedservices/resource-manager/Microsoft.LocationBasedServices/preview/2017-01-01-preview/examples/RegenerateKey.json +++ b/specification/maps/resource-manager/Microsoft.Maps/stable/2017-01-01-preview/examples/RegenerateKey.json @@ -3,7 +3,7 @@ "api-version": "2017-01-01-preview", "subscriptionId": "21a9967a-e8a9-4656-a70b-96ff1c4d05a0", "resourceGroupName": "myResourceGroup", - "accountName": "myLBSAccount", + "accountName": "myMapsAccount", "keySpecification": { "keyType": "primary" } @@ -11,7 +11,7 @@ "responses": { "200": { "body": { - "id": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.LocationBasedServices/accounts/myLBSAccount", + "id": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.Maps/accounts/myMapsAccount", "primaryKey": "uj0yqjjz8zG3IOSWvb_smi1q1QenGtupAqrOA1zCO6s", "secondaryKey": "cJHpmUGNaGGO8H59p6NKGhfff9VjD278-2bi5wo0_mU" } diff --git a/specification/locationbasedservices/resource-manager/Microsoft.LocationBasedServices/preview/2017-01-01-preview/examples/UpdateAccount.json b/specification/maps/resource-manager/Microsoft.Maps/stable/2017-01-01-preview/examples/UpdateAccount.json similarity index 66% rename from specification/locationbasedservices/resource-manager/Microsoft.LocationBasedServices/preview/2017-01-01-preview/examples/UpdateAccount.json rename to specification/maps/resource-manager/Microsoft.Maps/stable/2017-01-01-preview/examples/UpdateAccount.json index e40ff9870309..1f6fda9553a5 100644 --- a/specification/locationbasedservices/resource-manager/Microsoft.LocationBasedServices/preview/2017-01-01-preview/examples/UpdateAccount.json +++ b/specification/maps/resource-manager/Microsoft.Maps/stable/2017-01-01-preview/examples/UpdateAccount.json @@ -3,8 +3,8 @@ "api-version": "2017-01-01-preview", "subscriptionId": "21a9967a-e8a9-4656-a70b-96ff1c4d05a0", "resourceGroupName": "myResourceGroup", - "accountName": "myLBSAccount", - "LocationBasedServicesAccountUpdateParameters": { + "accountName": "myMapsAccount", + "MapsAccountUpdateParameters": { "tags": { "specialTag": "true" } @@ -13,9 +13,9 @@ "responses": { "200": { "body": { - "id": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.LocationBasedServices/accounts/myLBSAccount", - "name": "myLBSAccount", - "type": "Microsoft.LocationBasedServices/accounts", + "id": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.Maps/accounts/myMapsAccount", + "name": "myMapsAccount", + "type": "Microsoft.Maps/accounts", "location": "global", "tags": { "specialTag": "true" diff --git a/specification/locationbasedservices/resource-manager/Microsoft.LocationBasedServices/preview/2017-01-01-preview/locationbasedservices.json b/specification/maps/resource-manager/Microsoft.Maps/stable/2017-01-01-preview/maps-management.json similarity index 80% rename from specification/locationbasedservices/resource-manager/Microsoft.LocationBasedServices/preview/2017-01-01-preview/locationbasedservices.json rename to specification/maps/resource-manager/Microsoft.Maps/stable/2017-01-01-preview/maps-management.json index e0dd352a1d05..df159a8856bf 100644 --- a/specification/locationbasedservices/resource-manager/Microsoft.LocationBasedServices/preview/2017-01-01-preview/locationbasedservices.json +++ b/specification/maps/resource-manager/Microsoft.Maps/stable/2017-01-01-preview/maps-management.json @@ -1,11 +1,11 @@ { "swagger": "2.0", "info": { - "title": "Azure Location Based Services Resource Provider", + "title": "Azure Maps Resource Provider", "description": "Resource Provider", "version": "2017-01-01-preview", "x-ms-code-generation-settings": { - "name": "LocationBasedServicesManagementClient" + "name": "MapsManagementClient" } }, "host": "management.azure.com", @@ -37,9 +37,9 @@ } }, "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LocationBasedServices/accounts/{accountName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}": { "put": { - "description": "Create or update a Location Based Services Account. A Location Based Services Account holds the keys which allow access to the Location Based Services REST APIs.", + "description": "Create or update a Maps Account. A Maps Account holds the keys which allow access to the Maps REST APIs.", "operationId": "Accounts_CreateOrUpdate", "x-ms-examples": { "CreateAccount": { @@ -60,12 +60,12 @@ "$ref": "#/parameters/AccountNameParameter" }, { - "name": "LocationBasedServicesAccountCreateParameters", + "name": "MapsAccountCreateParameters", "in": "body", - "description": "The new or updated parameters for the Location Based Services Account.", + "description": "The new or updated parameters for the Maps Account.", "required": true, "schema": { - "$ref": "#/definitions/LocationBasedServicesAccountCreateParameters" + "$ref": "#/definitions/MapsAccountCreateParameters" } } ], @@ -73,13 +73,13 @@ "200": { "description": "The Account was successfully updated.", "schema": { - "$ref": "#/definitions/LocationBasedServicesAccount" + "$ref": "#/definitions/MapsAccount" } }, "201": { "description": "The Account was successfully created.", "schema": { - "$ref": "#/definitions/LocationBasedServicesAccount" + "$ref": "#/definitions/MapsAccount" } }, "default": { @@ -91,7 +91,7 @@ } }, "patch": { - "description": "Updates a Location Based Services Account. Only a subset of the parameters may be updated after creation, such as Sku and Tags.", + "description": "Updates a Maps Account. Only a subset of the parameters may be updated after creation, such as Sku and Tags.", "operationId": "Accounts_Update", "x-ms-examples": { "UpdateAccount": { @@ -112,12 +112,12 @@ "$ref": "#/parameters/AccountNameParameter" }, { - "name": "LocationBasedServicesAccountUpdateParameters", + "name": "MapsAccountUpdateParameters", "in": "body", - "description": "The updated parameters for the Location Based Services Account.", + "description": "The updated parameters for the Maps Account.", "required": true, "schema": { - "$ref": "#/definitions/LocationBasedServicesAccountUpdateParameters" + "$ref": "#/definitions/MapsAccountUpdateParameters" } } ], @@ -125,7 +125,7 @@ "200": { "description": "The Account was successfully updated.", "schema": { - "$ref": "#/definitions/LocationBasedServicesAccount" + "$ref": "#/definitions/MapsAccount" } }, "404": { @@ -140,7 +140,7 @@ } }, "delete": { - "description": "Delete a Location Based Services Account", + "description": "Delete a Maps Account.", "operationId": "Accounts_Delete", "x-ms-examples": { "DeleteAccount": { @@ -177,7 +177,7 @@ } }, "get": { - "description": "Get a Location Based Services Account", + "description": "Get a Maps Account.", "operationId": "Accounts_Get", "x-ms-examples": { "GetAccount": { @@ -202,7 +202,7 @@ "200": { "description": "The request was successful.", "schema": { - "$ref": "#/definitions/LocationBasedServicesAccount" + "$ref": "#/definitions/MapsAccount" } }, "404": { @@ -217,9 +217,9 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LocationBasedServices/accounts": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts": { "get": { - "description": "Get all Location Based Services Accounts in a Resource Group", + "description": "Get all Maps Accounts in a Resource Group", "operationId": "Accounts_ListByResourceGroup", "x-ms-examples": { "ListAccountsByResourceGroup": { @@ -245,7 +245,7 @@ "200": { "description": "The request was successful.", "schema": { - "$ref": "#/definitions/LocationBasedServicesAccounts" + "$ref": "#/definitions/MapsAccounts" } }, "default": { @@ -257,9 +257,9 @@ } } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.LocationBasedServices/accounts": { + "/subscriptions/{subscriptionId}/providers/Microsoft.Maps/accounts": { "get": { - "description": "Get all Location Based Services Accounts in a Subscription", + "description": "Get all Maps Accounts in a Subscription", "operationId": "Accounts_ListBySubscription", "x-ms-examples": { "ListAccountsBySubscription": { @@ -282,7 +282,7 @@ "200": { "description": "The request was successful.", "schema": { - "$ref": "#/definitions/LocationBasedServicesAccounts" + "$ref": "#/definitions/MapsAccounts" } }, "default": { @@ -296,7 +296,7 @@ }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/moveResources": { "post": { - "description": "Moves Location Based Services Accounts from one ResourceGroup (or Subscription) to another", + "description": "Moves Maps Accounts from one ResourceGroup (or Subscription) to another", "operationId": "Accounts_Move", "x-ms-examples": { "MoveAccounts": { @@ -313,17 +313,17 @@ { "name": "resourceGroupName", "in": "path", - "description": "The name of the resource group that contains Location Based Services Account to move.", + "description": "The name of the resource group that contains Maps Account to move.", "required": true, "type": "string" }, { "name": "moveRequest", "in": "body", - "description": "The details of the Location Based Services Account move.", + "description": "The details of the Maps Account move.", "required": true, "schema": { - "$ref": "#/definitions/LocationBasedServicesAccountsMoveRequest" + "$ref": "#/definitions/MapsAccountsMoveRequest" } } ], @@ -340,9 +340,9 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LocationBasedServices/accounts/{accountName}/listKeys": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}/listKeys": { "post": { - "description": "Get the keys to use with the Location Based Services APIs. A key is used to authenticate and authorize access to the Location Based Services REST APIs. Only one key is needed at a time; two are given to provide seamless key regeneration.", + "description": "Get the keys to use with the Maps APIs. A key is used to authenticate and authorize access to the Maps REST APIs. Only one key is needed at a time; two are given to provide seamless key regeneration.", "operationId": "Accounts_ListKeys", "x-ms-examples": { "ListKeys": { @@ -367,7 +367,7 @@ "200": { "description": "The request was successful.", "schema": { - "$ref": "#/definitions/LocationBasedServicesAccountKeys" + "$ref": "#/definitions/MapsAccountKeys" } }, "404": { @@ -382,9 +382,9 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LocationBasedServices/accounts/{accountName}/regenerateKey": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}/regenerateKey": { "post": { - "description": "Regenerate either the primary or secondary key for use with the Location Based Services APIs. The old key will stop working immediately.", + "description": "Regenerate either the primary or secondary key for use with the Maps APIs. The old key will stop working immediately.", "operationId": "Accounts_RegenerateKeys", "x-ms-examples": { "RegenerateKey": { @@ -410,7 +410,7 @@ "required": true, "description": "Which key to regenerate: primary or secondary.", "schema": { - "$ref": "#/definitions/LocationBasedServicesKeySpecification" + "$ref": "#/definitions/MapsKeySpecification" } } ], @@ -418,7 +418,7 @@ "200": { "description": "The request was successful.", "schema": { - "$ref": "#/definitions/LocationBasedServicesAccountKeys" + "$ref": "#/definitions/MapsAccountKeys" } }, "404": { @@ -433,9 +433,9 @@ } } }, - "/providers/Microsoft.LocationBasedServices/operations": { + "/providers/Microsoft.Maps/operations": { "get": { - "description": "List operations available for the Location Based Services Resource Provider", + "description": "List operations available for the Maps Resource Provider", "operationId": "Accounts_ListOperations", "x-ms-examples": { "GetOperations": { @@ -455,7 +455,7 @@ "200": { "description": "The request was successful.", "schema": { - "$ref": "#/definitions/LocationBasedServicesOperations" + "$ref": "#/definitions/MapsOperations" } }, "default": { @@ -494,7 +494,7 @@ "AccountNameParameter": { "name": "accountName", "in": "path", - "description": "The name of the Location Based Services Account.", + "description": "The name of the Maps Account.", "required": true, "type": "string", "x-ms-parameter-location": "method" @@ -503,7 +503,7 @@ "definitions": { "Error": { "type": "object", - "description": "This object is returned when an error occurs in the Location Based Service API", + "description": "This object is returned when an error occurs in the Maps API", "properties": { "code": { "type": "string", @@ -553,12 +553,12 @@ "id": { "readOnly": true, "type": "string", - "description": "The fully qualified Location Based Services Account resource identifier." + "description": "The fully qualified Maps Account resource identifier." }, "name": { "readOnly": true, "type": "string", - "description": "The name of the Location Based Services Account, which is unique within a Resource Group." + "description": "The name of the Maps Account, which is unique within a Resource Group." }, "type": { "readOnly": true, @@ -568,8 +568,8 @@ }, "x-ms-azure-resource": true }, - "LocationBasedServicesAccount": { - "description": "An Azure resource which represents access to a suite of Location Based Services REST APIs.", + "MapsAccount": { + "description": "An Azure resource which represents access to a suite of Maps REST APIs.", "type": "object", "properties": { "location": { @@ -597,8 +597,8 @@ } ] }, - "LocationBasedServicesAccountCreateParameters": { - "description": "Parameters used to create a new Location Based Services Account.", + "MapsAccountCreateParameters": { + "description": "Parameters used to create a new Maps Account.", "type": "object", "properties": { "location": { @@ -622,8 +622,8 @@ "sku" ] }, - "LocationBasedServicesAccountUpdateParameters": { - "description": "Parameters used to update an existing Location Based Services Account.", + "MapsAccountUpdateParameters": { + "description": "Parameters used to update an existing Maps Account.", "type": "object", "properties": { "tags": { @@ -639,22 +639,22 @@ } } }, - "LocationBasedServicesAccounts": { - "description": "A list of Location Based Services Accounts.", + "MapsAccounts": { + "description": "A list of Maps Accounts.", "type": "object", "properties": { "value": { - "description": "A Location Based Services Account.", + "description": "a Maps Account.", "type": "array", "readOnly": true, "items": { - "$ref": "#/definitions/LocationBasedServicesAccount" + "$ref": "#/definitions/MapsAccount" } } } }, "Sku": { - "description": "The SKU of the Location Based Services Account.", + "description": "The SKU of the Maps Account.", "properties": { "name": { "description": "The name of the SKU, in standard format (such as S0).", @@ -670,7 +670,7 @@ "name" ] }, - "LocationBasedServicesAccountsMoveRequest": { + "MapsAccountsMoveRequest": { "description": "The description of what resources to move between resource groups.", "type": "object", "required": [ @@ -691,7 +691,7 @@ } } }, - "LocationBasedServicesKeySpecification": { + "MapsKeySpecification": { "description": "Whether the operation refers to the primary or secondary key.", "type": "object", "required": [ @@ -712,33 +712,33 @@ } } }, - "LocationBasedServicesAccountKeys": { - "description": "The set of keys which can be used to access the Location Based Services REST APIs. Two keys are provided for key rotation without interruption.", + "MapsAccountKeys": { + "description": "The set of keys which can be used to access the Maps REST APIs. Two keys are provided for key rotation without interruption.", "type": "object", "properties": { "id": { "type": "string", "readOnly": true, - "description": "The full Azure resource identifier of the Location Based Services Account." + "description": "The full Azure resource identifier of the Maps Account." }, "primaryKey": { "type": "string", "readOnly": true, - "description": "The primary key for accessing the Location Based Services REST APIs." + "description": "The primary key for accessing the Maps REST APIs." }, "secondaryKey": { "type": "string", "readOnly": true, - "description": "The secondary key for accessing the Location Based Services REST APIs." + "description": "The secondary key for accessing the Maps REST APIs." } } }, - "LocationBasedServicesOperations": { - "description": "The set of operations available for Location Based Services.", + "MapsOperations": { + "description": "The set of operations available for Maps.", "type": "object", "properties": { "value": { - "description": "An operation available for Location Based Services.", + "description": "An operation available for Maps.", "type": "array", "readOnly": true, "items": { @@ -756,7 +756,7 @@ "provider": { "type": "string", "readOnly": true, - "description": "Service provider: Microsoft Location Based Services." + "description": "Service provider: Microsoft Maps." }, "resource": { "type": "string", diff --git a/specification/maps/resource-manager/Microsoft.Maps/stable/2018-05-01/examples/CreateAccount.json b/specification/maps/resource-manager/Microsoft.Maps/stable/2018-05-01/examples/CreateAccount.json new file mode 100644 index 000000000000..2dbcc7a19085 --- /dev/null +++ b/specification/maps/resource-manager/Microsoft.Maps/stable/2018-05-01/examples/CreateAccount.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "api-version": "2018-05-01", + "subscriptionId": "21a9967a-e8a9-4656-a70b-96ff1c4d05a0", + "resourceGroupName": "myResourceGroup", + "accountName": "myMapsAccount", + "MapsAccountCreateParameters": { + "location": "global", + "sku": { + "name": "S0" + }, + "tags": { + "test": "true" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.Maps/accounts/myMapsAccount", + "name": "myMapsAccount", + "type": "Microsoft.Maps/accounts", + "location": "global", + "tags": { + "test": "true" + }, + "sku": { + "name": "S0", + "tier": "Standard" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.Maps/accounts/myMapsAccount", + "name": "myMapsAccount", + "type": "Microsoft.Maps/accounts", + "location": "global", + "tags": { + "test": "true" + }, + "sku": { + "name": "S0", + "tier": "Standard" + } + } + } + } +} diff --git a/specification/maps/resource-manager/Microsoft.Maps/stable/2018-05-01/examples/DeleteAccount.json b/specification/maps/resource-manager/Microsoft.Maps/stable/2018-05-01/examples/DeleteAccount.json new file mode 100644 index 000000000000..3d6c171b6268 --- /dev/null +++ b/specification/maps/resource-manager/Microsoft.Maps/stable/2018-05-01/examples/DeleteAccount.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "api-version": "2018-05-01", + "subscriptionId": "21a9967a-e8a9-4656-a70b-96ff1c4d05a0", + "resourceGroupName": "myResourceGroup", + "accountName": "myMapsAccount" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/maps/resource-manager/Microsoft.Maps/stable/2018-05-01/examples/GetAccount.json b/specification/maps/resource-manager/Microsoft.Maps/stable/2018-05-01/examples/GetAccount.json new file mode 100644 index 000000000000..f1406936717a --- /dev/null +++ b/specification/maps/resource-manager/Microsoft.Maps/stable/2018-05-01/examples/GetAccount.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "api-version": "2018-05-01", + "subscriptionId": "21a9967a-e8a9-4656-a70b-96ff1c4d05a0", + "resourceGroupName": "myResourceGroup", + "accountName": "myMapsAccount" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.Maps/accounts/myMapsAccount", + "name": "myMapsAccount", + "type": "Microsoft.Maps/accounts", + "location": "global", + "tags": { + "test": "true" + }, + "sku": { + "name": "S0", + "tier": "Standard" + } + } + }, + "404": {} + } +} diff --git a/specification/maps/resource-manager/Microsoft.Maps/stable/2018-05-01/examples/GetOperations.json b/specification/maps/resource-manager/Microsoft.Maps/stable/2018-05-01/examples/GetOperations.json new file mode 100644 index 000000000000..c2c0326eaa84 --- /dev/null +++ b/specification/maps/resource-manager/Microsoft.Maps/stable/2018-05-01/examples/GetOperations.json @@ -0,0 +1,67 @@ +{ + "parameters": { + "api-version": "2018-05-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.Maps/register/action", + "display": { + "provider": "Microsoft Maps", + "resource": "Maps Account", + "operation": "Register the provider", + "description": "Register the provider" + } + }, + { + "name": "Microsoft.Maps/accounts/write", + "display": { + "provider": "Microsoft Maps", + "resource": "Maps Account", + "operation": "Create or update a Maps Account.", + "description": "Create or update a Maps Account." + } + }, + { + "name": "Microsoft.Maps/accounts/read", + "display": { + "provider": "Microsoft Maps", + "resource": "Maps Account", + "operation": "Get a Maps Account.", + "description": "Get a Maps Account." + } + }, + { + "name": "Microsoft.Maps/accounts/delete", + "display": { + "provider": "Microsoft Maps", + "resource": "Maps Account", + "operation": "Delete a Maps Account.", + "description": "Delete a Maps Account." + } + }, + { + "name": "Microsoft.Maps/accounts/listKeys/action", + "display": { + "provider": "Microsoft Maps", + "resource": "Maps Account", + "operation": "List keys", + "description": "List Maps Account keys" + } + }, + { + "name": "Microsoft.Maps/accounts/regenerateKey/action", + "display": { + "provider": "Microsoft Maps", + "resource": "Maps Account", + "operation": "Generate new primary or secondary key", + "description": "Generate new Maps Account primary or secondary key" + } + } + ] + } + } + } +} diff --git a/specification/maps/resource-manager/Microsoft.Maps/stable/2018-05-01/examples/ListAccountsByResourceGroup.json b/specification/maps/resource-manager/Microsoft.Maps/stable/2018-05-01/examples/ListAccountsByResourceGroup.json new file mode 100644 index 000000000000..5edf2f5ba938 --- /dev/null +++ b/specification/maps/resource-manager/Microsoft.Maps/stable/2018-05-01/examples/ListAccountsByResourceGroup.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "api-version": "2018-05-01", + "subscriptionId": "21a9967a-e8a9-4656-a70b-96ff1c4d05a0", + "resourceGroupName": "myResourceGroup" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": + "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.Maps/accounts/myMapsAccount2", + "name": "myMapsAccount2", + "type": "Microsoft.Maps/accounts", + "location": "global", + "tags": { + "test": "true" + }, + "sku": { + "name": "S0", + "tier": "Standard" + } + }, + { + "id": + "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.Maps/accounts/myMapsAccount", + "name": "myMapsAccount", + "type": "Microsoft.Maps/accounts", + "location": "global", + "tags": { + "test": "true" + }, + "sku": { + "name": "S0", + "tier": "Standard" + } + } + ] + } + } + } +} diff --git a/specification/maps/resource-manager/Microsoft.Maps/stable/2018-05-01/examples/ListAccountsBySubscription.json b/specification/maps/resource-manager/Microsoft.Maps/stable/2018-05-01/examples/ListAccountsBySubscription.json new file mode 100644 index 000000000000..832171fa4c53 --- /dev/null +++ b/specification/maps/resource-manager/Microsoft.Maps/stable/2018-05-01/examples/ListAccountsBySubscription.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2018-05-01", + "subscriptionId": "21a9967a-e8a9-4656-a70b-96ff1c4d05a0" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.Maps/accounts/myMapsAccount2", + "name": "myMapsAccount2", + "type": "Microsoft.Maps/accounts", + "location": "global", + "tags": { + "test": "true" + }, + "sku": { + "name": "S0", + "tier": "Standard" + } + }, + { + "id": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.Maps/accounts/myMapsAccount", + "name": "myMapsAccount", + "type": "Microsoft.Maps/accounts", + "location": "global", + "tags": { + "test": "true" + }, + "sku": { + "name": "S0", + "tier": "Standard" + } + } + ] + } + } + } +} diff --git a/specification/maps/resource-manager/Microsoft.Maps/stable/2018-05-01/examples/ListKeys.json b/specification/maps/resource-manager/Microsoft.Maps/stable/2018-05-01/examples/ListKeys.json new file mode 100644 index 000000000000..bfd3a40fc666 --- /dev/null +++ b/specification/maps/resource-manager/Microsoft.Maps/stable/2018-05-01/examples/ListKeys.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "api-version": "2018-05-01", + "subscriptionId": "21a9967a-e8a9-4656-a70b-96ff1c4d05a0", + "resourceGroupName": "myResourceGroup", + "accountName": "myMapsAccount" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.Maps/accounts/myMapsAccount", + "primaryKey": "ZiBllKWCwXXLTO13S2TaoHoK8kPFYaoyYlAcnCcE4PQ", + "secondaryKey": "cJHpmUGNaGGO8H59p6NKGhfff9VjD278-2bi5wo0_mU" + } + }, + "404": {} + } +} diff --git a/specification/maps/resource-manager/Microsoft.Maps/stable/2018-05-01/examples/MoveAccounts.json b/specification/maps/resource-manager/Microsoft.Maps/stable/2018-05-01/examples/MoveAccounts.json new file mode 100644 index 000000000000..53ddfa258409 --- /dev/null +++ b/specification/maps/resource-manager/Microsoft.Maps/stable/2018-05-01/examples/MoveAccounts.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "api-version": "2018-05-01", + "subscriptionId": "21a9967a-e8a9-4656-a70b-96ff1c4d05a0", + "resourceGroupName": "myResourceGroup", + "moveRequest": { + "targetResourceGroup": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup2", + "resourceIds": [ + "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.Maps/accounts/myMapsAccount", + "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.Maps/accounts/myMapsAccount2" + ] + } + }, + "responses": { + "200": { + } + } +} diff --git a/specification/maps/resource-manager/Microsoft.Maps/stable/2018-05-01/examples/RegenerateKey.json b/specification/maps/resource-manager/Microsoft.Maps/stable/2018-05-01/examples/RegenerateKey.json new file mode 100644 index 000000000000..698a8020ae34 --- /dev/null +++ b/specification/maps/resource-manager/Microsoft.Maps/stable/2018-05-01/examples/RegenerateKey.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "api-version": "2018-05-01", + "subscriptionId": "21a9967a-e8a9-4656-a70b-96ff1c4d05a0", + "resourceGroupName": "myResourceGroup", + "accountName": "myMapsAccount", + "keySpecification": { + "keyType": "primary" + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.Maps/accounts/myMapsAccount", + "primaryKey": "uj0yqjjz8zG3IOSWvb_smi1q1QenGtupAqrOA1zCO6s", + "secondaryKey": "cJHpmUGNaGGO8H59p6NKGhfff9VjD278-2bi5wo0_mU" + } + }, + "404": {} + } +} diff --git a/specification/maps/resource-manager/Microsoft.Maps/stable/2018-05-01/examples/UpdateAccount.json b/specification/maps/resource-manager/Microsoft.Maps/stable/2018-05-01/examples/UpdateAccount.json new file mode 100644 index 000000000000..97e96b0acb1d --- /dev/null +++ b/specification/maps/resource-manager/Microsoft.Maps/stable/2018-05-01/examples/UpdateAccount.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "api-version": "2018-05-01", + "subscriptionId": "21a9967a-e8a9-4656-a70b-96ff1c4d05a0", + "resourceGroupName": "myResourceGroup", + "accountName": "myMapsAccount", + "MapsAccountUpdateParameters": { + "tags": { + "specialTag": "true" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.Maps/accounts/myMapsAccount", + "name": "myMapsAccount", + "type": "Microsoft.Maps/accounts", + "location": "global", + "tags": { + "specialTag": "true" + }, + "sku": { + "name": "S0", + "tier": "Standard" + } + } + }, + "404": {} + } +} diff --git a/specification/maps/resource-manager/Microsoft.Maps/stable/2018-05-01/maps-management.json b/specification/maps/resource-manager/Microsoft.Maps/stable/2018-05-01/maps-management.json new file mode 100644 index 000000000000..727b920e3175 --- /dev/null +++ b/specification/maps/resource-manager/Microsoft.Maps/stable/2018-05-01/maps-management.json @@ -0,0 +1,789 @@ +{ + "swagger": "2.0", + "info": { + "title": "Azure Maps Resource Provider", + "description": "Resource Provider", + "version": "2018-05-01", + "x-ms-code-generation-settings": { + "name": "MapsManagementClient" + } + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}": { + "put": { + "description": "Create or update a Maps Account. A Maps Account holds the keys which allow access to the Maps REST APIs.", + "operationId": "Accounts_CreateOrUpdate", + "x-ms-examples": { + "CreateAccount": { + "$ref": "./examples/CreateAccount.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AccountNameParameter" + }, + { + "name": "MapsAccountCreateParameters", + "in": "body", + "description": "The new or updated parameters for the Maps Account.", + "required": true, + "schema": { + "$ref": "#/definitions/MapsAccountCreateParameters" + } + } + ], + "responses": { + "200": { + "description": "The Account was successfully updated.", + "schema": { + "$ref": "#/definitions/MapsAccount" + } + }, + "201": { + "description": "The Account was successfully created.", + "schema": { + "$ref": "#/definitions/MapsAccount" + } + }, + "default": { + "description": "An unexpected error occurred.", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + }, + "patch": { + "description": "Updates a Maps Account. Only a subset of the parameters may be updated after creation, such as Sku and Tags.", + "operationId": "Accounts_Update", + "x-ms-examples": { + "UpdateAccount": { + "$ref": "./examples/UpdateAccount.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AccountNameParameter" + }, + { + "name": "MapsAccountUpdateParameters", + "in": "body", + "description": "The updated parameters for the Maps Account.", + "required": true, + "schema": { + "$ref": "#/definitions/MapsAccountUpdateParameters" + } + } + ], + "responses": { + "200": { + "description": "The Account was successfully updated.", + "schema": { + "$ref": "#/definitions/MapsAccount" + } + }, + "404": { + "description": "The specified Account was not found. Nothing was updated." + }, + "default": { + "description": "An unexpected error occurred.", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + }, + "delete": { + "description": "Delete a Maps Account.", + "operationId": "Accounts_Delete", + "x-ms-examples": { + "DeleteAccount": { + "$ref": "./examples/DeleteAccount.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AccountNameParameter" + } + ], + "responses": { + "200": { + "description": "The Account was deleted successfully." + }, + "204": { + "description": "The specified Account was not found. Nothing was deleted." + }, + "default": { + "description": "An unexpected error occurred.", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + }, + "get": { + "description": "Get a Maps Account.", + "operationId": "Accounts_Get", + "x-ms-examples": { + "GetAccount": { + "$ref": "./examples/GetAccount.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AccountNameParameter" + } + ], + "responses": { + "200": { + "description": "The request was successful.", + "schema": { + "$ref": "#/definitions/MapsAccount" + } + }, + "404": { + "description": "The specified Account does not exist." + }, + "default": { + "description": "An unexpected error occurred.", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts": { + "get": { + "description": "Get all Maps Accounts in a Resource Group", + "operationId": "Accounts_ListByResourceGroup", + "x-ms-examples": { + "ListAccountsByResourceGroup": { + "$ref": "./examples/ListAccountsByResourceGroup.json" + } + }, + "x-ms-pageable": { + "nextLinkName": null, + "itemName": "value" + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "The request was successful.", + "schema": { + "$ref": "#/definitions/MapsAccounts" + } + }, + "default": { + "description": "An unexpected error occurred.", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Maps/accounts": { + "get": { + "description": "Get all Maps Accounts in a Subscription", + "operationId": "Accounts_ListBySubscription", + "x-ms-examples": { + "ListAccountsBySubscription": { + "$ref": "./examples/ListAccountsBySubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": null, + "itemName": "value" + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "The request was successful.", + "schema": { + "$ref": "#/definitions/MapsAccounts" + } + }, + "default": { + "description": "An unexpected error occurred.", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/moveResources": { + "post": { + "description": "Moves Maps Accounts from one ResourceGroup (or Subscription) to another", + "operationId": "Accounts_Move", + "x-ms-examples": { + "MoveAccounts": { + "$ref": "./examples/MoveAccounts.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "description": "The name of the resource group that contains Maps Account to move.", + "required": true, + "type": "string" + }, + { + "name": "moveRequest", + "in": "body", + "description": "The details of the Maps Account move.", + "required": true, + "schema": { + "$ref": "#/definitions/MapsAccountsMoveRequest" + } + } + ], + "responses": { + "200": { + "description": "The Accounts were successfully moved." + }, + "default": { + "description": "An unexpected error occurred.", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}/listKeys": { + "post": { + "description": "Get the keys to use with the Maps APIs. A key is used to authenticate and authorize access to the Maps REST APIs. Only one key is needed at a time; two are given to provide seamless key regeneration.", + "operationId": "Accounts_ListKeys", + "x-ms-examples": { + "ListKeys": { + "$ref": "./examples/ListKeys.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AccountNameParameter" + } + ], + "responses": { + "200": { + "description": "The request was successful.", + "schema": { + "$ref": "#/definitions/MapsAccountKeys" + } + }, + "404": { + "description": "The specified Account does not exist." + }, + "default": { + "description": "An unexpected error occurred.", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}/regenerateKey": { + "post": { + "description": "Regenerate either the primary or secondary key for use with the Maps APIs. The old key will stop working immediately.", + "operationId": "Accounts_RegenerateKeys", + "x-ms-examples": { + "RegenerateKey": { + "$ref": "./examples/RegenerateKey.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AccountNameParameter" + }, + { + "name": "keySpecification", + "in": "body", + "required": true, + "description": "Which key to regenerate: primary or secondary.", + "schema": { + "$ref": "#/definitions/MapsKeySpecification" + } + } + ], + "responses": { + "200": { + "description": "The request was successful.", + "schema": { + "$ref": "#/definitions/MapsAccountKeys" + } + }, + "404": { + "description": "The specified Account does not exist." + }, + "default": { + "description": "An unexpected error occurred.", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + }, + "/providers/Microsoft.Maps/operations": { + "get": { + "description": "List operations available for the Maps Resource Provider", + "operationId": "Accounts_ListOperations", + "x-ms-examples": { + "GetOperations": { + "$ref": "./examples/GetOperations.json" + } + }, + "x-ms-pageable": { + "nextLinkName": null, + "itemName": "value" + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The request was successful.", + "schema": { + "$ref": "#/definitions/MapsOperations" + } + }, + "default": { + "description": "An unexpected error occurred.", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client Api Version." + }, + "ResourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "description": "The name of the Azure Resource Group.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "AccountNameParameter": { + "name": "accountName", + "in": "path", + "description": "The name of the Maps Account.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + } + }, + "definitions": { + "Error": { + "type": "object", + "description": "This object is returned when an error occurs in the Maps API", + "properties": { + "code": { + "type": "string", + "readOnly": true, + "description": "Error code." + }, + "message": { + "type": "string", + "readOnly": true, + "description": "If available, a human readable description of the error." + }, + "target": { + "type": "string", + "readOnly": true, + "description": "If available, the component generating the error." + }, + "details": { + "type": "array", + "readOnly": true, + "description": "If available, a list of additional details about the error.", + "items": { + "type": "object", + "properties": { + "code": { + "type": "string", + "readOnly": true, + "description": "Error code." + }, + "message": { + "type": "string", + "readOnly": true, + "description": "If available, a human readable description of the error." + }, + "target": { + "type": "string", + "readOnly": true, + "description": "If available, the component generating the error." + } + } + } + } + } + }, + "Resource": { + "description": "An Azure resource", + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "The fully qualified Maps Account resource identifier." + }, + "name": { + "readOnly": true, + "type": "string", + "description": "The name of the Maps Account, which is unique within a Resource Group." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Azure resource type." + } + }, + "x-ms-azure-resource": true + }, + "MapsAccount": { + "description": "An Azure resource which represents access to a suite of Maps REST APIs.", + "type": "object", + "properties": { + "location": { + "readOnly": true, + "type": "string", + "description": "The location of the resource." + }, + "tags": { + "readOnly": true, + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Gets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters." + }, + "sku": { + "readOnly": true, + "description": "The SKU of this account.", + "$ref": "#/definitions/Sku" + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ] + }, + "MapsAccountCreateParameters": { + "description": "Parameters used to create a new Maps Account.", + "type": "object", + "properties": { + "location": { + "type": "string", + "description": "The location of the resource." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters." + }, + "sku": { + "description": "The SKU of this account.", + "$ref": "#/definitions/Sku" + } + }, + "required": [ + "location", + "sku" + ] + }, + "MapsAccountUpdateParameters": { + "description": "Parameters used to update an existing Maps Account.", + "type": "object", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters." + }, + "sku": { + "description": "The SKU of this account.", + "$ref": "#/definitions/Sku" + } + } + }, + "MapsAccounts": { + "description": "A list of Maps Accounts.", + "type": "object", + "properties": { + "value": { + "description": "a Maps Account.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/MapsAccount" + } + } + } + }, + "Sku": { + "description": "The SKU of the Maps Account.", + "properties": { + "name": { + "description": "The name of the SKU, in standard format (such as S0).", + "type": "string" + }, + "tier": { + "readOnly": true, + "type": "string", + "description": "Gets the sku tier. This is based on the SKU name." + } + }, + "required": [ + "name" + ] + }, + "MapsAccountsMoveRequest": { + "description": "The description of what resources to move between resource groups.", + "type": "object", + "required": [ + "targetResourceGroup", + "resourceIds" + ], + "properties": { + "targetResourceGroup": { + "type": "string", + "description": "The name of the destination resource group." + }, + "resourceIds": { + "type": "array", + "items": { + "type": "string" + }, + "description": "A list of resource names to move from the source resource group." + } + } + }, + "MapsKeySpecification": { + "description": "Whether the operation refers to the primary or secondary key.", + "type": "object", + "required": [ + "keyType" + ], + "properties": { + "keyType": { + "type": "string", + "enum": [ + "primary", + "secondary" + ], + "x-ms-enum": { + "name": "KeyType", + "modelAsString": true + }, + "description": "Whether the operation refers to the primary or secondary key." + } + } + }, + "MapsAccountKeys": { + "description": "The set of keys which can be used to access the Maps REST APIs. Two keys are provided for key rotation without interruption.", + "type": "object", + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "The full Azure resource identifier of the Maps Account." + }, + "primaryKey": { + "type": "string", + "readOnly": true, + "description": "The primary key for accessing the Maps REST APIs." + }, + "secondaryKey": { + "type": "string", + "readOnly": true, + "description": "The secondary key for accessing the Maps REST APIs." + } + } + }, + "MapsOperations": { + "description": "The set of operations available for Maps.", + "type": "object", + "properties": { + "value": { + "description": "An operation available for Maps.", + "type": "array", + "readOnly": true, + "items": { + "type": "object", + "properties": { + "name": { + "type": "string", + "readOnly": true, + "description": "Operation name: {provider}/{resource}/{operation}." + }, + "display": { + "description": "The human-readable description of the operation.", + "type": "object", + "properties": { + "provider": { + "type": "string", + "readOnly": true, + "description": "Service provider: Microsoft Maps." + }, + "resource": { + "type": "string", + "readOnly": true, + "description": "Resource on which the operation is performed." + }, + "operation": { + "type": "string", + "readOnly": true, + "description": "The action that users can perform, based on their permission level." + }, + "description": { + "type": "string", + "readOnly": true, + "description": "The description of the operation." + } + } + }, + "origin": { + "type": "string", + "readOnly": true, + "description": "The origin of the operation." + } + } + } + } + } + } + } +} diff --git a/specification/locationbasedservices/resource-manager/readme.md b/specification/maps/resource-manager/readme.md similarity index 61% rename from specification/locationbasedservices/resource-manager/readme.md rename to specification/maps/resource-manager/readme.md index fc404d092771..1f7f84ef59cf 100644 --- a/specification/locationbasedservices/resource-manager/readme.md +++ b/specification/maps/resource-manager/readme.md @@ -1,12 +1,12 @@ -# LocationBasedServices +# Maps > see https://aka.ms/autorest -This is the AutoRest configuration file for LocationBasedServices. +This is the AutoRest configuration file for Maps. --- ## Getting Started -To build the SDK for LocationBasedServices, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run: +To build the SDK for Maps, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run: > `autorest` @@ -20,11 +20,11 @@ To see additional help and options, run: ### Basic Information -These are the global settings for the LocationBasedServices API. +These are the global settings for the Maps API. ``` yaml openapi-type: arm -tag: package-2017-01 +tag: package-2018-05 ``` @@ -34,7 +34,16 @@ These settings apply only when `--tag=package-2017-01` is specified on the comma ``` yaml $(tag) == 'package-2017-01' input-file: -- Microsoft.LocationBasedServices/preview/2017-01-01-preview/locationbasedservices.json +- Microsoft.Maps/stable/2017-01-01-preview/maps-management.json +``` + +### Tag: package-2018-05 + +These settings apply only when `--tag=package-2018-05` is specified on the command line. + +``` yaml $(tag) == 'package-2018-05' +input-file: +- Microsoft.Maps/stable/2018-05-01/maps-management.json ``` --- @@ -62,8 +71,8 @@ Please also specify `--csharp-sdks-folder=`. + +``` yaml $(tag)=='package-2018-05' && $(go) +output-folder: $(go-sdk-folder)/services/maps/mgmt/2018-05-01/maps +``` + ### Tag: package-2017-01 and go These settings apply only when `--tag=package-2017-01 --go` is specified on the command line. Please also specify `--go-sdk-folder=`. ``` yaml $(tag)=='package-2017-01' && $(go) -output-folder: $(go-sdk-folder)/services/preview/location/mgmt/2017-01-01-preview/location +output-folder: $(go-sdk-folder)/services/maps/mgmt/2017-01-01-preview/maps ``` @@ -108,8 +127,8 @@ Please also specify `--azure-libraries-for-java-folder=