From 51a3e6aa5a38d630f88aa42781e746db0c469240 Mon Sep 17 00:00:00 2001 From: arolshan Date: Sun, 14 Apr 2019 17:14:22 +0300 Subject: [PATCH 01/11] Update OperationalInsights.json --- .../preview/2015-11-01-preview/OperationalInsights.json | 1 - 1 file changed, 1 deletion(-) diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2015-11-01-preview/OperationalInsights.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2015-11-01-preview/OperationalInsights.json index 4d92d3ca149c..cdf16680bba9 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2015-11-01-preview/OperationalInsights.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2015-11-01-preview/OperationalInsights.json @@ -1272,7 +1272,6 @@ "Free", "Standard", "Premium", - "Unlimited", "PerNode", "PerGB2018", "Standalone" From 350be00bc14201092a2203d868ed623a7e6e0c3a Mon Sep 17 00:00:00 2001 From: Arik Olsh <47111029+arolshan@users.noreply.github.com> Date: Sun, 14 Apr 2019 17:17:08 +0300 Subject: [PATCH 02/11] Adds suppression to readme --- .../resource-manager/readme.md | 25 ++++++++++--------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/specification/operationalinsights/resource-manager/readme.md b/specification/operationalinsights/resource-manager/readme.md index 08e399334edc..5c579266a0b2 100644 --- a/specification/operationalinsights/resource-manager/readme.md +++ b/specification/operationalinsights/resource-manager/readme.md @@ -4,10 +4,10 @@ This is the AutoRest configuration file for OperationalInsights. - - --- + ## Getting Started + To build the SDK for OperationalInsights, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run: > `autorest` @@ -15,13 +15,13 @@ To build the SDK for OperationalInsights, simply [Install AutoRest](https://aka. To see additional help and options, run: > `autorest --help` + --- ## Configuration - - ### Basic Information + These are the global settings for the OperationalInsights API. ``` yaml @@ -31,7 +31,6 @@ openapi-type: arm tag: package-2015-11-preview ``` - ### Tag: package-2015-11-preview These settings apply only when `--tag=package-2015-11-preview` is specified on the command line. @@ -51,8 +50,8 @@ input-file: ``` --- -# Code Generation +# Code Generation ## Swagger to SDK @@ -70,13 +69,12 @@ swagger-to-sdk: - bundle install && rake arm:regen_all_profiles['azure_mgmt_operational_insights'] ``` - ## C# These settings apply only when `--csharp` is specified on the command line. Please also specify `--csharp-sdks-folder=`. -```yaml $(csharp) +``` yaml $(csharp) csharp: # last generated using AutoRest.1.0.0-Nightly20170126 azure-arm: true @@ -105,11 +103,13 @@ python: description: The Log Analytics Client. clear-output-folder: true ``` + ``` yaml $(python) && $(python-mode) == 'update' python: no-namespace-folders: true output-folder: $(python-sdks-folder)/azure-mgmt-loganalytics/azure/mgmt/loganalytics ``` + ``` yaml $(python) && $(python-mode) == 'create' python: basic-setup-py: true @@ -134,8 +134,6 @@ payload-flattening-threshold: 1 output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-operationalinsights ``` - - ### Java multi-api ``` yaml $(java) && $(multiapi) @@ -170,12 +168,15 @@ regenerate-manager: true generate-interface: true ``` - ## Suppression ``` yaml directive: - from: OperationalInsights.json - suppress: R3006 # BodyTopLevelProperties/R3006/RPCViolation + suppress: R3006 reason: properties etag defined as eTag in model + - suppress: EnumInsteadOfBoolean + from: OperationalInsights.json + where: $.definitions.IntelligencePack.properties.enabled + reason: 'Not related to my change and this is a code constraint. ' ``` From 7f542366158400c8e4afc59030860e373052d4a8 Mon Sep 17 00:00:00 2001 From: Arik Olsh <47111029+arolshan@users.noreply.github.com> Date: Sun, 14 Apr 2019 17:20:39 +0300 Subject: [PATCH 03/11] Adds suppression to readme --- specification/operationalinsights/resource-manager/readme.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/specification/operationalinsights/resource-manager/readme.md b/specification/operationalinsights/resource-manager/readme.md index 5c579266a0b2..358e1f3427c5 100644 --- a/specification/operationalinsights/resource-manager/readme.md +++ b/specification/operationalinsights/resource-manager/readme.md @@ -179,4 +179,8 @@ directive: from: OperationalInsights.json where: $.definitions.IntelligencePack.properties.enabled reason: 'Not related to my change and this is a code constraint. ' + - suppress: DescriptionAndTitleMissing + from: OperationalInsights.json + where: $.definitions.DataSource.properties.kind + reason: This is a false positive. The description is derived from reference to DataSourceKind entity. ``` From c8a0d5cda399491294391dabeeb45195fcc8b253 Mon Sep 17 00:00:00 2001 From: Arik Olsh <47111029+arolshan@users.noreply.github.com> Date: Sun, 14 Apr 2019 17:23:19 +0300 Subject: [PATCH 04/11] Adds suppression to readme --- specification/operationalinsights/resource-manager/readme.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/specification/operationalinsights/resource-manager/readme.md b/specification/operationalinsights/resource-manager/readme.md index 358e1f3427c5..da6e415f2e36 100644 --- a/specification/operationalinsights/resource-manager/readme.md +++ b/specification/operationalinsights/resource-manager/readme.md @@ -183,4 +183,8 @@ directive: from: OperationalInsights.json where: $.definitions.DataSource.properties.kind reason: This is a false positive. The description is derived from reference to DataSourceKind entity. + - suppress: DescriptionAndTitleMissing + from: OperationalInsights.json + where: $.definitions.DataSourceFilter.properties.kind + reason: False positive. Description inherited from reference. ``` From ecf7615eec9715100f7e71398d75ada8fd9fc0e0 Mon Sep 17 00:00:00 2001 From: Arik Olsh <47111029+arolshan@users.noreply.github.com> Date: Sun, 14 Apr 2019 17:23:56 +0300 Subject: [PATCH 05/11] Adds suppression to readme --- specification/operationalinsights/resource-manager/readme.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/specification/operationalinsights/resource-manager/readme.md b/specification/operationalinsights/resource-manager/readme.md index da6e415f2e36..3f3cabab589c 100644 --- a/specification/operationalinsights/resource-manager/readme.md +++ b/specification/operationalinsights/resource-manager/readme.md @@ -187,4 +187,8 @@ directive: from: OperationalInsights.json where: $.definitions.DataSourceFilter.properties.kind reason: False positive. Description inherited from reference. + - suppress: EnumInsteadOfBoolean + from: OperationalInsights.json + where: $.definitions.ManagementGroupProperties.properties.isGateway + reason: This validation error cannot be removed due to technical constraints on your service side. ``` From 8c0e9bd489b8311d5d3c5aa19934b787e9a13120 Mon Sep 17 00:00:00 2001 From: Arik Olsh <47111029+arolshan@users.noreply.github.com> Date: Sun, 14 Apr 2019 17:25:13 +0300 Subject: [PATCH 06/11] Adds suppression to readme --- specification/operationalinsights/resource-manager/readme.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/specification/operationalinsights/resource-manager/readme.md b/specification/operationalinsights/resource-manager/readme.md index 3f3cabab589c..bb61f40db72d 100644 --- a/specification/operationalinsights/resource-manager/readme.md +++ b/specification/operationalinsights/resource-manager/readme.md @@ -191,4 +191,8 @@ directive: from: OperationalInsights.json where: $.definitions.ManagementGroupProperties.properties.isGateway reason: This validation error cannot be removed due to technical constraints on your service side. + - suppress: AvoidNestedProperties + from: OperationalInsights.json + where: $.definitions.DataSource.properties.properties + reason: False positive. Parent 'Properties' is swagger's ``` From c7b255b2c8bdfe1c371a0183e14b4881857c3330 Mon Sep 17 00:00:00 2001 From: Arie Olshanezky Date: Tue, 16 Apr 2019 23:17:36 +0300 Subject: [PATCH 07/11] Revert "Adds suppression to readme" This reverts commit 8c0e9bd489b8311d5d3c5aa19934b787e9a13120. --- specification/operationalinsights/resource-manager/readme.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/specification/operationalinsights/resource-manager/readme.md b/specification/operationalinsights/resource-manager/readme.md index bb61f40db72d..3f3cabab589c 100644 --- a/specification/operationalinsights/resource-manager/readme.md +++ b/specification/operationalinsights/resource-manager/readme.md @@ -191,8 +191,4 @@ directive: from: OperationalInsights.json where: $.definitions.ManagementGroupProperties.properties.isGateway reason: This validation error cannot be removed due to technical constraints on your service side. - - suppress: AvoidNestedProperties - from: OperationalInsights.json - where: $.definitions.DataSource.properties.properties - reason: False positive. Parent 'Properties' is swagger's ``` From 8bdee77d2fef575ec34e0043d48a08a99ad7f841 Mon Sep 17 00:00:00 2001 From: Arie Olshanezky Date: Tue, 16 Apr 2019 23:17:39 +0300 Subject: [PATCH 08/11] Revert "Adds suppression to readme" This reverts commit ecf7615eec9715100f7e71398d75ada8fd9fc0e0. --- specification/operationalinsights/resource-manager/readme.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/specification/operationalinsights/resource-manager/readme.md b/specification/operationalinsights/resource-manager/readme.md index 3f3cabab589c..da6e415f2e36 100644 --- a/specification/operationalinsights/resource-manager/readme.md +++ b/specification/operationalinsights/resource-manager/readme.md @@ -187,8 +187,4 @@ directive: from: OperationalInsights.json where: $.definitions.DataSourceFilter.properties.kind reason: False positive. Description inherited from reference. - - suppress: EnumInsteadOfBoolean - from: OperationalInsights.json - where: $.definitions.ManagementGroupProperties.properties.isGateway - reason: This validation error cannot be removed due to technical constraints on your service side. ``` From 930b3a7f804e7e0641e7ddfce77efb878c4de5f9 Mon Sep 17 00:00:00 2001 From: Arie Olshanezky Date: Tue, 16 Apr 2019 23:17:40 +0300 Subject: [PATCH 09/11] Revert "Adds suppression to readme" This reverts commit c8a0d5cda399491294391dabeeb45195fcc8b253. --- specification/operationalinsights/resource-manager/readme.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/specification/operationalinsights/resource-manager/readme.md b/specification/operationalinsights/resource-manager/readme.md index da6e415f2e36..358e1f3427c5 100644 --- a/specification/operationalinsights/resource-manager/readme.md +++ b/specification/operationalinsights/resource-manager/readme.md @@ -183,8 +183,4 @@ directive: from: OperationalInsights.json where: $.definitions.DataSource.properties.kind reason: This is a false positive. The description is derived from reference to DataSourceKind entity. - - suppress: DescriptionAndTitleMissing - from: OperationalInsights.json - where: $.definitions.DataSourceFilter.properties.kind - reason: False positive. Description inherited from reference. ``` From 2131d9e63a7617cf0c32767d7abc2ea687c0430c Mon Sep 17 00:00:00 2001 From: Arie Olshanezky Date: Tue, 16 Apr 2019 23:17:42 +0300 Subject: [PATCH 10/11] Revert "Adds suppression to readme" This reverts commit 7f542366158400c8e4afc59030860e373052d4a8. --- specification/operationalinsights/resource-manager/readme.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/specification/operationalinsights/resource-manager/readme.md b/specification/operationalinsights/resource-manager/readme.md index 358e1f3427c5..5c579266a0b2 100644 --- a/specification/operationalinsights/resource-manager/readme.md +++ b/specification/operationalinsights/resource-manager/readme.md @@ -179,8 +179,4 @@ directive: from: OperationalInsights.json where: $.definitions.IntelligencePack.properties.enabled reason: 'Not related to my change and this is a code constraint. ' - - suppress: DescriptionAndTitleMissing - from: OperationalInsights.json - where: $.definitions.DataSource.properties.kind - reason: This is a false positive. The description is derived from reference to DataSourceKind entity. ``` From 871acbdc8437d0f121b78b6e2edde6c72bf7965f Mon Sep 17 00:00:00 2001 From: Arie Olshanezky Date: Tue, 16 Apr 2019 23:18:46 +0300 Subject: [PATCH 11/11] Revert "Adds suppression to readme" This reverts commit 350be00bc14201092a2203d868ed623a7e6e0c3a. --- .../resource-manager/readme.md | 25 +++++++++---------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/specification/operationalinsights/resource-manager/readme.md b/specification/operationalinsights/resource-manager/readme.md index 5c579266a0b2..08e399334edc 100644 --- a/specification/operationalinsights/resource-manager/readme.md +++ b/specification/operationalinsights/resource-manager/readme.md @@ -4,10 +4,10 @@ This is the AutoRest configuration file for OperationalInsights. ---- -## Getting Started +--- +## Getting Started To build the SDK for OperationalInsights, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run: > `autorest` @@ -15,13 +15,13 @@ To build the SDK for OperationalInsights, simply [Install AutoRest](https://aka. To see additional help and options, run: > `autorest --help` - --- ## Configuration -### Basic Information + +### Basic Information These are the global settings for the OperationalInsights API. ``` yaml @@ -31,6 +31,7 @@ openapi-type: arm tag: package-2015-11-preview ``` + ### Tag: package-2015-11-preview These settings apply only when `--tag=package-2015-11-preview` is specified on the command line. @@ -50,9 +51,9 @@ input-file: ``` --- - # Code Generation + ## Swagger to SDK This section describes what SDK should be generated by the automatic system. @@ -69,12 +70,13 @@ swagger-to-sdk: - bundle install && rake arm:regen_all_profiles['azure_mgmt_operational_insights'] ``` + ## C# These settings apply only when `--csharp` is specified on the command line. Please also specify `--csharp-sdks-folder=`. -``` yaml $(csharp) +```yaml $(csharp) csharp: # last generated using AutoRest.1.0.0-Nightly20170126 azure-arm: true @@ -103,13 +105,11 @@ python: description: The Log Analytics Client. clear-output-folder: true ``` - ``` yaml $(python) && $(python-mode) == 'update' python: no-namespace-folders: true output-folder: $(python-sdks-folder)/azure-mgmt-loganalytics/azure/mgmt/loganalytics ``` - ``` yaml $(python) && $(python-mode) == 'create' python: basic-setup-py: true @@ -134,6 +134,8 @@ payload-flattening-threshold: 1 output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-operationalinsights ``` + + ### Java multi-api ``` yaml $(java) && $(multiapi) @@ -168,15 +170,12 @@ regenerate-manager: true generate-interface: true ``` + ## Suppression ``` yaml directive: - from: OperationalInsights.json - suppress: R3006 + suppress: R3006 # BodyTopLevelProperties/R3006/RPCViolation reason: properties etag defined as eTag in model - - suppress: EnumInsteadOfBoolean - from: OperationalInsights.json - where: $.definitions.IntelligencePack.properties.enabled - reason: 'Not related to my change and this is a code constraint. ' ```