This is the AutoRest configuration file for HDInsight.
To build the SDK for HDInsight, 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 HDInsight API.
title: HDInsightManagementClient
description: HDInsight Management Client
openapi-type: arm
azure-arm: true
tag: package-2018-06-preview
directive:
- suppress: DefinitionsPropertiesNamesCamelCase
reason: This would require a breaking change, and need to be consistent with the response from RP side.
from: Microsoft.HDInsight/preview/2015-03-01-preview/locations.json
where:
- $.definitions.CapabilitiesResult.properties.vmSize_filters
- $.definitions.RegionalQuotaCapability.properties.cores_available
- $.definitions.RegionalQuotaCapability.properties.cores_used
- $.definitions.RegionalQuotaCapability.properties.region_name
- $.definitions.QuotaCapability.properties.cores_used
- $.definitions.QuotaCapability.properties.max_cores_allowed
- $.definitions.VmSizeCompatibilityFilter.properties.ClusterVersions
- $.definitions.VmSizeCompatibilityFilter.properties.NodeTypes
- $.definitions.VmSizeCompatibilityFilter.properties.ClusterFlavors
- $.definitions.VmSizeCompatibilityFilter.properties.Regions
- $.definitions.VmSizeCompatibilityFilter.properties.FilterMode
directive:
- suppress: DefinitionsPropertiesNamesCamelCase
reason: This would require a breaking change, and need to be consistent with the response from RP side.
from: Microsoft.HDInsight/stable/2018-06-01-preview/locations.json
where:
- $.definitions.CapabilitiesResult.properties.vmSize_filters
- $.definitions.RegionalQuotaCapability.properties.cores_available
- $.definitions.RegionalQuotaCapability.properties.cores_used
- $.definitions.RegionalQuotaCapability.properties.region_name
- $.definitions.QuotaCapability.properties.cores_used
- $.definitions.QuotaCapability.properties.max_cores_allowed
- $.definitions.VmSizeCompatibilityFilter.properties.ClusterVersions
- $.definitions.VmSizeCompatibilityFilter.properties.NodeTypes
- $.definitions.VmSizeCompatibilityFilter.properties.ClusterFlavors
- $.definitions.VmSizeCompatibilityFilter.properties.Regions
- $.definitions.VmSizeCompatibilityFilter.properties.FilterMode
directive:
- suppress: R3016 # to suppress (DefinitionsPropertiesNamesCamelCase)
from: cluster.json
reason: The casing of this property is not incorrect.
where:
- $..["restAuthCredential.isEnabled"]
- $..["restAuthCredential.username"]
- $..["restAuthCredential.password"]
These settings apply only when --tag=package-2018-06-preview
is specified on the command line.
input-file:
- Microsoft.HDInsight/stable/2018-06-01-preview/cluster.json
- Microsoft.HDInsight/stable/2018-06-01-preview/applications.json
- Microsoft.HDInsight/stable/2018-06-01-preview/locations.json
- Microsoft.HDInsight/stable/2018-06-01-preview/configurations.json
- Microsoft.HDInsight/stable/2018-06-01-preview/extensions.json
- Microsoft.HDInsight/stable/2018-06-01-preview/scriptActions.json
- Microsoft.HDInsight/stable/2018-06-01-preview/operations.json
- Microsoft.HDInsight/stable/2018-06-01-preview/virtualMachines.json
These settings apply only when --tag=package-2015-03-preview
is specified on the command line.
input-file:
- Microsoft.HDInsight/preview/2015-03-01-preview/cluster.json
- Microsoft.HDInsight/preview/2015-03-01-preview/applications.json
- Microsoft.HDInsight/preview/2015-03-01-preview/locations.json
- Microsoft.HDInsight/preview/2015-03-01-preview/configurations.json
- Microsoft.HDInsight/preview/2015-03-01-preview/extensions.json
- Microsoft.HDInsight/preview/2015-03-01-preview/scriptActions.json
- Microsoft.HDInsight/preview/2015-03-01-preview/operations.json
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-net
- repo: azure-sdk-for-go
- repo: azure-sdk-for-java
- repo: azure-sdk-for-python
- repo: azure-sdk-for-js
- repo: azure-sdk-for-node
- repo: azure-resource-manager-schemas
after_scripts:
- node sdkauto_afterscript.js hdinsight/resource-manager
See configuration in readme.python.md
See configuration in readme.go.md
These settings apply only when --csharp
is specified on the command line.
Please also specify --csharp-sdks-folder=<path to "SDKs" directory of your azure-sdk-for-net clone>
.
csharp:
license-header: MICROSOFT_MIT_NO_VERSION
namespace: Microsoft.Azure.Management.HDInsight
output-folder: $(csharp-sdks-folder)/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated
clear-output-folder: true
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.hdinsight
license-header: MICROSOFT_MIT_NO_CODEGEN
payload-flattening-threshold: 1
output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-hdinsight
batch:
- tag: package-2018-06-preview
- tag: package-2015-03-preview
These settings apply only when --tag=package-2015-03-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.hdinsight.v2018_06_01_preview
output-folder: $(azure-libraries-for-java-folder)/sdk/hdinsight/mgmt-v2018_06_01_preview
regenerate-manager: true
generate-interface: true
These settings apply only when --tag=package-2015-03-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.hdinsight.v2015_03_01_preview
output-folder: $(azure-libraries-for-java-folder)/sdk/hdinsight/mgmt-v2015_03_01_preview
regenerate-manager: true
generate-interface: true
See configuration in readme.azureresourceschema.md