From 15d0f7899e40cf908736a6d0e448a1bb729f01e1 Mon Sep 17 00:00:00 2001 From: andrew <69653137+greenms@users.noreply.github.com> Date: Tue, 2 Mar 2021 02:33:50 -0800 Subject: [PATCH] Update redisenterprise readme files for Azure CLI (#13083) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add ADLS Gen2 data source type (#12277) * add adlsgen2 * add adlsgen2 * add custom word 'adlsgen' Co-authored-by: Victor Liu * add missing packages to readme.go.md (#13008) * Correct output folder for code generation (#13022) * [Hub Generated] Review request for Microsoft.ContainerInstance to add version stable/2021-03-01 (#12825) * update response code from 204 to 201 for start operation * update * Revert "Update PR Assignment for CNY (#12850)" (#13025) This reverts commit 827de60e0cfb9d61e6a4f51f2eed0600deeb71ed. * Adding value array to Tag. (#12555) * Add 2020-03-01-preview version to Authorization (#12691) * authorization init 2020-03-01-preview * authorization 2020-03-01-preview apply common types always, update examples, language * trigger ci * mark properties as readonly where appropriate * fix format * trigger ci * Consolidating APIs in latest version[s360] (#12888) * Consolidating APIs in latest version[s360] * fixing additional correctness issue * Fixing prettier * Update * Fixing semantic validation Co-authored-by: Pratima Upadhyay * [Microsoft.Storage] Add Jan21 api-version. (#12807) * [Microsoft.Storage] Copy Aug20 preview version into new api-version Jan21. * [Microsoft.Storage] Add Jan21 api-version new API changes. * Fix api-version in swagger spec. * Remove encryption.identity.type as it is read-only. * Addressing PR comments. * fix prettier check * Add suppression for R4009. Fix remaining linter blockers. * Re-attempt suppression on R4009. * Suppress 4009. * Addressing comments and fixing lintdiff syntax issue on suppression. Co-authored-by: Zunli Hu * Exposing RoleAssignmentApproval APIs (#12108) * Add descriptions for errors (#11789) * {storage} Add new api version in readme (#13034) * add api * refine * [Hub Generated] Review request for Microsoft.ImportExport to add version preview/2021-01-01 (#12490) * Adds base for updating Microsoft.ImportExport from version stable/2020-08-01 to version 2021-01-01 * Updates readme * Updates API version in new specs and examples * making changes to swagger for upgraded version * prettier fix * Incorrect tag specified assume it was a copy and paste error (#13018) * Fix content-type in examples for ACS AUTH REST API version 2020-07-20-preview2 and 2021-03-07 (#13036) Co-authored-by: Alexandra Lamiova Pistrakova * fix linter errors on x-ms-enum names (#13040) * Correcting azure-arm to be false (#13023) * Correcting azure-arm to be false * Update readme.csharp.md * Update based on comments * Update readme.md * ANF-8872 Fix examples for integers (#12367) * ANF-8872 Fix examples for ints * S360 findings * S360 findings remove response code * Fix authenticationid, protocoltypes * Fix authenticationid, protocoltypes other versions * Fix snapshotpolicy * Fix snapshotpolicy update * Fix snapshotpolicy update 3 * Fix protocoltype * Fix protocoltype 07 * Remove name from volume properties, removed from service response Co-authored-by: Audunn Baldvinsson * fix readme (#13032) * [Service Fabric Managed Clusters] Adding missing property ClusterUpgradeCadence (#12858) * adding missing property ClusterUpgradeCadence * change createdByType and lastModifiedAt to strings * remove duplicate operations path * fix sdk-net path typo * commit to rerun automation * remove x-ms-client-flatten for ServiceResource * remove after_scripts automation was failing * rename _Create to _CreateOrUpdate in apps Co-authored-by: Alfredo Santamaria Gomez * AVS 2021-01-01-preview (#12879) * use 2020-07-17-preview as base api * 2021-01-01-preview API changes * fix Java namespace & output-folder * add body to Datastores_Create * remove x-ms-azure-resource & properties suffix * fix Datastores_Create responses * "2021-01-01" to "2021-01-01-preview" * Second round of updates for Azure CLI code generation Co-authored-by: Victor Liu Co-authored-by: Victor Liu Co-authored-by: WS <20408400+WodansSon@users.noreply.github.com> Co-authored-by: worldhello126 <49164775+worldhello126@users.noreply.github.com> Co-authored-by: Phoenix He Co-authored-by: Sofía Isadora Padilla Muñoz Co-authored-by: jdhms <77470403+jdhms@users.noreply.github.com> Co-authored-by: Pratima Upadhyay Co-authored-by: Pratima Upadhyay Co-authored-by: Anthony Kunnel Jose Co-authored-by: Zunli Hu Co-authored-by: Shubham Gupta Co-authored-by: Yang Yuan Co-authored-by: nivats <41890611+nivats@users.noreply.github.com> Co-authored-by: Taliesin Sisson Co-authored-by: alexandra142 Co-authored-by: Alexandra Lamiova Pistrakova Co-authored-by: ahermas <68354927+ahermas@users.noreply.github.com> Co-authored-by: bquantump <53361486+bquantump@users.noreply.github.com> Co-authored-by: Auðunn Co-authored-by: Audunn Baldvinsson Co-authored-by: Yunge Zhu Co-authored-by: Alfredo Santamaria Co-authored-by: Alfredo Santamaria Gomez Co-authored-by: Cameron Taggart --- .../resource-manager/readme.az.md | 76 ++++++++++++++++--- .../resource-manager/readme.cli.md | 33 +++++++- 2 files changed, 94 insertions(+), 15 deletions(-) diff --git a/specification/redisenterprise/resource-manager/readme.az.md b/specification/redisenterprise/resource-manager/readme.az.md index 79f399d7b5e9..21b09ba7c2ab 100644 --- a/specification/redisenterprise/resource-manager/readme.az.md +++ b/specification/redisenterprise/resource-manager/readme.az.md @@ -21,30 +21,82 @@ python-sdk-output-folder: "$(az-output-folder)/vendored_sdks/redisenterprise" Additional configuration specific for Azure CLI -``` yaml +``` yaml $(az) extension-mode: stable +directive: + - where: + group: redisenterprise redis-enterprise + set: + group: redisenterprise + - where: + command: redisenterprise database list-key + set: + command: redisenterprise database list-keys + cli: cli-directive: + - where: + group: '*' + op: '*' + param: 'sku' + cli-flatten: true + - where: + group: 'RedisEnterprise' + op: 'Create' + param: 'name' + required: true + - where: + group: '*' + op: '*' + param: 'name' + name: 'sku' - where: group: '*' op: '*' param: 'clusterName' alias: - - cluster_name - - name - - n + - 'cluster_name' + - 'name' + - 'n' - where: group: '*' op: '*' param: 'zones' alias: - - zones - - z - -directive: - - where: - group: redisenterprise redis-enterprise - set: - group: redisenterprise + - 'zones' + - 'z' + - where: + group: 'Databases' + op: 'Update' + param: 'clusteringPolicy' + hidden: true + - where: + group: 'Databases' + op: 'Update' + param: 'modules' + hidden: true + - where: + group: 'Databases' + op: 'Update' + param: 'port' + hidden: true + - where: + group: '*' + op: '*' + param: 'databaseName' + default-value: 'default' + hidden: true + - where: + group: 'PrivateEndpointConnections' + hidden: true + - where: + group: 'PrivateLinkResources' + hidden: true + - where: + group: '*' + op: '*' + param: 'persistence' + set: + extensionMode: 'preview' ``` diff --git a/specification/redisenterprise/resource-manager/readme.cli.md b/specification/redisenterprise/resource-manager/readme.cli.md index 73967f0e71c8..7cb4a841a54f 100644 --- a/specification/redisenterprise/resource-manager/readme.cli.md +++ b/specification/redisenterprise/resource-manager/readme.cli.md @@ -1,4 +1,31 @@ -``` yaml -# add any configuration here for all CLI languages -# refer to the faq.md for more details +## CLI + +These settings apply only when `--cli` is specified on the command line. + +``` yaml $(cli) +cli: + cli-name: redisenterprise + test-scenario: + redisenterprise_scenario1: + - name: /RedisEnterprise/put/RedisEnterpriseCreate + - name: /RedisEnterprise/get/RedisEnterpriseGet + - name: /RedisEnterprise/get/RedisEnterpriseList + - name: /RedisEnterprise/get/RedisEnterpriseListByResourceGroup + - name: /Databases/get/RedisEnterpriseDatabasesGet + - name: /Databases/get/RedisEnterpriseDatabasesListByCluster + - name: /Databases/post/RedisEnterpriseDatabasesListKeys + - name: /Databases/post/RedisEnterpriseDatabasesRegenerateKey + - name: /RedisEnterprise/delete/RedisEnterpriseDelete + redisenterprise_scenario2: + - name: /RedisEnterprise/put/RedisEnterpriseCreate + - name: /RedisEnterprise/get/RedisEnterpriseGet + - name: /RedisEnterprise/get/RedisEnterpriseList + - name: /RedisEnterprise/get/RedisEnterpriseListByResourceGroup + - name: /Databases/put/RedisEnterpriseDatabasesCreate + - name: /Databases/get/RedisEnterpriseDatabasesGet + - name: /Databases/get/RedisEnterpriseDatabasesListByCluster + - name: /Databases/post/RedisEnterpriseDatabasesListKeys + - name: /Databases/post/RedisEnterpriseDatabasesRegenerateKey + - name: /Databases/delete/RedisEnterpriseDatabasesDelete + - name: /RedisEnterprise/delete/RedisEnterpriseDelete ```