This is the AutoRest configuration file for Redis.
To build the SDK for Redis, 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 Redis API.
openapi-type: arm
tag: package-2021-06
These settings apply only when --tag=package-2021-06
is specified on the command line.
input-file:
- Microsoft.Cache/stable/2021-06-01/redis.json
These settings apply only when --tag=package-2020-12
is specified on the command line.
input-file:
- Microsoft.Cache/stable/2020-12-01/redis.json
These settings apply only when --tag=package-2020-06
is specified on the command line.
input-file:
- Microsoft.Cache/stable/2020-06-01/redis.json
These settings apply only when --tag=package-2019-07-preview
is specified on the command line.
input-file:
- Microsoft.Cache/preview/2019-07-01/redis.json
These settings apply only when --tag=package-2018-03
is specified on the command line.
input-file:
- Microsoft.Cache/stable/2018-03-01/redis.json
These settings apply only when --tag=package-2017-10
is specified on the command line.
input-file:
- Microsoft.Cache/stable/2017-10-01/redis.json
These settings apply only when --tag=package-2017-02
is specified on the command line.
input-file:
- Microsoft.Cache/stable/2017-02-01/redis.json
These settings apply only when --tag=package-2016-04
is specified on the command line.
input-file:
- Microsoft.Cache/stable/2016-04-01/redis.json
These settings apply only when --tag=package-2015-08
is specified on the command line.
input-file:
- Microsoft.Cache/stable/2015-08-01/redis.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-python-track2
- repo: azure-sdk-for-java
- repo: azure-sdk-for-go
- repo: azure-sdk-for-go-track2
- repo: azure-sdk-for-js
- repo: azure-sdk-for-node
- repo: azure-sdk-for-ruby
after_scripts:
- bundle install && rake arm:regen_all_profiles['azure_mgmt_redis']
- repo: azure-sdk-for-python-track2
- repo: azure-resource-manager-schemas
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:
# last generated with AutoRest.0.17.3
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
namespace: Microsoft.Azure.Management.Redis
output-folder: $(csharp-sdks-folder)/redis/Microsoft.Azure.Management.Redis/src/Generated
clear-output-folder: true
See configuration in readme.python.md
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.redis
license-header: MICROSOFT_MIT_NO_CODEGEN
payload-flattening-threshold: 1
output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-redis
batch:
- tag: package-2018-03
- tag: package-2017-10
These settings apply only when --tag=package-2018-03 --java
is specified on the command line.
Please also specify --azure-libraries-for-java-folder=<path to the root directory of your azure-sdk-for-java clone>
.
java:
namespace: com.microsoft.azure.management.redis.v2018_03_01
output-folder: $(azure-libraries-for-java-folder)/sdk/redis/mgmt-v2018_03_01
regenerate-manager: true
generate-interface: true
These settings apply only when --tag=package-2017-10 --java
is specified on the command line.
Please also specify --azure-libraries-for-java-folder=<path to the root directory of your azure-sdk-for-java clone>
.
java:
namespace: com.microsoft.azure.management.redis.v2017_10_01
output-folder: $(azure-libraries-for-java-folder)/sdk/redis/mgmt-v2017_10_01
regenerate-manager: true
generate-interface: true
directive:
- suppress: R3006 # Model definition 'RedisResource' has extra properties ['zones']."
where:
- $.definitions.RedisResource.properties
from: redis.json
reason: zones properties will be allowed in subsequent version of the linter tool
- suppress: R3018 # Booleans are not descriptive and make them hard to use. Consider using string enums with allowed set of values defined. Property: enableNonSslPort."
where:
- $.definitions.RedisCommonProperties.properties.enableNonSslPort
from: redis.json
reason: this will result in breaking change
- suppress: R3018 # Booleans are not descriptive and make them hard to use. Consider using string enums with allowed set of values defined. Property: isMaster."
where:
- $.definitions.RedisInstanceDetails.properties.isMaster
from: redis.json
reason: this will result in breaking change
- suppress: R3018 # Booleans are not descriptive and make them hard to use. Consider using string enums with allowed set of values defined. Property: isPrimary"
where:
- $.definitions.RedisInstanceDetails.properties.isPrimary
from: redis.json
reason: this will result in breaking change
- suppress: R3018 # Booleans are not descriptive and make them hard to use. Consider using string enums with allowed set of values defined. Property: isDataAction"
where:
- $.definitions.Operation.properties.isDataAction
from: types.json
reason: its per the RPC specification
- suppress: R2017 # PUT request and response should be of same type "
where:
- $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/Redis/{name}/linkedServers/{linkedServerName}"].put
- $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/Redis/{name}"].put
- $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/Redis/{cacheName}/firewallRules/{ruleName}"].put
from: redis.json
reason: bug from sdk team
- suppress: R3010 # The child tracked resource, 'linkedServers' with immediate parent 'RedisResource', must have a list by immediate parent operation."
where:
- $.definitions
from: redis.json
reason: This is false positive, 'linkedServers' is not a tracked resource.