This is the AutoRest configuration file for TimeSeriesInsights.
To build the SDK for TimeSeriesInsights, simply Install AutoRest and in this folder, run:
autorest
To see additional help and options, run:
autorest --help
These are the global settings for the TimeSeriesInsights API.
openapi-type: arm
tag: package-2020-05-15
These settings apply only when --tag=package-2020-05-15
is specified on the command line.
input-file:
- Microsoft.TimeSeriesInsights/stable/2020-05-15/timeseriesinsights.json
These settings apply only when --tag=package-2018-08-preview
is specified on the command line.
input-file:
- Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/timeseriesinsights.json
These settings apply only when --tag=package-2017-11-15
is specified on the command line.
input-file:
- Microsoft.TimeSeriesInsights/stable/2017-11-15/timeseriesinsights.json
These settings apply only when --tag=package-2017-02-preview
is specified on the command line.
input-file:
- Microsoft.TimeSeriesInsights/preview/2017-02-28-preview/timeseriesinsights.json
directive:
- suppress: READONLY_PROPERTY_NOT_ALLOWED_IN_REQUEST
where:
- $.definitions.EnvironmentUpdateParameters.properties.kind
- $.definitions.EventSourceUpdateParameters.properties.kind
from: timeseriesinsights.json
reason: This property is the discriminator for polymorph, but it can not be in request body.
- suppress: OAV131 # DISCRIMINATOR_NOT_REQUIRED
from: timeseriesinsights.json
reason: kind is a non-settable property from the client in patch method.
- suppress: R3025 # Tracked resource 'XXX' must have a get operation
where:
- $.definitions.StandardEnvironmentResource
- $.definitions.LongTermEnvironmentResource
- $.definitions.EventHubEventSourceResource
- $.definitions.IoTHubEventSourceResource
- $.definitions.Gen1EnvironmentResource
- $.definitions.Gen2EnvironmentResource
from: timeseriesinsights.json
reason: These violations are false positives. The EventSources_Get operation returns an EventSourceResource, and both EventHubEventSourceResource and IoTHubEventSourceResource inherit from EventSourceResource. Similarly, the Environments_Get operation returns an EnvironmentResource, from which both StandardEnvironmentResource and LongTermEnvironmentResource inherit.
- suppress: R3026 # Tracked resource 'XXX' must have patch operation that at least supports the update of tags. It's strongly recommended that the PATCH operation supports update of all mutable properties as well.
where:
- $.definitions.StandardEnvironmentResource
- $.definitions.LongTermEnvironmentResource
- $.definitions.EventHubEventSourceResource
- $.definitions.IoTHubEventSourceResource
- $.definitions.Gen1EnvironmentResource
- $.definitions.Gen2EnvironmentResource
from: timeseriesinsights.json
reason: These violations are false positives. The EventSources_Update operation takes an EventSourceUpdateParameters as the body, and EventHubEventSourceUpdateParameters and IoTHubEventSourceUpdateParameters both inherit from EventSourceUpdateParameters. Similarly, the Environments_Update operation takes an EnvironmentUpdateParameters as the body, and both StandardEnvironmentUpdateParameters and LongTermEnvironmentUpdateParameters inherit from EnvironmentUpdateParameters. These definitions can be used to update mutable properties of the event source, including the Tags collection.
This section describes what SDK should be generated by the automatic system. This is not used by Autorest itself.
swagger-to-sdk:
- repo: azure-sdk-for-go
- repo: azure-sdk-for-node
- repo: azure-sdk-for-js
- repo: azure-sdk-for-python
- repo: azure-resource-manager-schemas
after_scripts:
- node sdkauto_afterscript.js timeseriesinsights/resource-manager
See configuration in readme.go.md
These settings apply only when --java
is specified on the command line.
Please also specify --azure-libraries-for-java-folder=<path to the root directory of your azure-libraries-for-java clone>
.
azure-arm: true
fluent: true
namespace: com.microsoft.azure.management.timeseriesinsights
license-header: MICROSOFT_MIT_NO_CODEGEN
payload-flattening-threshold: 1
output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-timeseriesinsights
See configuration in readme.python.md
batch:
- tag: package-2017-11-15
- tag: package-2017-02-preview
- tag: package-2018-08-preview
- tag: package-2020-05-15
These settings apply only when --tag=package-2017-11-15 --java
is specified on the command line.
Please also specify --azure-libraries-for-java=<path to the root directory of your azure-sdk-for-java clone>
.
java:
namespace: com.microsoft.azure.management.timeseriesinsights.v2017_11_15
output-folder: $(azure-libraries-for-java-folder)/sdk/timeseriesinsights/mgmt-v2017_11_15
regenerate-manager: true
generate-interface: true
These settings apply only when --tag=package-2017-02-preview --java
is specified on the command line.
Please also specify --azure-libraries-for-java=<path to the root directory of your azure-sdk-for-java clone>
.
java:
namespace: com.microsoft.azure.management.timeseriesinsights.v2017_02_28_preview
output-folder: $(azure-libraries-for-java-folder)/sdk/timeseriesinsights/mgmt-v2017_02_28_preview
regenerate-manager: true
generate-interface: true
These settings apply only when --tag=package-2018-08-preview --java
is specified on the command line.
Please also specify --azure-libraries-for-java=<path to the root directory of your azure-sdk-for-java clone>
.
java:
namespace: com.microsoft.azure.management.timeseriesinsights.v2018_08_15_preview
output-folder: $(azure-libraries-for-java-folder)/sdk/timeseriesinsights/mgmt-v2018_08_15_preview
regenerate-manager: true
generate-interface: true
These settings apply only when --tag=package-2020-05-15 --java
is specified on the command line.
Please also specify --azure-libraries-for-java=<path to the root directory of your azure-sdk-for-java clone>
.
java:
namespace: com.microsoft.azure.management.timeseriesinsights.v2020_05_15
output-folder: $(azure-libraries-for-java-folder)/sdk/timeseriesinsights/mgmt-v2020_05_15
regenerate-manager: true
generate-interface: true
See configuration in readme.azureresourceschema.md