Skip to content

Commit

Permalink
Add nodejs Swagger to SDK configs (Azure#2684)
Browse files Browse the repository at this point in the history
* Add nodejs Swagger to SDK configs

* Use tag variables instead of exact versions
  • Loading branch information
RikkiGibson authored Mar 19, 2018
1 parent 75d5c5f commit 806bf80
Show file tree
Hide file tree
Showing 163 changed files with 1,333 additions and 323 deletions.
11 changes: 6 additions & 5 deletions specification/advisor/resource-manager/readme.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Advisor

> see https://aka.ms/autorest
This is the AutoRest configuration file for Advisor.



---
## Getting Started
## Getting Started
To build the SDK for Advisor, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run:

> `autorest`
Expand All @@ -21,7 +21,7 @@ To see additional help and options, run:



### Basic Information
### Basic Information
These are the global settings for the Advisor API.

``` yaml
Expand All @@ -38,7 +38,7 @@ These settings apply only when `--tag=package-2017-04` is specified on the comma
input-file:
- Microsoft.Advisor/stable/2017-04-19/advisor.json
```

### Tag: package-2017-03

These settings apply only when `--tag=package-2017-03` is specified on the command line.
Expand All @@ -47,7 +47,7 @@ These settings apply only when `--tag=package-2017-03` is specified on the comma
input-file:
- Microsoft.Advisor/stable/2017-03-31/advisor.json
```

### Tag: package-2016-07-preview

These settings apply only when `--tag=package-2016-07-preview` is specified on the command line.
Expand All @@ -72,6 +72,7 @@ swagger-to-sdk:
- repo: azure-sdk-for-python
- repo: azure-libraries-for-java
- repo: azure-sdk-for-go
- repo: azure-sdk-for-node
```


Expand Down
11 changes: 11 additions & 0 deletions specification/advisor/resource-manager/readme.nodejs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## Node.js

These settings apply only when `--nodejs` is specified on the command line.
Please also specify `--node-sdks-folder=<path to root folder of your azure-sdk-for-node clone>`.

``` yaml $(nodejs)
nodejs:
azure-arm: true
package-name: azure-arm-advisor
output-folder: $(node-sdks-folder)/lib/services/advisorManagement/lib
```
9 changes: 5 additions & 4 deletions specification/analysisservices/resource-manager/readme.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# AnalysisServices

> see https://aka.ms/autorest
This is the AutoRest configuration file for AnalysisServices.



---
## Getting Started
## Getting Started
To build the SDK for AnalysisServices, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run:

> `autorest`
Expand All @@ -21,7 +21,7 @@ To see additional help and options, run:



### Basic Information
### Basic Information
These are the global settings for the AnalysisServices API.

``` yaml
Expand Down Expand Up @@ -78,10 +78,11 @@ This is not used by Autorest itself.
``` yaml $(swagger-to-sdk)
swagger-to-sdk:
- repo: azure-sdk-for-go
- repo: azure-sdk-for-node
```


## C#
## C#

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>`.
Expand Down
11 changes: 11 additions & 0 deletions specification/analysisservices/resource-manager/readme.nodejs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## Node.js

These settings apply only when `--nodejs` is specified on the command line.
Please also specify `--node-sdks-folder=<path to root folder of your azure-sdk-for-node clone>`.

``` yaml $(nodejs)
nodejs:
azure-arm: true
package-name: azure-arm-analysisservices
output-folder: $(node-sdks-folder)/lib/services/analysisServices/lib
```
1 change: 1 addition & 0 deletions specification/apimanagement/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ This is not used by Autorest itself.
swagger-to-sdk:
- repo: azure-sdk-for-go
- repo: azure-sdk-for-python
- repo: azure-sdk-for-node
autorest_options:
use: "@microsoft.azure/autorest.python@~3.0"
```
Expand Down
11 changes: 11 additions & 0 deletions specification/apimanagement/resource-manager/readme.nodejs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## Node.js

These settings apply only when `--nodejs` is specified on the command line.
Please also specify `--node-sdks-folder=<path to root folder of your azure-sdk-for-node clone>`.

``` yaml $(nodejs)
nodejs:
azure-arm: true
package-name: azure-arm-apimanagement
output-folder: $(node-sdks-folder)/lib/services/apimanagement/lib
```
21 changes: 11 additions & 10 deletions specification/applicationinsights/resource-manager/readme.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# ApplicationInsights

> see https://aka.ms/autorest
This is the AutoRest configuration file for ApplicationInsights.



---
## Getting Started
## Getting Started
To build the SDK for ApplicationInsights, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run:

> `autorest`
Expand All @@ -21,7 +21,7 @@ To see additional help and options, run:



### Basic Information
### Basic Information
These are the global settings for the ApplicationInsights API.

``` yaml
Expand All @@ -35,7 +35,7 @@ tag: package-2015-05
``` yaml
directive:
- suppress: TrackedResourceListByImmediateParent
where:
where:
- $.definitions
reason:
- we do have list operations available for our operations on individual instances of objects returned. False positives.
Expand All @@ -55,14 +55,14 @@ directive:
#where:
# - $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/exportconfiguration/{exportId}"].put.operationId
# - $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/currentbillingfeatures"].put.operationId

- suppress: XmsResourceInPutResponse
reason: This api was existing there from 2015, it will break existing client if we change the request/response format
#where:
# - $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/exportconfiguration/{exportId}"].put
# - $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/currentbillingfeatures"].put
# - $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/currentbillingfeatures"].put

- suppress: RequiredPropertiesMissingInResourceModel
- suppress: RequiredPropertiesMissingInResourceModel
reason: This api was existing there from 2015, it will break existing client if we change the response format
#where:
# - $.definitions.ApplicationInsightsComponentExportConfiguration
Expand Down Expand Up @@ -125,7 +125,7 @@ directive:
# - $.definitions.WebTestProperties.properties.RetryEnabled
# - $.definitions.WebTestProperties.properties.Locations
# - $.definitions.WebTestProperties.properties.Configuration
# - $.definitions.WebTestGeolocation.properties.Id
# - $.definitions.WebTestGeolocation.properties.Id
# - $.definitions.ApplicationInsightsComponentExportRequest.properties.RecordTypes
# - $.definitions.ApplicationInsightsComponentExportRequest.properties.DestinationType
# - $.definitions.ApplicationInsightsComponentExportRequest.properties.DestinationAddress
Expand Down Expand Up @@ -255,6 +255,7 @@ swagger-to-sdk:
- repo: azure-sdk-for-python
- repo: azure-libraries-for-java
- repo: azure-sdk-for-go
- repo: azure-sdk-for-node
```


Expand Down Expand Up @@ -287,7 +288,7 @@ python:
```


## C#
## C#

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>`.
Expand Down Expand Up @@ -349,7 +350,7 @@ java:
These settings apply only when `--tag=schema-2015-05-01` is specified on the
command line.

This section contains the input swagger files that are used when generating
This section contains the input swagger files that are used when generating
resource manager schemas for version 2015-05-01. Note that many of our
pre-existing APIs are note currently compatible with ARM schemas, upon any
updates applied to our services we will bring them up to compliance.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## Node.js

These settings apply only when `--nodejs` is specified on the command line.
Please also specify `--node-sdks-folder=<path to root folder of your azure-sdk-for-node clone>`.

``` yaml $(nodejs)
nodejs:
azure-arm: true
package-name: azure-arm-appinsights
output-folder: $(node-sdks-folder)/lib/services/applicationinsights/lib
```
11 changes: 6 additions & 5 deletions specification/authorization/resource-manager/readme.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Authorization

> see https://aka.ms/autorest
This is the AutoRest configuration file for Authorization.



---
## Getting Started
## Getting Started
To build the SDK for Authorization, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run:

> `autorest`
Expand All @@ -21,7 +21,7 @@ To see additional help and options, run:



### Basic Information
### Basic Information
These are the global settings for the Authorization API.

``` yaml
Expand All @@ -35,7 +35,7 @@ directive:
- suppress: OperationsAPIImplementation
reason: we do have a operations api as "/providers/Microsoft.Authorization/operations"
#where:
# - $.paths["/providers/Microsoft.Authorization/operations"]
# - $.paths["/providers/Microsoft.Authorization/operations"]

```

Expand Down Expand Up @@ -83,10 +83,11 @@ swagger-to-sdk:
- repo: azure-sdk-for-python
- repo: azure-libraries-for-java
- repo: azure-sdk-for-go
- repo: azure-sdk-for-node
```


## C#
## C#

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>`.
Expand Down
12 changes: 12 additions & 0 deletions specification/authorization/resource-manager/readme.nodejs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
## Node.js

These settings apply only when `--nodejs` is specified on the command line.
Please also specify `--node-sdks-folder=<path to root folder of your azure-sdk-for-node clone>`.

``` yaml $(nodejs)
nodejs:
azure-arm: true
package-name: azure-arm-authorization
output-folder: $(node-sdks-folder)/lib/services/authorizationManagement/lib
payload-flattening-threshold: 1
```
9 changes: 5 additions & 4 deletions specification/automation/resource-manager/readme.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Automation

> see https://aka.ms/autorest
This is the AutoRest configuration file for Automation.



---
## Getting Started
## Getting Started
To build the SDK for Automation, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run:

> `autorest`
Expand All @@ -21,7 +21,7 @@ To see additional help and options, run:



### Basic Information
### Basic Information
These are the global settings for the Automation API.

``` yaml
Expand Down Expand Up @@ -105,10 +105,11 @@ This is not used by Autorest itself.
swagger-to-sdk:
- repo: azure-sdk-for-python
- repo: azure-sdk-for-go
- repo: azure-sdk-for-node
```


## C#
## C#

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>`.
Expand Down
11 changes: 11 additions & 0 deletions specification/automation/resource-manager/readme.nodejs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## Node.js

These settings apply only when `--nodejs` is specified on the command line.
Please also specify `--node-sdks-folder=<path to root folder of your azure-sdk-for-node clone>`.

``` yaml $(nodejs)
nodejs:
azure-arm: true
package-name: azure-arm-automation
output-folder: $(node-sdks-folder)/lib/services/automationManagement/lib
```
Loading

0 comments on commit 806bf80

Please sign in to comment.