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

[Communication] Init Configuration for Azure CLI #11525

Merged
merged 3 commits into from
Nov 5, 2020
Merged
Show file tree
Hide file tree
Changes from all 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
42 changes: 42 additions & 0 deletions specification/communication/resource-manager/readme.az.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
## AZ

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

``` yaml $(az) && $(target-mode) != 'core'
az:
extensions: communication
namespace: azure.mgmt.communication
package-name: azure-mgmt-communication
az-output-folder: $(azure-cli-extension-folder)/src/communication
python-sdk-output-folder: "$(az-output-folder)/azext_communication/vendored_sdks/communication"
# add additinal configuration here specific for Azure CLI
# refer to the faq.md for more details
```

# Az.Communication

``` yaml
extension-mode: preview

cli:
cli-directive:

# -------- CommunicationService --------
- where:
group: CommunicationService
set:
name: service
- where:
group: CommunicationService
param: CommunicationServiceName
name: name
alias:
- name
- n

# -------- OperationStatuses --------
- where:
group: OperationStatuses
set:
name: status
```
9 changes: 9 additions & 0 deletions specification/communication/resource-manager/readme.cli.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!-- region Generated -->
# Az.Communication
This directory contains the Cli common model for the Spool Communication service.

> Metadata
``` yaml
# Migrated from Powershell's readme

```
1 change: 1 addition & 0 deletions specification/communication/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ swagger-to-sdk:
- repo: azure-sdk-for-go
- repo: azure-sdk-for-js
- repo: azure-sdk-for-java
- repo: azure-cli-extensions
```

## CSharp
Expand Down
25 changes: 16 additions & 9 deletions specification/communication/resource-manager/readme.python.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,19 @@ python:
clear-output-folder: true
```

``` yaml $(python) && $(python-mode) == 'update' && !$(track2)
python:
no-namespace-folders: true
output-folder: $(python-sdks-folder)/communication/azure-mgmt-communication/azure/mgmt/communication
```

``` yaml $(python) && $(python-mode) == 'create' && !$(track2)
python:
basic-setup-py: true
output-folder: $(python-sdks-folder)/communication/azure/mgmt/communication
```


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

``` yaml $(track2)
Expand All @@ -27,18 +40,12 @@ no-namespace-folders: true
package-version: 1.0.0rc1
```

```yaml $(python) && $(python-mode) == 'update'
python:
no-namespace-folders: true
output-folder: $(python-sdks-folder)/communication/azure-mgmt-communication/azure/mgmt/communication
```yaml $(python) && $(python-mode) == 'update' && $(track2)
no-namespace-folders: true
output-folder: $(python-sdks-folder)/communication/azure-mgmt-communication/azure/mgmt/communication
```

```yaml $(python) && $(python-mode) == 'create'
python:
basic-setup-py: true
output-folder: $(python-sdks-folder)/communication/azure-mgmt-communication
```yaml $(python) && $(python-mode) == 'create' && $(track2)
basic-setup-py: true
output-folder: $(python-sdks-folder)/communication/azure-mgmt-communication
output-folder: $(python-sdks-folder)/communication/azure/mgmt/communication
```