Skip to content

Commit 7f08477

Browse files
Add directive in readme.java.md to make redisConfiguration.additonalProperties as string to string map (#20715)
* add directive in readme.java.md to make additonalProperties in redisConfiguration as Map<String, String> * clean up redis/resource-manager/readme.md
1 parent af1be26 commit 7f08477

File tree

2 files changed

+12
-45
lines changed

2 files changed

+12
-45
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
## Java
2+
3+
These settings apply only when `--java` is specified on the command line.
4+
5+
``` yaml $(java)
6+
directive:
7+
- from: redis.json
8+
where: $.definitions.RedisCommonProperties.properties.redisConfiguration.additionalProperties
9+
transform: $['type'] = "string"
10+
reason: additonal properties should be string to string map
11+
```

specification/redis/resource-manager/readme.md

Lines changed: 1 addition & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -169,51 +169,7 @@ See configuration in [readme.go.md](./readme.go.md)
169169

170170
## Java
171171

172-
These settings apply only when `--java` is specified on the command line.
173-
Please also specify `--azure-libraries-for-java-folder=<path to the root directory of your azure-libraries-for-java clone>`.
174-
175-
``` yaml $(java)
176-
azure-arm: true
177-
fluent: true
178-
namespace: com.microsoft.azure.management.redis
179-
license-header: MICROSOFT_MIT_NO_CODEGEN
180-
payload-flattening-threshold: 1
181-
output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-redis
182-
```
183-
184-
### Java multi-api
185-
186-
``` yaml $(java) && $(multiapi)
187-
batch:
188-
- tag: package-2018-03
189-
- tag: package-2017-10
190-
```
191-
192-
### Tag: package-2018-03 and java
193-
194-
These settings apply only when `--tag=package-2018-03 --java` is specified on the command line.
195-
Please also specify `--azure-libraries-for-java-folder=<path to the root directory of your azure-sdk-for-java clone>`.
196-
197-
``` yaml $(tag) == 'package-2018-03' && $(java) && $(multiapi)
198-
java:
199-
namespace: com.microsoft.azure.management.redis.v2018_03_01
200-
output-folder: $(azure-libraries-for-java-folder)/sdk/redis/mgmt-v2018_03_01
201-
regenerate-manager: true
202-
generate-interface: true
203-
```
204-
205-
### Tag: package-2017-10 and java
206-
207-
These settings apply only when `--tag=package-2017-10 --java` is specified on the command line.
208-
Please also specify `--azure-libraries-for-java-folder=<path to the root directory of your azure-sdk-for-java clone>`.
209-
210-
``` yaml $(tag) == 'package-2017-10' && $(java) && $(multiapi)
211-
java:
212-
namespace: com.microsoft.azure.management.redis.v2017_10_01
213-
output-folder: $(azure-libraries-for-java-folder)/sdk/redis/mgmt-v2017_10_01
214-
regenerate-manager: true
215-
generate-interface: true
216-
```
172+
See configuration in [readme.java.md](./readme.java.md)
217173

218174
# Validation
219175

0 commit comments

Comments
 (0)