Skip to content

Commit

Permalink
Corrected Readme file order and versioning. (#7033)
Browse files Browse the repository at this point in the history
  • Loading branch information
rileymckenna authored and weidongxu-microsoft committed Aug 27, 2019
1 parent d689d70 commit 92fe629
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 47 deletions.
23 changes: 14 additions & 9 deletions specification/peering/resource-manager/readme.go.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,12 @@ go:
``` yaml $(go) && $(multiapi)
batch:
- tag: package-2019-03-01-preview
- tag: package-2019-08-01-preview
```
### Tag: package-2019-03-01-preview and go
These settings apply only when `--tag=package-2019-03-01-preview --go` is specified on the command line.
Please also specify `--go-sdk-folder=<path to the root directory of your azure-sdk-for-go clone>`.

``` yaml $(tag) == 'package-2019-03-01-preview' && $(go)
output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2019-03-01-preview/$(namespace)
or
``` yaml $(go) && $(multiapi)
batch:
- tag: package-2019-08-01-preview
```
### Tag: package-2019-08-01-preview and go
Expand All @@ -34,3 +30,12 @@ Please also specify `--go-sdk-folder=<path to the root directory of your azure-s
``` yaml $(tag) == 'package-2019-08-01-preview' && $(go)
output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2019-08-01-preview/$(namespace)
```

### Tag: package-2019-06-01-preview and go

These settings apply only when `--tag=package-2019-06-01-preview --go` is specified on the command line.
Please also specify `--go-sdk-folder=<path to the root directory of your azure-sdk-for-go clone>`.

``` yaml $(tag) == 'package-2019-06-01-preview' && $(go)
output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2019-06-01-preview/$(namespace)
```
55 changes: 30 additions & 25 deletions specification/peering/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,44 +21,43 @@ To see additional help and options, run:

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

``` yaml
title: PeeringManagementClient
description: Peering Client
openapi-type: arm
tag: package-2019-03-01-preview
tag: package-2019-08-01-preview
```
or
``` yaml
title: PeeringManagementClient
description: Peering Client
openapi-type: arm
tag: package-2019-06-01-preview
tag: package-2019-07-01-preview
```
or
``` yaml
title: PeeringManagementClient
description: Peering Client
openapi-type: arm
tag: package-2019-07-01-preview
tag: package-2019-06-01-preview
```
or
``` yaml
title: PeeringManagementClient
description: Peering Client
openapi-type: arm
tag: package-2019-08-01-preview
tag: package-2019-03-01-preview
```
### Tag: package-2019-03-01-preview
### Tag: package-2019-08-01-preview
These settings apply only when `--tag=package-2019-03-01-preview` is specified on the command line.
These settings apply only when `--tag=package-2019-08-01-preview` is specified on the command line.

``` yaml $(tag) == 'package-2019-03-01-preview'
``` yaml $(tag) == 'package-2019-08-01-preview'
input-file:
- Microsoft.Peering/preview/2019-03-01-preview/peering.json
- Microsoft.Peering/preview/2019-08-01-preview/peering.json
```

### Tag: package-2019-06-01-preview

These settings apply only when `--tag=package-2019-06-01-preview` is specified on the command line.

``` yaml $(tag) == 'package-2019-06-01-preview'
input-file:
- Microsoft.Peering/preview/2019-06-01-preview/peering.json
```
### Tag: package-2019-07-01-preview

These settings apply only when `--tag=package-2019-07-01-preview` is specified on the command line.
Expand All @@ -67,15 +66,23 @@ These settings apply only when `--tag=package-2019-07-01-preview` is specified o
input-file:
- Microsoft.Peering/preview/2019-07-01-preview/peering.json
```
### Tag: package-2019-06-01-preview

### Tag: package-2019-08-01-preview
These settings apply only when `--tag=package-2019-06-01-preview` is specified on the command line.

These settings apply only when `--tag=package-2019-08-01-preview` is specified on the command line.
``` yaml $(tag) == 'package-2019-06-01-preview'
input-file:
- Microsoft.Peering/preview/2019-06-01-preview/peering.json
```
### Tag: package-2019-03-01-preview

``` yaml $(tag) == 'package-2019-08-01-preview'
These settings apply only when `--tag=package-2019-03-01-preview` is specified on the command line.

``` yaml $(tag) == 'package-2019-03-01-preview'
input-file:
- Microsoft.Peering/preview/2019-08-01-preview/peering.json
- Microsoft.Peering/preview/2019-03-01-preview/peering.json
```

# Code Generation

## Swagger to SDK
Expand Down Expand Up @@ -115,7 +122,6 @@ require: $(this-folder)/../../../profiles/readme.md
# all the input files across all versions
input-file:
- $(this-folder)/Microsoft.Peering/preview/2019-03-01-preview/peering.json
- $(this-folder)/Microsoft.Peering/preview/2019-06-01-preview/peering.json
- $(this-folder)/Microsoft.Peering/preview/2019-07-01-preview/peering.json
- $(this-folder)/Microsoft.Peering/preview/2019-08-01-preview/peering.json
Expand All @@ -126,7 +132,6 @@ If there are files that should not be in the `all-api-versions` set,
uncomment the `exclude-file` section below and add the file paths.

``` yaml $(tag) == 'all-api-versions'
#exclude-file:
# - $(this-folder)/Microsoft.Example/stable/2010-01-01/somefile.json
exclude-file:
- $(this-folder)/Microsoft.Peering/preview/2019-03-01-preview/peering.json
```

26 changes: 13 additions & 13 deletions specification/peering/resource-manager/readme.ruby.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,43 +4,43 @@ These settings apply only when `--ruby` is specified on the command line.

``` yaml
package-name: azure_mgmt_peering
package-version: "2019-03-01-preview"
package-version: "2019-08-01-preview"
azure-arm: true
```
or
``` yaml
package-name: azure_mgmt_peering
package-version: "2019-08-01-preview"
package-version: "2019-06-01-preview"
azure-arm: true
```
### Ruby multi-api
``` yaml $(ruby) && $(multiapi)
batch:
- tag: package-2019-03-01-preview
- tag: package-2019-08-01-preview
```
or
``` yaml $(ruby) && $(multiapi)
batch:
- tag: package-2019-08-01-preview
- tag: package-2019-06-01-preview
```
### Tag: package-2019-03-01-preview and ruby
### Tag: package-2019-08-01-preview and ruby
These settings apply only when `--tag=package-2019-03-01-preview --ruby` is specified on the command line.
These settings apply only when `--tag=package-2019-08-01-preview --ruby` is specified on the command line.
Please also specify `--ruby-sdks-folder=<path to the root directory of your azure-sdk-for-ruby clone>`.

``` yaml $(tag) == 'package-2019-03-01-preview' && $(ruby)
namespace: "Azure::Peering::Mgmt::V2019_03_01_preview"
``` yaml $(tag) == 'package-2019-08-01-preview' && $(ruby)
namespace: "Azure::Peering::Mgmt::V2019_08_01_preview"
output-folder: $(ruby-sdks-folder)/management/azure_mgmt_peering/lib
```
### Tag: package-2019-08-01-preview and ruby

These settings apply only when `--tag=package-2019-08-01-preview --ruby` is specified on the command line.
### Tag: package-2019-06-01-preview and ruby

These settings apply only when `--tag=package-2019-06-01-preview --ruby` is specified on the command line.
Please also specify `--ruby-sdks-folder=<path to the root directory of your azure-sdk-for-ruby clone>`.

``` yaml $(tag) == 'package-2019-08-01-preview' && $(ruby)
namespace: "Azure::Peering::Mgmt::V2019_08_01_preview"
``` yaml $(tag) == 'package-2019-06-01-preview' && $(ruby)
namespace: "Azure::Peering::Mgmt::V2019_06_01_preview"
output-folder: $(ruby-sdks-folder)/management/azure_mgmt_peering/lib
```

0 comments on commit 92fe629

Please sign in to comment.