Skip to content

Commit 89c3f10

Browse files
agalerrotarumsyyc
andauthored
Adding xms ids for Blockchain (#17714)
* Adding xms-ids for Blockchain * Update readme.md * Update readme.python.md Co-authored-by: Yuchao Yan <[email protected]>
1 parent 7c2ebcc commit 89c3f10

File tree

3 files changed

+52
-29
lines changed

3 files changed

+52
-29
lines changed

specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/blockchain.json

Lines changed: 36 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1053,7 +1053,10 @@
10531053
"type": "array",
10541054
"items": {
10551055
"$ref": "#/definitions/FirewallRule"
1056-
}
1056+
},
1057+
"x-ms-identifiers": [
1058+
"ruleName"
1059+
]
10571060
}
10581061
}
10591062
},
@@ -1166,7 +1169,10 @@
11661169
"type": "array",
11671170
"items": {
11681171
"$ref": "#/definitions/ConsortiumMember"
1169-
}
1172+
},
1173+
"x-ms-identifiers": [
1174+
"name"
1175+
]
11701176
},
11711177
"nextLink": {
11721178
"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 @@
12201226
"type": "array",
12211227
"items": {
12221228
"$ref": "#/definitions/ApiKey"
1223-
}
1229+
},
1230+
"x-ms-identifiers": [
1231+
"keyName"
1232+
]
12241233
}
12251234
}
12261235
},
@@ -1309,7 +1318,10 @@
13091318
"type": "array",
13101319
"items": {
13111320
"$ref": "#/definitions/Consortium"
1312-
}
1321+
},
1322+
"x-ms-identifiers": [
1323+
"name"
1324+
]
13131325
}
13141326
}
13151327
},
@@ -1347,7 +1359,10 @@
13471359
"type": "array",
13481360
"items": {
13491361
"$ref": "#/definitions/ResourceProviderOperation"
1350-
}
1362+
},
1363+
"x-ms-identifiers": [
1364+
"name"
1365+
]
13511366
},
13521367
"nextLink": {
13531368
"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 @@
14091424
"type": "array",
14101425
"items": {
14111426
"$ref": "#/definitions/ResourceTypeSku"
1412-
}
1427+
},
1428+
"x-ms-identifiers": [
1429+
"resourceType"
1430+
]
14131431
}
14141432
}
14151433
},
@@ -1427,7 +1445,10 @@
14271445
"type": "array",
14281446
"items": {
14291447
"$ref": "#/definitions/SkuSetting"
1430-
}
1448+
},
1449+
"x-ms-identifiers": [
1450+
"name"
1451+
]
14311452
}
14321453
}
14331454
},
@@ -1526,7 +1547,10 @@
15261547
"type": "array",
15271548
"items": {
15281549
"$ref": "#/definitions/FirewallRule"
1529-
}
1550+
},
1551+
"x-ms-identifiers": [
1552+
"ruleName"
1553+
]
15301554
}
15311555
}
15321556
},
@@ -1555,7 +1579,10 @@
15551579
"type": "array",
15561580
"items": {
15571581
"$ref": "#/definitions/FirewallRule"
1558-
}
1582+
},
1583+
"x-ms-identifiers": [
1584+
"ruleName"
1585+
]
15591586
}
15601587
}
15611588
},

specification/blockchain/resource-manager/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ This is not used by Autorest itself.
5151
``` yaml $(swagger-to-sdk)
5252
swagger-to-sdk:
5353
- repo: azure-powershell
54-
- repo: azure-sdk-for-python
54+
- repo: azure-sdk-for-python-track2
5555
- repo: azure-sdk-for-go
5656
- repo: azure-sdk-for-go-track2
5757
- repo: azure-sdk-for-net

specification/blockchain/resource-manager/readme.python.md

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,22 @@
22

33
These settings apply only when `--python` is specified on the command line.
44
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.
5-
Use `--python-mode=update` if you already have a setup.py and just want to update the code itself.
65

7-
``` yaml $(python)
8-
# python-mode: create
9-
python:
10-
azure-arm: true
11-
license-header: MICROSOFT_MIT_NO_VERSION
12-
payload-flattening-threshold: 2
13-
namespace: azure.mgmt.blockchain
14-
package-name: azure-mgmt-blockchain
15-
package-version: 2.0.0
16-
clear-output-folder: true
6+
``` yaml $(track2)
7+
azure-arm: true
8+
license-header: MICROSOFT_MIT_NO_VERSION
9+
package-name: azure-mgmt-blockchain
10+
no-namespace-folders: true
11+
package-version: 1.0.0b1
12+
clear-output-folder: true
1713
```
18-
``` yaml $(python) && $(python-mode) == 'update'
19-
python:
20-
no-namespace-folders: true
21-
output-folder: $(python-sdks-folder)/blockchain/azure-mgmt-blockchain/azure/mgmt/blockchain
14+
15+
``` yaml $(python-mode) == 'update' && $(track2)
16+
no-namespace-folders: true
17+
output-folder: $(python-sdks-folder)/blockchain/azure-mgmt-blockchain/azure/mgmt/blockchain
2218
```
23-
``` yaml $(python) && $(python-mode) == 'create'
24-
python:
25-
basic-setup-py: true
26-
output-folder: $(python-sdks-folder)/blockchain/azure-mgmt-blockchain
19+
20+
``` yaml $(python-mode) == 'create' && $(track2)
21+
basic-setup-py: true
22+
output-folder: $(python-sdks-folder)/blockchain/azure-mgmt-blockchain
2723
```

0 commit comments

Comments
 (0)