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

Creating separate csharp readme for multiApi support #2954

Merged
merged 5 commits into from
Jun 4, 2018
Merged
Show file tree
Hide file tree
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
30 changes: 30 additions & 0 deletions specification/authorization/resource-manager/readme.csharp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# C# Authorization

> see https://aka.ms/autorest

This is the AutoRest configuration file for DNS.

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

## Common C# Settings

``` yaml !$(MultiApi)
Copy link
Member

Choose a reason for hiding this comment

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

@fearthecowboy Just to confirm, MultiApi and multiapi are the same for Autorest bootstrap? IOW, If I call autorest --multiapi does it trigger correctly MultiApi here?

azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
clear-output-folder: true
namespace: Microsoft.Azure.Management.Authorization
output-folder: $(csharp-sdks-folder)/Authorization/Management.Authorization/Generated
```

## Batch settings
These settings are for batch mode only: (ie, add `--MultiApi` to the command line )

``` yaml $(MultiApi)
namespace: Microsoft.Azure.Management.Authorization.$(ApiVersionName)
output-folder: $(csharp-sdks-folder)/$(ApiVersionName)/Generated

batch:
- tag: package-2015-07
ApiVersionName: Api2015_07_01
```
15 changes: 0 additions & 15 deletions specification/authorization/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,21 +86,6 @@ swagger-to-sdk:
- repo: azure-sdk-for-node
```


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

``` yaml $(csharp)
csharp:
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
namespace: Microsoft.Azure.Management.Authorization
output-folder: $(csharp-sdks-folder)/Authorization/Management.Authorization/Generated
clear-output-folder: true
```

## Python

These settings apply only when `--python` is specified on the command line.
Expand Down
34 changes: 34 additions & 0 deletions specification/compute/resource-manager/readme.csharp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# C# Compute

> see https://aka.ms/autorest

This is the AutoRest configuration file for DNS.

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

## Common C# settings

``` yaml !$(MultiApi)
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
payload-flattening-threshold: 1
clear-output-folder: true
namespace: Microsoft.Azure.Management.Compute
output-folder: $(csharp-sdks-folder)/Compute/Management.Compute/Generated
```

## Batch settings
These settings are for batch mode only: (ie, add `--MultiApi` to the command line )

``` yaml $(MultiApi)
namespace: Microsoft.Azure.Management.Compute.$(ApiVersionName)
output-folder: $(csharp-sdks-folder)/$(ApiVersionName)/Generated

batch:
- tag: package-2017-03
ApiVersionName: Api2017_03_30

- tag: package-2016-03
ApiVersionName: Api2016_03_30
```
18 changes: 0 additions & 18 deletions specification/compute/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -338,24 +338,6 @@ swagger-to-sdk:
- repo: azure-sdk-for-node
```


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

``` yaml $(csharp)
csharp:
# last generated with AutoRest.1.0.0-Nightly20170126
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
namespace: Microsoft.Azure.Management.Compute
payload-flattening-threshold: 1
output-folder: $(csharp-sdks-folder)/Compute/Management.Compute/Generated
clear-output-folder: true
```


## Go

These settings apply only when `--go` is specified on the command line.
Expand Down
26 changes: 26 additions & 0 deletions specification/keyvault/resource-manager/readme.csharp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# C# KeyVault

> see https://aka.ms/autorest

This is the AutoRest configuration file for DNS.

## Common settings
``` yaml !$(MultiApi)
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
clear-output-folder: true
namespace: Microsoft.Azure.Management.KeyVault
output-folder: $(csharp-sdks-folder)/KeyVault/Management/Management.KeyVault/Generated
```

## Batch settings
These settings are for batch mode only: (ie, add `--MultiApi` to the command line )

``` yaml $(MultiApi)
namespace: Microsoft.Azure.Management.KeyVault.$(ApiVersionName)
output-folder: $(csharp-sdks-folder)/$(ApiVersionName)/Generated

batch:
- tag: package-2016-10
ApiVersionName: Api2016_10_01
```
15 changes: 0 additions & 15 deletions specification/keyvault/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,21 +68,6 @@ swagger-to-sdk:
- repo: azure-sdk-for-node
```


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

``` yaml $(csharp)
csharp:
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
namespace: Microsoft.Azure.Management.KeyVault
output-folder: $(csharp-sdks-folder)/KeyVault/Management/Management.KeyVault/Generated
clear-output-folder: true
```

## Python

These settings apply only when `--python` is specified on the command line.
Expand Down
34 changes: 34 additions & 0 deletions specification/network/resource-manager/readme.csharp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# C# Network

> see https://aka.ms/autorest

This is the AutoRest configuration file for DNS.

## Common Settings

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

## Common Settings
``` yaml !$(MultiApi)
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
clear-output-folder: true
namespace: Microsoft.Azure.Management.Network
output-folder: $(csharp-sdks-folder)/Network/Management.Network/Generated
```

## MultiApi settings
These settings are for batch mode only: (ie, add `--MultiApi` to the command line )

``` yaml $(MultiApi)
namespace: Microsoft.Azure.Management.Network.$(ApiVersionName)
output-folder: $(csharp-sdks-folder)/$(ApiVersionName)/Generated

batch:
- tag: package-2017-10
ApiVersionName: Api2017_10_01

- tag: package-2015-06split
ApiVersionName: Api2016_06_15
```
16 changes: 0 additions & 16 deletions specification/network/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -366,22 +366,6 @@ swagger-to-sdk:
- repo: azure-sdk-for-node
```


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

``` yaml $(csharp)
csharp:
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
namespace: Microsoft.Azure.Management.Network
output-folder: $(csharp-sdks-folder)/Network/Management.Network/Generated
clear-output-folder: true
```


## Go

These settings apply only when `--go` is specified on the command line.
Expand Down
36 changes: 36 additions & 0 deletions specification/resources/resource-manager/readme.csharp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# C# ResourceManager

> see https://aka.ms/autorest

This is the AutoRest configuration file for DNS.

## Common C# Settings

``` yaml !$(MultiApi)
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
clear-output-folder: true
namespace: Microsoft.Azure.Management.ResourceManager
output-folder: $(csharp-sdks-folder)/Resource/Management.ResourceManager/Generated

batch:
- package-features: true
- package-locks: true
- package-policy: true
- package-resources: true
- package-subscriptions: true
- package-links: true
# - package-managedapplications: true
```

## Batch settings
These settings are for batch mode only: (ie, add `--MultiApi` to the command line )

``` yaml $(MultiApi)
namespace: Microsoft.Azure.Management.ResourceManager.$(ApiVersionName)
output-folder: $(csharp-sdks-folder)/$(ApiVersionName)/Generated

batch:
- tag: package-resources-2016-02
ApiVersionName: Api2016_02_01
```
24 changes: 0 additions & 24 deletions specification/resources/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -272,30 +272,6 @@ swagger-to-sdk:
- repo: azure-sdk-for-node
```


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

```yaml $(csharp)
csharp:
azure-arm: true
namespace: Microsoft.Azure.Management.ResourceManager
license-header: MICROSOFT_MIT_NO_VERSION
output-folder: $(csharp-sdks-folder)/Resource/Management.ResourceManager/Generated
batch:
- package-features: true
clear-output-folder: true # clear output folder on first run
- package-locks: true
- package-policy: true
- package-resources: true
- package-subscriptions: true
- package-links: true
# - package-managedapplications: true
```


## Go

These settings apply only when `--go` is specified on the command line.
Expand Down
31 changes: 31 additions & 0 deletions specification/storage/resource-manager/readme.csharp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# C# Storage

> see https://aka.ms/autorest

This is the AutoRest configuration file for DNS.

## Common C# Settings

``` yaml !$(MultiApi)
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
clear-output-folder: true
payload-flattening-threshold: 2
namespace: Microsoft.Azure.Management.Storage
output-folder: $(csharp-sdks-folder)/Storage/Management.Storage/Generated
```

## Batch settings
These settings are for batch mode only: (ie, add `--MultiApi` to the command line )

``` yaml $(MultiApi)
namespace: Microsoft.Azure.Management.Storage.$(ApiVersionName)
output-folder: $(csharp-sdks-folder)/$(ApiVersionName)/Generated

batch:
- tag: package-2016-01
ApiVersionName: Api2016_01_01

- tag: package-2015-06
ApiVersionName: Api2015_06_05
```
17 changes: 0 additions & 17 deletions specification/storage/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,23 +115,6 @@ swagger-to-sdk:
- repo: azure-sdk-for-node
```


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

``` yaml $(csharp)
csharp:
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
namespace: Microsoft.Azure.Management.Storage
payload-flattening-threshold: 2
output-folder: $(csharp-sdks-folder)/Storage/Management.Storage/Generated
clear-output-folder: true
```


## Go

These settings apply only when `--go` is specified on the command line.
Expand Down
31 changes: 31 additions & 0 deletions specification/subscription/resource-manager/readme.csharp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# C# Subscription

> see https://aka.ms/autorest

This is the AutoRest configuration file for DNS.


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

## Common C# Settings

``` yaml !$(MultiApi)
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
clear-output-folder: true
namespace: Microsoft.Azure.Management.Subscription
output-folder: $(csharp-sdks-folder)/Subscription/Management.Subscription/Generated
```

## Batch settings
These settings are for batch mode only: (ie, add `--MultiApi` to the command line )

``` yaml $(MultiApi)
namespace: Microsoft.Azure.Management.Subscription.$(ApiVersionName)
output-folder: $(csharp-sdks-folder)/$(ApiVersionName)/Generated

batch:
- tag: package-2018-03-preview
ApiVersionName: Api2018_03_01
```
Loading