From 1bcc20d7c3523dfddc34a44881048824f3b86d1c Mon Sep 17 00:00:00 2001 From: Mark Cowlishaw Date: Wed, 21 Aug 2019 19:39:12 -0700 Subject: [PATCH 1/5] Add blockchain to latest profile --- profiles/definitions/latest-2019-04-30.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/profiles/definitions/latest-2019-04-30.md b/profiles/definitions/latest-2019-04-30.md index d232011ad030..c011a4cc041a 100644 --- a/profiles/definitions/latest-2019-04-30.md +++ b/profiles/definitions/latest-2019-04-30.md @@ -41,6 +41,15 @@ profiles: - managedClusters/accessProfiles '2017-07-01': - containerServices + microsoft.blockchain: + '2018-06-01-preview': + - blockchainMembers + - blockchainMembers/consortiumMembers + - blockchainMembers/transactionNodes + - locations + - locations/blockchainMemberOperationResults + - operations + - skus microsoft.capacity: '2019-04-01': - appliedReservations From 7b4609776da798ad54384cbaccd1221f096b275b Mon Sep 17 00:00:00 2001 From: Mark Cowlishaw Date: Wed, 21 Aug 2019 19:52:35 -0700 Subject: [PATCH 2/5] Add additional types --- profiles/definitions/latest-2019-04-30.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/profiles/definitions/latest-2019-04-30.md b/profiles/definitions/latest-2019-04-30.md index c011a4cc041a..5a4f50360390 100644 --- a/profiles/definitions/latest-2019-04-30.md +++ b/profiles/definitions/latest-2019-04-30.md @@ -45,9 +45,15 @@ profiles: '2018-06-01-preview': - blockchainMembers - blockchainMembers/consortiumMembers + - blockchainMembers/listApiKeys + - lockchainMembers/regenerateApiKeys - blockchainMembers/transactionNodes + - blockchainMembers/transactionNodes/listApiKeys + - blockchainMembers/transactionNodes/regenerateApiKeys - locations - locations/blockchainMemberOperationResults + - locations/checkNameAvailability + - locations/listConsortiums - operations - skus microsoft.capacity: From d30a3214a8f49e6c857c0daa243ef4dd2f60c716 Mon Sep 17 00:00:00 2001 From: dabenhamMic Date: Sun, 12 Jun 2022 15:34:28 +0300 Subject: [PATCH 3/5] Purge update --- .../stable/2020-02-02/components_API.json | 2 +- .../stable/2020-08-01/WorkspacePurge.json | 17 +++++++---- .../examples/WorkspacesPurgeResourceId.json | 28 +++++++++++++++++++ 3 files changed, 41 insertions(+), 6 deletions(-) create mode 100644 specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/WorkspacesPurgeResourceId.json diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/components_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/components_API.json index 9f368930e03f..b85c8147e78a 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/components_API.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/components_API.json @@ -282,7 +282,7 @@ }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/purge": { "post": { - "description": "Purges data in an Application Insights component by a set of user-defined filters.\n\nIn order to manage system resources, purge requests are throttled at 50 requests per hour. You should batch the execution of purge requests by sending a single command whose predicate includes all user identities that require purging. Use the in operator to specify multiple identities. You should run the query prior to using for a purge request to verify that the results are expected.", + "description": "Purges data in an Application Insights component by a set of user-defined filters.\n\nIn order to manage system resources, purge requests are throttled at 50 requests per hour. You should batch the execution of purge requests by sending a single command whose predicate includes all user identities that require purging. Use the in operator to specify multiple identities. You should run the query prior to using for a purge request to verify that the results are expected.\nNote: this operation is intended for Classic resources, for workspace-based Application Insights resource please run purge operation (directly on the workspace)(https://docs.microsoft.com/en-us/rest/api/loganalytics/workspace-purge/purge) , scoped to specific resource id.", "operationId": "Components_Purge", "parameters": [ { diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/WorkspacePurge.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/WorkspacePurge.json index 92892085612f..554fcd0c3bf3 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/WorkspacePurge.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/WorkspacePurge.json @@ -39,7 +39,7 @@ "tags": [ "Workspaces" ], - "description": "Purges data in an Log Analytics workspace by a set of user-defined filters.\n\nIn order to manage system resources, purge requests are throttled at 50 requests per hour. You should batch the execution of purge requests by sending a single command whose predicate includes all user identities that require purging. Use the in operator to specify multiple identities. You should run the query prior to using for a purge request to verify that the results are expected.", + "description": "Purges data in an Log Analytics workspace by a set of user-defined filters.\n\nIn order to manage system resources, purge requests are throttled at 50 requests per hour. You should batch the execution of purge requests by sending a single command whose predicate includes all user identities that require purging. Use the in operator to specify multiple identities. You should run the query prior to using for a purge request to verify that the results are expected.\nLog Analytics only supports purge operations required for compliance with GDPR. The Log Analytics product team reserves the right to reject requests for purge operations that are not for the purpose of GDPR compliance. In the event of a dispute, please create a support ticket", "operationId": "WorkspacePurge_Purge", "parameters": [ { @@ -72,11 +72,18 @@ } } }, - "x-ms-examples": { - "WorkspacePurge": { - "$ref": "./examples/WorkspacesPurge.json" + "x-ms-examples": [ + { + "WorkspacePurge": { + "$ref": "./examples/WorkspacesPurge.json" + } + }, + { + "WorkspacePurge": { + "$ref": "./examples/WorkspacesPurgeResourceId.json" + } } - } + ] } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/operations/{purgeId}": { diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/WorkspacesPurgeResourceId.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/WorkspacesPurgeResourceId.json new file mode 100644 index 000000000000..a3146cb56a52 --- /dev/null +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/WorkspacesPurgeResourceId.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "resourceGroupName": "OIAutoRest5123", + "workspaceName": "aztest5048", + "api-version": "2020-08-01", + "subscriptionId": "00000000-0000-0000-0000-00000000000", + "body": { + "table": "Heartbeat", + "filters": [ + { + "column": "_ResourceId", + "operator": "==", + "value": "/subscriptions/12341234-1234-1234-1234-123412341234/resourceGroups/SomeResourceGroup/providers/microsoft.insights/components/AppInsightResource" + } + ] + } + }, + "responses": { + "202": { + "headers": { + "x-ms-status-location": "https://management.azure.com/subscriptions/b96161de-b34a-480f-7343-59b099299283/resourceGroups/example/providers/microsoft.operationalinsights/workspaces/test/operations/purge-970318e7-b859-4edb-8903-83b1b54d0b74?api-version=2020-08-01" + }, + "body": { + "operationId": "7d7cf277-9113-4ab3-8359-d0364b74d01d" + } + } + } +} From a5e497b1fe22a163e1c9a50f6d5d1eaa0d6210bf Mon Sep 17 00:00:00 2001 From: dabenhamMic Date: Tue, 28 Jun 2022 12:45:19 +0300 Subject: [PATCH 4/5] bad syntax fix for workspacePurge examples --- .../stable/2020-08-01/WorkspacePurge.json | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/WorkspacePurge.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/WorkspacePurge.json index 554fcd0c3bf3..795dc957bae9 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/WorkspacePurge.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/WorkspacePurge.json @@ -72,18 +72,14 @@ } } }, - "x-ms-examples": [ - { + "x-ms-examples": { "WorkspacePurge": { "$ref": "./examples/WorkspacesPurge.json" - } - }, - { - "WorkspacePurge": { + }, + "WorkspacePurgeResourceId": { "$ref": "./examples/WorkspacesPurgeResourceId.json" } } - ] } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/operations/{purgeId}": { From 92509a9923aebca424c2880675e72a7ceca83a51 Mon Sep 17 00:00:00 2001 From: dabenhamMic Date: Tue, 28 Jun 2022 13:08:24 +0300 Subject: [PATCH 5/5] pretty --- .../stable/2020-08-01/WorkspacePurge.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/WorkspacePurge.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/WorkspacePurge.json index 795dc957bae9..1954d61542d4 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/WorkspacePurge.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/WorkspacePurge.json @@ -73,13 +73,13 @@ } }, "x-ms-examples": { - "WorkspacePurge": { - "$ref": "./examples/WorkspacesPurge.json" - }, - "WorkspacePurgeResourceId": { - "$ref": "./examples/WorkspacesPurgeResourceId.json" - } + "WorkspacePurge": { + "$ref": "./examples/WorkspacesPurge.json" + }, + "WorkspacePurgeResourceId": { + "$ref": "./examples/WorkspacesPurgeResourceId.json" } + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/operations/{purgeId}": {