Skip to content

Commit

Permalink
Readme files added for python and csharp sdk (#6282)
Browse files Browse the repository at this point in the history
* Readme files added for python and csharp sdk

* Fixed namespace in python readme

* Added swagger to sdk config
  • Loading branch information
rimakhija authored Feb 23, 2022
1 parent 0dc1e2d commit 8b76ea5
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 0 deletions.
15 changes: 15 additions & 0 deletions specification/playfab/resource-manager/readme.csharp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## 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: 1
clear-output-folder: true
client-side-validation: false
namespace: Microsoft.PlayFab
output-folder: $(csharp-sdks-folder)/playfab/management/Microsoft.PlayFab/GeneratedProtocol
```
17 changes: 17 additions & 0 deletions specification/playfab/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,20 @@ input-file:
---

# Code Generation
## Swagger to SDK

This section describes what SDK should be generated by the automatic system.
This is not used by Autorest itself.

```yaml $(swagger-to-sdk)
swagger-to-sdk:
- repo: azure-sdk-for-net
- repo: azure-sdk-for-python-track2
```
## Python

See configuration in [readme.python.md](./readme.python.md)

## CSharp

See configuration in [readme.csharp.md](./readme.csharp.md)
23 changes: 23 additions & 0 deletions specification/playfab/resource-manager/readme.python.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
## Python

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

``` yaml $(track2)
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
namespace: azure.mgmt.playfab
package-name: azure-mgmt-playfab
package-version: 2021-12-08-preview
clear-output-folder: true
```
``` yaml $(python-mode) == 'update' && $(track2)
no-namespace-folders: true
output-folder: $(python-sdks-folder)/playfab/azure-mgmt-playfab/azure/mgmt/playfab
```
``` yaml $(python-mode) == 'create' && $(track2)
basic-setup-py: true
output-folder: $(python-sdks-folder)/playfab/azure-mgmt-playfab
```

0 comments on commit 8b76ea5

Please sign in to comment.