From d418f9cc324cd892de8a8ec095c6db113d52e39f Mon Sep 17 00:00:00 2001 From: agalerrotaru <86316103+agalerrotaru@users.noreply.github.com> Date: Wed, 9 Feb 2022 10:20:13 +0100 Subject: [PATCH] Adding xms ids for Blockchain (#17714) * Adding xms-ids for Blockchain * Update readme.md * Update readme.python.md Co-authored-by: Yuchao Yan --- .../2018-06-01-preview/blockchain.json | 45 +++++++++++++++---- .../blockchain/resource-manager/readme.md | 2 +- .../resource-manager/readme.python.md | 34 +++++++------- 3 files changed, 52 insertions(+), 29 deletions(-) diff --git a/specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/blockchain.json b/specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/blockchain.json index 8fc167645305..339b84d20881 100644 --- a/specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/blockchain.json +++ b/specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/blockchain.json @@ -1053,7 +1053,10 @@ "type": "array", "items": { "$ref": "#/definitions/FirewallRule" - } + }, + "x-ms-identifiers": [ + "ruleName" + ] } } }, @@ -1166,7 +1169,10 @@ "type": "array", "items": { "$ref": "#/definitions/ConsortiumMember" - } + }, + "x-ms-identifiers": [ + "name" + ] }, "nextLink": { "description": "Gets or sets the URL, that the client should use to fetch the next page (per server side paging).\r\nIt's null for now, added for future use.", @@ -1220,7 +1226,10 @@ "type": "array", "items": { "$ref": "#/definitions/ApiKey" - } + }, + "x-ms-identifiers": [ + "keyName" + ] } } }, @@ -1309,7 +1318,10 @@ "type": "array", "items": { "$ref": "#/definitions/Consortium" - } + }, + "x-ms-identifiers": [ + "name" + ] } } }, @@ -1347,7 +1359,10 @@ "type": "array", "items": { "$ref": "#/definitions/ResourceProviderOperation" - } + }, + "x-ms-identifiers": [ + "name" + ] }, "nextLink": { "description": "Gets or sets the URL, that the client should use to fetch the next page (per server side paging).\r\nIt's null for now, added for future use.", @@ -1409,7 +1424,10 @@ "type": "array", "items": { "$ref": "#/definitions/ResourceTypeSku" - } + }, + "x-ms-identifiers": [ + "resourceType" + ] } } }, @@ -1427,7 +1445,10 @@ "type": "array", "items": { "$ref": "#/definitions/SkuSetting" - } + }, + "x-ms-identifiers": [ + "name" + ] } } }, @@ -1526,7 +1547,10 @@ "type": "array", "items": { "$ref": "#/definitions/FirewallRule" - } + }, + "x-ms-identifiers": [ + "ruleName" + ] } } }, @@ -1555,7 +1579,10 @@ "type": "array", "items": { "$ref": "#/definitions/FirewallRule" - } + }, + "x-ms-identifiers": [ + "ruleName" + ] } } }, diff --git a/specification/blockchain/resource-manager/readme.md b/specification/blockchain/resource-manager/readme.md index 68d037eee05a..6d0cadf84dfa 100644 --- a/specification/blockchain/resource-manager/readme.md +++ b/specification/blockchain/resource-manager/readme.md @@ -51,7 +51,7 @@ This is not used by Autorest itself. ``` yaml $(swagger-to-sdk) swagger-to-sdk: - repo: azure-powershell - - repo: azure-sdk-for-python + - repo: azure-sdk-for-python-track2 - repo: azure-sdk-for-go - repo: azure-sdk-for-go-track2 - repo: azure-sdk-for-net diff --git a/specification/blockchain/resource-manager/readme.python.md b/specification/blockchain/resource-manager/readme.python.md index 50680aec44a9..e30452cc489c 100644 --- a/specification/blockchain/resource-manager/readme.python.md +++ b/specification/blockchain/resource-manager/readme.python.md @@ -2,26 +2,22 @@ These settings apply only when `--python` is specified on the command line. Please also specify `--python-sdks-folder=`. -Use `--python-mode=update` if you already have a setup.py and just want to update the code itself. -``` yaml $(python) -# python-mode: create -python: - azure-arm: true - license-header: MICROSOFT_MIT_NO_VERSION - payload-flattening-threshold: 2 - namespace: azure.mgmt.blockchain - package-name: azure-mgmt-blockchain - package-version: 2.0.0 - clear-output-folder: true +``` yaml $(track2) +azure-arm: true +license-header: MICROSOFT_MIT_NO_VERSION +package-name: azure-mgmt-blockchain +no-namespace-folders: true +package-version: 1.0.0b1 +clear-output-folder: true ``` -``` yaml $(python) && $(python-mode) == 'update' -python: - no-namespace-folders: true - output-folder: $(python-sdks-folder)/blockchain/azure-mgmt-blockchain/azure/mgmt/blockchain + +``` yaml $(python-mode) == 'update' && $(track2) +no-namespace-folders: true +output-folder: $(python-sdks-folder)/blockchain/azure-mgmt-blockchain/azure/mgmt/blockchain ``` -``` yaml $(python) && $(python-mode) == 'create' -python: - basic-setup-py: true - output-folder: $(python-sdks-folder)/blockchain/azure-mgmt-blockchain + +``` yaml $(python-mode) == 'create' && $(track2) +basic-setup-py: true +output-folder: $(python-sdks-folder)/blockchain/azure-mgmt-blockchain ```