From e9741727b2ae9c49adb521c5d43447dd45a3dd54 Mon Sep 17 00:00:00 2001 From: daniel ben-hamoo Date: Thu, 12 Nov 2020 11:21:04 +0200 Subject: [PATCH 01/57] added3 new properties to TableProperties: IsTroubleshootingAllowed, IsTroubleshootingEnabled, IsTroubleshootingEnabledLastActivation. --- .../preview/2020-03-01-preview/Tables.json | 21 +++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/Tables.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/Tables.json index cf4e21a219ef..124e6dc3bda3 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/Tables.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/Tables.json @@ -186,7 +186,24 @@ "minimum": 30, "maximum": 730, "description": "The data table data retention in days, between 30 and 730. Setting this property to null will default to the workspace retention." - } + }, + "IsTroubleshootingAllowed" : { + "readOnly": true, + "type": "bool", + "description": "Whether the table is capable of being IsTroubleshootingEnabled." + }, + "IsTroubleshootingEnabled" : { + "default": null, + "required": false, + "type": "bool", + "description": "Whether the table is in the state of IsTroubleshootingEnabled." + }, + "IsTroubleshootingEnabledLastActivation" : { + "default": null, + "readOnly": true, + "type": "string", + "format": "date-time", + "description": "Last enabled time of IsTroubleshootingEnabled."} }, "description": "Table properties." }, @@ -238,4 +255,4 @@ "x-ms-parameter-location": "method" } } -} +} \ No newline at end of file From c35824b3abbc4d7f00ffcc86c2cef93dda12189c Mon Sep 17 00:00:00 2001 From: daniel ben-hamoo Date: Mon, 30 Nov 2020 13:45:12 +0200 Subject: [PATCH 02/57] added Tables new api version --- .../preview/2020-03-01-preview/Clusters.json | 1 + .../preview/2020-03-01-preview/Tables.json | 7 +- .../stable/2020-10-01/Tables.json | 257 ++++++++++++++++++ .../stable/2020-10-01/examples/TablesGet.json | 23 ++ .../2020-10-01/examples/TablesList.json | 41 +++ .../2020-10-01/examples/TablesUpdate.json | 28 ++ 6 files changed, 353 insertions(+), 4 deletions(-) create mode 100644 specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json create mode 100644 specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesGet.json create mode 100644 specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesList.json create mode 100644 specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesUpdate.json diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/Clusters.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/Clusters.json index 91082fab8381..dde5e08620d2 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/Clusters.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/Clusters.json @@ -336,6 +336,7 @@ "clusterId": { "type": "string", "readOnly": true, + "description": "The ID associated with the cluster." }, "provisioningState": { diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/Tables.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/Tables.json index 124e6dc3bda3..b0b2efe51fe0 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/Tables.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/Tables.json @@ -190,20 +190,19 @@ "IsTroubleshootingAllowed" : { "readOnly": true, "type": "bool", - "description": "Whether the table is capable of being IsTroubleshootingEnabled." + "description": "Specifies if IsTroubleshootingEnabled property can be set for this table." }, "IsTroubleshootingEnabled" : { "default": null, "required": false, "type": "bool", - "description": "Whether the table is in the state of IsTroubleshootingEnabled." + "description": "Enable or disable troubleshooting for this table." }, "IsTroubleshootingEnabledLastActivation" : { - "default": null, "readOnly": true, "type": "string", "format": "date-time", - "description": "Last enabled time of IsTroubleshootingEnabled."} + "description": "Last time when troubleshooting was set for this table."} }, "description": "Table properties." }, diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json new file mode 100644 index 000000000000..3bc6eaaab526 --- /dev/null +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json @@ -0,0 +1,257 @@ +{ + "swagger": "2.0", + "info": { + "title": "Azure Log Analytics", + "description": "Azure Log Analytics API reference", + "version": "2020-10-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.OperationalInsights/workspaces/{workspaceName}/tables": { + "get": { + "tags": [ + "Tables" + ], + "x-ms-examples": { + "TablesListByWorkspace": { + "$ref": "./examples/TablesList.json" + } + }, + "operationId": "Tables_ListByWorkspace", + "description": "Gets all the tables for the specified Log Analytics workspace.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/WorkspaceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK response definition.", + "schema": { + "$ref": "#/definitions/TablesListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorContract" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}": { + "patch": { + "tags": [ + "Tables" + ], + "x-ms-examples": { + "TablesSet": { + "$ref": "./examples/TablesUpdate.json" + } + }, + "operationId": "Tables_Update", + "description": "Updates a Log Analytics workspace table properties.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/WorkspaceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/TableNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Table" + }, + "description": "The parameters required to update table properties." + } + ], + "responses": { + "200": { + "description": "OK response definition.", + "schema": { + "$ref": "#/definitions/Table" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorContract" + } + } + } + }, + "get": { + "tags": [ + "Tables" + ], + "x-ms-examples": { + "TablesGet": { + "$ref": "./examples/TablesGet.json" + } + }, + "operationId": "Tables_Get", + "description": "Gets a Log Analytics workspace table.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/WorkspaceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/TableNameParameter" + } + ], + "responses": { + "200": { + "description": "OK response definition.", + "schema": { + "$ref": "#/definitions/Table" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorContract" + } + } + } + } + } + }, + "definitions": { + "TableProperties": { + "properties": { + "retentionInDays": { + "type": "integer", + "format": "int32", + "minimum": 7, + "maximum": 730, + "description": "The data table data retention in days, between 7 and 730. Setting this property to null will default to the workspace retention." + }, + "IsTroubleshootingAllowed" : { + "readOnly": true, + "type": "bool", + "description": "Specifies if IsTroubleshootingEnabled property can be set for this table." + }, + "IsTroubleshootEnabled" : { + "default": null, + "required": false, + "type": "bool", + "description": "Enable or disable troubleshoot for this table." + }, + "LastTroubleshootDate" : { + "readOnly": true, + "type": "string", + "format": "date-time", + "description": "Last time when troubleshooting was set for this table."} + }, + "description": "Table properties." + }, + "Table": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/TableProperties", + "description": "Table properties." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + } + ], + "description": "Workspace data table definition." + }, + "TablesListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Table" + }, + "description": "A list of data tables." + } + }, + "description": "The list tables operation response." + }, + "ErrorContract": { + "title": "Error details.", + "description": "Contains details when the response code indicates an error.", + "properties": { + "error": { + "description": "The details of the error.", + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + } + } + } + }, + "parameters": { + "TableNameParameter": { + "name": "tableName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the table.", + "x-ms-parameter-location": "method" + } + } + } \ No newline at end of file diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesGet.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesGet.json new file mode 100644 index 000000000000..2e90e2cad49d --- /dev/null +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesGet.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "resourceGroupName": "oiautorest6685", + "workspaceName": "oiautorest6685", + "api-version": "2020-10-01", + "subscriptionId": "00000000-0000-0000-0000-00000000000", + "tableName": "table1" + }, + "responses": { + "200": { + "body": { + "properties": { + "retentionInDays": 30, + "IsTroubleshootingAllowed": true, + "isTroubleshootEnabled": true, + "lastTroubleshootDate": "Thu, 19 Nov 2020 07:40:51 GMT" + }, + "id": "/subscriptions/00000000-0000-0000-0000-00000000000/resourcegroups/oiautorest6685/providers/microsoft.operationalinsights/workspaces/oiautorest6685/tables/table1", + "name": "table1" + } + } + } + } \ No newline at end of file diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesList.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesList.json new file mode 100644 index 000000000000..b97c3804ef0d --- /dev/null +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesList.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "resourceGroupName": "oiautorest6685", + "workspaceName": "oiautorest6685", + "api-version": "2020-10-01", + "subscriptionId": "00000000-0000-0000-0000-00000000000" + }, + "responses": { + "200": { + "body": [ + { + "properties": { + "retentionInDays": 30, + "IsTroubleshootingAllowed": true, + "isTroubleshootEnabled": true, + "lastTroubleshootDate": "Thu, 19 Nov 2020 07:40:51 GMT" + }, + "id": "/subscriptions/00000000-0000-0000-0000-00000000000/resourcegroups/oiautorest6685/providers/microsoft.operationalinsights/workspaces/oiautorest6685/tables/table1", + "name": "table1" + }, + { + "properties": { + "retentionInDays": 7, + "IsTroubleshootingAllowed": true + }, + "id": "/subscriptions/00000000-0000-0000-0000-00000000000/resourcegroups/oiautorest6685/providers/microsoft.operationalinsights/workspaces/oiautorest6685/tables/table2", + "name": "table2" + }, + { + "properties": { + "retentionInDays": 7, + "IsTroubleshootingAllowed": false + }, + "id": "/subscriptions/00000000-0000-0000-0000-00000000000/resourcegroups/oiautorest6685/providers/microsoft.operationalinsights/workspaces/oiautorest6685/tables/table3", + "name": "table3" + } + ] + } + } + } + \ No newline at end of file diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesUpdate.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesUpdate.json new file mode 100644 index 000000000000..5587e815764c --- /dev/null +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesUpdate.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "resourceGroupName": "oiautorest6685", + "workspaceName": "oiautorest6685", + "api-version": "2020-10-01", + "subscriptionId": "00000000-0000-0000-0000-00000000000", + "tableName": "table1", + "parameters": { + "properties": { + "RetentionInDays": 40, + "IsTroubleshootEnabled": true + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "RetentionInDays": 40, + "IsTroubleshootEnabled": true + }, + "id": "/subscriptions/bbf99725-4174-4a55-a11c-94cf2eea98a6/resourcegroups/dabenham-rgtest/providers/Microsoft.OperationalInsights/workspaces/dabenhamistroubleshootinge2e/tables/AnotherTestE2E_CL", + "name": "AnotherTestE2E_CL" + } + } + } + } + From 7c7ddb43245eab1675b6d94bda1150e579b2dcd9 Mon Sep 17 00:00:00 2001 From: daniel ben-hamoo Date: Tue, 8 Dec 2020 17:42:31 +0200 Subject: [PATCH 03/57] changed bool to boolean types --- .../stable/2020-10-01/Tables.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json index 3bc6eaaab526..b6553fae4e8b 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json @@ -189,13 +189,13 @@ }, "IsTroubleshootingAllowed" : { "readOnly": true, - "type": "bool", + "type": "boolean", "description": "Specifies if IsTroubleshootingEnabled property can be set for this table." }, "IsTroubleshootEnabled" : { "default": null, "required": false, - "type": "bool", + "type": "boolean", "description": "Enable or disable troubleshoot for this table." }, "LastTroubleshootDate" : { From 1b399494011615b991985dc43a771c4d92f6236b Mon Sep 17 00:00:00 2001 From: daniel ben-hamoo Date: Tue, 8 Dec 2020 18:33:27 +0200 Subject: [PATCH 04/57] prettified jsons --- .../preview/2020-03-01-preview/Clusters.json | 1 - .../preview/2020-03-01-preview/Tables.json | 13 +- .../stable/2020-10-01/Tables.json | 452 +++++++++--------- .../stable/2020-10-01/examples/TablesGet.json | 40 +- .../2020-10-01/examples/TablesList.json | 71 ++- .../2020-10-01/examples/TablesUpdate.json | 43 +- 6 files changed, 309 insertions(+), 311 deletions(-) diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/Clusters.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/Clusters.json index dde5e08620d2..91082fab8381 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/Clusters.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/Clusters.json @@ -336,7 +336,6 @@ "clusterId": { "type": "string", "readOnly": true, - "description": "The ID associated with the cluster." }, "provisioningState": { diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/Tables.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/Tables.json index b0b2efe51fe0..3fc30712c39c 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/Tables.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/Tables.json @@ -187,22 +187,23 @@ "maximum": 730, "description": "The data table data retention in days, between 30 and 730. Setting this property to null will default to the workspace retention." }, - "IsTroubleshootingAllowed" : { + "IsTroubleshootingAllowed": { "readOnly": true, "type": "bool", "description": "Specifies if IsTroubleshootingEnabled property can be set for this table." }, - "IsTroubleshootingEnabled" : { + "IsTroubleshootingEnabled": { "default": null, "required": false, "type": "bool", "description": "Enable or disable troubleshooting for this table." }, - "IsTroubleshootingEnabledLastActivation" : { - "readOnly": true, + "IsTroubleshootingEnabledLastActivation": { + "readOnly": true, "type": "string", "format": "date-time", - "description": "Last time when troubleshooting was set for this table."} + "description": "Last time when troubleshooting was set for this table." + } }, "description": "Table properties." }, @@ -254,4 +255,4 @@ "x-ms-parameter-location": "method" } } -} \ No newline at end of file +} diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json index b6553fae4e8b..d2c11d145b67 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json @@ -1,257 +1,257 @@ { - "swagger": "2.0", - "info": { - "title": "Azure Log Analytics", - "description": "Azure Log Analytics API reference", - "version": "2020-10-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" - } + "swagger": "2.0", + "info": { + "title": "Azure Log Analytics", + "description": "Azure Log Analytics API reference", + "version": "2020-10-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.OperationalInsights/workspaces/{workspaceName}/tables": { - "get": { - "tags": [ - "Tables" - ], - "x-ms-examples": { - "TablesListByWorkspace": { - "$ref": "./examples/TablesList.json" - } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables": { + "get": { + "tags": [ + "Tables" + ], + "x-ms-examples": { + "TablesListByWorkspace": { + "$ref": "./examples/TablesList.json" + } + }, + "operationId": "Tables_ListByWorkspace", + "description": "Gets all the tables for the specified Log Analytics workspace.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" }, - "operationId": "Tables_ListByWorkspace", - "description": "Gets all the tables for the specified Log Analytics workspace.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/WorkspaceNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK response definition.", - "schema": { - "$ref": "#/definitions/TablesListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorContract" - } - } + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}": { - "patch": { - "tags": [ - "Tables" - ], - "x-ms-examples": { - "TablesSet": { - "$ref": "./examples/TablesUpdate.json" - } + { + "$ref": "../../../common/v1/types.json#/parameters/WorkspaceNameParameter" }, - "operationId": "Tables_Update", - "description": "Updates a Log Analytics workspace table properties.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/WorkspaceNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/TableNameParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Table" - }, - "description": "The parameters required to update table properties." - } - ], - "responses": { - "200": { - "description": "OK response definition.", - "schema": { - "$ref": "#/definitions/Table" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorContract" - } - } + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" } - }, - "get": { - "tags": [ - "Tables" - ], - "x-ms-examples": { - "TablesGet": { - "$ref": "./examples/TablesGet.json" + ], + "responses": { + "200": { + "description": "OK response definition.", + "schema": { + "$ref": "#/definitions/TablesListResult" } }, - "operationId": "Tables_Get", - "description": "Gets a Log Analytics workspace table.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/WorkspaceNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/TableNameParameter" - } - ], - "responses": { - "200": { - "description": "OK response definition.", - "schema": { - "$ref": "#/definitions/Table" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorContract" - } + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorContract" } } + }, + "x-ms-pageable": { + "nextLinkName": null } } }, - "definitions": { - "TableProperties": { - "properties": { - "retentionInDays": { - "type": "integer", - "format": "int32", - "minimum": 7, - "maximum": 730, - "description": "The data table data retention in days, between 7 and 730. Setting this property to null will default to the workspace retention." + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}": { + "patch": { + "tags": [ + "Tables" + ], + "x-ms-examples": { + "TablesSet": { + "$ref": "./examples/TablesUpdate.json" + } + }, + "operationId": "Tables_Update", + "description": "Updates a Log Analytics workspace table properties.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" }, - "IsTroubleshootingAllowed" : { - "readOnly": true, - "type": "boolean", - "description": "Specifies if IsTroubleshootingEnabled property can be set for this table." + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" }, - "IsTroubleshootEnabled" : { - "default": null, - "required": false, - "type": "boolean", - "description": "Enable or disable troubleshoot for this table." + { + "$ref": "../../../common/v1/types.json#/parameters/WorkspaceNameParameter" }, - "LastTroubleshootDate" : { - "readOnly": true, - "type": "string", - "format": "date-time", - "description": "Last time when troubleshooting was set for this table."} - }, - "description": "Table properties." + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/TableNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Table" + }, + "description": "The parameters required to update table properties." + } + ], + "responses": { + "200": { + "description": "OK response definition.", + "schema": { + "$ref": "#/definitions/Table" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorContract" + } + } + } }, - "Table": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/TableProperties", - "description": "Table properties." + "get": { + "tags": [ + "Tables" + ], + "x-ms-examples": { + "TablesGet": { + "$ref": "./examples/TablesGet.json" } }, - "allOf": [ + "operationId": "Tables_Get", + "description": "Gets a Log Analytics workspace table.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/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/v1/types.json#/definitions/ProxyResource" + "$ref": "#/parameters/TableNameParameter" } ], - "description": "Workspace data table definition." - }, - "TablesListResult": { - "properties": { - "value": { - "type": "array", - "items": { + "responses": { + "200": { + "description": "OK response definition.", + "schema": { "$ref": "#/definitions/Table" - }, - "description": "A list of data tables." + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorContract" + } } + } + } + } + }, + "definitions": { + "TableProperties": { + "properties": { + "retentionInDays": { + "type": "integer", + "format": "int32", + "minimum": 7, + "maximum": 730, + "description": "The data table data retention in days, between 7 and 730. Setting this property to null will default to the workspace retention." + }, + "IsTroubleshootingAllowed": { + "readOnly": true, + "type": "boolean", + "description": "Specifies if IsTroubleshootingEnabled property can be set for this table." + }, + "IsTroubleshootEnabled": { + "default": null, + "type": "boolean", + "description": "Enable or disable troubleshoot for this table." }, - "description": "The list tables operation response." + "LastTroubleshootDate": { + "readOnly": true, + "type": "string", + "format": "date-time", + "description": "Last time when troubleshooting was set for this table." + } }, - "ErrorContract": { - "title": "Error details.", - "description": "Contains details when the response code indicates an error.", + "description": "Table properties." + }, + "Table": { + "properties": { "properties": { - "error": { - "description": "The details of the error.", - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" - } + "x-ms-client-flatten": true, + "$ref": "#/definitions/TableProperties", + "description": "Table properties." } - } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + } + ], + "description": "Workspace data table definition." }, - "parameters": { - "TableNameParameter": { - "name": "tableName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the table.", - "x-ms-parameter-location": "method" + "TablesListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Table" + }, + "description": "A list of data tables." + } + }, + "description": "The list tables operation response." + }, + "ErrorContract": { + "title": "Error details.", + "description": "Contains details when the response code indicates an error.", + "properties": { + "error": { + "description": "The details of the error.", + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + } } } - } \ No newline at end of file + }, + "parameters": { + "TableNameParameter": { + "name": "tableName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the table.", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesGet.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesGet.json index 2e90e2cad49d..2c8d57ba97e6 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesGet.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesGet.json @@ -1,23 +1,23 @@ { - "parameters": { - "resourceGroupName": "oiautorest6685", - "workspaceName": "oiautorest6685", - "api-version": "2020-10-01", - "subscriptionId": "00000000-0000-0000-0000-00000000000", - "tableName": "table1" - }, - "responses": { - "200": { - "body": { - "properties": { - "retentionInDays": 30, - "IsTroubleshootingAllowed": true, - "isTroubleshootEnabled": true, - "lastTroubleshootDate": "Thu, 19 Nov 2020 07:40:51 GMT" - }, - "id": "/subscriptions/00000000-0000-0000-0000-00000000000/resourcegroups/oiautorest6685/providers/microsoft.operationalinsights/workspaces/oiautorest6685/tables/table1", - "name": "table1" - } + "parameters": { + "resourceGroupName": "oiautorest6685", + "workspaceName": "oiautorest6685", + "api-version": "2020-10-01", + "subscriptionId": "00000000-0000-0000-0000-00000000000", + "tableName": "table1" + }, + "responses": { + "200": { + "body": { + "properties": { + "retentionInDays": 30, + "IsTroubleshootingAllowed": true, + "isTroubleshootEnabled": true, + "lastTroubleshootDate": "Thu, 19 Nov 2020 07:40:51 GMT" + }, + "id": "/subscriptions/00000000-0000-0000-0000-00000000000/resourcegroups/oiautorest6685/providers/microsoft.operationalinsights/workspaces/oiautorest6685/tables/table1", + "name": "table1" } } - } \ No newline at end of file + } +} diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesList.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesList.json index b97c3804ef0d..d696045a4e3f 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesList.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesList.json @@ -1,41 +1,40 @@ { - "parameters": { - "resourceGroupName": "oiautorest6685", - "workspaceName": "oiautorest6685", - "api-version": "2020-10-01", - "subscriptionId": "00000000-0000-0000-0000-00000000000" - }, - "responses": { - "200": { - "body": [ - { - "properties": { - "retentionInDays": 30, - "IsTroubleshootingAllowed": true, - "isTroubleshootEnabled": true, - "lastTroubleshootDate": "Thu, 19 Nov 2020 07:40:51 GMT" - }, - "id": "/subscriptions/00000000-0000-0000-0000-00000000000/resourcegroups/oiautorest6685/providers/microsoft.operationalinsights/workspaces/oiautorest6685/tables/table1", - "name": "table1" + "parameters": { + "resourceGroupName": "oiautorest6685", + "workspaceName": "oiautorest6685", + "api-version": "2020-10-01", + "subscriptionId": "00000000-0000-0000-0000-00000000000" + }, + "responses": { + "200": { + "body": [ + { + "properties": { + "retentionInDays": 30, + "IsTroubleshootingAllowed": true, + "isTroubleshootEnabled": true, + "lastTroubleshootDate": "Thu, 19 Nov 2020 07:40:51 GMT" }, - { - "properties": { - "retentionInDays": 7, - "IsTroubleshootingAllowed": true - }, - "id": "/subscriptions/00000000-0000-0000-0000-00000000000/resourcegroups/oiautorest6685/providers/microsoft.operationalinsights/workspaces/oiautorest6685/tables/table2", - "name": "table2" + "id": "/subscriptions/00000000-0000-0000-0000-00000000000/resourcegroups/oiautorest6685/providers/microsoft.operationalinsights/workspaces/oiautorest6685/tables/table1", + "name": "table1" + }, + { + "properties": { + "retentionInDays": 7, + "IsTroubleshootingAllowed": true }, - { - "properties": { - "retentionInDays": 7, - "IsTroubleshootingAllowed": false - }, - "id": "/subscriptions/00000000-0000-0000-0000-00000000000/resourcegroups/oiautorest6685/providers/microsoft.operationalinsights/workspaces/oiautorest6685/tables/table3", - "name": "table3" - } - ] - } + "id": "/subscriptions/00000000-0000-0000-0000-00000000000/resourcegroups/oiautorest6685/providers/microsoft.operationalinsights/workspaces/oiautorest6685/tables/table2", + "name": "table2" + }, + { + "properties": { + "retentionInDays": 7, + "IsTroubleshootingAllowed": false + }, + "id": "/subscriptions/00000000-0000-0000-0000-00000000000/resourcegroups/oiautorest6685/providers/microsoft.operationalinsights/workspaces/oiautorest6685/tables/table3", + "name": "table3" + } + ] } } - \ No newline at end of file +} diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesUpdate.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesUpdate.json index 5587e815764c..1eca38467f0a 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesUpdate.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesUpdate.json @@ -1,28 +1,27 @@ { + "parameters": { + "resourceGroupName": "oiautorest6685", + "workspaceName": "oiautorest6685", + "api-version": "2020-10-01", + "subscriptionId": "00000000-0000-0000-0000-00000000000", + "tableName": "table1", "parameters": { - "resourceGroupName": "oiautorest6685", - "workspaceName": "oiautorest6685", - "api-version": "2020-10-01", - "subscriptionId": "00000000-0000-0000-0000-00000000000", - "tableName": "table1", - "parameters": { - "properties": { - "RetentionInDays": 40, - "IsTroubleshootEnabled": true - } + "properties": { + "RetentionInDays": 40, + "IsTroubleshootEnabled": true } - }, - "responses": { - "200": { - "body": { - "properties": { - "RetentionInDays": 40, - "IsTroubleshootEnabled": true - }, - "id": "/subscriptions/bbf99725-4174-4a55-a11c-94cf2eea98a6/resourcegroups/dabenham-rgtest/providers/Microsoft.OperationalInsights/workspaces/dabenhamistroubleshootinge2e/tables/AnotherTestE2E_CL", - "name": "AnotherTestE2E_CL" - } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "RetentionInDays": 40, + "IsTroubleshootEnabled": true + }, + "id": "/subscriptions/bbf99725-4174-4a55-a11c-94cf2eea98a6/resourcegroups/dabenham-rgtest/providers/Microsoft.OperationalInsights/workspaces/dabenhamistroubleshootinge2e/tables/AnotherTestE2E_CL", + "name": "AnotherTestE2E_CL" } } } - +} From 2c95dac5428c2a32947215999a2f147b6481d163 Mon Sep 17 00:00:00 2001 From: daniel ben-hamoo Date: Tue, 8 Dec 2020 18:57:57 +0200 Subject: [PATCH 05/57] fix erroes in swagger --- .../Microsoft.OperationalInsights/stable/2020-10-01/Tables.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json index d2c11d145b67..507ca8168092 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json @@ -193,8 +193,8 @@ "description": "Specifies if IsTroubleshootingEnabled property can be set for this table." }, "IsTroubleshootEnabled": { - "default": null, "type": "boolean", + "default": null, "description": "Enable or disable troubleshoot for this table." }, "LastTroubleshootDate": { From 74d03ce30219fc996f46f0ebb409483f624ac11a Mon Sep 17 00:00:00 2001 From: daniel ben-hamoo Date: Tue, 8 Dec 2020 19:02:16 +0200 Subject: [PATCH 06/57] undo changes to 2020-03-01-preview version --- .../preview/2020-03-01-preview/Tables.json | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/Tables.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/Tables.json index 3fc30712c39c..cf4e21a219ef 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/Tables.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/Tables.json @@ -186,23 +186,6 @@ "minimum": 30, "maximum": 730, "description": "The data table data retention in days, between 30 and 730. Setting this property to null will default to the workspace retention." - }, - "IsTroubleshootingAllowed": { - "readOnly": true, - "type": "bool", - "description": "Specifies if IsTroubleshootingEnabled property can be set for this table." - }, - "IsTroubleshootingEnabled": { - "default": null, - "required": false, - "type": "bool", - "description": "Enable or disable troubleshooting for this table." - }, - "IsTroubleshootingEnabledLastActivation": { - "readOnly": true, - "type": "string", - "format": "date-time", - "description": "Last time when troubleshooting was set for this table." } }, "description": "Table properties." From 34b2c90b6f16f244fa7ee355f246d5eddcfaef83 Mon Sep 17 00:00:00 2001 From: daniel ben-hamoo Date: Wed, 9 Dec 2020 09:12:40 +0200 Subject: [PATCH 07/57] pr fixes --- .../stable/2020-10-01/Tables.json | 8 +++++--- .../stable/2020-10-01/examples/TablesGet.json | 2 +- .../stable/2020-10-01/examples/TablesList.json | 6 +++--- .../stable/2020-10-01/examples/TablesUpdate.json | 8 ++++---- .../operationalinsights/resource-manager/readme.md | 1 + 5 files changed, 14 insertions(+), 11 deletions(-) diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json index 507ca8168092..e7a708b8f865 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json @@ -187,18 +187,20 @@ "maximum": 730, "description": "The data table data retention in days, between 7 and 730. Setting this property to null will default to the workspace retention." }, - "IsTroubleshootingAllowed": { + "isTroubleshootingAllowed": { "readOnly": true, "type": "boolean", "description": "Specifies if IsTroubleshootingEnabled property can be set for this table." }, - "IsTroubleshootEnabled": { + "isTroubleshootEnabled": { "type": "boolean", "default": null, + "allowEmptyValue": true, "description": "Enable or disable troubleshoot for this table." }, - "LastTroubleshootDate": { + "lastTroubleshootDate": { "readOnly": true, + "allowEmptyValue": true, "type": "string", "format": "date-time", "description": "Last time when troubleshooting was set for this table." diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesGet.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesGet.json index 2c8d57ba97e6..c05d332a9e08 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesGet.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesGet.json @@ -11,7 +11,7 @@ "body": { "properties": { "retentionInDays": 30, - "IsTroubleshootingAllowed": true, + "isTroubleshootingAllowed": true, "isTroubleshootEnabled": true, "lastTroubleshootDate": "Thu, 19 Nov 2020 07:40:51 GMT" }, diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesList.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesList.json index d696045a4e3f..ef14768a5cdd 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesList.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesList.json @@ -11,7 +11,7 @@ { "properties": { "retentionInDays": 30, - "IsTroubleshootingAllowed": true, + "isTroubleshootingAllowed": true, "isTroubleshootEnabled": true, "lastTroubleshootDate": "Thu, 19 Nov 2020 07:40:51 GMT" }, @@ -21,7 +21,7 @@ { "properties": { "retentionInDays": 7, - "IsTroubleshootingAllowed": true + "isTroubleshootingAllowed": true }, "id": "/subscriptions/00000000-0000-0000-0000-00000000000/resourcegroups/oiautorest6685/providers/microsoft.operationalinsights/workspaces/oiautorest6685/tables/table2", "name": "table2" @@ -29,7 +29,7 @@ { "properties": { "retentionInDays": 7, - "IsTroubleshootingAllowed": false + "isTroubleshootingAllowed": false }, "id": "/subscriptions/00000000-0000-0000-0000-00000000000/resourcegroups/oiautorest6685/providers/microsoft.operationalinsights/workspaces/oiautorest6685/tables/table3", "name": "table3" diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesUpdate.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesUpdate.json index 1eca38467f0a..16b3b49ba14e 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesUpdate.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesUpdate.json @@ -7,8 +7,8 @@ "tableName": "table1", "parameters": { "properties": { - "RetentionInDays": 40, - "IsTroubleshootEnabled": true + "retentionInDays": 40, + "isTroubleshootEnabled": true } } }, @@ -16,8 +16,8 @@ "200": { "body": { "properties": { - "RetentionInDays": 40, - "IsTroubleshootEnabled": true + "retentionInDays": 40, + "isTroubleshootEnabled": true }, "id": "/subscriptions/bbf99725-4174-4a55-a11c-94cf2eea98a6/resourcegroups/dabenham-rgtest/providers/Microsoft.OperationalInsights/workspaces/dabenhamistroubleshootinge2e/tables/AnotherTestE2E_CL", "name": "AnotherTestE2E_CL" diff --git a/specification/operationalinsights/resource-manager/readme.md b/specification/operationalinsights/resource-manager/readme.md index 34124ff87b8d..bf11804a277a 100644 --- a/specification/operationalinsights/resource-manager/readme.md +++ b/specification/operationalinsights/resource-manager/readme.md @@ -99,6 +99,7 @@ These settings apply only when `--tag=package-2020-10` is specified on the comma input-file: - Microsoft.OperationalInsights/stable/2020-10-01/Clusters.json - Microsoft.OperationalInsights/stable/2020-10-01/Operations.json +- Microsoft.OperationalInsights/stable/2020-10-01/Tables.json ``` ### Tag: package-2020-08 From ddf0b0699e20dafcf761e5a8d89bec41cf0dada3 Mon Sep 17 00:00:00 2001 From: daniel ben-hamoo Date: Wed, 9 Dec 2020 11:05:17 +0200 Subject: [PATCH 08/57] updated TableUpdate example --- .../stable/2020-10-01/Tables.json | 3 --- .../stable/2020-10-01/examples/TablesUpdate.json | 6 ++++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json index e7a708b8f865..7dc28dd77326 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json @@ -194,13 +194,10 @@ }, "isTroubleshootEnabled": { "type": "boolean", - "default": null, - "allowEmptyValue": true, "description": "Enable or disable troubleshoot for this table." }, "lastTroubleshootDate": { "readOnly": true, - "allowEmptyValue": true, "type": "string", "format": "date-time", "description": "Last time when troubleshooting was set for this table." diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesUpdate.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesUpdate.json index 16b3b49ba14e..37814f10eea1 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesUpdate.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesUpdate.json @@ -8,6 +8,7 @@ "parameters": { "properties": { "retentionInDays": 40, + "isTroubleshootingAllowed": true, "isTroubleshootEnabled": true } } @@ -17,10 +18,11 @@ "body": { "properties": { "retentionInDays": 40, + "isTroubleshootingAllowed": true, "isTroubleshootEnabled": true }, - "id": "/subscriptions/bbf99725-4174-4a55-a11c-94cf2eea98a6/resourcegroups/dabenham-rgtest/providers/Microsoft.OperationalInsights/workspaces/dabenhamistroubleshootinge2e/tables/AnotherTestE2E_CL", - "name": "AnotherTestE2E_CL" + "id": "/subscriptions/00000000-0000-0000-0000-00000000000/resourcegroups/oiautorest6685/providers/Microsoft.OperationalInsights/workspaces/oiautorest6685/tables/table1", + "name": "table1" } } } From faeedc452a3c441d423ab9086407d7c61e3e39a0 Mon Sep 17 00:00:00 2001 From: daniel ben-hamoo Date: Wed, 9 Dec 2020 13:53:29 +0200 Subject: [PATCH 09/57] changed lastTroubleshootDate from date format to string, removed isTroubleshootingAllowed from body of example --- .../Microsoft.OperationalInsights/stable/2020-10-01/Tables.json | 1 - .../stable/2020-10-01/examples/TablesUpdate.json | 1 - 2 files changed, 2 deletions(-) diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json index 7dc28dd77326..d8c69c329d48 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json @@ -199,7 +199,6 @@ "lastTroubleshootDate": { "readOnly": true, "type": "string", - "format": "date-time", "description": "Last time when troubleshooting was set for this table." } }, diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesUpdate.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesUpdate.json index 37814f10eea1..a58178289759 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesUpdate.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesUpdate.json @@ -8,7 +8,6 @@ "parameters": { "properties": { "retentionInDays": 40, - "isTroubleshootingAllowed": true, "isTroubleshootEnabled": true } } From cb036a65ce8b91d78f834c87853385b1fc893abb Mon Sep 17 00:00:00 2001 From: daniel ben-hamoo Date: Thu, 10 Dec 2020 13:39:55 +0200 Subject: [PATCH 10/57] changed v1 to v2 --- .../stable/2020-10-01/Tables.json | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json index d8c69c329d48..3da7c1739919 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json @@ -48,16 +48,16 @@ "description": "Gets all the tables for the specified Log Analytics workspace.", "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/v1/types.json#/parameters/WorkspaceNameParameter" + "$ref": "../../../common/v2/types.json#/parameters/WorkspaceNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -93,16 +93,16 @@ "description": "Updates a Log Analytics workspace table properties.", "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/v1/types.json#/parameters/WorkspaceNameParameter" + "$ref": "../../../common/v2/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": "#/parameters/TableNameParameter" @@ -145,16 +145,16 @@ "description": "Gets a Log Analytics workspace table.", "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/v1/types.json#/parameters/WorkspaceNameParameter" + "$ref": "../../../common/v2/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": "#/parameters/TableNameParameter" @@ -214,7 +214,7 @@ }, "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" } ], "description": "Workspace data table definition." @@ -237,7 +237,7 @@ "properties": { "error": { "description": "The details of the error.", - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } From 4dcfeda973bd94b996c09417c9c4609b7454b594 Mon Sep 17 00:00:00 2001 From: daniel ben-hamoo Date: Thu, 10 Dec 2020 13:45:53 +0200 Subject: [PATCH 11/57] changed WorkspaceNameParameter back to V1 --- .../stable/2020-10-01/Tables.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json index 3da7c1739919..f8a222fca3f8 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json @@ -54,7 +54,7 @@ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../common/v2/types.json#/parameters/WorkspaceNameParameter" + "$ref": "../../../common/v1/types.json#/parameters/WorkspaceNameParameter" }, { "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" @@ -99,7 +99,7 @@ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../common/v2/types.json#/parameters/WorkspaceNameParameter" + "$ref": "../../../common/v1/types.json#/parameters/WorkspaceNameParameter" }, { "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" @@ -151,7 +151,7 @@ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../common/v2/types.json#/parameters/WorkspaceNameParameter" + "$ref": "../../../common/v1/types.json#/parameters/WorkspaceNameParameter" }, { "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" From 78dc88bd09b19f240f9e574ccb18b7fec1748539 Mon Sep 17 00:00:00 2001 From: daniel ben-hamoo Date: Thu, 10 Dec 2020 17:17:03 +0200 Subject: [PATCH 12/57] changed ErrorResponse to default ErrorResponse without ref to local definition --- .../stable/2020-10-01/Tables.json | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json index f8a222fca3f8..75938dc1c7e8 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json @@ -70,7 +70,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorContract" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -127,7 +127,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorContract" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -170,7 +170,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorContract" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -230,16 +230,6 @@ } }, "description": "The list tables operation response." - }, - "ErrorContract": { - "title": "Error details.", - "description": "Contains details when the response code indicates an error.", - "properties": { - "error": { - "description": "The details of the error.", - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } } }, "parameters": { From d6da16d10c664a9ebe8eeadeb1af2801d2b34fe2 Mon Sep 17 00:00:00 2001 From: daniel ben-hamoo Date: Thu, 10 Dec 2020 18:06:58 +0200 Subject: [PATCH 13/57] added systemData --- .../stable/2020-10-01/Tables.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json index 75938dc1c7e8..0106b4b3b61e 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json @@ -128,6 +128,9 @@ "description": "Error response describing why the operation failed.", "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" } } } @@ -171,6 +174,9 @@ "description": "Error response describing why the operation failed.", "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" } } } From 06b2a7e39923899d0b2d715788e7a3bd1c6ad521 Mon Sep 17 00:00:00 2001 From: daniel ben-hamoo Date: Thu, 10 Dec 2020 18:19:30 +0200 Subject: [PATCH 14/57] removed systemData --- .../stable/2020-10-01/Tables.json | 6 ------ 1 file changed, 6 deletions(-) diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json index 0106b4b3b61e..75938dc1c7e8 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json @@ -128,9 +128,6 @@ "description": "Error response describing why the operation failed.", "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "systemData": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" } } } @@ -174,9 +171,6 @@ "description": "Error response describing why the operation failed.", "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "systemData": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" } } } From c41c84bcd98ae4d0e48b7ee5f138ef17e0864e46 Mon Sep 17 00:00:00 2001 From: daniel ben-hamoo Date: Thu, 10 Dec 2020 18:22:16 +0200 Subject: [PATCH 15/57] added systemData to Patch and Get --- .../stable/2020-10-01/Tables.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json index 75938dc1c7e8..9e8c82343c67 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json @@ -76,6 +76,9 @@ }, "x-ms-pageable": { "nextLinkName": null + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" } } }, @@ -130,6 +133,9 @@ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" } }, "get": { From 4805ec9bd640de90607fa677d52af8012c058d5e Mon Sep 17 00:00:00 2001 From: daniel ben-hamoo Date: Thu, 10 Dec 2020 18:32:12 +0200 Subject: [PATCH 16/57] moved systemData to Table properties --- .../stable/2020-10-01/Tables.json | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json index 9e8c82343c67..4751eddfbb21 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json @@ -76,9 +76,6 @@ }, "x-ms-pageable": { "nextLinkName": null - }, - "systemData": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" } } }, @@ -133,9 +130,6 @@ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } - }, - "systemData": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" } }, "get": { @@ -206,6 +200,10 @@ "readOnly": true, "type": "string", "description": "Last time when troubleshooting was set for this table." + }, + "systemData": { + "description": "The system metadata relating to this resource.", + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" } }, "description": "Table properties." From 71d6116d5f496cdde8cc19cde2540e088a97de8d Mon Sep 17 00:00:00 2001 From: daniel ben-hamoo Date: Thu, 10 Dec 2020 19:45:10 +0200 Subject: [PATCH 17/57] deleted systemData from Table.json, added to Get and Put examles --- .../stable/2020-10-01/Tables.json | 4 ---- .../stable/2020-10-01/examples/TablesGet.json | 10 +++++++++- .../stable/2020-10-01/examples/TablesUpdate.json | 10 +++++++++- 3 files changed, 18 insertions(+), 6 deletions(-) diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json index 4751eddfbb21..75938dc1c7e8 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json @@ -200,10 +200,6 @@ "readOnly": true, "type": "string", "description": "Last time when troubleshooting was set for this table." - }, - "systemData": { - "description": "The system metadata relating to this resource.", - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" } }, "description": "Table properties." diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesGet.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesGet.json index c05d332a9e08..8e47ed57ea60 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesGet.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesGet.json @@ -16,7 +16,15 @@ "lastTroubleshootDate": "Thu, 19 Nov 2020 07:40:51 GMT" }, "id": "/subscriptions/00000000-0000-0000-0000-00000000000/resourcegroups/oiautorest6685/providers/microsoft.operationalinsights/workspaces/oiautorest6685/tables/table1", - "name": "table1" + "name": "table1", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + } } } } diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesUpdate.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesUpdate.json index a58178289759..c7948ea9f56c 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesUpdate.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesUpdate.json @@ -21,7 +21,15 @@ "isTroubleshootEnabled": true }, "id": "/subscriptions/00000000-0000-0000-0000-00000000000/resourcegroups/oiautorest6685/providers/Microsoft.OperationalInsights/workspaces/oiautorest6685/tables/table1", - "name": "table1" + "name": "table1", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + } } } } From dcfa4cff17caba9d418d5e6c62f39f9790f0f480 Mon Sep 17 00:00:00 2001 From: daniel ben-hamoo Date: Thu, 10 Dec 2020 20:04:39 +0200 Subject: [PATCH 18/57] changed location of systemData in Tables.json --- .../stable/2020-10-01/Tables.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json index 75938dc1c7e8..ebbce831c484 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json @@ -204,6 +204,10 @@ }, "description": "Table properties." }, + "systemData": { + "description": "The system metadata relating to this resource.", + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" + }, "Table": { "properties": { "properties": { From 9a31037e80e8565f9e09315669a979720b65aad1 Mon Sep 17 00:00:00 2001 From: daniel ben-hamoo Date: Thu, 10 Dec 2020 20:17:17 +0200 Subject: [PATCH 19/57] moved systemData to inside Table definition --- .../stable/2020-10-01/Tables.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json index ebbce831c484..b813e3e0ec1c 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json @@ -204,10 +204,6 @@ }, "description": "Table properties." }, - "systemData": { - "description": "The system metadata relating to this resource.", - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" - }, "Table": { "properties": { "properties": { @@ -221,7 +217,11 @@ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" } ], - "description": "Workspace data table definition." + "description": "Workspace data table definition.", + "systemData": { + "description": "The system metadata relating to this resource.", + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" + } }, "TablesListResult": { "properties": { From 320c987bebcd24d02880d15fa6c66690cbbedebc Mon Sep 17 00:00:00 2001 From: daniel ben-hamoo Date: Sun, 13 Dec 2020 10:02:03 +0200 Subject: [PATCH 20/57] moved systemData inside Table properties --- .../stable/2020-10-01/Tables.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json index b813e3e0ec1c..79f061a9ee61 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json @@ -210,6 +210,10 @@ "x-ms-client-flatten": true, "$ref": "#/definitions/TableProperties", "description": "Table properties." + }, + "systemData": { + "description": "The system metadata relating to this resource.", + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" } }, "allOf": [ @@ -217,11 +221,7 @@ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" } ], - "description": "Workspace data table definition.", - "systemData": { - "description": "The system metadata relating to this resource.", - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" - } + "description": "Workspace data table definition." }, "TablesListResult": { "properties": { From 1e9ebb5aefc973727f19d872a605d9e30c6a446b Mon Sep 17 00:00:00 2001 From: daniel ben-hamoo Date: Mon, 14 Dec 2020 11:19:47 +0200 Subject: [PATCH 21/57] removed SystemData --- .../stable/2020-10-01/Tables.json | 4 ---- .../stable/2020-10-01/examples/TablesGet.json | 10 +--------- .../stable/2020-10-01/examples/TablesUpdate.json | 10 +--------- 3 files changed, 2 insertions(+), 22 deletions(-) diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json index 79f061a9ee61..75938dc1c7e8 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json @@ -210,10 +210,6 @@ "x-ms-client-flatten": true, "$ref": "#/definitions/TableProperties", "description": "Table properties." - }, - "systemData": { - "description": "The system metadata relating to this resource.", - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" } }, "allOf": [ diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesGet.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesGet.json index 8e47ed57ea60..c05d332a9e08 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesGet.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesGet.json @@ -16,15 +16,7 @@ "lastTroubleshootDate": "Thu, 19 Nov 2020 07:40:51 GMT" }, "id": "/subscriptions/00000000-0000-0000-0000-00000000000/resourcegroups/oiautorest6685/providers/microsoft.operationalinsights/workspaces/oiautorest6685/tables/table1", - "name": "table1", - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-01-01T17:18:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" - } + "name": "table1" } } } diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesUpdate.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesUpdate.json index c7948ea9f56c..a58178289759 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesUpdate.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesUpdate.json @@ -21,15 +21,7 @@ "isTroubleshootEnabled": true }, "id": "/subscriptions/00000000-0000-0000-0000-00000000000/resourcegroups/oiautorest6685/providers/Microsoft.OperationalInsights/workspaces/oiautorest6685/tables/table1", - "name": "table1", - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-01-01T17:18:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" - } + "name": "table1" } } } From e86ecc8f8a9055ba1788950544b6f22aa6abcfe9 Mon Sep 17 00:00:00 2001 From: daniel ben-hamoo Date: Sun, 7 Feb 2021 15:52:54 +0200 Subject: [PATCH 22/57] creatted a new package containing all latest swagger files for publishing new SDK --- .../resource-manager/readme.md | 32 ++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/specification/operationalinsights/resource-manager/readme.md b/specification/operationalinsights/resource-manager/readme.md index 7cc7c3463157..ea362b050d74 100644 --- a/specification/operationalinsights/resource-manager/readme.md +++ b/specification/operationalinsights/resource-manager/readme.md @@ -28,7 +28,7 @@ These are the global settings for the OperationalInsights API. title: OperationalInsightsManagementClient description: Operational Insights Client openapi-type: arm -tag: package-2020-08 +tag: package-2021-02 ``` @@ -141,6 +141,36 @@ input-file: - Microsoft.OperationalInsights/stable/2020-08-01/Tables.json ``` +### Tag: package-2021-02 + +These settings apply only when `--tag=package-2021-02` is specified on the command line. + +``` yaml $(tag) == 'package-2021-02' +input-file: +- Microsoft.OperationalInsights/preview/2019-09-01-preview/QueryPacks_API.json +- Microsoft.OperationalInsights/preview/2019-09-01-preview/QueryPackQueries_API.json +- Microsoft.OperationalInsights/preview/2020-03-01-preview/DataCollectorLogs.json +- Microsoft.OperationalInsights/stable/2020-08-01/DataExports.json +- Microsoft.OperationalInsights/stable/2020-08-01/DataSources.json +- Microsoft.OperationalInsights/stable/2020-08-01/IntelligencePacks.json +- Microsoft.OperationalInsights/stable/2020-08-01/LinkedServices.json +- Microsoft.OperationalInsights/stable/2020-08-01/LinkedStorageAccounts.json +- Microsoft.OperationalInsights/stable/2020-08-01/ManagementGroups.json +- Microsoft.OperationalInsights/stable/2020-08-01/OperationStatuses.json +- Microsoft.OperationalInsights/stable/2020-08-01/Usages.json +- Microsoft.OperationalInsights/stable/2020-08-01/StorageInsightConfigs.json +- Microsoft.OperationalInsights/stable/2020-08-01/SavedSearches.json +- Microsoft.OperationalInsights/stable/2020-08-01/AvailableServiceTiers.json +- Microsoft.OperationalInsights/stable/2020-08-01/Gateways.json +- Microsoft.OperationalInsights/stable/2020-08-01/Schema.json +- Microsoft.OperationalInsights/stable/2020-08-01/SharedKeys.json +- Microsoft.OperationalInsights/stable/2020-08-01/WorkspacePurge.json +- Microsoft.OperationalInsights/stable/2020-10-01/Clusters.json +- Microsoft.OperationalInsights/stable/2020-10-01/Operations.json +- Microsoft.OperationalInsights/stable/2020-10-01/Tables.json +- Microsoft.OperationalInsights/stable/2020-10-01/Workspaces.json +``` + --- # Code Generation From b3900ef58b7a7501456cf80a2a58106a8876eb37 Mon Sep 17 00:00:00 2001 From: daniel ben-hamoo Date: Mon, 8 Feb 2021 12:48:30 +0200 Subject: [PATCH 23/57] removed package 2021_02 and set default packate to 2020_10 --- .../resource-manager/readme.md | 45 +++++++------------ 1 file changed, 17 insertions(+), 28 deletions(-) diff --git a/specification/operationalinsights/resource-manager/readme.md b/specification/operationalinsights/resource-manager/readme.md index ea362b050d74..d374a1a4a2f8 100644 --- a/specification/operationalinsights/resource-manager/readme.md +++ b/specification/operationalinsights/resource-manager/readme.md @@ -28,7 +28,7 @@ These are the global settings for the OperationalInsights API. title: OperationalInsightsManagementClient description: Operational Insights Client openapi-type: arm -tag: package-2021-02 +tag: package-2020-10 ``` @@ -107,30 +107,17 @@ These settings apply only when `--tag=package-2020-10` is specified on the comma ``` yaml $(tag) == 'package-2020-10' input-file: -- Microsoft.OperationalInsights/stable/2020-10-01/Clusters.json -- Microsoft.OperationalInsights/stable/2020-10-01/Operations.json -- Microsoft.OperationalInsights/stable/2020-10-01/Tables.json -- Microsoft.OperationalInsights/stable/2020-10-01/Workspaces.json -``` - -### Tag: package-2020-08 - -These settings apply only when `--tag=package-2020-08` is specified on the command line. - -``` yaml $(tag) == 'package-2020-08' -input-file: +- Microsoft.OperationalInsights/preview/2019-09-01-preview/QueryPacks_API.json +- Microsoft.OperationalInsights/preview/2019-09-01-preview/QueryPackQueries_API.json +- Microsoft.OperationalInsights/preview/2020-03-01-preview/DataCollectorLogs.json - Microsoft.OperationalInsights/stable/2020-08-01/DataExports.json - Microsoft.OperationalInsights/stable/2020-08-01/DataSources.json - Microsoft.OperationalInsights/stable/2020-08-01/IntelligencePacks.json - Microsoft.OperationalInsights/stable/2020-08-01/LinkedServices.json - Microsoft.OperationalInsights/stable/2020-08-01/LinkedStorageAccounts.json - Microsoft.OperationalInsights/stable/2020-08-01/ManagementGroups.json -- Microsoft.OperationalInsights/stable/2020-08-01/Operations.json - Microsoft.OperationalInsights/stable/2020-08-01/OperationStatuses.json -- Microsoft.OperationalInsights/stable/2020-08-01/SharedKeys.json - Microsoft.OperationalInsights/stable/2020-08-01/Usages.json -- Microsoft.OperationalInsights/stable/2020-08-01/Workspaces.json -- Microsoft.OperationalInsights/stable/2020-08-01/Clusters.json - Microsoft.OperationalInsights/stable/2020-08-01/StorageInsightConfigs.json - Microsoft.OperationalInsights/stable/2020-08-01/SavedSearches.json - Microsoft.OperationalInsights/stable/2020-08-01/AvailableServiceTiers.json @@ -138,26 +125,30 @@ input-file: - Microsoft.OperationalInsights/stable/2020-08-01/Schema.json - Microsoft.OperationalInsights/stable/2020-08-01/SharedKeys.json - Microsoft.OperationalInsights/stable/2020-08-01/WorkspacePurge.json -- Microsoft.OperationalInsights/stable/2020-08-01/Tables.json +- Microsoft.OperationalInsights/stable/2020-10-01/Clusters.json +- Microsoft.OperationalInsights/stable/2020-10-01/Operations.json +- Microsoft.OperationalInsights/stable/2020-10-01/Tables.json +- Microsoft.OperationalInsights/stable/2020-10-01/Workspaces.json ``` -### Tag: package-2021-02 +### Tag: package-2020-08 -These settings apply only when `--tag=package-2021-02` is specified on the command line. +These settings apply only when `--tag=package-2020-08` is specified on the command line. -``` yaml $(tag) == 'package-2021-02' +``` yaml $(tag) == 'package-2020-08' input-file: -- Microsoft.OperationalInsights/preview/2019-09-01-preview/QueryPacks_API.json -- Microsoft.OperationalInsights/preview/2019-09-01-preview/QueryPackQueries_API.json -- Microsoft.OperationalInsights/preview/2020-03-01-preview/DataCollectorLogs.json - Microsoft.OperationalInsights/stable/2020-08-01/DataExports.json - Microsoft.OperationalInsights/stable/2020-08-01/DataSources.json - Microsoft.OperationalInsights/stable/2020-08-01/IntelligencePacks.json - Microsoft.OperationalInsights/stable/2020-08-01/LinkedServices.json - Microsoft.OperationalInsights/stable/2020-08-01/LinkedStorageAccounts.json - Microsoft.OperationalInsights/stable/2020-08-01/ManagementGroups.json +- Microsoft.OperationalInsights/stable/2020-08-01/Operations.json - Microsoft.OperationalInsights/stable/2020-08-01/OperationStatuses.json +- Microsoft.OperationalInsights/stable/2020-08-01/SharedKeys.json - Microsoft.OperationalInsights/stable/2020-08-01/Usages.json +- Microsoft.OperationalInsights/stable/2020-08-01/Workspaces.json +- Microsoft.OperationalInsights/stable/2020-08-01/Clusters.json - Microsoft.OperationalInsights/stable/2020-08-01/StorageInsightConfigs.json - Microsoft.OperationalInsights/stable/2020-08-01/SavedSearches.json - Microsoft.OperationalInsights/stable/2020-08-01/AvailableServiceTiers.json @@ -165,12 +156,10 @@ input-file: - Microsoft.OperationalInsights/stable/2020-08-01/Schema.json - Microsoft.OperationalInsights/stable/2020-08-01/SharedKeys.json - Microsoft.OperationalInsights/stable/2020-08-01/WorkspacePurge.json -- Microsoft.OperationalInsights/stable/2020-10-01/Clusters.json -- Microsoft.OperationalInsights/stable/2020-10-01/Operations.json -- Microsoft.OperationalInsights/stable/2020-10-01/Tables.json -- Microsoft.OperationalInsights/stable/2020-10-01/Workspaces.json +- Microsoft.OperationalInsights/stable/2020-08-01/Tables.json ``` + --- # Code Generation From b8342072237682f3d9c8b904a3909ce6921b9d51 Mon Sep 17 00:00:00 2001 From: daniel ben-hamoo Date: Mon, 8 Feb 2021 13:02:39 +0200 Subject: [PATCH 24/57] removed 2 packages --- specification/operationalinsights/resource-manager/readme.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/specification/operationalinsights/resource-manager/readme.md b/specification/operationalinsights/resource-manager/readme.md index d374a1a4a2f8..f75d51b85ab9 100644 --- a/specification/operationalinsights/resource-manager/readme.md +++ b/specification/operationalinsights/resource-manager/readme.md @@ -107,8 +107,6 @@ These settings apply only when `--tag=package-2020-10` is specified on the comma ``` yaml $(tag) == 'package-2020-10' input-file: -- Microsoft.OperationalInsights/preview/2019-09-01-preview/QueryPacks_API.json -- Microsoft.OperationalInsights/preview/2019-09-01-preview/QueryPackQueries_API.json - Microsoft.OperationalInsights/preview/2020-03-01-preview/DataCollectorLogs.json - Microsoft.OperationalInsights/stable/2020-08-01/DataExports.json - Microsoft.OperationalInsights/stable/2020-08-01/DataSources.json From 807b94310ec6fe7c7ebc48f11c0bfa47accf5e65 Mon Sep 17 00:00:00 2001 From: daniel ben-hamoo Date: Sun, 14 Feb 2021 13:56:35 +0200 Subject: [PATCH 25/57] removed DataCollectorLogs.json from readme.md 20202.10 --- specification/operationalinsights/resource-manager/readme.md | 1 - 1 file changed, 1 deletion(-) diff --git a/specification/operationalinsights/resource-manager/readme.md b/specification/operationalinsights/resource-manager/readme.md index f75d51b85ab9..cc463f000530 100644 --- a/specification/operationalinsights/resource-manager/readme.md +++ b/specification/operationalinsights/resource-manager/readme.md @@ -107,7 +107,6 @@ These settings apply only when `--tag=package-2020-10` is specified on the comma ``` yaml $(tag) == 'package-2020-10' input-file: -- Microsoft.OperationalInsights/preview/2020-03-01-preview/DataCollectorLogs.json - Microsoft.OperationalInsights/stable/2020-08-01/DataExports.json - Microsoft.OperationalInsights/stable/2020-08-01/DataSources.json - Microsoft.OperationalInsights/stable/2020-08-01/IntelligencePacks.json From 73828c121f3783ea5c71c5fd74fdb752d286383d Mon Sep 17 00:00:00 2001 From: daniel ben-hamoo Date: Wed, 17 Feb 2021 13:11:51 +0200 Subject: [PATCH 26/57] added empty line to try invoke pipeline validations that havent run --- specification/operationalinsights/resource-manager/readme.md | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/operationalinsights/resource-manager/readme.md b/specification/operationalinsights/resource-manager/readme.md index cc463f000530..8cc87bd013c8 100644 --- a/specification/operationalinsights/resource-manager/readme.md +++ b/specification/operationalinsights/resource-manager/readme.md @@ -128,6 +128,7 @@ input-file: - Microsoft.OperationalInsights/stable/2020-10-01/Workspaces.json ``` + ### Tag: package-2020-08 These settings apply only when `--tag=package-2020-08` is specified on the command line. From 4df9ad7d7a754ddac575eb70cff6c91cc6953f14 Mon Sep 17 00:00:00 2001 From: dabenhamMic <74346518+dabenhamMic@users.noreply.github.com> Date: Sun, 4 Apr 2021 14:22:31 +0300 Subject: [PATCH 27/57] Delete Tables.json --- .../stable/2020-10-01/Tables.json | 245 ------------------ 1 file changed, 245 deletions(-) delete mode 100644 specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json deleted file mode 100644 index 75938dc1c7e8..000000000000 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json +++ /dev/null @@ -1,245 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Azure Log Analytics", - "description": "Azure Log Analytics API reference", - "version": "2020-10-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.OperationalInsights/workspaces/{workspaceName}/tables": { - "get": { - "tags": [ - "Tables" - ], - "x-ms-examples": { - "TablesListByWorkspace": { - "$ref": "./examples/TablesList.json" - } - }, - "operationId": "Tables_ListByWorkspace", - "description": "Gets all the tables for the specified Log Analytics workspace.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/WorkspaceNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK response definition.", - "schema": { - "$ref": "#/definitions/TablesListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}": { - "patch": { - "tags": [ - "Tables" - ], - "x-ms-examples": { - "TablesSet": { - "$ref": "./examples/TablesUpdate.json" - } - }, - "operationId": "Tables_Update", - "description": "Updates a Log Analytics workspace table properties.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/WorkspaceNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/TableNameParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Table" - }, - "description": "The parameters required to update table properties." - } - ], - "responses": { - "200": { - "description": "OK response definition.", - "schema": { - "$ref": "#/definitions/Table" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - } - }, - "get": { - "tags": [ - "Tables" - ], - "x-ms-examples": { - "TablesGet": { - "$ref": "./examples/TablesGet.json" - } - }, - "operationId": "Tables_Get", - "description": "Gets a Log Analytics workspace table.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/WorkspaceNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/TableNameParameter" - } - ], - "responses": { - "200": { - "description": "OK response definition.", - "schema": { - "$ref": "#/definitions/Table" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - } - } - } - }, - "definitions": { - "TableProperties": { - "properties": { - "retentionInDays": { - "type": "integer", - "format": "int32", - "minimum": 7, - "maximum": 730, - "description": "The data table data retention in days, between 7 and 730. Setting this property to null will default to the workspace retention." - }, - "isTroubleshootingAllowed": { - "readOnly": true, - "type": "boolean", - "description": "Specifies if IsTroubleshootingEnabled property can be set for this table." - }, - "isTroubleshootEnabled": { - "type": "boolean", - "description": "Enable or disable troubleshoot for this table." - }, - "lastTroubleshootDate": { - "readOnly": true, - "type": "string", - "description": "Last time when troubleshooting was set for this table." - } - }, - "description": "Table properties." - }, - "Table": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/TableProperties", - "description": "Table properties." - } - }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" - } - ], - "description": "Workspace data table definition." - }, - "TablesListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Table" - }, - "description": "A list of data tables." - } - }, - "description": "The list tables operation response." - } - }, - "parameters": { - "TableNameParameter": { - "name": "tableName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the table.", - "x-ms-parameter-location": "method" - } - } -} From 65e0b363af229130a155e2b399330092db8d0205 Mon Sep 17 00:00:00 2001 From: daniel ben-hamoo Date: Thu, 12 Nov 2020 11:21:04 +0200 Subject: [PATCH 28/57] added3 new properties to TableProperties: IsTroubleshootingAllowed, IsTroubleshootingEnabled, IsTroubleshootingEnabledLastActivation. --- .../preview/2020-03-01-preview/Tables.json | 21 +++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/Tables.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/Tables.json index cf4e21a219ef..124e6dc3bda3 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/Tables.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/Tables.json @@ -186,7 +186,24 @@ "minimum": 30, "maximum": 730, "description": "The data table data retention in days, between 30 and 730. Setting this property to null will default to the workspace retention." - } + }, + "IsTroubleshootingAllowed" : { + "readOnly": true, + "type": "bool", + "description": "Whether the table is capable of being IsTroubleshootingEnabled." + }, + "IsTroubleshootingEnabled" : { + "default": null, + "required": false, + "type": "bool", + "description": "Whether the table is in the state of IsTroubleshootingEnabled." + }, + "IsTroubleshootingEnabledLastActivation" : { + "default": null, + "readOnly": true, + "type": "string", + "format": "date-time", + "description": "Last enabled time of IsTroubleshootingEnabled."} }, "description": "Table properties." }, @@ -238,4 +255,4 @@ "x-ms-parameter-location": "method" } } -} +} \ No newline at end of file From 59453d9243f9ab73d8417d168113258754a19a60 Mon Sep 17 00:00:00 2001 From: daniel ben-hamoo Date: Sun, 4 Apr 2021 14:38:23 +0300 Subject: [PATCH 29/57] merge --- .../preview/2020-03-01-preview/Tables.json | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/Tables.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/Tables.json index 124e6dc3bda3..b0b2efe51fe0 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/Tables.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/Tables.json @@ -190,20 +190,19 @@ "IsTroubleshootingAllowed" : { "readOnly": true, "type": "bool", - "description": "Whether the table is capable of being IsTroubleshootingEnabled." + "description": "Specifies if IsTroubleshootingEnabled property can be set for this table." }, "IsTroubleshootingEnabled" : { "default": null, "required": false, "type": "bool", - "description": "Whether the table is in the state of IsTroubleshootingEnabled." + "description": "Enable or disable troubleshooting for this table." }, "IsTroubleshootingEnabledLastActivation" : { - "default": null, "readOnly": true, "type": "string", "format": "date-time", - "description": "Last enabled time of IsTroubleshootingEnabled."} + "description": "Last time when troubleshooting was set for this table."} }, "description": "Table properties." }, From 2d0e18e3a83b637a498b1dea222e7363d2135f6b Mon Sep 17 00:00:00 2001 From: daniel ben-hamoo Date: Sun, 4 Apr 2021 17:13:40 +0300 Subject: [PATCH 30/57] prettified jsons --- .../preview/2020-03-01-preview/Tables.json | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/Tables.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/Tables.json index b0b2efe51fe0..3fc30712c39c 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/Tables.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/Tables.json @@ -187,22 +187,23 @@ "maximum": 730, "description": "The data table data retention in days, between 30 and 730. Setting this property to null will default to the workspace retention." }, - "IsTroubleshootingAllowed" : { + "IsTroubleshootingAllowed": { "readOnly": true, "type": "bool", "description": "Specifies if IsTroubleshootingEnabled property can be set for this table." }, - "IsTroubleshootingEnabled" : { + "IsTroubleshootingEnabled": { "default": null, "required": false, "type": "bool", "description": "Enable or disable troubleshooting for this table." }, - "IsTroubleshootingEnabledLastActivation" : { - "readOnly": true, + "IsTroubleshootingEnabledLastActivation": { + "readOnly": true, "type": "string", "format": "date-time", - "description": "Last time when troubleshooting was set for this table."} + "description": "Last time when troubleshooting was set for this table." + } }, "description": "Table properties." }, @@ -254,4 +255,4 @@ "x-ms-parameter-location": "method" } } -} \ No newline at end of file +} From 6e3a36f168ed0e93f31adb019797212ae0c80fd9 Mon Sep 17 00:00:00 2001 From: daniel ben-hamoo Date: Tue, 8 Dec 2020 19:02:16 +0200 Subject: [PATCH 31/57] undo changes to 2020-03-01-preview version --- .../preview/2020-03-01-preview/Tables.json | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/Tables.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/Tables.json index 3fc30712c39c..cf4e21a219ef 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/Tables.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/Tables.json @@ -186,23 +186,6 @@ "minimum": 30, "maximum": 730, "description": "The data table data retention in days, between 30 and 730. Setting this property to null will default to the workspace retention." - }, - "IsTroubleshootingAllowed": { - "readOnly": true, - "type": "bool", - "description": "Specifies if IsTroubleshootingEnabled property can be set for this table." - }, - "IsTroubleshootingEnabled": { - "default": null, - "required": false, - "type": "bool", - "description": "Enable or disable troubleshooting for this table." - }, - "IsTroubleshootingEnabledLastActivation": { - "readOnly": true, - "type": "string", - "format": "date-time", - "description": "Last time when troubleshooting was set for this table." } }, "description": "Table properties." From e15b090ec59835d139b084c2a7b3f4887e8d7a65 Mon Sep 17 00:00:00 2001 From: daniel ben-hamoo Date: Wed, 9 Dec 2020 11:05:17 +0200 Subject: [PATCH 32/57] updated TableUpdate example --- .../stable/2020-10-01/examples/TablesUpdate.json | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesUpdate.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesUpdate.json index a58178289759..37814f10eea1 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesUpdate.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesUpdate.json @@ -8,6 +8,7 @@ "parameters": { "properties": { "retentionInDays": 40, + "isTroubleshootingAllowed": true, "isTroubleshootEnabled": true } } From 6f2676c9621374cbd68d229810bcf7f550a519fe Mon Sep 17 00:00:00 2001 From: daniel ben-hamoo Date: Wed, 9 Dec 2020 13:53:29 +0200 Subject: [PATCH 33/57] changed lastTroubleshootDate from date format to string, removed isTroubleshootingAllowed from body of example --- .../stable/2020-10-01/examples/TablesUpdate.json | 1 - 1 file changed, 1 deletion(-) diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesUpdate.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesUpdate.json index 37814f10eea1..a58178289759 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesUpdate.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesUpdate.json @@ -8,7 +8,6 @@ "parameters": { "properties": { "retentionInDays": 40, - "isTroubleshootingAllowed": true, "isTroubleshootEnabled": true } } From 1feb0468cd43a53801e28f3d9f365b6685acd42f Mon Sep 17 00:00:00 2001 From: daniel ben-hamoo Date: Sun, 4 Apr 2021 17:26:42 +0300 Subject: [PATCH 34/57] changed v1 to v2 --- .../stable/2020-10-01/Tables.json | 245 ++++++++++++++++++ 1 file changed, 245 insertions(+) create mode 100644 specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json new file mode 100644 index 000000000000..3df16fda0f84 --- /dev/null +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json @@ -0,0 +1,245 @@ +{ + "swagger": "2.0", + "info": { + "title": "Azure Log Analytics", + "description": "Azure Log Analytics API reference", + "version": "2020-10-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.OperationalInsights/workspaces/{workspaceName}/tables": { + "get": { + "tags": [ + "Tables" + ], + "x-ms-examples": { + "TablesListByWorkspace": { + "$ref": "./examples/TablesList.json" + } + }, + "operationId": "Tables_ListByWorkspace", + "description": "Gets all the tables for the specified Log Analytics workspace.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../common/v2/types.json#/parameters/WorkspaceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK response definition.", + "schema": { + "$ref": "#/definitions/TablesListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}": { + "patch": { + "tags": [ + "Tables" + ], + "x-ms-examples": { + "TablesSet": { + "$ref": "./examples/TablesUpdate.json" + } + }, + "operationId": "Tables_Update", + "description": "Updates a Log Analytics workspace table properties.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../common/v2/types.json#/parameters/WorkspaceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/TableNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Table" + }, + "description": "The parameters required to update table properties." + } + ], + "responses": { + "200": { + "description": "OK response definition.", + "schema": { + "$ref": "#/definitions/Table" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "get": { + "tags": [ + "Tables" + ], + "x-ms-examples": { + "TablesGet": { + "$ref": "./examples/TablesGet.json" + } + }, + "operationId": "Tables_Get", + "description": "Gets a Log Analytics workspace table.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../common/v2/types.json#/parameters/WorkspaceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/TableNameParameter" + } + ], + "responses": { + "200": { + "description": "OK response definition.", + "schema": { + "$ref": "#/definitions/Table" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + } + }, + "definitions": { + "TableProperties": { + "properties": { + "retentionInDays": { + "type": "integer", + "format": "int32", + "minimum": 7, + "maximum": 730, + "description": "The data table data retention in days, between 7 and 730. Setting this property to null will default to the workspace retention." + }, + "isTroubleshootingAllowed": { + "readOnly": true, + "type": "boolean", + "description": "Specifies if IsTroubleshootingEnabled property can be set for this table." + }, + "isTroubleshootEnabled": { + "type": "boolean", + "description": "Enable or disable troubleshoot for this table." + }, + "lastTroubleshootDate": { + "readOnly": true, + "type": "string", + "description": "Last time when troubleshooting was set for this table." + } + }, + "description": "Table properties." + }, + "Table": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/TableProperties", + "description": "Table properties." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" + } + ], + "description": "Workspace data table definition." + }, + "TablesListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Table" + }, + "description": "A list of data tables." + } + }, + "description": "The list tables operation response." + } + }, + "parameters": { + "TableNameParameter": { + "name": "tableName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the table.", + "x-ms-parameter-location": "method" + } + } +} From dd37e9cbd78a0d73d29fdc6e08261989d036ab95 Mon Sep 17 00:00:00 2001 From: daniel ben-hamoo Date: Thu, 10 Dec 2020 13:45:53 +0200 Subject: [PATCH 35/57] changed WorkspaceNameParameter back to V1 --- .../stable/2020-10-01/Tables.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json index 3df16fda0f84..75938dc1c7e8 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json @@ -54,7 +54,7 @@ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../common/v2/types.json#/parameters/WorkspaceNameParameter" + "$ref": "../../../common/v1/types.json#/parameters/WorkspaceNameParameter" }, { "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" @@ -99,7 +99,7 @@ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../common/v2/types.json#/parameters/WorkspaceNameParameter" + "$ref": "../../../common/v1/types.json#/parameters/WorkspaceNameParameter" }, { "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" @@ -151,7 +151,7 @@ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../common/v2/types.json#/parameters/WorkspaceNameParameter" + "$ref": "../../../common/v1/types.json#/parameters/WorkspaceNameParameter" }, { "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" From 7659b7d5944fa4b10d5d555c6ac9a4f5a12c9491 Mon Sep 17 00:00:00 2001 From: daniel ben-hamoo Date: Thu, 10 Dec 2020 18:06:58 +0200 Subject: [PATCH 36/57] added systemData --- .../stable/2020-10-01/Tables.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json index 75938dc1c7e8..0106b4b3b61e 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json @@ -128,6 +128,9 @@ "description": "Error response describing why the operation failed.", "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" } } } @@ -171,6 +174,9 @@ "description": "Error response describing why the operation failed.", "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" } } } From acf2303351a7cdf58e9cad35e44891e1c110bd61 Mon Sep 17 00:00:00 2001 From: daniel ben-hamoo Date: Thu, 10 Dec 2020 18:19:30 +0200 Subject: [PATCH 37/57] removed systemData --- .../stable/2020-10-01/Tables.json | 6 ------ 1 file changed, 6 deletions(-) diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json index 0106b4b3b61e..75938dc1c7e8 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json @@ -128,9 +128,6 @@ "description": "Error response describing why the operation failed.", "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "systemData": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" } } } @@ -174,9 +171,6 @@ "description": "Error response describing why the operation failed.", "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "systemData": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" } } } From 811ce0bf2570acd5cab43ec3e27038a0b8525739 Mon Sep 17 00:00:00 2001 From: daniel ben-hamoo Date: Thu, 10 Dec 2020 18:22:16 +0200 Subject: [PATCH 38/57] added systemData to Patch and Get --- .../stable/2020-10-01/Tables.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json index 75938dc1c7e8..9e8c82343c67 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json @@ -76,6 +76,9 @@ }, "x-ms-pageable": { "nextLinkName": null + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" } } }, @@ -130,6 +133,9 @@ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" } }, "get": { From 4f0299732f6f648b1f99808e7f295a7b1c9e7774 Mon Sep 17 00:00:00 2001 From: daniel ben-hamoo Date: Thu, 10 Dec 2020 18:32:12 +0200 Subject: [PATCH 39/57] moved systemData to Table properties --- .../stable/2020-10-01/Tables.json | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json index 9e8c82343c67..4751eddfbb21 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json @@ -76,9 +76,6 @@ }, "x-ms-pageable": { "nextLinkName": null - }, - "systemData": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" } } }, @@ -133,9 +130,6 @@ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } - }, - "systemData": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" } }, "get": { @@ -206,6 +200,10 @@ "readOnly": true, "type": "string", "description": "Last time when troubleshooting was set for this table." + }, + "systemData": { + "description": "The system metadata relating to this resource.", + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" } }, "description": "Table properties." From eb362f79e4608e3c093cd1f0573f633c1a4b38cc Mon Sep 17 00:00:00 2001 From: daniel ben-hamoo Date: Thu, 10 Dec 2020 19:45:10 +0200 Subject: [PATCH 40/57] deleted systemData from Table.json, added to Get and Put examles --- .../stable/2020-10-01/Tables.json | 4 ---- .../stable/2020-10-01/examples/TablesGet.json | 10 +++++++++- .../stable/2020-10-01/examples/TablesUpdate.json | 10 +++++++++- 3 files changed, 18 insertions(+), 6 deletions(-) diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json index 4751eddfbb21..75938dc1c7e8 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json @@ -200,10 +200,6 @@ "readOnly": true, "type": "string", "description": "Last time when troubleshooting was set for this table." - }, - "systemData": { - "description": "The system metadata relating to this resource.", - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" } }, "description": "Table properties." diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesGet.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesGet.json index c05d332a9e08..8e47ed57ea60 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesGet.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesGet.json @@ -16,7 +16,15 @@ "lastTroubleshootDate": "Thu, 19 Nov 2020 07:40:51 GMT" }, "id": "/subscriptions/00000000-0000-0000-0000-00000000000/resourcegroups/oiautorest6685/providers/microsoft.operationalinsights/workspaces/oiautorest6685/tables/table1", - "name": "table1" + "name": "table1", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + } } } } diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesUpdate.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesUpdate.json index a58178289759..c7948ea9f56c 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesUpdate.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/examples/TablesUpdate.json @@ -21,7 +21,15 @@ "isTroubleshootEnabled": true }, "id": "/subscriptions/00000000-0000-0000-0000-00000000000/resourcegroups/oiautorest6685/providers/Microsoft.OperationalInsights/workspaces/oiautorest6685/tables/table1", - "name": "table1" + "name": "table1", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + } } } } From a8bd5008181ca7e42446c80fe991014892ceffab Mon Sep 17 00:00:00 2001 From: daniel ben-hamoo Date: Thu, 10 Dec 2020 20:04:39 +0200 Subject: [PATCH 41/57] changed location of systemData in Tables.json --- .../stable/2020-10-01/Tables.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json index 75938dc1c7e8..ebbce831c484 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json @@ -204,6 +204,10 @@ }, "description": "Table properties." }, + "systemData": { + "description": "The system metadata relating to this resource.", + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" + }, "Table": { "properties": { "properties": { From 8b14bba7a9ec1032464bc804631fb83b97e2da82 Mon Sep 17 00:00:00 2001 From: daniel ben-hamoo Date: Thu, 10 Dec 2020 20:17:17 +0200 Subject: [PATCH 42/57] moved systemData to inside Table definition --- .../stable/2020-10-01/Tables.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json index ebbce831c484..b813e3e0ec1c 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json @@ -204,10 +204,6 @@ }, "description": "Table properties." }, - "systemData": { - "description": "The system metadata relating to this resource.", - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" - }, "Table": { "properties": { "properties": { @@ -221,7 +217,11 @@ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" } ], - "description": "Workspace data table definition." + "description": "Workspace data table definition.", + "systemData": { + "description": "The system metadata relating to this resource.", + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" + } }, "TablesListResult": { "properties": { From c6791b2062552b4bc8b50585a88cea80e1155b4e Mon Sep 17 00:00:00 2001 From: daniel ben-hamoo Date: Sun, 13 Dec 2020 10:02:03 +0200 Subject: [PATCH 43/57] moved systemData inside Table properties --- .../stable/2020-10-01/Tables.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json index b813e3e0ec1c..79f061a9ee61 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-10-01/Tables.json @@ -210,6 +210,10 @@ "x-ms-client-flatten": true, "$ref": "#/definitions/TableProperties", "description": "Table properties." + }, + "systemData": { + "description": "The system metadata relating to this resource.", + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" } }, "allOf": [ @@ -217,11 +221,7 @@ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" } ], - "description": "Workspace data table definition.", - "systemData": { - "description": "The system metadata relating to this resource.", - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" - } + "description": "Workspace data table definition." }, "TablesListResult": { "properties": { From 0a6d1e49659e30275d487d102588cc5cb48b367c Mon Sep 17 00:00:00 2001 From: daniel ben-hamoo Date: Sun, 4 Apr 2021 17:31:02 +0300 Subject: [PATCH 44/57] removed whitespaces --- specification/operationalinsights/resource-manager/readme.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/specification/operationalinsights/resource-manager/readme.md b/specification/operationalinsights/resource-manager/readme.md index 8cc87bd013c8..5fe0eeb99407 100644 --- a/specification/operationalinsights/resource-manager/readme.md +++ b/specification/operationalinsights/resource-manager/readme.md @@ -128,7 +128,6 @@ input-file: - Microsoft.OperationalInsights/stable/2020-10-01/Workspaces.json ``` - ### Tag: package-2020-08 These settings apply only when `--tag=package-2020-08` is specified on the command line. @@ -157,7 +156,6 @@ input-file: - Microsoft.OperationalInsights/stable/2020-08-01/Tables.json ``` - --- # Code Generation From b52de0853a26eda63ee9e243d355c1e0c132798b Mon Sep 17 00:00:00 2001 From: daniel ben-hamoo Date: Sun, 4 Apr 2021 18:25:49 +0300 Subject: [PATCH 45/57] changed DataExportErrorResponse to common .../v2/types.json#/definitions/ErrorResponse --- .../stable/2020-08-01/DataExports.json | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/DataExports.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/DataExports.json index 152b54ecaeeb..f446721532d4 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/DataExports.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/DataExports.json @@ -70,7 +70,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/DataExportErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -140,7 +140,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/DataExportErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -187,7 +187,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/DataExportErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -234,7 +234,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/DataExportErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -341,16 +341,6 @@ } }, "description": "Destination meta data." - }, - "DataExportErrorResponse": { - "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" - } - } } }, "parameters": {} From 95265be0d5d184fcd91135bca5919efb4feb36db Mon Sep 17 00:00:00 2001 From: daniel ben-hamoo Date: Sun, 4 Apr 2021 18:47:19 +0300 Subject: [PATCH 46/57] changed all Error response of 2020-08 to common definition --- .../stable/2020-08-01/Clusters.json | 22 +++++-------------- .../stable/2020-08-01/Tables.json | 16 +++----------- 2 files changed, 9 insertions(+), 29 deletions(-) diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/Clusters.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/Clusters.json index 8c6bcbf01d92..343c5b583bd0 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/Clusters.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-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/v2/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/v2/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/v2/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/v2/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/v2/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/v2/types.json#/definitions/ErrorResponse" } } } @@ -363,16 +363,6 @@ }, "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": { diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/Tables.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/Tables.json index d1530577a253..d2a59d33aea9 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/Tables.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/Tables.json @@ -70,7 +70,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorContract" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -127,7 +127,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorContract" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -170,7 +170,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorContract" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -216,16 +216,6 @@ } }, "description": "The list tables operation response." - }, - "ErrorContract": { - "title": "Error details.", - "description": "Contains details when the response code indicates an error.", - "properties": { - "error": { - "description": "The details of the error.", - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" - } - } } }, "parameters": { From 622aabf71d9a11388fdfb5226d86f54657496ebd Mon Sep 17 00:00:00 2001 From: daniel ben-hamoo Date: Thu, 8 Apr 2021 15:41:35 +0300 Subject: [PATCH 47/57] added readme.az.md file for cli extension code generator --- .../resource-manager/readme.az.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 specification/operationalinsights/resource-manager/readme.az.md diff --git a/specification/operationalinsights/resource-manager/readme.az.md b/specification/operationalinsights/resource-manager/readme.az.md new file mode 100644 index 000000000000..ae1eacbf940d --- /dev/null +++ b/specification/operationalinsights/resource-manager/readme.az.md @@ -0,0 +1,16 @@ +## AZ + +These settings apply only when `--az` is specified on the command line. + +For new Resource Provider. It is highly recommended to onboard Azure CLI extensions. There's no differences in terms of customer usage. + +``` yaml $(az) +az: + extensions: OperationalInsights + namespace: azure.mgmt.loganalytics + package-name: azure-mgmt-loganalytics +az-output-folder: $(azure-cli-extension-folder)/src/operationalinsights +python-sdk-output-folder: "$(az-output-folder)/azext_operationalinsights/vendored_sdks/operationalinsights" +# add additional configuration here specific for Azure CLI +# refer to the faq.md for more details +``` From 28817fce8f4c7b3f15b25603f77aae688247594b Mon Sep 17 00:00:00 2001 From: daniel ben-hamoo Date: Sun, 18 Apr 2021 11:37:20 +0300 Subject: [PATCH 48/57] added readme.ad.md with the same naming convention as in readme.python.md added readme.cli.md file updatted readme.md file with the new azure-cli-extensions tag all updates were done by following: https://github.com/Azure/autorest.az/blob/9ed1aabd353385f8bdffbfa9f3892478111a029c/doc/how-to-author-readme-file.md --- .../resource-manager/readme.az.md | 18 ++++++++++++++---- .../resource-manager/readme.cli.md | 4 ++++ .../resource-manager/readme.md | 1 + 3 files changed, 19 insertions(+), 4 deletions(-) create mode 100644 specification/operationalinsights/resource-manager/readme.cli.md diff --git a/specification/operationalinsights/resource-manager/readme.az.md b/specification/operationalinsights/resource-manager/readme.az.md index ae1eacbf940d..bd077c4c553e 100644 --- a/specification/operationalinsights/resource-manager/readme.az.md +++ b/specification/operationalinsights/resource-manager/readme.az.md @@ -4,13 +4,23 @@ These settings apply only when `--az` is specified on the command line. For new Resource Provider. It is highly recommended to onboard Azure CLI extensions. There's no differences in terms of customer usage. -``` yaml $(az) +``` yaml $(az) && $(target-mode) != core az: - extensions: OperationalInsights + extensions: loganalytics namespace: azure.mgmt.loganalytics package-name: azure-mgmt-loganalytics -az-output-folder: $(azure-cli-extension-folder)/src/operationalinsights -python-sdk-output-folder: "$(az-output-folder)/azext_operationalinsights/vendored_sdks/operationalinsights" +az-output-folder: $(azure-cli-extension-folder)/src/loganalytics +python-sdk-output-folder: "$(az-output-folder)/azext_loganalytics/vendored_sdks/loganalytics" # add additional configuration here specific for Azure CLI # refer to the faq.md for more details ``` +``` yaml $(az) && $(target-mode) == core +az: + extensions: loganalytics + namespace: azure.mgmt.loganalytics + package-name: azure-mgmt-loganalytics +az-output-folder: $(azure-cli-extension-folder)/src/loganalytics +python-sdk-output-folder: "$(az-output-folder)/azext_loganalytics/vendored_sdks/loganalytics" +# add additinal configuration here specific for Azure CLI +# refer to the faq.md for more details +``` \ No newline at end of file diff --git a/specification/operationalinsights/resource-manager/readme.cli.md b/specification/operationalinsights/resource-manager/readme.cli.md new file mode 100644 index 000000000000..179636a56760 --- /dev/null +++ b/specification/operationalinsights/resource-manager/readme.cli.md @@ -0,0 +1,4 @@ +``` yaml +# add any configuration here for all CLI languages +# refer to the faq.md for more details +``` \ No newline at end of file diff --git a/specification/operationalinsights/resource-manager/readme.md b/specification/operationalinsights/resource-manager/readme.md index 8c5765c0b139..55bb3fb43331 100644 --- a/specification/operationalinsights/resource-manager/readme.md +++ b/specification/operationalinsights/resource-manager/readme.md @@ -184,6 +184,7 @@ swagger-to-sdk: - repo: azure-resource-manager-schemas after_scripts: - node sdkauto_afterscript.js operationalinsights/resource-manager + - repo: azure-cli-extensions ``` From 00c490ae172393837feab9f58c27008ed6393737 Mon Sep 17 00:00:00 2001 From: dabenhamMic <74346518+dabenhamMic@users.noreply.github.com> Date: Sun, 18 Apr 2021 14:22:10 +0300 Subject: [PATCH 49/57] Update specification/operationalinsights/resource-manager/readme.az.md Co-authored-by: Qiaoqiao Zhang <55688292+qiaozha@users.noreply.github.com> --- .../operationalinsights/resource-manager/readme.az.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/specification/operationalinsights/resource-manager/readme.az.md b/specification/operationalinsights/resource-manager/readme.az.md index bd077c4c553e..15919867dc42 100644 --- a/specification/operationalinsights/resource-manager/readme.az.md +++ b/specification/operationalinsights/resource-manager/readme.az.md @@ -5,6 +5,7 @@ These settings apply only when `--az` is specified on the command line. For new Resource Provider. It is highly recommended to onboard Azure CLI extensions. There's no differences in terms of customer usage. ``` yaml $(az) && $(target-mode) != core +``` yaml $(az) && $(target-mode) != `core` az: extensions: loganalytics namespace: azure.mgmt.loganalytics @@ -23,4 +24,4 @@ az-output-folder: $(azure-cli-extension-folder)/src/loganalytics python-sdk-output-folder: "$(az-output-folder)/azext_loganalytics/vendored_sdks/loganalytics" # add additinal configuration here specific for Azure CLI # refer to the faq.md for more details -``` \ No newline at end of file +``` From 812c78b608fbf94eaed91d9559a2096969561b6e Mon Sep 17 00:00:00 2001 From: dabenhamMic <74346518+dabenhamMic@users.noreply.github.com> Date: Sun, 18 Apr 2021 14:22:25 +0300 Subject: [PATCH 50/57] Update specification/operationalinsights/resource-manager/readme.az.md Co-authored-by: Qiaoqiao Zhang <55688292+qiaozha@users.noreply.github.com> --- specification/operationalinsights/resource-manager/readme.az.md | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/operationalinsights/resource-manager/readme.az.md b/specification/operationalinsights/resource-manager/readme.az.md index 15919867dc42..ed58fbb09f64 100644 --- a/specification/operationalinsights/resource-manager/readme.az.md +++ b/specification/operationalinsights/resource-manager/readme.az.md @@ -21,6 +21,7 @@ az: namespace: azure.mgmt.loganalytics package-name: azure-mgmt-loganalytics az-output-folder: $(azure-cli-extension-folder)/src/loganalytics +az-output-folder: $(azure-cli-folder)/src/azure-cli/azure/cli/command_modules/loganalytics python-sdk-output-folder: "$(az-output-folder)/azext_loganalytics/vendored_sdks/loganalytics" # add additinal configuration here specific for Azure CLI # refer to the faq.md for more details From 2eb69a78bace3e14059b84b614a57a0f025bc6df Mon Sep 17 00:00:00 2001 From: dabenhamMic <74346518+dabenhamMic@users.noreply.github.com> Date: Sun, 18 Apr 2021 14:22:54 +0300 Subject: [PATCH 51/57] Update specification/operationalinsights/resource-manager/readme.az.md Co-authored-by: Qiaoqiao Zhang <55688292+qiaozha@users.noreply.github.com> --- specification/operationalinsights/resource-manager/readme.az.md | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/operationalinsights/resource-manager/readme.az.md b/specification/operationalinsights/resource-manager/readme.az.md index ed58fbb09f64..de22ef498ac1 100644 --- a/specification/operationalinsights/resource-manager/readme.az.md +++ b/specification/operationalinsights/resource-manager/readme.az.md @@ -16,6 +16,7 @@ python-sdk-output-folder: "$(az-output-folder)/azext_loganalytics/vendored_sdks/ # refer to the faq.md for more details ``` ``` yaml $(az) && $(target-mode) == core +``` yaml $(az) && $(target-mode) == `core` az: extensions: loganalytics namespace: azure.mgmt.loganalytics From 842ba7708a5071805ff924289311710b04a072e8 Mon Sep 17 00:00:00 2001 From: dabenhamMic <74346518+dabenhamMic@users.noreply.github.com> Date: Sun, 18 Apr 2021 14:43:45 +0300 Subject: [PATCH 52/57] Update specification/operationalinsights/resource-manager/readme.az.md Co-authored-by: Qiaoqiao Zhang <55688292+qiaozha@users.noreply.github.com> --- specification/operationalinsights/resource-manager/readme.az.md | 1 - 1 file changed, 1 deletion(-) diff --git a/specification/operationalinsights/resource-manager/readme.az.md b/specification/operationalinsights/resource-manager/readme.az.md index de22ef498ac1..4b78b2e4f7ae 100644 --- a/specification/operationalinsights/resource-manager/readme.az.md +++ b/specification/operationalinsights/resource-manager/readme.az.md @@ -15,7 +15,6 @@ python-sdk-output-folder: "$(az-output-folder)/azext_loganalytics/vendored_sdks/ # add additional configuration here specific for Azure CLI # refer to the faq.md for more details ``` -``` yaml $(az) && $(target-mode) == core ``` yaml $(az) && $(target-mode) == `core` az: extensions: loganalytics From 5e451b044bea80ea98663200d398b5208a9ea2ab Mon Sep 17 00:00:00 2001 From: dabenhamMic <74346518+dabenhamMic@users.noreply.github.com> Date: Sun, 18 Apr 2021 14:43:54 +0300 Subject: [PATCH 53/57] Update specification/operationalinsights/resource-manager/readme.az.md Co-authored-by: Qiaoqiao Zhang <55688292+qiaozha@users.noreply.github.com> --- specification/operationalinsights/resource-manager/readme.az.md | 1 - 1 file changed, 1 deletion(-) diff --git a/specification/operationalinsights/resource-manager/readme.az.md b/specification/operationalinsights/resource-manager/readme.az.md index 4b78b2e4f7ae..19d2b6411c6b 100644 --- a/specification/operationalinsights/resource-manager/readme.az.md +++ b/specification/operationalinsights/resource-manager/readme.az.md @@ -4,7 +4,6 @@ These settings apply only when `--az` is specified on the command line. For new Resource Provider. It is highly recommended to onboard Azure CLI extensions. There's no differences in terms of customer usage. -``` yaml $(az) && $(target-mode) != core ``` yaml $(az) && $(target-mode) != `core` az: extensions: loganalytics From 6cf951d8ecc8c6caa16ccfc0c69564afdaedc6a8 Mon Sep 17 00:00:00 2001 From: dabenhamMic <74346518+dabenhamMic@users.noreply.github.com> Date: Sun, 18 Apr 2021 14:53:18 +0300 Subject: [PATCH 54/57] Update specification/operationalinsights/resource-manager/readme.az.md Co-authored-by: Qiaoqiao Zhang <55688292+qiaozha@users.noreply.github.com> --- specification/operationalinsights/resource-manager/readme.az.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/operationalinsights/resource-manager/readme.az.md b/specification/operationalinsights/resource-manager/readme.az.md index 19d2b6411c6b..cb5455f92177 100644 --- a/specification/operationalinsights/resource-manager/readme.az.md +++ b/specification/operationalinsights/resource-manager/readme.az.md @@ -14,7 +14,7 @@ python-sdk-output-folder: "$(az-output-folder)/azext_loganalytics/vendored_sdks/ # add additional configuration here specific for Azure CLI # refer to the faq.md for more details ``` -``` yaml $(az) && $(target-mode) == `core` +``` yaml $(az) && $(target-mode) == 'core' az: extensions: loganalytics namespace: azure.mgmt.loganalytics From 7fdbd9bff25a3ca9c80931a6bfcd1bbae266d53b Mon Sep 17 00:00:00 2001 From: dabenhamMic <74346518+dabenhamMic@users.noreply.github.com> Date: Sun, 18 Apr 2021 14:53:24 +0300 Subject: [PATCH 55/57] Update specification/operationalinsights/resource-manager/readme.az.md Co-authored-by: Qiaoqiao Zhang <55688292+qiaozha@users.noreply.github.com> --- specification/operationalinsights/resource-manager/readme.az.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/operationalinsights/resource-manager/readme.az.md b/specification/operationalinsights/resource-manager/readme.az.md index cb5455f92177..a2b297eb2775 100644 --- a/specification/operationalinsights/resource-manager/readme.az.md +++ b/specification/operationalinsights/resource-manager/readme.az.md @@ -4,7 +4,7 @@ These settings apply only when `--az` is specified on the command line. For new Resource Provider. It is highly recommended to onboard Azure CLI extensions. There's no differences in terms of customer usage. -``` yaml $(az) && $(target-mode) != `core` +``` yaml $(az) && $(target-mode) != 'core' az: extensions: loganalytics namespace: azure.mgmt.loganalytics From bcb40634823ef04e05ee2e859e64c53d1558f3d8 Mon Sep 17 00:00:00 2001 From: dabenhamMic <74346518+dabenhamMic@users.noreply.github.com> Date: Sun, 18 Apr 2021 15:31:05 +0300 Subject: [PATCH 56/57] Update specification/operationalinsights/resource-manager/readme.az.md Co-authored-by: Qiaoqiao Zhang <55688292+qiaozha@users.noreply.github.com> --- specification/operationalinsights/resource-manager/readme.az.md | 1 - 1 file changed, 1 deletion(-) diff --git a/specification/operationalinsights/resource-manager/readme.az.md b/specification/operationalinsights/resource-manager/readme.az.md index a2b297eb2775..79e1a5785c94 100644 --- a/specification/operationalinsights/resource-manager/readme.az.md +++ b/specification/operationalinsights/resource-manager/readme.az.md @@ -19,7 +19,6 @@ az: extensions: loganalytics namespace: azure.mgmt.loganalytics package-name: azure-mgmt-loganalytics -az-output-folder: $(azure-cli-extension-folder)/src/loganalytics az-output-folder: $(azure-cli-folder)/src/azure-cli/azure/cli/command_modules/loganalytics python-sdk-output-folder: "$(az-output-folder)/azext_loganalytics/vendored_sdks/loganalytics" # add additinal configuration here specific for Azure CLI From 62f3f64fde0c0eb18eac1319cfd3b98e9e5fdb01 Mon Sep 17 00:00:00 2001 From: daniel ben-hamoo Date: Sun, 18 Apr 2021 17:27:19 +0300 Subject: [PATCH 57/57] added azure-powershell to readme.md --- specification/operationalinsights/resource-manager/readme.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/specification/operationalinsights/resource-manager/readme.md b/specification/operationalinsights/resource-manager/readme.md index 55bb3fb43331..bfd4071cc9fc 100644 --- a/specification/operationalinsights/resource-manager/readme.md +++ b/specification/operationalinsights/resource-manager/readme.md @@ -182,9 +182,10 @@ swagger-to-sdk: - repo: azure-sdk-for-ruby - repo: azure-sdk-for-java - repo: azure-resource-manager-schemas + - repo: azure-cli-extensions + - repo: azure-powershell after_scripts: - node sdkauto_afterscript.js operationalinsights/resource-manager - - repo: azure-cli-extensions ```