Skip to content

Commit

Permalink
[ Device Registry] Disable flatten (#28655)
Browse files Browse the repository at this point in the history
* disable flatten for deviceregistry

* add readme.python.md

* Create readme.java.md

* Update readme.md

* Update readme.md

* tspconfig.yaml for Java

* Revert "tspconfig.yaml for Java"

This reverts commit 02cb3ef.

---------

Co-authored-by: Weidong Xu <[email protected]>
Co-authored-by: Yuchao Yan <[email protected]>
Co-authored-by: xiaofeicao <[email protected]>
  • Loading branch information
4 people authored Apr 11, 2024
1 parent 718b341 commit 1f6e896
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
9 changes: 9 additions & 0 deletions specification/deviceregistry/resource-manager/readme.java.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
## Java

These settings apply only when `--java` is specified on the command line.

``` yaml $(java)
service-name: Device Registry
title: DeviceRegistryMgmtClient
client-flattened-annotation-target: disabled
```
6 changes: 6 additions & 0 deletions specification/deviceregistry/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ openapi-subtype: rpaas
tag: package-preview-2023-11
```
``` yaml
modelerfour:
flatten-models: false
```
### Tag: package-preview-2023-11
Expand All @@ -48,6 +52,8 @@ This is not used by Autorest itself.
``` yaml $(swagger-to-sdk)
swagger-to-sdk:
- repo: azure-sdk-for-go
- repo: azure-sdk-for-java
- repo: azure-sdk-for-python
```

## Go
Expand Down
19 changes: 19 additions & 0 deletions specification/deviceregistry/resource-manager/readme.python.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
## 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 $(python)
title: DeviceRegistryMgmtClient
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
package-name: azure-mgmt-deviceregistry
namespace: azure.mgmt.deviceregistry
package-version: 1.0.0b1
clear-output-folder: true
```
``` yaml $(python)
no-namespace-folders: true
output-folder: $(python-sdks-folder)/deviceregistry/azure-mgmt-deviceregistry/azure/mgmt/deviceregistry
```

0 comments on commit 1f6e896

Please sign in to comment.