Skip to content

Commit

Permalink
Adding settings for network experiment Azure CLI autogeneration (#7448)
Browse files Browse the repository at this point in the history
* adding first readme file

* properly named operation ids

* fixed cli readme

* disabled debugging by default
  • Loading branch information
Zim Kalinowski authored and raych1 committed Oct 11, 2019
1 parent 06d80de commit 751e03f
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"NetworkExperimentProfiles"
],
"summary": "Gets a list of Network Experiment Profiles under a subscription",
"operationId": "Profiles_List",
"operationId": "NetworkExperimentProfiles_List",
"produces": [
"application/json"
],
Expand Down Expand Up @@ -100,7 +100,7 @@
"NetworkExperimentProfiles"
],
"summary": "Gets a list of Network Experiment Profiles within a resource group under a subscription",
"operationId": "Profiles_ListByResourceGroup",
"operationId": "NetworkExperimentProfiles_ListByResourceGroup",
"produces": [
"application/json"
],
Expand Down Expand Up @@ -145,7 +145,7 @@
"NetworkExperimentProfiles"
],
"summary": "Gets an NetworkExperiment Profile by ProfileName",
"operationId": "GetNetworkExperimentProfilesByProfileName",
"operationId": "NetworkExperimentProfiles_Get",
"produces": [
"application/json"
],
Expand Down Expand Up @@ -188,7 +188,7 @@
"NetworkExperimentProfiles"
],
"summary": "Creates an NetworkExperiment Profile",
"operationId": "createOrUpdateNetworkExperimentProfiles",
"operationId": "NetworkExperimentProfiles_CreateOrUpdate",
"produces": [
"application/json"
],
Expand Down Expand Up @@ -254,7 +254,7 @@
],
"description": "Updates an NetworkExperimentProfiles",
"summary": "Updates an NetworkExperimentProfiles by NetworkExperimentProfile name",
"operationId": "updateNetworkExperimentProfilesByProfilesName",
"operationId": "NetworkExperimentProfiles_Update",
"produces": [
"application/json"
],
Expand Down Expand Up @@ -313,7 +313,7 @@
"NetworkExperimentProfiles"
],
"summary": "Deletes an NetworkExperiment Profile by ProfileName",
"operationId": "deleteNetworkExperimentProfiles",
"operationId": "NetworkExperimentProfiles_Delete",
"parameters": [
{
"$ref": "./network.json#/parameters/SubscriptionIdParameter"
Expand Down Expand Up @@ -455,7 +455,7 @@
"Experiments"
],
"summary": "Gets an Experiment by ExperimentName",
"operationId": "getExperimentsByExperimentName",
"operationId": "Experiments_Get",
"produces": [
"application/json"
],
Expand Down Expand Up @@ -501,7 +501,7 @@
"Experiments"
],
"summary": "Creates or updates an Experiment",
"operationId": "createOrUpdateExperiments",
"operationId": "Experiments_CreateOrUpdate",
"parameters": [
{
"$ref": "./network.json#/parameters/SubscriptionIdParameter"
Expand Down Expand Up @@ -567,7 +567,7 @@
],
"description": "Updates an Experiment",
"summary": "Updates an Experiment by Experiment id",
"operationId": "updateExperimentsByExperimentName",
"operationId": "Experiments_Update",
"produces": [
"application/json"
],
Expand Down Expand Up @@ -629,7 +629,7 @@
"Experiments"
],
"summary": "Deletes an Experiment",
"operationId": "deleteExperiments",
"operationId": "Experiments_Delete",
"produces": [
"application/json"
],
Expand Down Expand Up @@ -681,7 +681,7 @@
"Reports"
],
"summary": "Gets a Latency Scorecard for a given Experiment",
"operationId": "getLatencyScorecards",
"operationId": "Reports_GetLatencyScorecards",
"produces": [
"application/json"
],
Expand Down Expand Up @@ -759,7 +759,7 @@
"Reports"
],
"summary": "Gets a Timeseries for a given Experiment",
"operationId": "getTimeseries",
"operationId": "Reports_GetTimeseries",
"produces": [
"application/json"
],
Expand Down
22 changes: 22 additions & 0 deletions specification/frontdoor/resource-manager/readme.cli.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
## CLI

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

``` yaml $(cli)
cli:
cli-name: networkexperiment
namespace: azure.mgmt.frontdoor
package-name: azure-mgmt-frontdoor
debug: false
cmd-override:
"^.*frontdoor.*$": "-"
"^.*[/]networkexperimentprofiles([/][^/]*)?$": "networkexperiment profiles"
"^.*[/]networkexperimentprofiles[/].*[/]preconfiguredendpoints[/].*$": "networkexperiment profile preconfiguredendpoint"
"^.*[/]networkexperimentprofiles[/].*[/]experiments[/]([/][^/]*)?$": "networkexperiment profile experiment"
"^.*[/]networkexperimentprofiles[/].*[/]experiments[/].*[/]latencyscorecard$": "networkexperiment profile experiment latencyscorecard"
"^.*[/]networkexperimentprofiles[/].*[/]experiments[/].*[/]timeseries$": "networkexperiment profile experiment timeseries"
adjustments:
"/sku": "Sku*/"
test-setup:
- name: Create or Update a service with all parameters
```
4 changes: 4 additions & 0 deletions specification/frontdoor/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,10 @@ csharp:

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

## CLI

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

## Java

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

0 comments on commit 751e03f

Please sign in to comment.