Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Java configuration for devspaces #3378

Merged
merged 3 commits into from
Jul 10, 2018
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions specification/devspaces/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,15 @@ input-file:
---
# Code Generation

## Swagger to SDK

This section describes what SDK should be generated by the automatic system.
This is not used by Autorest itself.

``` yaml $(swagger-to-sdk)
swagger-to-sdk:
- repo: azure-sdk-for-java
```

## C#

Expand Down Expand Up @@ -86,3 +95,37 @@ Please also specify `--go-sdk-folder=<path to the root directory of your azure-s
``` yaml $(tag) == 'package-2018-06-01-preview' && $(go)
output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2018-06-01-preview/$(namespace)
```

## 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.devspaces
license-header: MICROSOFT_MIT_NO_CODEGEN
payload-flattening-threshold: 1
output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-devspaces
```

### Java multi-api

``` yaml $(java) && $(multiapi)
batch:
- tag: package-2018-06-01-preview
```

### Tag: package-2018-06-01-preview and java

These settings apply only when `--tag=2018-06-01-preview --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>`.

``` yaml $(tag)=='2018-06-01-preview' && $(java) && $(multiapi)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be package-2018-06-01-preview

java:
namespace: com.microsoft.azure.management.devspaces.v2018_06_01_preview
output-folder: $(azure-libraries-for-java-folder)/devspaces/resource-manager/v2018_06_01_preview
regenerate-manager: true
generate-interface: true
```