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

Reservations RP 2018-06-01: Add new reserved resource type CosmosDb #3690

Merged
merged 4 commits into from
Aug 22, 2018
Merged
Show file tree
Hide file tree
Changes from all 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
Original file line number Diff line number Diff line change
Expand Up @@ -872,6 +872,10 @@
},
"instanceFlexibility": {
"$ref": "#/definitions/InstanceFlexibility"
},
"name": {
"description": "Name of the Reservation",
"type": "string"
}
}
},
Expand Down Expand Up @@ -1127,7 +1131,8 @@
"enum": [
"VirtualMachines",
"SqlDatabases",
"SuseLinux"
"SuseLinux",
"CosmosDb"
],
"x-ms-enum": {
"name": "ReservedResourceType",
Expand Down
42 changes: 2 additions & 40 deletions specification/reservations/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ This is not used by Autorest itself.
``` yaml $(swagger-to-sdk)
swagger-to-sdk:
- repo: azure-sdk-for-python
- repo: azure-sdk-for-java
- repo: azure-sdk-for-go
```

Expand Down Expand Up @@ -91,7 +90,7 @@ python:
payload-flattening-threshold: 2
namespace: azure.mgmt.reservations
package-name: azure-mgmt-reservations
package-version: 0.2.0
package-version: 0.2.2
clear-output-folder: true
```
``` yaml $(python) && $(python-mode) == 'update'
Expand Down Expand Up @@ -141,41 +140,4 @@ Please also specify `--go-sdk-folder=<path to the root directory of your azure-s

``` yaml $(tag)=='package-2017-11' && $(go)
output-folder: $(go-sdk-folder)/services/reservations/mgmt/2017-11-01/reservations
```


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

### Java multi-api

``` yaml $(java) && $(multiapi)
batch:
- tag: package-2017-11
```

### Tag: package-2017-11 and java

These settings apply only when `--tag=package-2017-11 --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-2017-11' && $(java) && $(multiapi)
java:
namespace: com.microsoft.azure.management.reservations.v2017_11_01
output-folder: $(azure-libraries-for-java-folder)/reservations/resource-manager/v2017_11_01
regenerate-manager: true
generate-interface: true
```


```