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

Fixing csharp multi profiles #4092

Merged
merged 8 commits into from
Apr 24, 2019
Merged
Show file tree
Hide file tree
Changes from 7 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
50 changes: 50 additions & 0 deletions specification/authorization/resource-manager/readme.csharp.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,43 @@ csharp:
clear-output-folder: true
```

### Tag: package-locks-2016-09

These settings apply only when `--tag=package-locks-2016-09` is specified on the command line.

``` yaml $(tag) == 'package-locks-2016-09'
input-file:
- ../../resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/locks.json
```

### Tag: package-locks-2015-01

These settings apply only when `--tag=package-locks-2015-01` is specified on the command line.

``` yaml $(tag) == 'package-locks-2015-01'
input-file:
- ../../resources/resource-manager/Microsoft.Authorization/stable/2015-01-01/locks.json
```

### Tag: package-policy-2016-12

These settings apply only when `--tag=package-policy-2016-12` is specified on the command line.

``` yaml $(tag) == 'package-policy-2016-12'
input-file:
- ../../resources/resource-manager/Microsoft.Authorization/stable/2016-12-01/policyAssignments.json
- ../../resources/resource-manager/Microsoft.Authorization/stable/2016-12-01/policyDefinitions.json
```

### Tag: package-policy-2015-10-01-preview

These settings apply only when `--tag=package-policy-2015-10-01-preview` is specified on the command line.

``` yaml $(tag) == 'package-policy-2015-10-01-preview'
input-file:
- ../../resources/resource-manager/Microsoft.Authorization/preview/2015-10-01-preview/policy.json
```

``` yaml $(csharp) && !$(multiapi) && !$(profile)
namespace: Microsoft.Azure.Management.Authorization
output-folder: $(csharp-sdks-folder)/Authorization/Management.Authorization/Generated
Expand All @@ -30,20 +67,33 @@ output-folder: $(csharp-sdks-folder)/$(profile)/Authorization/Management.Authori

batch:
- tag: package-2015-07
- tag: package-locks-2015-01
```

### Profile: hybrid_2018_03_01

These settings apply only when `--profile=hybrid_2018_03_01` is specified on the command line.

``` yaml $(profile)=='hybrid_2018_03_01'
namespace: Microsoft.Azure.Management.Profiles.$(profile).Authorization
output-folder: $(csharp-sdks-folder)/$(profile)/Authorization/Management.Authorization/Generated

batch:
- tag: package-2015-07
- tag: package-locks-2016-09
- tag: package-policy-2016-12
```

### Profile: profile_2017_03_09

These settings apply only when `--profile=profile_2017_03_09` is specified on the command line.

``` yaml $(profile)=='profile_2017_03_09'
namespace: Microsoft.Azure.Management.Profiles.$(profile).Authorization
output-folder: $(csharp-sdks-folder)/$(profile)/Authorization/Management.Authorization/Generated

batch:
- tag: package-2015-07-authorization-only
- tag: package-locks-2015-01
- tag: package-policy-2015-10-01-preview
```
9 changes: 9 additions & 0 deletions specification/compute/resource-manager/readme.csharp.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ batch:
ApiVersionName: Api2016_03_30
```


### Profile: hybrid_2018_03_01

These settings apply only when `--profile=hybrid_2018_03_01` is specified on the command line.

```yaml $(profile)=='hybrid_2018_03_01'
namespace: Microsoft.Azure.Management.Profiles.$(profile).Compute
output-folder: $(csharp-sdks-folder)/$(profile)/Compute/Management.Compute/Generated
Expand All @@ -47,6 +52,10 @@ batch:
- tag: package-compute-2017-03
```

### Profile: profile_2017_03_09

These settings apply only when `--profile=profile_2017_03_09` is specified on the command line.

``` yaml $(profile)=='profile_2017_03_09'
namespace: Microsoft.Azure.Management.Profiles.$(profile).Compute
output-folder: $(csharp-sdks-folder)/$(profile)/Compute/Management.Compute/Generated
Expand Down
53 changes: 53 additions & 0 deletions specification/dns/resource-manager/readme.csharp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# 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

## 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
payload-flattening-threshold: 2
clear-output-folder: true
```

### Profile: hybrid_2018_03_01

These settings apply only when `--profile=hybrid_2018_03_01` is specified on the command line.

```yaml $(profile)=='hybrid_2018_03_01'
namespace: Microsoft.Azure.Management.Profiles.$(profile).Dns
output-folder: $(csharp-sdks-folder)/$(profile)/Dns/Management.Dns/Generated

batch:
- tag: package-2016-04

skip-simplifier-on-namespace:
- System.Net
```

### Profile: profile_2017_03_09

These settings apply only when `--profile=profile_2017_03_09` is specified on the command line.

``` yaml $(profile)=='profile_2017_03_09'
namespace: Microsoft.Azure.Management.Profiles.$(profile).Dns
output-folder: $(csharp-sdks-folder)/$(profile)/Dns/Management.Dns/Generated

batch:
- tag: package-2016-04

skip-simplifier-on-namespace:
- System.Net
```
15 changes: 0 additions & 15 deletions specification/dns/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,21 +162,6 @@ swagger-to-sdk:
- bundle install && rake arm:regen_all_profiles['azure_mgmt_dns']
```

## 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.Dns
payload-flattening-threshold: 2
output-folder: $(csharp-sdks-folder)/Dns/Management.Dns/Generated
clear-output-folder: true
```

## Go

See configuration in [readme.go.md](./readme.go.md)
Expand Down
8 changes: 8 additions & 0 deletions specification/keyvault/resource-manager/readme.csharp.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ batch:
ApiVersionName: Api2016_10_01
```

### Profile: hybrid_2018_03_01

These settings apply only when `--profile=hybrid_2018_03_01` is specified on the command line.

```yaml $(profile)=='hybrid_2018_03_01'
namespace: Microsoft.Azure.Management.Profiles.$(profile).KeyVault
output-folder: $(csharp-sdks-folder)/$(profile)/KeyVault/Management.KeyVault/Generated
Expand All @@ -38,6 +42,10 @@ batch:
- tag: package-2015-06
```

### Profile: profile_2017_03_09

These settings apply only when `--profile=profile_2017_03_09` is specified on the command line.

``` yaml $(profile)=='profile_2017_03_09'
namespace: Microsoft.Azure.Management.Profiles.$(profile).KeyVault
output-folder: $(csharp-sdks-folder)/$(profile)/KeyVault/Management.KeyVault/Generated
Expand Down
9 changes: 8 additions & 1 deletion specification/network/resource-manager/readme.csharp.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,21 @@ batch:
ApiVersionName: Api2016_06_15
```

### Profile: hybrid_2018_03_01

These settings apply only when `--profile=hybrid_2018_03_01` is specified on the command line.

```yaml $(profile)=='hybrid_2018_03_01'
namespace: Microsoft.Azure.Management.Profiles.$(profile).Network
output-folder: $(csharp-sdks-folder)/$(profile)/Network/Management.Network/Generated
batch:
- tag: package-2018-05
- tag: package-2017-10
```

### Profile: profile_2017_03_09

These settings apply only when `--profile=profile_2017_03_09` is specified on the command line.

``` yaml $(profile)=='profile_2017_03_09'
namespace: Microsoft.Azure.Management.Profiles.$(profile).Network
output-folder: $(csharp-sdks-folder)/$(profile)/Network/Management.Network/Generated
Expand Down
8 changes: 8 additions & 0 deletions specification/resources/resource-manager/readme.csharp.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,10 @@ input-file:
- Microsoft.Authorization/stable/2016-12-01/policyDefinitions.json
```

### Profile: hybrid_2018_03_01

These settings apply only when `--profile=hybrid_2018_03_01` is specified on the command line.

```yaml $(profile)=='hybrid_2018_03_01'
namespace: Microsoft.Azure.Management.Profiles.$(profile).ResourceManager
output-folder: $(csharp-sdks-folder)/$(profile)/Resource/Management.ResourceManager/Generated
Expand All @@ -275,6 +279,10 @@ batch:
- tag: package-subscriptions-2016-06
```

### Profile: profile_2017_03_09

These settings apply only when `--profile=profile_2017_03_09` is specified on the command line.

``` yaml $(profile)=='profile_2017_03_09'
namespace: Microsoft.Azure.Management.Profiles.$(profile).ResourceManager
output-folder: $(csharp-sdks-folder)/$(profile)/Resource/Management.ResourceManager/Generated
Expand Down
8 changes: 8 additions & 0 deletions specification/storage/resource-manager/readme.csharp.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ batch:
ApiVersionName: Api2015_06_05
```

### Profile: hybrid_2018_03_01

These settings apply only when `--profile=hybrid_2018_03_01` is specified on the command line.

```yaml $(profile)=='hybrid_2018_03_01'
namespace: Microsoft.Azure.Management.Profiles.$(profile).Storage
output-folder: $(csharp-sdks-folder)/$(profile)/Storage/Management.Storage/Generated
Expand All @@ -44,6 +48,10 @@ batch:
- tag: package-2016-01
```

### Profile: profile_2017_03_09

These settings apply only when `--profile=profile_2017_03_09` is specified on the command line.

```yaml $(profile)=='profile_2017_03_09'
namespace: Microsoft.Azure.Management.Profiles.$(profile).Storage
output-folder: $(csharp-sdks-folder)/$(profile)/Storage/Management.Storage/Generated
Expand Down
4 changes: 4 additions & 0 deletions specification/subscription/resource-manager/readme.csharp.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ batch:
ApiVersionName: Api2018_03_01
```

### Profile: hybrid_2018_03_01

These settings apply only when `--profile=hybrid_2018_03_01` is specified on the command line.

```yaml $(profile)=='hybrid_2018_03_01'
namespace: Microsoft.Azure.Management.Profiles.$(profile).Subscription
output-folder: $(csharp-sdks-folder)/$(profile)/Subscription/Management.Subscription/Generated
Expand Down
4 changes: 4 additions & 0 deletions specification/web/resource-manager/readme.csharp.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ batch:
ApiVersionName: Api2016_08_01
```

### Profile: hybrid_2018_03_01

These settings apply only when `--profile=hybrid_2018_03_01` is specified on the command line.

```yaml $(profile)=='hybrid_2018_03_01'
namespace: Microsoft.Azure.Management.Profiles.$(profile).WebSites
output-folder: $(csharp-sdks-folder)/$(profile)/Websites/Management.Websites/Generated
Expand Down