Skip to content

Commit

Permalink
mgmt, imagebuilder, rename java method validate (#19248)
Browse files Browse the repository at this point in the history
* mgmt, imagebuilder, rename java method validate

* move java specific configurations to readme.java.md

* remove outdated configs
  • Loading branch information
XiaofeiCao authored May 27, 2022
1 parent 40fdd84 commit b2de552
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 44 deletions.
12 changes: 12 additions & 0 deletions specification/imagebuilder/resource-manager/readme.java.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
## Java

These settings apply only when `--java` is specified on the command line.

``` yaml $(java)
directive:
- from: imagebuilder.json
where: $.definitions.ImageTemplateProperties.properties.validate
transform: >
$["x-ms-client-name"] = "validation";
reason: property name validate collides with built-in method name
```
45 changes: 1 addition & 44 deletions specification/imagebuilder/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,47 +115,4 @@ See configuration in [readme.go.md](./readme.go.md)

## Java

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>`.

``` yaml $(java)
azure-arm: true
fluent: true
namespace: com.microsoft.azure.management.imagebuilder
license-header: MICROSOFT_MIT_NO_CODEGEN
payload-flattening-threshold: 1
output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-imagebuilder
```

### Java multi-api

``` yaml $(java) && $(multiapi)
batch:
- tag: package-2019-02
```

### Tag: package-2018-02 and java

These settings apply only when `--tag=package-2018-02 --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>`.

``` yaml $(tag) == 'package-2018-02' && $(java) && $(multiapi)
java:
namespace: com.microsoft.azure.management.imagebuilder.v2018_02_01_preview
output-folder: $(azure-libraries-for-java-folder)/sdk/imagebuilder/mgmt-v2018_02_01_preview
regenerate-manager: true
generate-interface: true
```

### Tag: package-2019-02 and java

These settings apply only when `--tag=package-2019-02 --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>`.

``` yaml $(tag) == 'package-2019-02' && $(java) && $(multiapi)
java:
namespace: com.microsoft.azure.management.imagebuilder.v2019_02_01_preview
output-folder: $(azure-libraries-for-java-folder)/sdk/imagebuilder/mgmt-v2019_02_01_preview
regenerate-manager: true
generate-interface: true
```
See configuration in [readme.java.md](./readme.java.md)

0 comments on commit b2de552

Please sign in to comment.