From 275ba1bca07919061f29b9ad522829db0c69fe6a Mon Sep 17 00:00:00 2001 From: Daniel Stack Date: Thu, 6 May 2021 15:41:05 -0700 Subject: [PATCH 1/8] Adds base for updating Microsoft.Maps from version stable/2021-02-01 to version 2021-07-01-preview --- .../examples/CreateAccount.json | 81 ++ .../examples/CreateAccountGen2.json | 81 ++ .../examples/CreateMapsCreator.json | 50 + .../examples/DeleteAccount.json | 12 + .../examples/DeleteMapsCreator.json | 13 + .../examples/GetAccount.json | 39 + .../examples/GetMapsCreator.json | 26 + .../examples/GetOperations.json | 104 ++ .../examples/ListAccountsByResourceGroup.json | 54 + .../examples/ListAccountsBySubscription.json | 53 + .../2021-07-01-preview/examples/ListKeys.json | 18 + .../examples/ListMapsCreatorsByAccount.json | 30 + .../examples/RegenerateKey.json | 21 + .../examples/UpdateAccount.json | 36 + .../examples/UpdateAccountGen1.json | 34 + .../examples/UpdateAccountGen2.json | 34 + .../examples/UpdateMapsCreator.json | 34 + .../2021-07-01-preview/maps-management.json | 1120 +++++++++++++++++ 18 files changed, 1840 insertions(+) create mode 100644 specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/CreateAccount.json create mode 100644 specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/CreateAccountGen2.json create mode 100644 specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/CreateMapsCreator.json create mode 100644 specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/DeleteAccount.json create mode 100644 specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/DeleteMapsCreator.json create mode 100644 specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/GetAccount.json create mode 100644 specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/GetMapsCreator.json create mode 100644 specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/GetOperations.json create mode 100644 specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/ListAccountsByResourceGroup.json create mode 100644 specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/ListAccountsBySubscription.json create mode 100644 specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/ListKeys.json create mode 100644 specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/ListMapsCreatorsByAccount.json create mode 100644 specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/RegenerateKey.json create mode 100644 specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/UpdateAccount.json create mode 100644 specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/UpdateAccountGen1.json create mode 100644 specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/UpdateAccountGen2.json create mode 100644 specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/UpdateMapsCreator.json create mode 100644 specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/maps-management.json diff --git a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/CreateAccount.json b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/CreateAccount.json new file mode 100644 index 000000000000..abd6a5aa3d87 --- /dev/null +++ b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/CreateAccount.json @@ -0,0 +1,81 @@ +{ + "parameters": { + "api-version": "2021-02-01", + "subscriptionId": "21a9967a-e8a9-4656-a70b-96ff1c4d05a0", + "resourceGroupName": "myResourceGroup", + "accountName": "myMapsAccount", + "MapsAccount": { + "location": "global", + "sku": { + "name": "S0" + }, + "kind": "Gen1", + "tags": { + "test": "true" + }, + "properties": { + "disableLocalAuth": false + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.Maps/accounts/myMapsAccount", + "name": "myMapsAccount", + "type": "Microsoft.Maps/accounts", + "kind": "Gen1", + "location": "global", + "tags": { + "test": "true" + }, + "systemData": { + "createdBy": "string", + "createdByType": "Application", + "createdAt": "2021-02-01T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "Application", + "lastModifiedAt": "2021-02-01T01:01:01.1075056Z" + }, + "sku": { + "name": "S0", + "tier": "Standard" + }, + "properties": { + "uniqueId": "b2e763e6-d6f3-4858-9e2b-7cf8df85c593", + "provisioningState": "Succeeded", + "disableLocalAuth": false + } + } + }, + "201": { + "body": { + "id": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.Maps/accounts/myMapsAccount", + "name": "myMapsAccount", + "type": "Microsoft.Maps/accounts", + "kind": "Gen1", + "location": "global", + "tags": { + "test": "true" + }, + "systemData": { + "createdBy": "string", + "createdByType": "Application", + "createdAt": "2021-02-01T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "Application", + "lastModifiedAt": "2021-02-01T01:01:01.1075056Z" + }, + "sku": { + "name": "S0", + "tier": "Standard" + }, + "properties": { + "uniqueId": "b2e763e6-d6f3-4858-9e2b-7cf8df85c593", + "provisioningState": "Succeeded", + "disableLocalAuth": false + } + } + } + } +} diff --git a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/CreateAccountGen2.json b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/CreateAccountGen2.json new file mode 100644 index 000000000000..619ec69d60b2 --- /dev/null +++ b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/CreateAccountGen2.json @@ -0,0 +1,81 @@ +{ + "parameters": { + "api-version": "2021-02-01", + "subscriptionId": "21a9967a-e8a9-4656-a70b-96ff1c4d05a0", + "resourceGroupName": "myResourceGroup", + "accountName": "myMapsAccount", + "MapsAccount": { + "location": "global", + "sku": { + "name": "G2" + }, + "kind": "Gen2", + "tags": { + "test": "true" + }, + "properties": { + "disableLocalAuth": true + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.Maps/accounts/myMapsAccount", + "name": "myMapsAccount", + "type": "Microsoft.Maps/accounts", + "kind": "Gen2", + "location": "global", + "tags": { + "test": "true" + }, + "systemData": { + "createdBy": "string", + "createdByType": "Application", + "createdAt": "2021-02-01T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "Application", + "lastModifiedAt": "2021-02-01T01:01:01.1075056Z" + }, + "sku": { + "name": "G2", + "tier": "Standard" + }, + "properties": { + "uniqueId": "b2e763e6-d6f3-4858-9e2b-7cf8df85c593", + "provisioningState": "Succeeded", + "disableLocalAuth": true + } + } + }, + "201": { + "body": { + "id": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.Maps/accounts/myMapsAccount", + "name": "myMapsAccount", + "type": "Microsoft.Maps/accounts", + "kind": "Gen2", + "location": "global", + "tags": { + "test": "true" + }, + "systemData": { + "createdBy": "string", + "createdByType": "Application", + "createdAt": "2021-02-01T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "Application", + "lastModifiedAt": "2021-02-01T01:01:01.1075056Z" + }, + "sku": { + "name": "G2", + "tier": "Standard" + }, + "properties": { + "uniqueId": "b2e763e6-d6f3-4858-9e2b-7cf8df85c593", + "provisioningState": "Succeeded", + "disableLocalAuth": true + } + } + } + } +} diff --git a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/CreateMapsCreator.json b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/CreateMapsCreator.json new file mode 100644 index 000000000000..a6c986a1ca55 --- /dev/null +++ b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/CreateMapsCreator.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "api-version": "2021-02-01", + "subscriptionId": "21a9967a-e8a9-4656-a70b-96ff1c4d05a0", + "resourceGroupName": "myResourceGroup", + "accountName": "myMapsAccount", + "creatorName": "myCreator", + "CreatorResource": { + "location": "eastus2", + "tags": { + "test": "true" + }, + "properties": { + "storageUnits": 5 + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.Maps/accounts/myMapsAccount/creators/myCreator", + "name": "myCreator", + "type": "Microsoft.Maps/accounts/creators", + "location": "eastus2", + "tags": { + "test": "true" + }, + "properties": { + "provisioningState": "Created", + "storageUnits": 5 + } + } + }, + "201": { + "body": { + "id": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.Maps/accounts/myMapsAccount/creators/myCreator", + "name": "myCreator", + "type": "Microsoft.Maps/accounts/creators", + "location": "eastus2", + "tags": { + "test": "true" + }, + "properties": { + "provisioningState": "Created", + "storageUnits": 5 + } + } + } + } +} diff --git a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/DeleteAccount.json b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/DeleteAccount.json new file mode 100644 index 000000000000..1b4a102a5973 --- /dev/null +++ b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/DeleteAccount.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "api-version": "2021-02-01", + "subscriptionId": "21a9967a-e8a9-4656-a70b-96ff1c4d05a0", + "resourceGroupName": "myResourceGroup", + "accountName": "myMapsAccount" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/DeleteMapsCreator.json b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/DeleteMapsCreator.json new file mode 100644 index 000000000000..807ae880cd37 --- /dev/null +++ b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/DeleteMapsCreator.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2021-02-01", + "subscriptionId": "21a9967a-e8a9-4656-a70b-96ff1c4d05a0", + "resourceGroupName": "myResourceGroup", + "accountName": "myMapsAccount", + "creatorName": "myCreator" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/GetAccount.json b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/GetAccount.json new file mode 100644 index 000000000000..1ea4a575ab21 --- /dev/null +++ b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/GetAccount.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2021-02-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", + "kind": "Gen1", + "systemData": { + "createdBy": "string", + "createdByType": "Application", + "createdAt": "2021-02-01T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "Application", + "lastModifiedAt": "2021-02-01T01:01:01.1075056Z" + }, + "tags": { + "test": "true" + }, + "sku": { + "name": "S0", + "tier": "Standard" + }, + "properties": { + "uniqueId": "string", + "disableLocalAuth": false, + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/GetMapsCreator.json b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/GetMapsCreator.json new file mode 100644 index 000000000000..6abd9e024db8 --- /dev/null +++ b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/GetMapsCreator.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "api-version": "2021-02-01", + "subscriptionId": "21a9967a-e8a9-4656-a70b-96ff1c4d05a0", + "resourceGroupName": "myResourceGroup", + "accountName": "myMapsAccount", + "creatorName": "myCreator" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.Maps/accounts/myMapsAccount/creators/myCreator", + "name": "myCreator", + "type": "Microsoft.Maps/accounts/creators", + "location": "unitedstates", + "tags": { + "test": "true" + }, + "properties": { + "provisioningState": "Succeeded", + "storageUnits": 5 + } + } + } + } +} diff --git a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/GetOperations.json b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/GetOperations.json new file mode 100644 index 000000000000..0846df7633bc --- /dev/null +++ b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/GetOperations.json @@ -0,0 +1,104 @@ +{ + "parameters": { + "api-version": "2021-02-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.Maps/register/action", + "isDataAction": false, + "display": { + "provider": "Microsoft Maps", + "resource": "Maps Account", + "operation": "Register the provider", + "description": "Register the provider" + } + }, + { + "name": "Microsoft.Maps/accounts/write", + "isDataAction": false, + "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", + "isDataAction": false, + "display": { + "provider": "Microsoft Maps", + "resource": "Maps Account", + "operation": "Get a Maps Account.", + "description": "Get a Maps Account." + } + }, + { + "name": "Microsoft.Maps/accounts/delete", + "isDataAction": false, + "display": { + "provider": "Microsoft Maps", + "resource": "Maps Account", + "operation": "Delete a Maps Account.", + "description": "Delete a Maps Account." + } + }, + { + "name": "Microsoft.Maps/accounts/listKeys/action", + "isDataAction": false, + "display": { + "provider": "Microsoft Maps", + "resource": "Maps Account", + "operation": "List keys", + "description": "List Maps Account keys" + } + }, + { + "name": "Microsoft.Maps/accounts/regenerateKey/action", + "isDataAction": false, + "display": { + "provider": "Microsoft Maps", + "resource": "Maps Account", + "operation": "Generate new primary or secondary key", + "description": "Generate new Maps Account primary or secondary key" + } + }, + { + "name": "Microsoft.Maps/accounts/creators/write", + "isDataAction": false, + "display": { + "provider": "Microsoft Maps", + "resource": "Creator", + "operation": "Create or update a Maps Creator.", + "description": "Create or update a Maps Creator." + } + }, + { + "name": "Microsoft.Maps/accounts/creators/read", + "isDataAction": false, + "display": { + "provider": "Microsoft Maps", + "resource": "Creator", + "operation": "Get a Maps Creator.", + "description": "Get a Maps Creator." + } + }, + { + "name": "Microsoft.Maps/accounts/creators/delete", + "isDataAction": false, + "display": { + "provider": "Microsoft Maps", + "resource": "Creator", + "operation": "Delete a Maps Creator.", + "description": "Delete a Maps Creator." + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/ListAccountsByResourceGroup.json b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/ListAccountsByResourceGroup.json new file mode 100644 index 000000000000..c85b2d489f2b --- /dev/null +++ b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/ListAccountsByResourceGroup.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "api-version": "2020-02-01-preview", + "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", + "kind": "Gen1", + "tags": { + "test": "true" + }, + "sku": { + "name": "S0", + "tier": "Standard" + }, + "properties": { + "uniqueId": "b2e763e6-d6f3-4858-9e2b-7cf8df85c593", + "provisioningState": "Succeeded", + "disableLocalAuth": false + } + }, + { + "id": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.Maps/accounts/myMapsAccount", + "name": "myMapsAccount", + "type": "Microsoft.Maps/accounts", + "location": "global", + "kind": "Gen2", + "tags": { + "test": "true" + }, + "sku": { + "name": "G2", + "tier": "Standard" + }, + "properties": { + "uniqueId": "b2e763e6-d6f3-4858-9e2b-7cf8df85c592", + "provisioningState": "Succeeded", + "disableLocalAuth": true + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/ListAccountsBySubscription.json b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/ListAccountsBySubscription.json new file mode 100644 index 000000000000..2c10ecc55dea --- /dev/null +++ b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/ListAccountsBySubscription.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "api-version": "2021-02-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", + "kind": "Gen1", + "tags": { + "test": "true" + }, + "sku": { + "name": "S0", + "tier": "Standard" + }, + "properties": { + "uniqueId": "b2e763e6-d6f3-4858-9e2b-7cf8df85c593", + "provisioningState": "Succeeded", + "disableLocalAuth": false + } + }, + { + "id": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.Maps/accounts/myMapsAccount", + "name": "myMapsAccount", + "type": "Microsoft.Maps/accounts", + "location": "global", + "kind": "Gen2", + "tags": { + "test": "true" + }, + "sku": { + "name": "G2", + "tier": "Standard" + }, + "properties": { + "uniqueId": "b2e763e6-d6f3-4858-9e2b-7cf8df85c592", + "provisioningState": "Succeeded", + "disableLocalAuth": true + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/ListKeys.json b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/ListKeys.json new file mode 100644 index 000000000000..8b10222161d4 --- /dev/null +++ b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/ListKeys.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "api-version": "2021-02-01", + "subscriptionId": "21a9967a-e8a9-4656-a70b-96ff1c4d05a0", + "resourceGroupName": "myResourceGroup", + "accountName": "myMapsAccount" + }, + "responses": { + "200": { + "body": { + "primaryKey": "", + "primaryKeyLastUpdated": "2021-02-01T01:01:01.1075056Z", + "secondaryKey": "", + "secondaryKeyLastUpdated": "2021-02-01T01:01:01.1075056Z" + } + } + } +} diff --git a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/ListMapsCreatorsByAccount.json b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/ListMapsCreatorsByAccount.json new file mode 100644 index 000000000000..c8bf66ceef6e --- /dev/null +++ b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/ListMapsCreatorsByAccount.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "api-version": "2021-02-01", + "subscriptionId": "21a9967a-e8a9-4656-a70b-96ff1c4d05a0", + "resourceGroupName": "myResourceGroup", + "accountName": "myMapsAccount" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.Maps/accounts/myMapsAccount/creators/myCreator", + "name": "myCreator", + "type": "Microsoft.Maps/accounts/creators", + "location": "unitedstates", + "tags": { + "test": "true" + }, + "properties": { + "provisioningState": "Succeeded", + "storageUnits": 5 + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/RegenerateKey.json b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/RegenerateKey.json new file mode 100644 index 000000000000..4d595fdd7959 --- /dev/null +++ b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/RegenerateKey.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "api-version": "2021-02-01", + "subscriptionId": "21a9967a-e8a9-4656-a70b-96ff1c4d05a0", + "resourceGroupName": "myResourceGroup", + "accountName": "myMapsAccount", + "keySpecification": { + "keyType": "primary" + } + }, + "responses": { + "200": { + "body": { + "primaryKey": "", + "primaryKeyLastUpdated": "2021-02-01T01:01:01.1075056Z", + "secondaryKey": "", + "secondaryKeyLastUpdated": "2021-02-01T01:01:01.1075056Z" + } + } + } +} diff --git a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/UpdateAccount.json b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/UpdateAccount.json new file mode 100644 index 000000000000..7891be59afd1 --- /dev/null +++ b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/UpdateAccount.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "api-version": "2021-02-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", + "kind": "Gen1", + "tags": { + "specialTag": "true" + }, + "sku": { + "name": "S0", + "tier": "Standard" + }, + "properties": { + "uniqueId": "b2e763e6-d6f3-4858-9e2b-7cf8df85c593", + "provisioningState": "Succeeded", + "disableLocalAuth": false + } + } + } + } +} diff --git a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/UpdateAccountGen1.json b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/UpdateAccountGen1.json new file mode 100644 index 000000000000..7a7d0ee1799f --- /dev/null +++ b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/UpdateAccountGen1.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2021-02-01", + "subscriptionId": "21a9967a-e8a9-4656-a70b-96ff1c4d05a0", + "resourceGroupName": "myResourceGroup", + "accountName": "myMapsAccount", + "MapsAccountUpdateParameters": { + "kind": "Gen1", + "sku": { + "name": "S1" + } + } + }, + "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", + "kind": "Gen1", + "sku": { + "name": "S1", + "tier": "Standard" + }, + "properties": { + "uniqueId": "b2e763e6-d6f3-4858-9e2b-7cf8df85c593", + "provisioningState": "Succeeded", + "disableLocalAuth": false + } + } + } + } +} diff --git a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/UpdateAccountGen2.json b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/UpdateAccountGen2.json new file mode 100644 index 000000000000..42504f70b0ed --- /dev/null +++ b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/UpdateAccountGen2.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2021-02-01", + "subscriptionId": "21a9967a-e8a9-4656-a70b-96ff1c4d05a0", + "resourceGroupName": "myResourceGroup", + "accountName": "myMapsAccount", + "MapsAccountUpdateParameters": { + "kind": "Gen2", + "sku": { + "name": "G2" + } + } + }, + "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", + "kind": "Gen2", + "sku": { + "name": "G2", + "tier": "Standard" + }, + "properties": { + "uniqueId": "b2e763e6-d6f3-4858-9e2b-7cf8df85c593", + "provisioningState": "Succeeded", + "disableLocalAuth": false + } + } + } + } +} diff --git a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/UpdateMapsCreator.json b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/UpdateMapsCreator.json new file mode 100644 index 000000000000..66408b87d9db --- /dev/null +++ b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/UpdateMapsCreator.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2021-02-01", + "subscriptionId": "21a9967a-e8a9-4656-a70b-96ff1c4d05a0", + "resourceGroupName": "myResourceGroup", + "accountName": "myMapsAccount", + "creatorName": "myCreator", + "CreatorUpdateParameters": { + "tags": { + "specialTag": "true" + }, + "properties": { + "storageUnits": 10 + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.Maps/accounts/myMapsAccount/creators/myCreator", + "name": "myCreator", + "type": "Microsoft.Maps/accounts/creators", + "location": "unitedstates", + "tags": { + "specialTag": "true" + }, + "properties": { + "provisioningState": "Succeeded", + "storageUnits": 10 + } + } + } + } +} diff --git a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/maps-management.json b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/maps-management.json new file mode 100644 index 000000000000..9bda39a27a01 --- /dev/null +++ b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/maps-management.json @@ -0,0 +1,1120 @@ +{ + "swagger": "2.0", + "info": { + "title": "Azure Maps Resource Provider", + "description": "Resource Provider", + "version": "2021-02-01" + }, + "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": { + "tags": [ + "Accounts" + ], + "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": { + "Create Gen1 Account": { + "$ref": "./examples/CreateAccount.json" + }, + "Create Gen2 Account": { + "$ref": "./examples/CreateAccountGen2.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AccountNameParameter" + }, + { + "name": "MapsAccount", + "in": "body", + "description": "The new or updated parameters for the Maps Account.", + "required": true, + "schema": { + "$ref": "#/definitions/MapsAccount" + } + } + ], + "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": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "patch": { + "tags": [ + "Accounts" + ], + "description": "Updates a Maps Account. Only a subset of the parameters may be updated after creation, such as Sku, Tags, Properties.", + "operationId": "Accounts_Update", + "x-ms-examples": { + "Update Account Tags": { + "$ref": "./examples/UpdateAccount.json" + }, + "Update to Gen2 Account": { + "$ref": "./examples/UpdateAccountGen2.json" + }, + "Update to Gen1 Account": { + "$ref": "./examples/UpdateAccountGen1.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/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" + } + }, + "default": { + "description": "An unexpected error occurred.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "Accounts" + ], + "description": "Delete a Maps Account.", + "operationId": "Accounts_Delete", + "x-ms-examples": { + "DeleteAccount": { + "$ref": "./examples/DeleteAccount.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/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": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "get": { + "tags": [ + "Accounts" + ], + "description": "Get a Maps Account.", + "operationId": "Accounts_Get", + "x-ms-examples": { + "GetAccount": { + "$ref": "./examples/GetAccount.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AccountNameParameter" + } + ], + "responses": { + "200": { + "description": "The request was successful.", + "schema": { + "$ref": "#/definitions/MapsAccount" + } + }, + "default": { + "description": "An unexpected error occurred.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts": { + "get": { + "tags": [ + "Accounts" + ], + "description": "Get all Maps Accounts in a Resource Group", + "operationId": "Accounts_ListByResourceGroup", + "x-ms-examples": { + "List Accounts By Resource Group": { + "$ref": "./examples/ListAccountsByResourceGroup.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "The request was successful.", + "schema": { + "$ref": "#/definitions/MapsAccounts" + } + }, + "default": { + "description": "An unexpected error occurred.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Maps/accounts": { + "get": { + "tags": [ + "Accounts" + ], + "description": "Get all Maps Accounts in a Subscription", + "operationId": "Accounts_ListBySubscription", + "x-ms-examples": { + "List Accounts By Subscription": { + "$ref": "./examples/ListAccountsBySubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "The request was successful.", + "schema": { + "$ref": "#/definitions/MapsAccounts" + } + }, + "default": { + "description": "An unexpected error occurred.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}/listKeys": { + "post": { + "tags": [ + "Accounts" + ], + "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": { + "List Keys": { + "$ref": "./examples/ListKeys.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AccountNameParameter" + } + ], + "responses": { + "200": { + "description": "The request was successful.", + "schema": { + "$ref": "#/definitions/MapsAccountKeys" + } + }, + "default": { + "description": "An unexpected error occurred.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}/regenerateKey": { + "post": { + "tags": [ + "Accounts" + ], + "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": { + "Regenerate Key": { + "$ref": "./examples/RegenerateKey.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/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" + } + }, + "default": { + "description": "An unexpected error occurred.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Maps/operations": { + "get": { + "tags": [ + "Operations" + ], + "description": "List operations available for the Maps Resource Provider", + "operationId": "Maps_ListOperations", + "x-ms-examples": { + "Get Operations": { + "$ref": "./examples/GetOperations.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The request was successful.", + "schema": { + "$ref": "#/definitions/MapsOperations" + } + }, + "default": { + "description": "An unexpected error occurred.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}/creators": { + "get": { + "tags": [ + "Creators" + ], + "description": "Get all Creator instances for an Azure Maps Account", + "operationId": "Creators_ListByAccount", + "x-ms-examples": { + "List Creator Resources By Account": { + "$ref": "./examples/ListMapsCreatorsByAccount.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AccountNameParameter" + } + ], + "responses": { + "200": { + "description": "The request was successful.", + "schema": { + "$ref": "#/definitions/CreatorList" + } + }, + "default": { + "description": "An unexpected error occurred.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}/creators/{creatorName}": { + "put": { + "tags": [ + "Creators" + ], + "description": "Create or update a Maps Creator resource. Creator resource will manage Azure resources required to populate a custom set of mapping data. It requires an account to exist before it can be created.", + "operationId": "Creators_CreateOrUpdate", + "x-ms-examples": { + "Create Creator Resource": { + "$ref": "./examples/CreateMapsCreator.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AccountNameParameter" + }, + { + "$ref": "#/parameters/CreatorNameParameter" + }, + { + "name": "CreatorResource", + "in": "body", + "description": "The new or updated parameters for the Creator resource.", + "required": true, + "schema": { + "$ref": "#/definitions/Creator" + } + } + ], + "responses": { + "200": { + "description": "The Creator is updated with the provided properties.", + "schema": { + "$ref": "#/definitions/Creator" + } + }, + "201": { + "description": "The Creator will be created asynchronously. The Creator will be ready to use once the provisioningState property changed to 'Succeeded' through creators Get API.", + "schema": { + "$ref": "#/definitions/Creator" + } + }, + "default": { + "description": "An unexpected error occurred.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "patch": { + "tags": [ + "Creators" + ], + "description": "Updates the Maps Creator resource. Only a subset of the parameters may be updated after creation, such as Tags.", + "operationId": "Creators_Update", + "x-ms-examples": { + "Update Creator Resource": { + "$ref": "./examples/UpdateMapsCreator.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AccountNameParameter" + }, + { + "$ref": "#/parameters/CreatorNameParameter" + }, + { + "name": "CreatorUpdateParameters", + "in": "body", + "description": "The update parameters for Maps Creator.", + "required": true, + "schema": { + "$ref": "#/definitions/CreatorUpdateParameters" + } + } + ], + "responses": { + "200": { + "description": "The Maps Creator was successfully updated.", + "schema": { + "$ref": "#/definitions/Creator" + } + }, + "default": { + "description": "An unexpected error occurred.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "Creators" + ], + "description": "Delete a Maps Creator resource.", + "operationId": "Creators_Delete", + "x-ms-examples": { + "Delete Creator Resource": { + "$ref": "./examples/DeleteMapsCreator.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AccountNameParameter" + }, + { + "$ref": "#/parameters/CreatorNameParameter" + } + ], + "responses": { + "200": { + "description": "The Maps Creator will be deleted." + }, + "204": { + "description": "The specified Maps Creator resource was not found. Nothing was deleted." + }, + "default": { + "description": "An unexpected error occurred.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "get": { + "tags": [ + "Creators" + ], + "description": "Get a Maps Creator resource.", + "operationId": "Creators_Get", + "x-ms-examples": { + "Get Creator Resource": { + "$ref": "./examples/GetMapsCreator.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AccountNameParameter" + }, + { + "$ref": "#/parameters/CreatorNameParameter" + } + ], + "responses": { + "200": { + "description": "The request was successful.", + "schema": { + "$ref": "#/definitions/Creator" + } + }, + "default": { + "description": "An unexpected error occurred.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + } + }, + "parameters": { + "AccountNameParameter": { + "name": "accountName", + "in": "path", + "description": "The name of the Maps Account.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "PrivateAtlasNameParameter": { + "name": "privateAtlasName", + "in": "path", + "description": "The name of the Private Atlas instance.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "CreatorNameParameter": { + "name": "creatorName", + "in": "path", + "description": "The name of the Maps Creator instance.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + } + }, + "definitions": { + "Creator": { + "description": "An Azure resource which represents Maps Creator product and provides ability to manage private location data.", + "type": "object", + "properties": { + "properties": { + "description": "The Creator resource properties.", + "$ref": "#/definitions/CreatorProperties" + } + }, + "required": [ + "properties" + ], + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/TrackedResource" + } + ], + "x-ms-azure-resource": true + }, + "MapsAccount": { + "description": "An Azure resource which represents access to a suite of Maps REST APIs.", + "type": "object", + "properties": { + "sku": { + "description": "The SKU of this account.", + "$ref": "#/definitions/Sku" + }, + "kind": { + "description": "Get or Set Kind property.", + "$ref": "#/definitions/Kind" + }, + "systemData": { + "readOnly": true, + "description": "The system meta data relating to this resource.", + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" + }, + "properties": { + "description": "The map account properties.", + "$ref": "#/definitions/MapsAccountProperties" + } + }, + "required": [ + "sku" + ], + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/TrackedResource" + } + ], + "x-ms-azure-resource": true + }, + "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." + }, + "kind": { + "description": "Get or Set Kind property.", + "$ref": "#/definitions/Kind" + }, + "sku": { + "description": "The SKU of this account.", + "$ref": "#/definitions/Sku" + }, + "properties": { + "description": "The map account properties.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/MapsAccountProperties" + } + } + }, + "CreatorUpdateParameters": { + "description": "Parameters used to update an existing Creator resource.", + "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." + }, + "properties": { + "description": "Creator resource properties.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/CreatorProperties" + } + } + }, + "MapsAccounts": { + "description": "A list of Maps Accounts.", + "type": "object", + "properties": { + "value": { + "description": "a Maps Account.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/MapsAccount" + } + }, + "nextLink": { + "description": "URL client should use to fetch the next page (per server side paging).\r\nIt's null for now, added for future use.", + "type": "string" + } + } + }, + "CreatorList": { + "description": "A list of Creator resources.", + "type": "object", + "properties": { + "value": { + "description": "a Creator account.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Creator" + } + }, + "nextLink": { + "description": "URL client should use to fetch the next page (per server side paging).\r\nIt's null for now, added for future use.", + "type": "string" + } + } + }, + "Kind": { + "description": "The Kind of the Maps Account.", + "type": "string", + "default": "Gen1", + "enum": [ + "Gen1", + "Gen2" + ], + "x-ms-enum": { + "name": "kind", + "modelAsString": true + } + }, + "Sku": { + "description": "The SKU of the Maps Account.", + "type": "object", + "properties": { + "name": { + "description": "The name of the SKU, in standard format (such as S0).", + "type": "string", + "enum": [ + "S0", + "S1", + "G2" + ], + "x-ms-enum": { + "name": "name", + "modelAsString": true + } + }, + "tier": { + "readOnly": true, + "type": "string", + "description": "Gets the sku tier. This is based on the SKU name." + } + }, + "required": [ + "name" + ] + }, + "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": { + "primaryKeyLastUpdated": { + "type": "string", + "readOnly": true, + "description": "The last updated date and time of the primary key." + }, + "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." + }, + "secondaryKeyLastUpdated": { + "type": "string", + "readOnly": true, + "description": "The last updated date and time of the secondary key." + } + } + }, + "MapsOperations": { + "description": "The set of operations available for Maps.", + "type": "object", + "properties": { + "value": { + "description": "An operation available for Maps.", + "type": "array", + "readOnly": true, + "uniqueItems": false, + "items": { + "$ref": "#/definitions/OperationDetail" + } + }, + "nextLink": { + "description": "URL client should use to fetch the next page (per server side paging).\r\nIt's null for now, added for future use.", + "type": "string" + } + } + }, + "OperationDetail": { + "description": "Operation detail payload", + "type": "object", + "properties": { + "name": { + "description": "Name of the operation", + "type": "string" + }, + "isDataAction": { + "description": "Indicates whether the operation is a data action", + "type": "boolean" + }, + "display": { + "$ref": "#/definitions/OperationDisplay", + "description": "Display of the operation" + }, + "origin": { + "description": "Origin of the operation", + "type": "string" + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/OperationProperties", + "description": "Properties of the operation" + } + } + }, + "OperationDisplay": { + "description": "Operation display payload", + "type": "object", + "properties": { + "provider": { + "description": "Resource provider of the operation", + "type": "string" + }, + "resource": { + "description": "Resource of the operation", + "type": "string" + }, + "operation": { + "description": "Localized friendly name for the operation", + "type": "string" + }, + "description": { + "description": "Localized friendly description for the operation", + "type": "string" + } + } + }, + "OperationProperties": { + "description": "Properties of operation, include metric specifications.", + "properties": { + "serviceSpecification": { + "$ref": "#/definitions/ServiceSpecification", + "description": "One property of operation, include metric specifications." + } + } + }, + "ServiceSpecification": { + "description": "One property of operation, include metric specifications.", + "properties": { + "metricSpecifications": { + "description": "Metric specifications of operation.", + "type": "array", + "items": { + "$ref": "#/definitions/MetricSpecification" + } + } + } + }, + "MetricSpecification": { + "description": "Metric specification of operation.", + "properties": { + "name": { + "type": "string", + "description": "Name of metric specification." + }, + "displayName": { + "type": "string", + "description": "Display name of metric specification." + }, + "displayDescription": { + "type": "string", + "description": "Display description of metric specification." + }, + "unit": { + "type": "string", + "description": "Unit could be Count." + }, + "dimensions": { + "description": "Dimensions of map account.", + "type": "array", + "items": { + "$ref": "#/definitions/Dimension" + } + }, + "aggregationType": { + "type": "string", + "description": "Aggregation type could be Average." + }, + "fillGapWithZero": { + "type": "boolean", + "description": "The property to decide fill gap with zero or not." + }, + "category": { + "type": "string", + "description": "The category this metric specification belong to, could be Capacity." + }, + "resourceIdDimensionNameOverride": { + "type": "string", + "description": "Account Resource Id." + } + } + }, + "Dimension": { + "description": "Dimension of map account, for example API Category, Api Name, Result Type, and Response Code.", + "properties": { + "name": { + "type": "string", + "description": "Display name of dimension." + }, + "displayName": { + "type": "string", + "description": "Display name of dimension." + } + } + }, + "MapsAccountProperties": { + "description": "Additional Map account properties", + "type": "object", + "properties": { + "uniqueId": { + "description": "A unique identifier for the maps account", + "type": "string", + "readOnly": true + }, + "disableLocalAuth": { + "description": "Allows toggle functionality on Azure Policy to disable Azure Maps local authentication support. This will disable Shared Keys authentication from any usage.", + "type": "boolean", + "default": false + }, + "provisioningState": { + "type": "string", + "description": "the state of the provisioning.", + "readOnly": true + } + } + }, + "CreatorProperties": { + "description": "Creator resource properties", + "type": "object", + "properties": { + "provisioningState": { + "description": "The state of the resource provisioning, terminal states: Succeeded, Failed, Canceled", + "type": "string", + "readOnly": true + }, + "storageUnits": { + "description": "The storage units to be allocated. Integer values from 1 to 100, inclusive.", + "type": "integer", + "format": "int32", + "minimum": 1, + "maximum": 100 + } + }, + "required": [ + "storageUnits" + ] + } + } +} From d8826e0993e844020a0ff3648796a46d0c999d56 Mon Sep 17 00:00:00 2001 From: Daniel Stack Date: Thu, 6 May 2021 15:41:26 -0700 Subject: [PATCH 2/8] Updates readme --- specification/maps/resource-manager/readme.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/specification/maps/resource-manager/readme.md b/specification/maps/resource-manager/readme.md index 533aff3a7308..d9c399d3d708 100644 --- a/specification/maps/resource-manager/readme.md +++ b/specification/maps/resource-manager/readme.md @@ -28,9 +28,18 @@ These are the global settings for the Maps API. title: AzureMapsManagementClient description: Azure Maps openapi-type: arm -tag: package-2021-02 +tag: package-preview-2021-07 ``` + +### Tag: package-preview-2021-07 + +These settings apply only when `--tag=package-preview-2021-07` is specified on the command line. + +```yaml $(tag) == 'package-preview-2021-07' +input-file: + - Microsoft.Maps/preview/2021-07-01-preview/maps-management.json +``` ### Tag: package-2021-02 These settings apply only when `--tag=package-2021-02` is specified on the command line. @@ -253,4 +262,3 @@ directive: from: maps-management.json reason: standard property being applied to all azure resources. ``` - From c3c96197374e56f2e3a57bfd5f8a879c8fe7a9ea Mon Sep 17 00:00:00 2001 From: Daniel Stack Date: Thu, 6 May 2021 15:41:27 -0700 Subject: [PATCH 3/8] Updates API version in new specs and examples --- .../2021-07-01-preview/examples/CreateAccount.json | 10 +++++----- .../2021-07-01-preview/examples/CreateAccountGen2.json | 10 +++++----- .../2021-07-01-preview/examples/CreateMapsCreator.json | 2 +- .../2021-07-01-preview/examples/DeleteAccount.json | 2 +- .../2021-07-01-preview/examples/DeleteMapsCreator.json | 2 +- .../2021-07-01-preview/examples/GetAccount.json | 6 +++--- .../2021-07-01-preview/examples/GetMapsCreator.json | 2 +- .../2021-07-01-preview/examples/GetOperations.json | 2 +- .../examples/ListAccountsBySubscription.json | 2 +- .../preview/2021-07-01-preview/examples/ListKeys.json | 6 +++--- .../examples/ListMapsCreatorsByAccount.json | 2 +- .../2021-07-01-preview/examples/RegenerateKey.json | 6 +++--- .../2021-07-01-preview/examples/UpdateAccount.json | 2 +- .../2021-07-01-preview/examples/UpdateAccountGen1.json | 2 +- .../2021-07-01-preview/examples/UpdateAccountGen2.json | 2 +- .../2021-07-01-preview/examples/UpdateMapsCreator.json | 2 +- .../preview/2021-07-01-preview/maps-management.json | 2 +- 17 files changed, 31 insertions(+), 31 deletions(-) diff --git a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/CreateAccount.json b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/CreateAccount.json index abd6a5aa3d87..6996e820af1b 100644 --- a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/CreateAccount.json +++ b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/CreateAccount.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-02-01", + "api-version": "2021-07-01-preview", "subscriptionId": "21a9967a-e8a9-4656-a70b-96ff1c4d05a0", "resourceGroupName": "myResourceGroup", "accountName": "myMapsAccount", @@ -32,10 +32,10 @@ "systemData": { "createdBy": "string", "createdByType": "Application", - "createdAt": "2021-02-01T01:01:01.1075056Z", + "createdAt": "2021-07-01-previewT01:01:01.1075056Z", "lastModifiedBy": "string", "lastModifiedByType": "Application", - "lastModifiedAt": "2021-02-01T01:01:01.1075056Z" + "lastModifiedAt": "2021-07-01-previewT01:01:01.1075056Z" }, "sku": { "name": "S0", @@ -61,10 +61,10 @@ "systemData": { "createdBy": "string", "createdByType": "Application", - "createdAt": "2021-02-01T01:01:01.1075056Z", + "createdAt": "2021-07-01-previewT01:01:01.1075056Z", "lastModifiedBy": "string", "lastModifiedByType": "Application", - "lastModifiedAt": "2021-02-01T01:01:01.1075056Z" + "lastModifiedAt": "2021-07-01-previewT01:01:01.1075056Z" }, "sku": { "name": "S0", diff --git a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/CreateAccountGen2.json b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/CreateAccountGen2.json index 619ec69d60b2..699e21543ee2 100644 --- a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/CreateAccountGen2.json +++ b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/CreateAccountGen2.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-02-01", + "api-version": "2021-07-01-preview", "subscriptionId": "21a9967a-e8a9-4656-a70b-96ff1c4d05a0", "resourceGroupName": "myResourceGroup", "accountName": "myMapsAccount", @@ -32,10 +32,10 @@ "systemData": { "createdBy": "string", "createdByType": "Application", - "createdAt": "2021-02-01T01:01:01.1075056Z", + "createdAt": "2021-07-01-previewT01:01:01.1075056Z", "lastModifiedBy": "string", "lastModifiedByType": "Application", - "lastModifiedAt": "2021-02-01T01:01:01.1075056Z" + "lastModifiedAt": "2021-07-01-previewT01:01:01.1075056Z" }, "sku": { "name": "G2", @@ -61,10 +61,10 @@ "systemData": { "createdBy": "string", "createdByType": "Application", - "createdAt": "2021-02-01T01:01:01.1075056Z", + "createdAt": "2021-07-01-previewT01:01:01.1075056Z", "lastModifiedBy": "string", "lastModifiedByType": "Application", - "lastModifiedAt": "2021-02-01T01:01:01.1075056Z" + "lastModifiedAt": "2021-07-01-previewT01:01:01.1075056Z" }, "sku": { "name": "G2", diff --git a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/CreateMapsCreator.json b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/CreateMapsCreator.json index a6c986a1ca55..aa820b9943d3 100644 --- a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/CreateMapsCreator.json +++ b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/CreateMapsCreator.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-02-01", + "api-version": "2021-07-01-preview", "subscriptionId": "21a9967a-e8a9-4656-a70b-96ff1c4d05a0", "resourceGroupName": "myResourceGroup", "accountName": "myMapsAccount", diff --git a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/DeleteAccount.json b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/DeleteAccount.json index 1b4a102a5973..560ac3c267c6 100644 --- a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/DeleteAccount.json +++ b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/DeleteAccount.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-02-01", + "api-version": "2021-07-01-preview", "subscriptionId": "21a9967a-e8a9-4656-a70b-96ff1c4d05a0", "resourceGroupName": "myResourceGroup", "accountName": "myMapsAccount" diff --git a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/DeleteMapsCreator.json b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/DeleteMapsCreator.json index 807ae880cd37..7a281a77dc61 100644 --- a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/DeleteMapsCreator.json +++ b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/DeleteMapsCreator.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-02-01", + "api-version": "2021-07-01-preview", "subscriptionId": "21a9967a-e8a9-4656-a70b-96ff1c4d05a0", "resourceGroupName": "myResourceGroup", "accountName": "myMapsAccount", diff --git a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/GetAccount.json b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/GetAccount.json index 1ea4a575ab21..b655bdb2763d 100644 --- a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/GetAccount.json +++ b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/GetAccount.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-02-01", + "api-version": "2021-07-01-preview", "subscriptionId": "21a9967a-e8a9-4656-a70b-96ff1c4d05a0", "resourceGroupName": "myResourceGroup", "accountName": "myMapsAccount" @@ -16,10 +16,10 @@ "systemData": { "createdBy": "string", "createdByType": "Application", - "createdAt": "2021-02-01T01:01:01.1075056Z", + "createdAt": "2021-07-01-previewT01:01:01.1075056Z", "lastModifiedBy": "string", "lastModifiedByType": "Application", - "lastModifiedAt": "2021-02-01T01:01:01.1075056Z" + "lastModifiedAt": "2021-07-01-previewT01:01:01.1075056Z" }, "tags": { "test": "true" diff --git a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/GetMapsCreator.json b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/GetMapsCreator.json index 6abd9e024db8..4a2c72b9abb8 100644 --- a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/GetMapsCreator.json +++ b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/GetMapsCreator.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-02-01", + "api-version": "2021-07-01-preview", "subscriptionId": "21a9967a-e8a9-4656-a70b-96ff1c4d05a0", "resourceGroupName": "myResourceGroup", "accountName": "myMapsAccount", diff --git a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/GetOperations.json b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/GetOperations.json index 0846df7633bc..f5268c90ff83 100644 --- a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/GetOperations.json +++ b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/GetOperations.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-02-01" + "api-version": "2021-07-01-preview" }, "responses": { "200": { diff --git a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/ListAccountsBySubscription.json b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/ListAccountsBySubscription.json index 2c10ecc55dea..2a76d96a3c2d 100644 --- a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/ListAccountsBySubscription.json +++ b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/ListAccountsBySubscription.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-02-01", + "api-version": "2021-07-01-preview", "subscriptionId": "21a9967a-e8a9-4656-a70b-96ff1c4d05a0" }, "responses": { diff --git a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/ListKeys.json b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/ListKeys.json index 8b10222161d4..f5ea24a67364 100644 --- a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/ListKeys.json +++ b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/ListKeys.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-02-01", + "api-version": "2021-07-01-preview", "subscriptionId": "21a9967a-e8a9-4656-a70b-96ff1c4d05a0", "resourceGroupName": "myResourceGroup", "accountName": "myMapsAccount" @@ -9,9 +9,9 @@ "200": { "body": { "primaryKey": "", - "primaryKeyLastUpdated": "2021-02-01T01:01:01.1075056Z", + "primaryKeyLastUpdated": "2021-07-01-previewT01:01:01.1075056Z", "secondaryKey": "", - "secondaryKeyLastUpdated": "2021-02-01T01:01:01.1075056Z" + "secondaryKeyLastUpdated": "2021-07-01-previewT01:01:01.1075056Z" } } } diff --git a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/ListMapsCreatorsByAccount.json b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/ListMapsCreatorsByAccount.json index c8bf66ceef6e..cb30035e713c 100644 --- a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/ListMapsCreatorsByAccount.json +++ b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/ListMapsCreatorsByAccount.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-02-01", + "api-version": "2021-07-01-preview", "subscriptionId": "21a9967a-e8a9-4656-a70b-96ff1c4d05a0", "resourceGroupName": "myResourceGroup", "accountName": "myMapsAccount" diff --git a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/RegenerateKey.json b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/RegenerateKey.json index 4d595fdd7959..0b3416d8c911 100644 --- a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/RegenerateKey.json +++ b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/RegenerateKey.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-02-01", + "api-version": "2021-07-01-preview", "subscriptionId": "21a9967a-e8a9-4656-a70b-96ff1c4d05a0", "resourceGroupName": "myResourceGroup", "accountName": "myMapsAccount", @@ -12,9 +12,9 @@ "200": { "body": { "primaryKey": "", - "primaryKeyLastUpdated": "2021-02-01T01:01:01.1075056Z", + "primaryKeyLastUpdated": "2021-07-01-previewT01:01:01.1075056Z", "secondaryKey": "", - "secondaryKeyLastUpdated": "2021-02-01T01:01:01.1075056Z" + "secondaryKeyLastUpdated": "2021-07-01-previewT01:01:01.1075056Z" } } } diff --git a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/UpdateAccount.json b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/UpdateAccount.json index 7891be59afd1..95f315f162d4 100644 --- a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/UpdateAccount.json +++ b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/UpdateAccount.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-02-01", + "api-version": "2021-07-01-preview", "subscriptionId": "21a9967a-e8a9-4656-a70b-96ff1c4d05a0", "resourceGroupName": "myResourceGroup", "accountName": "myMapsAccount", diff --git a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/UpdateAccountGen1.json b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/UpdateAccountGen1.json index 7a7d0ee1799f..a7a99cff2366 100644 --- a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/UpdateAccountGen1.json +++ b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/UpdateAccountGen1.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-02-01", + "api-version": "2021-07-01-preview", "subscriptionId": "21a9967a-e8a9-4656-a70b-96ff1c4d05a0", "resourceGroupName": "myResourceGroup", "accountName": "myMapsAccount", diff --git a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/UpdateAccountGen2.json b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/UpdateAccountGen2.json index 42504f70b0ed..949a54d9bea0 100644 --- a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/UpdateAccountGen2.json +++ b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/UpdateAccountGen2.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-02-01", + "api-version": "2021-07-01-preview", "subscriptionId": "21a9967a-e8a9-4656-a70b-96ff1c4d05a0", "resourceGroupName": "myResourceGroup", "accountName": "myMapsAccount", diff --git a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/UpdateMapsCreator.json b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/UpdateMapsCreator.json index 66408b87d9db..53547d59cc81 100644 --- a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/UpdateMapsCreator.json +++ b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/UpdateMapsCreator.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-02-01", + "api-version": "2021-07-01-preview", "subscriptionId": "21a9967a-e8a9-4656-a70b-96ff1c4d05a0", "resourceGroupName": "myResourceGroup", "accountName": "myMapsAccount", diff --git a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/maps-management.json b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/maps-management.json index 9bda39a27a01..ab0f7c49a9dd 100644 --- a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/maps-management.json +++ b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/maps-management.json @@ -3,7 +3,7 @@ "info": { "title": "Azure Maps Resource Provider", "description": "Resource Provider", - "version": "2021-02-01" + "version": "2021-07-01-preview" }, "host": "management.azure.com", "schemes": [ From b12616f3fcf0e8f2916b557763c77064d5de1539 Mon Sep 17 00:00:00 2001 From: Daniel Stack Date: Fri, 7 May 2021 15:25:27 -0700 Subject: [PATCH 4/8] managed identities --- .../examples/CreateAccount.json | 8 +- .../examples/CreateAccountGen2.json | 8 +- .../CreateAccountManagedIdentity.json | 112 ++++++++++++++++++ .../examples/GetAccount.json | 7 +- .../2021-07-01-preview/examples/ListKeys.json | 4 +- .../examples/RegenerateKey.json | 4 +- .../examples/UpdateAccount.json | 8 ++ .../examples/UpdateAccountGen1.json | 11 +- .../examples/UpdateAccountGen2.json | 11 +- .../UpdateAccountManagedIdentity.json | 60 ++++++++++ .../2021-07-01-preview/maps-management.json | 79 +++++++++++- specification/maps/resource-manager/readme.md | 3 + 12 files changed, 297 insertions(+), 18 deletions(-) create mode 100644 specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/CreateAccountManagedIdentity.json create mode 100644 specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/UpdateAccountManagedIdentity.json diff --git a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/CreateAccount.json b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/CreateAccount.json index 6996e820af1b..1a23a6678abc 100644 --- a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/CreateAccount.json +++ b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/CreateAccount.json @@ -32,10 +32,10 @@ "systemData": { "createdBy": "string", "createdByType": "Application", - "createdAt": "2021-07-01-previewT01:01:01.1075056Z", + "createdAt": "2021-07-02T01:01:01.1075056Z", "lastModifiedBy": "string", "lastModifiedByType": "Application", - "lastModifiedAt": "2021-07-01-previewT01:01:01.1075056Z" + "lastModifiedAt": "2021-07-02T01:01:01.1075056Z" }, "sku": { "name": "S0", @@ -61,10 +61,10 @@ "systemData": { "createdBy": "string", "createdByType": "Application", - "createdAt": "2021-07-01-previewT01:01:01.1075056Z", + "createdAt": "2021-07-02T01:01:01.1075056Z", "lastModifiedBy": "string", "lastModifiedByType": "Application", - "lastModifiedAt": "2021-07-01-previewT01:01:01.1075056Z" + "lastModifiedAt": "2021-07-02T01:01:01.1075056Z" }, "sku": { "name": "S0", diff --git a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/CreateAccountGen2.json b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/CreateAccountGen2.json index 699e21543ee2..1896ba30e097 100644 --- a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/CreateAccountGen2.json +++ b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/CreateAccountGen2.json @@ -32,10 +32,10 @@ "systemData": { "createdBy": "string", "createdByType": "Application", - "createdAt": "2021-07-01-previewT01:01:01.1075056Z", + "createdAt": "2021-07-02T01:01:01.1075056Z", "lastModifiedBy": "string", "lastModifiedByType": "Application", - "lastModifiedAt": "2021-07-01-previewT01:01:01.1075056Z" + "lastModifiedAt": "2021-07-02T01:01:01.1075056Z" }, "sku": { "name": "G2", @@ -61,10 +61,10 @@ "systemData": { "createdBy": "string", "createdByType": "Application", - "createdAt": "2021-07-01-previewT01:01:01.1075056Z", + "createdAt": "2021-07-02T01:01:01.1075056Z", "lastModifiedBy": "string", "lastModifiedByType": "Application", - "lastModifiedAt": "2021-07-01-previewT01:01:01.1075056Z" + "lastModifiedAt": "2021-07-02T01:01:01.1075056Z" }, "sku": { "name": "G2", diff --git a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/CreateAccountManagedIdentity.json b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/CreateAccountManagedIdentity.json new file mode 100644 index 000000000000..8dda6470ad02 --- /dev/null +++ b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/CreateAccountManagedIdentity.json @@ -0,0 +1,112 @@ +{ + "parameters": { + "api-version": "2021-07-01-preview", + "subscriptionId": "21a9967a-e8a9-4656-a70b-96ff1c4d05a0", + "resourceGroupName": "myResourceGroup", + "accountName": "myMapsAccount", + "MapsAccount": { + "location": "eastus", + "sku": { + "name": "G2" + }, + "kind": "Gen2", + "tags": { + "test": "true" + }, + "identity": { + "type": "SystemAssigned, UserAssigned", + "userAssignedIdentities": { + "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName": {} + } + }, + "properties": { + "disableLocalAuth": false, + "linkedResources": {} + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.Maps/accounts/myMapsAccount", + "name": "myMapsAccount", + "type": "Microsoft.Maps/accounts", + "kind": "Gen2", + "location": "eastus", + "tags": { + "test": "true" + }, + "systemData": { + "createdBy": "string", + "createdByType": "Application", + "createdAt": "2021-07-02T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "Application", + "lastModifiedAt": "2021-07-02T01:01:01.1075056Z" + }, + "sku": { + "name": "G2", + "tier": "Standard" + }, + "identity": { + "type": "SystemAssigned, UserAssigned", + "principalId": "77f72dac-e0aa-484e-9acd-e5e7075310ef", + "tenantId": "06006684-60c1-4954-a20c-ffd8fbea7276", + "userAssignedIdentities": { + "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName": { + "clientId": "b602d315-01b5-4265-af23-859edc4f2431", + "principalId": "ac287332-364a-41d9-a567-9ad86b9fc299" + } + } + }, + "properties": { + "uniqueId": "b2e763e6-d6f3-4858-9e2b-7cf8df85c593", + "provisioningState": "Succeeded", + "disableLocalAuth": true, + "linkedResources": {} + } + } + }, + "201": { + "body": { + "id": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.Maps/accounts/myMapsAccount", + "name": "myMapsAccount", + "type": "Microsoft.Maps/accounts", + "kind": "Gen2", + "location": "global", + "tags": { + "test": "true" + }, + "systemData": { + "createdBy": "string", + "createdByType": "Application", + "createdAt": "2021-07-02T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "Application", + "lastModifiedAt": "2021-07-02T01:01:01.1075056Z" + }, + "sku": { + "name": "G2", + "tier": "Standard" + }, + "identity": { + "type": "SystemAssigned, UserAssigned", + "principalId": "77f72dac-e0aa-484e-9acd-e5e7075310ef", + "tenantId": "06006684-60c1-4954-a20c-ffd8fbea7276", + "userAssignedIdentities": { + "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName": { + "clientId": "b602d315-01b5-4265-af23-859edc4f2431", + "principalId": "ac287332-364a-41d9-a567-9ad86b9fc299" + } + } + }, + "properties": { + "uniqueId": "b2e763e6-d6f3-4858-9e2b-7cf8df85c593", + "provisioningState": "Succeeded", + "disableLocalAuth": true, + "linkedResources": {} + } + } + } + } +} diff --git a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/GetAccount.json b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/GetAccount.json index b655bdb2763d..9e10612bf7d2 100644 --- a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/GetAccount.json +++ b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/GetAccount.json @@ -16,10 +16,10 @@ "systemData": { "createdBy": "string", "createdByType": "Application", - "createdAt": "2021-07-01-previewT01:01:01.1075056Z", + "createdAt": "2021-07-02T01:01:01.1075056Z", "lastModifiedBy": "string", "lastModifiedByType": "Application", - "lastModifiedAt": "2021-07-01-previewT01:01:01.1075056Z" + "lastModifiedAt": "2021-07-02T01:01:01.1075056Z" }, "tags": { "test": "true" @@ -31,7 +31,8 @@ "properties": { "uniqueId": "string", "disableLocalAuth": false, - "provisioningState": "Succeeded" + "provisioningState": "Succeeded", + "linkedResources": {} } } } diff --git a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/ListKeys.json b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/ListKeys.json index f5ea24a67364..107fa111d954 100644 --- a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/ListKeys.json +++ b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/ListKeys.json @@ -9,9 +9,9 @@ "200": { "body": { "primaryKey": "", - "primaryKeyLastUpdated": "2021-07-01-previewT01:01:01.1075056Z", + "primaryKeyLastUpdated": "2021-07-02T01:01:01.1075056Z", "secondaryKey": "", - "secondaryKeyLastUpdated": "2021-07-01-previewT01:01:01.1075056Z" + "secondaryKeyLastUpdated": "2021-07-02T01:01:01.1075056Z" } } } diff --git a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/RegenerateKey.json b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/RegenerateKey.json index 0b3416d8c911..f7c98d77b98e 100644 --- a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/RegenerateKey.json +++ b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/RegenerateKey.json @@ -12,9 +12,9 @@ "200": { "body": { "primaryKey": "", - "primaryKeyLastUpdated": "2021-07-01-previewT01:01:01.1075056Z", + "primaryKeyLastUpdated": "2021-07-02T01:01:01.1075056Z", "secondaryKey": "", - "secondaryKeyLastUpdated": "2021-07-01-previewT01:01:01.1075056Z" + "secondaryKeyLastUpdated": "2021-07-02T01:01:01.1075056Z" } } } diff --git a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/UpdateAccount.json b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/UpdateAccount.json index 95f315f162d4..c2cb09577ae5 100644 --- a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/UpdateAccount.json +++ b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/UpdateAccount.json @@ -25,6 +25,14 @@ "name": "S0", "tier": "Standard" }, + "systemData": { + "createdBy": "string", + "createdByType": "Application", + "createdAt": "2021-07-02T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "Application", + "lastModifiedAt": "2021-07-02T01:01:01.1075056Z" + }, "properties": { "uniqueId": "b2e763e6-d6f3-4858-9e2b-7cf8df85c593", "provisioningState": "Succeeded", diff --git a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/UpdateAccountGen1.json b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/UpdateAccountGen1.json index a7a99cff2366..3cc15498614d 100644 --- a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/UpdateAccountGen1.json +++ b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/UpdateAccountGen1.json @@ -23,10 +23,19 @@ "name": "S1", "tier": "Standard" }, + "systemData": { + "createdBy": "string", + "createdByType": "Application", + "createdAt": "2021-07-02T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "Application", + "lastModifiedAt": "2021-07-02T01:01:01.1075056Z" + }, "properties": { "uniqueId": "b2e763e6-d6f3-4858-9e2b-7cf8df85c593", "provisioningState": "Succeeded", - "disableLocalAuth": false + "disableLocalAuth": false, + "linkedResources": {} } } } diff --git a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/UpdateAccountGen2.json b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/UpdateAccountGen2.json index 949a54d9bea0..400a95af06b5 100644 --- a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/UpdateAccountGen2.json +++ b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/UpdateAccountGen2.json @@ -23,10 +23,19 @@ "name": "G2", "tier": "Standard" }, + "systemData": { + "createdBy": "string", + "createdByType": "Application", + "createdAt": "2021-07-02T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "Application", + "lastModifiedAt": "2021-07-02T01:01:01.1075056Z" + }, "properties": { "uniqueId": "b2e763e6-d6f3-4858-9e2b-7cf8df85c593", "provisioningState": "Succeeded", - "disableLocalAuth": false + "disableLocalAuth": false, + "linkedResources": {} } } } diff --git a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/UpdateAccountManagedIdentity.json b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/UpdateAccountManagedIdentity.json new file mode 100644 index 000000000000..51b27c0ddf39 --- /dev/null +++ b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/UpdateAccountManagedIdentity.json @@ -0,0 +1,60 @@ +{ + "parameters": { + "api-version": "2021-07-01-preview", + "subscriptionId": "21a9967a-e8a9-4656-a70b-96ff1c4d05a0", + "resourceGroupName": "myResourceGroup", + "accountName": "myMapsAccount", + "MapsAccountUpdateParameters": { + "kind": "Gen2", + "sku": { + "name": "G2" + }, + "identity": { + "type": "SystemAssigned, UserAssigned", + "userAssignedIdentities": { + "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName": {} + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.Maps/accounts/myMapsAccount", + "name": "myMapsAccount", + "type": "Microsoft.Maps/accounts", + "location": "eastus", + "kind": "Gen2", + "sku": { + "name": "G2", + "tier": "Standard" + }, + "systemData": { + "createdBy": "string", + "createdByType": "Application", + "createdAt": "2021-07-02T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "Application", + "lastModifiedAt": "2021-07-02T01:01:01.1075056Z" + }, + "identity": { + "type": "SystemAssigned, UserAssigned", + "principalId": "77f72dac-e0aa-484e-9acd-e5e7075310ef", + "tenantId": "06006684-60c1-4954-a20c-ffd8fbea7276", + "userAssignedIdentities": { + "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName": { + "clientId": "b602d315-01b5-4265-af23-859edc4f2431", + "principalId": "ac287332-364a-41d9-a567-9ad86b9fc299" + } + } + }, + "properties": { + "uniqueId": "b2e763e6-d6f3-4858-9e2b-7cf8df85c593", + "provisioningState": "Succeeded", + "disableLocalAuth": false, + "linkedResources": {} + } + } + } + } +} diff --git a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/maps-management.json b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/maps-management.json index ab0f7c49a9dd..0fdbbc9a590e 100644 --- a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/maps-management.json +++ b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/maps-management.json @@ -47,6 +47,9 @@ }, "Create Gen2 Account": { "$ref": "./examples/CreateAccountGen2.json" + }, + "Create Account with Managed Identities": { + "$ref": "./examples/CreateAccountManagedIdentity.json" } }, "parameters": [ @@ -108,6 +111,9 @@ }, "Update to Gen1 Account": { "$ref": "./examples/UpdateAccountGen1.json" + }, + "Update Account Managed Identities": { + "$ref": "./examples/UpdateAccountManagedIdentity.json" } }, "parameters": [ @@ -746,6 +752,11 @@ "description": "The system meta data relating to this resource.", "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" }, + "identity": { + "type": "object", + "$ref": "#/definitions/ManagedServiceIdentity", + "description": "Sets the identity property for maps account." + }, "properties": { "description": "The map account properties.", "$ref": "#/definitions/MapsAccountProperties" @@ -780,6 +791,11 @@ "description": "The SKU of this account.", "$ref": "#/definitions/Sku" }, + "identity": { + "type": "object", + "$ref": "#/definitions/ManagedServiceIdentity", + "description": "Sets the identity property for maps account." + }, "properties": { "description": "The map account properties.", "x-ms-client-flatten": true, @@ -928,6 +944,54 @@ } } }, + "ManagedServiceIdentity": { + "description": "Identity for the resource.", + "properties": { + "principalId": { + "readOnly": true, + "type": "string", + "description": "The principal ID of resource identity." + }, + "tenantId": { + "readOnly": true, + "type": "string", + "description": "The tenant ID of resource." + }, + "type": { + "type": "string", + "description": "The identity type.", + "enum": [ + "SystemAssigned", + "UserAssigned", + "SystemAssigned, UserAssigned", + "None" + ], + "x-ms-enum": { + "name": "ResourceIdentityType", + "modelAsString": false + } + }, + "userAssignedIdentities": { + "type": "object", + "description": "The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.", + "additionalProperties": { + "type": "object", + "properties": { + "principalId": { + "readOnly": true, + "type": "string", + "description": "The principal id of user assigned identity." + }, + "clientId": { + "readOnly": true, + "type": "string", + "description": "The client id of user assigned identity." + } + } + } + } + } + }, "MapsOperations": { "description": "The set of operations available for Maps.", "type": "object", @@ -1090,11 +1154,24 @@ }, "provisioningState": { "type": "string", - "description": "the state of the provisioning.", + "description": "The provisioning state of the Map account resource.", "readOnly": true + }, + "linkedResources": { + "type": "object", + "$ref": "#/definitions/LinkedResources", + "description": "Sets the resources to be used for Managed Identities based operations for the Map account resource." } } }, + "LinkedResources": { + "type": "object", + "additionalProperties": { + "type": "string", + "description": "ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/accounts/{storageName}'." + }, + "description": "The list of user associated resources to the Map account. The dictionary key references will be string names and the values will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/accounts/{storageName}'." + }, "CreatorProperties": { "description": "Creator resource properties", "type": "object", diff --git a/specification/maps/resource-manager/readme.md b/specification/maps/resource-manager/readme.md index d9c399d3d708..cc2c6d208934 100644 --- a/specification/maps/resource-manager/readme.md +++ b/specification/maps/resource-manager/readme.md @@ -201,6 +201,9 @@ directive: - Flattening does not work well with polymorphic models. - PrivateAtlas.properties is an arbitrary dictionary and cannot be flattened. - MapsAccount.properties is an arbitrary dictionary and cannot be flattened. + - suppress: R2026 + from: maps-management.json + reason: standard property being applied to all azure resources. - suppress: R3006 where: - $.definitions.MapsAccount.properties From 0e093b66623edd84ea529e72455f5e578d1f8297 Mon Sep 17 00:00:00 2001 From: Daniel Stack Date: Wed, 19 May 2021 14:54:49 -0700 Subject: [PATCH 5/8] updates based on design review --- .../CreateAccountManagedIdentity.json | 11 ++++- .../examples/GetAccount.json | 2 +- .../UpdateAccountManagedIdentity.json | 15 ++++++- .../2021-07-01-preview/maps-management.json | 41 +++++++++++++++++-- specification/maps/resource-manager/readme.md | 2 +- 5 files changed, 63 insertions(+), 8 deletions(-) diff --git a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/CreateAccountManagedIdentity.json b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/CreateAccountManagedIdentity.json index 8dda6470ad02..3254a0a77045 100644 --- a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/CreateAccountManagedIdentity.json +++ b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/CreateAccountManagedIdentity.json @@ -104,7 +104,16 @@ "uniqueId": "b2e763e6-d6f3-4858-9e2b-7cf8df85c593", "provisioningState": "Succeeded", "disableLocalAuth": true, - "linkedResources": {} + "linkedResources": [ + { + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/accounts/{storageName}", + "uniqueName": "myBatchStorageAccount" + }, + { + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/accounts/{storageName}", + "uniqueName": "myBlobDataSource" + } + ] } } } diff --git a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/GetAccount.json b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/GetAccount.json index 9e10612bf7d2..91a835e74180 100644 --- a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/GetAccount.json +++ b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/GetAccount.json @@ -32,7 +32,7 @@ "uniqueId": "string", "disableLocalAuth": false, "provisioningState": "Succeeded", - "linkedResources": {} + "linkedResources": [] } } } diff --git a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/UpdateAccountManagedIdentity.json b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/UpdateAccountManagedIdentity.json index 51b27c0ddf39..3557013c1dff 100644 --- a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/UpdateAccountManagedIdentity.json +++ b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/UpdateAccountManagedIdentity.json @@ -14,6 +14,14 @@ "userAssignedIdentities": { "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName": {} } + }, + "properties": { + "linkedResources": [ + { + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/accounts/{storageName}", + "uniqueName": "myBatchStorageAccount" + } + ] } } }, @@ -52,7 +60,12 @@ "uniqueId": "b2e763e6-d6f3-4858-9e2b-7cf8df85c593", "provisioningState": "Succeeded", "disableLocalAuth": false, - "linkedResources": {} + "linkedResources": [ + { + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/accounts/{storageName}", + "uniqueName": "myBatchStorageAccount" + } + ] } } } diff --git a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/maps-management.json b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/maps-management.json index 0fdbbc9a590e..17d3552e339a 100644 --- a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/maps-management.json +++ b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/maps-management.json @@ -1135,6 +1135,22 @@ "displayName": { "type": "string", "description": "Display name of dimension." + }, + "internalName": { + "type": "string", + "description": "Internal name of the dimension." + }, + "internalMetricName": { + "type": "string", + "description": "Internal metric name of the dimension." + }, + "sourceMdmNamespace": { + "type": "string", + "description": "Source Mdm Namespace of the dimension." + }, + "toBeExportedToShoebox": { + "type": "boolean", + "description": "Flag to indicate exporting to Azure Monitor." } } }, @@ -1165,12 +1181,29 @@ } }, "LinkedResources": { + "type": "array", + "maxItems": 10, + "items": { + "$ref": "#/definitions/LinkedResource" + }, + "description": "The array of associated resources to the Map account. Linked resource in the array cannot individually update, you must update all linked resources in the array together. These resources may be used on operations on the Azure Maps REST API. Access is controlled by the Map Account Managed Identity(s) permissions to those resource(s)." + }, + "LinkedResource": { "type": "object", - "additionalProperties": { - "type": "string", - "description": "ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/accounts/{storageName}'." + "properties": { + "uniqueName": { + "type": "string", + "description": "A provided name which uniquely identifies the linked resource." + }, + "id": { + "type": "string", + "description": "ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/accounts/{storageName}'." + } }, - "description": "The list of user associated resources to the Map account. The dictionary key references will be string names and the values will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/accounts/{storageName}'." + "required": [ + "uniqueName", + "id" + ] }, "CreatorProperties": { "description": "Creator resource properties", diff --git a/specification/maps/resource-manager/readme.md b/specification/maps/resource-manager/readme.md index cc2c6d208934..769156992e9a 100644 --- a/specification/maps/resource-manager/readme.md +++ b/specification/maps/resource-manager/readme.md @@ -203,7 +203,7 @@ directive: - MapsAccount.properties is an arbitrary dictionary and cannot be flattened. - suppress: R2026 from: maps-management.json - reason: standard property being applied to all azure resources. + reason: Managed identity is standard property being applied to all azure resources. - suppress: R3006 where: - $.definitions.MapsAccount.properties From 978056afe1104d5b7c4f5f9d9f678a7963a7dac6 Mon Sep 17 00:00:00 2001 From: Daniel Stack Date: Thu, 20 May 2021 11:15:32 -0700 Subject: [PATCH 6/8] fixes for examples --- .../CreateAccountManagedIdentity.json | 24 ++++++++++++++++--- .../examples/UpdateAccountGen1.json | 2 +- .../examples/UpdateAccountGen2.json | 2 +- .../2021-07-01-preview/maps-management.json | 2 +- specification/maps/resource-manager/readme.md | 1 + 5 files changed, 25 insertions(+), 6 deletions(-) diff --git a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/CreateAccountManagedIdentity.json b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/CreateAccountManagedIdentity.json index 3254a0a77045..84074bb7cd6b 100644 --- a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/CreateAccountManagedIdentity.json +++ b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/CreateAccountManagedIdentity.json @@ -21,7 +21,16 @@ }, "properties": { "disableLocalAuth": false, - "linkedResources": {} + "linkedResources": [ + { + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/accounts/{storageName}", + "uniqueName": "myBatchStorageAccount" + }, + { + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/accounts/{storageName}", + "uniqueName": "myBlobDataSource" + } + ] } } }, @@ -63,7 +72,16 @@ "uniqueId": "b2e763e6-d6f3-4858-9e2b-7cf8df85c593", "provisioningState": "Succeeded", "disableLocalAuth": true, - "linkedResources": {} + "linkedResources": [ + { + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/accounts/{storageName}", + "uniqueName": "myBatchStorageAccount" + }, + { + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/accounts/{storageName}", + "uniqueName": "myBlobDataSource" + } + ] } } }, @@ -73,7 +91,7 @@ "name": "myMapsAccount", "type": "Microsoft.Maps/accounts", "kind": "Gen2", - "location": "global", + "location": "eastus", "tags": { "test": "true" }, diff --git a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/UpdateAccountGen1.json b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/UpdateAccountGen1.json index 3cc15498614d..e870759c8203 100644 --- a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/UpdateAccountGen1.json +++ b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/UpdateAccountGen1.json @@ -35,7 +35,7 @@ "uniqueId": "b2e763e6-d6f3-4858-9e2b-7cf8df85c593", "provisioningState": "Succeeded", "disableLocalAuth": false, - "linkedResources": {} + "linkedResources": [] } } } diff --git a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/UpdateAccountGen2.json b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/UpdateAccountGen2.json index 400a95af06b5..848b19e3a04c 100644 --- a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/UpdateAccountGen2.json +++ b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/UpdateAccountGen2.json @@ -35,7 +35,7 @@ "uniqueId": "b2e763e6-d6f3-4858-9e2b-7cf8df85c593", "provisioningState": "Succeeded", "disableLocalAuth": false, - "linkedResources": {} + "linkedResources": [] } } } diff --git a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/maps-management.json b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/maps-management.json index 17d3552e339a..421d74c51eb3 100644 --- a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/maps-management.json +++ b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/maps-management.json @@ -1174,7 +1174,7 @@ "readOnly": true }, "linkedResources": { - "type": "object", + "type": "array", "$ref": "#/definitions/LinkedResources", "description": "Sets the resources to be used for Managed Identities based operations for the Map account resource." } diff --git a/specification/maps/resource-manager/readme.md b/specification/maps/resource-manager/readme.md index 769156992e9a..37d96a20a3ee 100644 --- a/specification/maps/resource-manager/readme.md +++ b/specification/maps/resource-manager/readme.md @@ -262,6 +262,7 @@ directive: - $.definitions.MapsAccountProperties.properties.disableLocalAuth - $.definitions.OperationDetail.properties.isDataAction - $.definitions.MetricSpecification.properties.fillGapWithZero + - $.definitions.Dimension.properties.toBeExportedToShoebox from: maps-management.json reason: standard property being applied to all azure resources. ``` From 65f2ace14892452b9ad1b88d90ca30c9b0f432d3 Mon Sep 17 00:00:00 2001 From: Daniel Stack Date: Thu, 20 May 2021 11:58:48 -0700 Subject: [PATCH 7/8] adding description --- .../preview/2021-07-01-preview/maps-management.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/maps-management.json b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/maps-management.json index 421d74c51eb3..3c00b6a954ce 100644 --- a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/maps-management.json +++ b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/maps-management.json @@ -1203,7 +1203,8 @@ "required": [ "uniqueName", "id" - ] + ], + "description": "Linked resource is reference to a resource deployed in an Azure subscription, add the linked resource `uniqueName` value as an optional parameter for operations on Azure Maps Geospatial REST APIs." }, "CreatorProperties": { "description": "Creator resource properties", From c899777caf18c11b99cc6ba71baa4a029549a43e Mon Sep 17 00:00:00 2001 From: Daniel Stack Date: Thu, 20 May 2021 13:01:43 -0700 Subject: [PATCH 8/8] updated example request responses --- .../examples/CreateAccountManagedIdentity.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/CreateAccountManagedIdentity.json b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/CreateAccountManagedIdentity.json index 84074bb7cd6b..a08700a3131a 100644 --- a/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/CreateAccountManagedIdentity.json +++ b/specification/maps/resource-manager/Microsoft.Maps/preview/2021-07-01-preview/examples/CreateAccountManagedIdentity.json @@ -23,11 +23,11 @@ "disableLocalAuth": false, "linkedResources": [ { - "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/accounts/{storageName}", + "id": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.Storage/accounts/mystorageacc", "uniqueName": "myBatchStorageAccount" }, { - "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/accounts/{storageName}", + "id": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.Storage/accounts/mystorageacc", "uniqueName": "myBlobDataSource" } ] @@ -74,11 +74,11 @@ "disableLocalAuth": true, "linkedResources": [ { - "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/accounts/{storageName}", + "id": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.Storage/accounts/mystorageacc", "uniqueName": "myBatchStorageAccount" }, { - "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/accounts/{storageName}", + "id": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.Storage/accounts/mystorageacc", "uniqueName": "myBlobDataSource" } ] @@ -124,11 +124,11 @@ "disableLocalAuth": true, "linkedResources": [ { - "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/accounts/{storageName}", + "id": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.Storage/accounts/mystorageacc", "uniqueName": "myBatchStorageAccount" }, { - "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/accounts/{storageName}", + "id": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.Storage/accounts/mystorageacc", "uniqueName": "myBlobDataSource" } ]