From 739072e7629db1ac0cd469134b388a0e79be5a92 Mon Sep 17 00:00:00 2001 From: Daniel Haiman Date: Wed, 18 Nov 2020 18:28:47 +0200 Subject: [PATCH 01/14] AssociatedWorkspaces and CapacityReservationProperties added to cluster. Cluser defualt error bug fixed --- .../stable/2020-10-01/Clusters.json | 91 +++++++++++++++---- .../2020-10-01/examples/ClustersCreate.json | 36 +++++++- .../2020-10-01/examples/ClustersGet.json | 50 +++++----- .../2020-10-01/examples/ClustersUpdate.json | 26 +++++- 4 files changed, 159 insertions(+), 44 deletions(-) diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Clusters.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Clusters.json index c826a847e3b9..a9b514c86042 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Clusters.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Clusters.json @@ -67,7 +67,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ClusterErrorResponse" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" } } }, @@ -106,7 +106,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ClusterErrorResponse" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" } } }, @@ -176,7 +176,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ClusterErrorResponse" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" } } }, @@ -221,7 +221,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ClusterErrorResponse" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" } } }, @@ -266,7 +266,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ClusterErrorResponse" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" } } } @@ -319,7 +319,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ClusterErrorResponse" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" } } } @@ -381,20 +381,31 @@ "keyVaultProperties": { "$ref": "#/definitions/keyVaultProperties", "description": "The associated key properties." + }, + "lastModifiedDate": { + "type": "string", + "description": "The last time the cluster was updated.", + "readOnly": true + }, + "createdDate": { + "type": "string", + "description": "The cluster creation time", + "readOnly": true + }, + "associatedWorkspaces": { + "description": "The list of Log Analytics workspaces associated with the cluster", + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/AssociatedWorkspaces" + } + }, + "capacityReservationProperties": { + "$ref": "#/definitions/CapacityReservationProperties", + "description": "Additional properties for capacity reservation" } }, "description": "Cluster properties." }, - "ClusterErrorResponse": { - "description": "Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message.", - "type": "object", - "properties": { - "error": { - "description": "The details of the error.", - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" - } - } - }, "ClusterPatchProperties": { "properties": { "keyVaultProperties": { @@ -573,6 +584,54 @@ "type": "string" } } + }, + "AssociatedWorkspaces": { + "type": "object", + "description": "The list of Log Analytics workspaces associated with the cluster.", + "properties": { + "workspaceId": { + "readOnly": true, + "description": "The id of the assigned workspace.", + "type": "string" + }, + "workspaceName": { + "readOnly": true, + "description": "The name id the assigned workspace.", + "type": "string" + }, + "resourceId": { + "readOnly": true, + "description": "The ResourceId id the assigned workspace.", + "type": "string" + }, + "associateDate": { + "readOnly": true, + "description": "The time of workspace association.", + "type": "string" + } + } + }, + "CapacityReservationProperties": { + "description": "The Capacity Reservation properties.", + "properties": { + "LastSkuUpdate": { + "readOnly": true, + "description": "The last time Sku was updated.", + "type": "string" + }, + "MinCapacity": { + "readOnly": true, + "description": "Minimum CapacityReservation value in GB.", + "type": "integer", + "format": "int64" + }, + "MaxCapacity": { + "readOnly": true, + "description": "Maximum CapacityReservation value in GB.", + "type": "integer", + "format": "int64" + } + } } }, "parameters": {} diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/ClustersCreate.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/ClustersCreate.json index 7f6b58136f55..bcdc66a1d282 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/ClustersCreate.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/ClustersCreate.json @@ -20,8 +20,24 @@ "200": { "body": { "properties": { + "keyVaultProperties": { + "keyVaultUri": "https://aztest2170.vault.azure.net", + "keyName": "aztest2170cert", + "keyVersion": "654ft6c4e63845cbb50fd6fg51540429" + }, "provisioningState": "ProvisioningAccount", - "clusterId": "5b02755b-5bf4-430c-9487-45502a2a7e62" + "clusterId": "1c3f2afc-9ec1-4e74-bfe8-022b83bcd7b1", + "billingType": "Cluster", + "lastModifiedDate": "Sun, 04 Jan 2020 17:10:56 GMT", + "createdDate": "Mon, 13 Jan 2020 14:40:33 GMT", + "isDoubleEncryptionEnabled": false, + "isAvailabilityZonesEnabled": false, + "associatedWorkspaces": [], + "capacityReservationProperties": { + "lastSkuUpdate": "Thu, 01 Jan 1970 00:00:00 GMT", + "minCapacity": 1000, + "maxCapacity": 3000 + } }, "id": "/subscriptions/594038b5-1093-476e-a366-482775671c11/resourcegroups/oiautorest6685/providers/microsoft.operationalinsights/clusters/oiautorest6685", "identity": { @@ -41,8 +57,24 @@ "201": { "body": { "properties": { + "keyVaultProperties": { + "keyVaultUri": "https://aztest2170.vault.azure.net", + "keyName": "aztest2170cert", + "keyVersion": "654ft6c4e63845cbb50fd6fg51540429" + }, "provisioningState": "ProvisioningAccount", - "clusterId": "5b02755b-5bf4-430c-9487-45502a2a7e62" + "clusterId": "1c3f2afc-9ec1-4e74-bfe8-022b83bcd7b1", + "billingType": "Cluster", + "lastModifiedDate": "Sun, 04 Jan 2020 17:10:56 GMT", + "createdDate": "Mon, 13 Jan 2020 14:40:33 GMT", + "isDoubleEncryptionEnabled": false, + "isAvailabilityZonesEnabled": false, + "associatedWorkspaces": [], + "capacityReservationProperties": { + "lastSkuUpdate": "Thu, 01 Jan 1970 00:00:00 GMT", + "minCapacity": 1000, + "maxCapacity": 3000 + } }, "id": "/subscriptions/594038b5-1093-476e-a366-482775671c11/resourcegroups/oiautorest6685/providers/microsoft.operationalinsights/clusters/oiautorest6685", "identity": { diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/ClustersGet.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/ClustersGet.json index 1b68ff85aa4d..2de8b4295d3c 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/ClustersGet.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/ClustersGet.json @@ -16,7 +16,31 @@ "keyVersion": "654ft6c4e63845cbb50fd6fg51540429" }, "provisioningState": "Succeeded", - "clusterId": "5b02755b-5bf4-430c-9487-45502a2a7e62" + "clusterId": "1c3f2afc-9ec1-4e74-bfe8-022b83bcd7b1", + "billingType": "Cluster", + "lastModifiedDate": "Sun, 04 Jan 2020 17:10:56 GMT", + "createdDate": "Mon, 13 Jan 2020 14:40:33 GMT", + "isDoubleEncryptionEnabled": false, + "isAvailabilityZonesEnabled": false, + "associatedWorkspaces": [ + { + "workspaceId": "942bdefd-e6c9-411c-ac69-70ffad564363", + "workspaceName": "testWs1", + "resourceId": "/subscriptions/00000000-0000-0000-0000-00000000000/resourcegroups/testRG/providers/microsoft.operationalinsights/workspaces/testWs1", + "associateDate": "Tue, 07 Jul 2020 07:35:51 GMT" + }, + { + "workspaceId": "c7edb8f8-67f7-41f2-bddb-aecf22507e3f", + "workspaceName": "testWs2", + "resourceId": "/subscriptions/00000000-0000-0000-0000-00000000000/resourcegroups/testRG/providers/microsoft.operationalinsights/workspaces/testWs2", + "associateDate": "Mon, 13 Jan 2020 16:03:39 GMT" + } + ], + "capacityReservationProperties": { + "lastSkuUpdate": "Thu, 01 Jan 1970 00:00:00 GMT", + "minCapacity": 1000, + "maxCapacity": 3000 + } }, "id": "/subscriptions/594038b5-1093-476e-a366-482775671c11/resourcegroups/calbot-rg/providers/microsoft.operationalinsights/clusters/testresourcelock", "identity": { @@ -31,30 +55,6 @@ "name": "TestResourceLock", "type": "Microsoft.OperationalInsights/clusters", "location": "eastus" - }, - { - "properties": { - "keyVaultProperties": { - "keyVaultUri": "https://aztest2170.vault.azure.net", - "keyName": "aztest2170cert", - "keyVersion": "654ft6c4e63845cbb50fd6fg51540429" - }, - "provisioningState": "Succeeded", - "clusterId": "5b02755b-5bf4-430c-9487-45502a2a7e62" - }, - "id": "/subscriptions/594038b5-1093-476e-a366-482775671c11/resourcegroups/mms-eus/providers/microsoft.operationalinsights/clusters/southukws", - "identity": { - "principalId": "356d057d-cba5-44dd-8a30-b2e547bc416b", - "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", - "type": "SystemAssigned" - }, - "sku": { - "name": "CapacityReservation", - "capacity": 1000 - }, - "name": "SouthUKWS", - "type": "Microsoft.OperationalInsights/clusters", - "location": "East US" } ] } diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/ClustersUpdate.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/ClustersUpdate.json index 186db9b99bba..d57defcf3c06 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/ClustersUpdate.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/ClustersUpdate.json @@ -48,7 +48,31 @@ "keyVersion": "654ft6c4e63845cbb50fd6fg51540429" }, "provisioningState": "Succeeded", - "clusterId": "1c3f2afc-9ec1-4e74-bfe8-022b83bcd7b1" + "clusterId": "1c3f2afc-9ec1-4e74-bfe8-022b83bcd7b1", + "billingType": "Cluster", + "lastModifiedDate": "Sun, 04 Jan 2020 17:10:56 GMT", + "createdDate": "Mon, 13 Jan 2020 14:40:33 GMT", + "isDoubleEncryptionEnabled": false, + "isAvailabilityZonesEnabled": false, + "associatedWorkspaces": [ + { + "workspaceId": "942bdefd-e6c9-411c-ac69-70ffad564363", + "workspaceName": "testWs1", + "resourceId": "/subscriptions/00000000-0000-0000-0000-00000000000/resourcegroups/testRG/providers/microsoft.operationalinsights/workspaces/testWs1", + "associateDate": "Tue, 07 Jul 2020 07:35:51 GMT" + }, + { + "workspaceId": "c7edb8f8-67f7-41f2-bddb-aecf22507e3f", + "workspaceName": "testWs2", + "resourceId": "/subscriptions/00000000-0000-0000-0000-00000000000/resourcegroups/testRG/providers/microsoft.operationalinsights/workspaces/testWs2", + "associateDate": "Mon, 13 Jan 2020 16:03:39 GMT" + } + ], + "capacityReservationProperties": { + "lastSkuUpdate": "Thu, 01 Jan 1970 00:00:00 GMT", + "minCapacity": 1000, + "maxCapacity": 3000 + } }, "sku": { "name": "CapacityReservation", From f9c5195f996bd749d9b92f6532befc899aba3e2e Mon Sep 17 00:00:00 2001 From: Daniel Haiman Date: Wed, 18 Nov 2020 19:06:57 +0200 Subject: [PATCH 02/14] change AssociatedWorkspaces to array --- .../stable/2020-10-01/Clusters.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Clusters.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Clusters.json index a9b514c86042..3c1770649071 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Clusters.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Clusters.json @@ -586,7 +586,7 @@ } }, "AssociatedWorkspaces": { - "type": "object", + "type": "array", "description": "The list of Log Analytics workspaces associated with the cluster.", "properties": { "workspaceId": { From 109e2df0e729fc9810e1d1c59228b354be7e967b Mon Sep 17 00:00:00 2001 From: Daniel Haiman Date: Thu, 19 Nov 2020 12:27:38 +0200 Subject: [PATCH 03/14] fix validation errors --- .../stable/2020-10-01/Clusters.json | 15 ++++++++++----- .../2020-10-01/examples/ClustersCreate.json | 13 ++++++++----- .../2020-10-01/examples/ClustersUpdate.json | 4 +++- 3 files changed, 21 insertions(+), 11 deletions(-) diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Clusters.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Clusters.json index 3c1770649071..ec23dfa519b8 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Clusters.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Clusters.json @@ -394,9 +394,14 @@ }, "associatedWorkspaces": { "description": "The list of Log Analytics workspaces associated with the cluster", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/AssociatedWorkspaces" + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/AssociatedWorkspace" + }, + "description": "The list of Log Analytics workspaces associated with the cluster" + } } }, "capacityReservationProperties": { @@ -585,8 +590,8 @@ } } }, - "AssociatedWorkspaces": { - "type": "array", + "AssociatedWorkspace": { + "type": "object", "description": "The list of Log Analytics workspaces associated with the cluster.", "properties": { "workspaceId": { diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/ClustersCreate.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/ClustersCreate.json index bcdc66a1d282..6e417ca0e0f1 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/ClustersCreate.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/ClustersCreate.json @@ -10,11 +10,14 @@ "location": "australiasoutheast", "tags": { "tag1": "val1" - } + }, + "properties": { + "isDoubleEncryptionEnabled": false, + "isAvailabilityZonesEnabled": false + }, + "api-version": "2020-10-01", + "subscriptionId": "00000000-0000-0000-0000-00000000000" }, - "api-version": "2020-10-01", - "subscriptionId": "00000000-0000-0000-0000-00000000000" - }, "responses": { "202": {}, "200": { @@ -34,7 +37,7 @@ "isAvailabilityZonesEnabled": false, "associatedWorkspaces": [], "capacityReservationProperties": { - "lastSkuUpdate": "Thu, 01 Jan 1970 00:00:00 GMT", + "lastSkuUpdate": "Thu, 01 Jan 1970 00:00:00 GMT", "minCapacity": 1000, "maxCapacity": 3000 } diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/ClustersUpdate.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/ClustersUpdate.json index d57defcf3c06..65bd2c697b9c 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/ClustersUpdate.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/ClustersUpdate.json @@ -14,7 +14,9 @@ "keyVaultUri": "https://aztest2170.vault.azure.net", "keyName": "aztest2170cert", "keyVersion": "654ft6c4e63845cbb50fd6fg51540429", - "rsaKeySize": 1024 + "rsaKeySize": 1024, + "isDoubleEncryptionEnabled": false, + "isAvailabilityZonesEnabled": false } }, "sku": { From f422a2985e5d846410ac419f8447f5e0067906e7 Mon Sep 17 00:00:00 2001 From: Daniel Haiman Date: Thu, 19 Nov 2020 12:44:42 +0200 Subject: [PATCH 04/14] fix validation errors --- .../stable/2020-10-01/Clusters.json | 13 ++++--------- .../stable/2020-10-01/examples/ClustersCreate.json | 7 ++++--- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Clusters.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Clusters.json index ec23dfa519b8..882a581dc142 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Clusters.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Clusters.json @@ -394,15 +394,10 @@ }, "associatedWorkspaces": { "description": "The list of Log Analytics workspaces associated with the cluster", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/AssociatedWorkspace" - }, - "description": "The list of Log Analytics workspaces associated with the cluster" - } - } + "type": "array", + "items": { + "$ref": "#/definitions/AssociatedWorkspace" + } }, "capacityReservationProperties": { "$ref": "#/definitions/CapacityReservationProperties", diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/ClustersCreate.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/ClustersCreate.json index 6e417ca0e0f1..21aa32e77e85 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/ClustersCreate.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/ClustersCreate.json @@ -14,9 +14,10 @@ "properties": { "isDoubleEncryptionEnabled": false, "isAvailabilityZonesEnabled": false - }, - "api-version": "2020-10-01", - "subscriptionId": "00000000-0000-0000-0000-00000000000" + } + }, + "api-version": "2020-10-01", + "subscriptionId": "00000000-0000-0000-0000-00000000000" }, "responses": { "202": {}, From 003ce4649498bbdfe84ea8cb476717c9909cca6a Mon Sep 17 00:00:00 2001 From: Daniel Haiman Date: Thu, 19 Nov 2020 12:55:35 +0200 Subject: [PATCH 05/14] missing token added --- .../stable/2020-10-01/examples/ClustersUpdate.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/ClustersUpdate.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/ClustersUpdate.json index 60021f2262db..4a2317bfeb53 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/ClustersUpdate.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/ClustersUpdate.json @@ -15,7 +15,7 @@ "keyName": "aztest2170cert", "keyVersion": "654ft6c4e63845cbb50fd6fg51540429", "isDoubleEncryptionEnabled": false, - "isAvailabilityZonesEnabled": false + "isAvailabilityZonesEnabled": false, "keyRsaSize": 1024 } }, From 4d9722e3af9ad91ed766a510cc845fe9f3bc8be3 Mon Sep 17 00:00:00 2001 From: Daniel Haiman Date: Thu, 19 Nov 2020 13:04:51 +0200 Subject: [PATCH 06/14] read only properties deleted --- .../stable/2020-10-01/examples/ClustersUpdate.json | 4 ---- 1 file changed, 4 deletions(-) diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/ClustersUpdate.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/ClustersUpdate.json index 4a2317bfeb53..4f76c2ff4f6d 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/ClustersUpdate.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/ClustersUpdate.json @@ -14,8 +14,6 @@ "keyVaultUri": "https://aztest2170.vault.azure.net", "keyName": "aztest2170cert", "keyVersion": "654ft6c4e63845cbb50fd6fg51540429", - "isDoubleEncryptionEnabled": false, - "isAvailabilityZonesEnabled": false, "keyRsaSize": 1024 } }, @@ -54,8 +52,6 @@ "billingType": "Cluster", "lastModifiedDate": "Sun, 04 Jan 2020 17:10:56 GMT", "createdDate": "Mon, 13 Jan 2020 14:40:33 GMT", - "isDoubleEncryptionEnabled": false, - "isAvailabilityZonesEnabled": false, "associatedWorkspaces": [ { "workspaceId": "942bdefd-e6c9-411c-ac69-70ffad564363", From 855de9004ba29ae641fd95e33dbd6ea5edda18a6 Mon Sep 17 00:00:00 2001 From: Daniel Haiman Date: Thu, 19 Nov 2020 13:10:19 +0200 Subject: [PATCH 07/14] read only properties deleted --- .../stable/2020-10-01/examples/ClustersCreate.json | 8 -------- 1 file changed, 8 deletions(-) diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/ClustersCreate.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/ClustersCreate.json index 21aa32e77e85..7bfce99d1618 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/ClustersCreate.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/ClustersCreate.json @@ -10,10 +10,6 @@ "location": "australiasoutheast", "tags": { "tag1": "val1" - }, - "properties": { - "isDoubleEncryptionEnabled": false, - "isAvailabilityZonesEnabled": false } }, "api-version": "2020-10-01", @@ -34,8 +30,6 @@ "billingType": "Cluster", "lastModifiedDate": "Sun, 04 Jan 2020 17:10:56 GMT", "createdDate": "Mon, 13 Jan 2020 14:40:33 GMT", - "isDoubleEncryptionEnabled": false, - "isAvailabilityZonesEnabled": false, "associatedWorkspaces": [], "capacityReservationProperties": { "lastSkuUpdate": "Thu, 01 Jan 1970 00:00:00 GMT", @@ -71,8 +65,6 @@ "billingType": "Cluster", "lastModifiedDate": "Sun, 04 Jan 2020 17:10:56 GMT", "createdDate": "Mon, 13 Jan 2020 14:40:33 GMT", - "isDoubleEncryptionEnabled": false, - "isAvailabilityZonesEnabled": false, "associatedWorkspaces": [], "capacityReservationProperties": { "lastSkuUpdate": "Thu, 01 Jan 1970 00:00:00 GMT", From 2d8aa8bc650255f18481ff2af841b5157846cc2b Mon Sep 17 00:00:00 2001 From: Daniel Haiman Date: Sun, 22 Nov 2020 14:57:36 +0200 Subject: [PATCH 08/14] LintDIff Errors Fixed --- .../stable/2020-10-01/Clusters.json | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Clusters.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Clusters.json index b5d63bed44b3..8ab5934f784c 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Clusters.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Clusters.json @@ -67,7 +67,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -106,7 +106,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -176,7 +176,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -221,7 +221,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -266,7 +266,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -319,7 +319,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -614,18 +614,18 @@ "CapacityReservationProperties": { "description": "The Capacity Reservation properties.", "properties": { - "LastSkuUpdate": { + "lastSkuUpdate": { "readOnly": true, "description": "The last time Sku was updated.", "type": "string" }, - "MinCapacity": { + "minCapacity": { "readOnly": true, "description": "Minimum CapacityReservation value in GB.", "type": "integer", "format": "int64" }, - "MaxCapacity": { + "maxCapacity": { "readOnly": true, "description": "Maximum CapacityReservation value in GB.", "type": "integer", From ece5dae6322c70915695980fceeb99aec7dcea8c Mon Sep 17 00:00:00 2001 From: Daniel Haiman Date: Sun, 22 Nov 2020 15:39:00 +0200 Subject: [PATCH 09/14] LACluster added to WorkspaceSku --- specification/common-types/resource-management/v2/types.json | 2 +- .../stable/2020-10-01/Workspaces.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/specification/common-types/resource-management/v2/types.json b/specification/common-types/resource-management/v2/types.json index 049687613be5..2857778f443d 100644 --- a/specification/common-types/resource-management/v2/types.json +++ b/specification/common-types/resource-management/v2/types.json @@ -307,7 +307,7 @@ } }, "ErrorResponse": { - "title": "Error response", + "title": "Error Response", "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).", "properties": { "error": { diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Workspaces.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Workspaces.json index 5a8d36ef411f..3dc7b2e0587e 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Workspaces.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Workspaces.json @@ -411,7 +411,8 @@ "PerNode", "PerGB2018", "Standalone", - "CapacityReservation" + "CapacityReservation", + "LACluster" ], "x-ms-enum": { "name": "WorkspaceSkuNameEnum", From f3d39367edc35ef22cd25d61c9ad56a54d6d2650 Mon Sep 17 00:00:00 2001 From: Daniel Haiman Date: Sun, 22 Nov 2020 15:54:05 +0200 Subject: [PATCH 10/14] update error description --- specification/common-types/resource-management/v2/types.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/common-types/resource-management/v2/types.json b/specification/common-types/resource-management/v2/types.json index 2857778f443d..809f4f598a36 100644 --- a/specification/common-types/resource-management/v2/types.json +++ b/specification/common-types/resource-management/v2/types.json @@ -308,7 +308,7 @@ }, "ErrorResponse": { "title": "Error Response", - "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).", + "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format)", "properties": { "error": { "description": "The error object.", From a63db78ca67bb8651c337d7b6a78e784e54a0b67 Mon Sep 17 00:00:00 2001 From: Daniel Haiman Date: Sun, 22 Nov 2020 16:01:18 +0200 Subject: [PATCH 11/14] revert types.json changes --- specification/common-types/resource-management/v2/types.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/common-types/resource-management/v2/types.json b/specification/common-types/resource-management/v2/types.json index 809f4f598a36..049687613be5 100644 --- a/specification/common-types/resource-management/v2/types.json +++ b/specification/common-types/resource-management/v2/types.json @@ -307,8 +307,8 @@ } }, "ErrorResponse": { - "title": "Error Response", - "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format)", + "title": "Error response", + "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).", "properties": { "error": { "description": "The error object.", From 08402a9dbc9558e51dc1fcfa8ddb0e0805d1b517 Mon Sep 17 00:00:00 2001 From: Arie Olshanezky Date: Sun, 22 Nov 2020 17:27:23 +0200 Subject: [PATCH 12/14] add prettier --- .../stable/2020-10-01/Clusters.json | 2 +- .../stable/2020-10-01/examples/ClustersCreate.json | 4 ++-- .../stable/2020-10-01/examples/ClustersGet.json | 2 +- .../stable/2020-10-01/examples/ClustersUpdate.json | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Clusters.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Clusters.json index 8ab5934f784c..20954f044979 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Clusters.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Clusters.json @@ -397,7 +397,7 @@ "type": "array", "items": { "$ref": "#/definitions/AssociatedWorkspace" - } + } }, "capacityReservationProperties": { "$ref": "#/definitions/CapacityReservationProperties", diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/ClustersCreate.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/ClustersCreate.json index 7bfce99d1618..7c5c2f6ae4d0 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/ClustersCreate.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/ClustersCreate.json @@ -14,7 +14,7 @@ }, "api-version": "2020-10-01", "subscriptionId": "00000000-0000-0000-0000-00000000000" - }, + }, "responses": { "202": {}, "200": { @@ -67,7 +67,7 @@ "createdDate": "Mon, 13 Jan 2020 14:40:33 GMT", "associatedWorkspaces": [], "capacityReservationProperties": { - "lastSkuUpdate": "Thu, 01 Jan 1970 00:00:00 GMT", + "lastSkuUpdate": "Thu, 01 Jan 1970 00:00:00 GMT", "minCapacity": 1000, "maxCapacity": 3000 } diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/ClustersGet.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/ClustersGet.json index 2de8b4295d3c..ed1c03679531 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/ClustersGet.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/ClustersGet.json @@ -37,7 +37,7 @@ } ], "capacityReservationProperties": { - "lastSkuUpdate": "Thu, 01 Jan 1970 00:00:00 GMT", + "lastSkuUpdate": "Thu, 01 Jan 1970 00:00:00 GMT", "minCapacity": 1000, "maxCapacity": 3000 } diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/ClustersUpdate.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/ClustersUpdate.json index 4f76c2ff4f6d..0e5a0ee89da3 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/ClustersUpdate.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/ClustersUpdate.json @@ -67,7 +67,7 @@ } ], "capacityReservationProperties": { - "lastSkuUpdate": "Thu, 01 Jan 1970 00:00:00 GMT", + "lastSkuUpdate": "Thu, 01 Jan 1970 00:00:00 GMT", "minCapacity": 1000, "maxCapacity": 3000 } From 727cc42408a439561a2d98401ba5ccc630c8621b Mon Sep 17 00:00:00 2001 From: Daniel Haiman Date: Mon, 23 Nov 2020 10:54:51 +0200 Subject: [PATCH 13/14] change default error response to use V2 format --- .../stable/2020-10-01/Operations.json | 6 +++++ .../stable/2020-10-01/Workspaces.json | 26 ++++++------------- 2 files changed, 14 insertions(+), 18 deletions(-) diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Operations.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Operations.json index 30447d99e87d..7436b67c1886 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Operations.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Operations.json @@ -57,6 +57,12 @@ "schema": { "$ref": "#/definitions/OperationListResult" } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } } }, "x-ms-pageable": { diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Workspaces.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Workspaces.json index 3dc7b2e0587e..126d9a1483c9 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Workspaces.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Workspaces.json @@ -64,7 +64,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/WorkspaceErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -106,7 +106,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/WorkspaceErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -169,7 +169,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/WorkspaceErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -220,7 +220,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/WorkspaceErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -261,7 +261,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/WorkspaceErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -310,7 +310,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/WorkspaceErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -346,7 +346,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/WorkspaceErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -388,7 +388,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/WorkspaceErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -499,16 +499,6 @@ } } }, - "WorkspaceErrorResponse": { - "description": "Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message.", - "type": "object", - "properties": { - "error": { - "description": "The details of the error.", - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" - } - } - }, "WorkspaceProperties": { "properties": { "provisioningState": { From 395ef8b15d512c2c85a51dd8b86a5e33ed01ce3c Mon Sep 17 00:00:00 2001 From: Daniel Haiman Date: Mon, 23 Nov 2020 11:20:45 +0200 Subject: [PATCH 14/14] use V2 types.json file --- .../stable/2020-10-01/Clusters.json | 36 +++++++------- .../stable/2020-10-01/Operations.json | 2 +- .../stable/2020-10-01/Workspaces.json | 48 +++++++++---------- 3 files changed, 43 insertions(+), 43 deletions(-) diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Clusters.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Clusters.json index 20954f044979..f786f881c9fa 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Clusters.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Clusters.json @@ -48,13 +48,13 @@ "description": "Gets Log Analytics clusters in a resource group.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -90,10 +90,10 @@ "description": "Gets the Log Analytics clusters in a subscription.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -129,13 +129,13 @@ "description": "Create or update a Log Analytics cluster.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" }, { "name": "clusterName", @@ -195,7 +195,7 @@ "description": "Deletes a cluster instance.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "clusterName", @@ -205,10 +205,10 @@ "description": "Name of the Log Analytics Cluster." }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -240,13 +240,13 @@ "description": "Gets a Log Analytics cluster instance.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { "name": "clusterName", @@ -284,7 +284,7 @@ "description": "Updates a Log Analytics cluster.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "clusterName", @@ -303,10 +303,10 @@ "description": "The parameters required to patch a Log Analytics cluster." }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -464,7 +464,7 @@ }, "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/TrackedResource" } ], "description": "The top level Log Analytics cluster resource container." diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Operations.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Operations.json index 7436b67c1886..b52b4eb6a6fe 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Operations.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Operations.json @@ -48,7 +48,7 @@ "description": "Lists all of the available OperationalInsights Rest API operations.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Workspaces.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Workspaces.json index 126d9a1483c9..4d9e0ee1c756 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Workspaces.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Workspaces.json @@ -48,10 +48,10 @@ "description": "Gets the workspaces in a subscription.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -87,13 +87,13 @@ "description": "Gets workspaces in a resource group.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -129,7 +129,7 @@ "description": "Create or update a workspace.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "../../../common/v1/types.json#/parameters/WorkspaceNameParameter" @@ -144,10 +144,10 @@ "description": "The parameters required to create or update a workspace." }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -188,16 +188,16 @@ "description": "Deletes a workspace resource. To recover the workspace, create it again with the same name, in the same subscription, resource group and location. The name is kept for 14 days and cannot be used for another workspace. To remove the workspace completely and release the name, use the force flag.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "../../../common/v1/types.json#/parameters/WorkspaceNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" }, { "name": "force", @@ -239,16 +239,16 @@ "description": "Gets a workspace instance.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "../../../common/v1/types.json#/parameters/WorkspaceNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -279,7 +279,7 @@ "description": "Updates a workspace.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "../../../common/v1/types.json#/parameters/WorkspaceNameParameter" @@ -294,10 +294,10 @@ "description": "The parameters required to patch a workspace." }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -330,10 +330,10 @@ "description": "Gets recently deleted workspaces in a subscription, available for recovery.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -369,13 +369,13 @@ "description": "Gets recently deleted workspaces in a resource group, available for recovery.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -588,7 +588,7 @@ }, "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/TrackedResource" } ], "description": "The top level Workspace resource container." @@ -615,7 +615,7 @@ }, "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/AzureEntityResource" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/AzureEntityResource" } ], "description": "The top level Workspace resource container."