Skip to content

Commit 26548ea

Browse files
Add xms-ids for migrateprojects (#17822)
* add xms-ids for migrateprojects * fix formatting * inner properties * refactor readme.go.md to make sure our pipeline could work properly Co-authored-by: Arcturus Zhang <dapzhang@microsoft.com>
1 parent aeb26a9 commit 26548ea

File tree

3 files changed

+75
-33
lines changed

3 files changed

+75
-33
lines changed

specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json

Lines changed: 48 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1160,7 +1160,10 @@
11601160
"type": "array",
11611161
"items": {
11621162
"$ref": "#/definitions/DatabaseInstanceDiscoveryDetails"
1163-
}
1163+
},
1164+
"x-ms-identifiers": [
1165+
"instanceId"
1166+
]
11641167
},
11651168
"summary": {
11661169
"description": "Gets or sets the database instances summary per solution. The key of dictionary is the solution name and value is the corresponding database instance summary object.",
@@ -1296,7 +1299,10 @@
12961299
"type": "array",
12971300
"items": {
12981301
"$ref": "#/definitions/DatabaseAssessmentDetails"
1299-
}
1302+
},
1303+
"x-ms-identifiers": [
1304+
"assessmentId"
1305+
]
13001306
},
13011307
"lastUpdatedTime": {
13021308
"format": "date-time",
@@ -1557,20 +1563,25 @@
15571563
"items": {
15581564
"$ref": "#/definitions/IEdmSchemaElement"
15591565
},
1566+
"x-ms-identifiers": [
1567+
"name"
1568+
],
15601569
"readOnly": true
15611570
},
15621571
"vocabularyAnnotations": {
15631572
"type": "array",
15641573
"items": {
15651574
"$ref": "#/definitions/IEdmVocabularyAnnotation"
15661575
},
1576+
"x-ms-identifiers": [],
15671577
"readOnly": true
15681578
},
15691579
"referencedModels": {
15701580
"type": "array",
15711581
"items": {
15721582
"$ref": "#/definitions/IEdmModel"
15731583
},
1584+
"x-ms-identifiers": [],
15741585
"readOnly": true
15751586
},
15761587
"declaredNamespaces": {
@@ -1619,6 +1630,9 @@
16191630
"items": {
16201631
"$ref": "#/definitions/IEdmNavigationPropertyBinding"
16211632
},
1633+
"x-ms-identifiers": [
1634+
"/navigationProperty/name"
1635+
],
16221636
"readOnly": true
16231637
},
16241638
"path": {
@@ -1651,6 +1665,9 @@
16511665
"items": {
16521666
"$ref": "#/definitions/ODataPathSegment"
16531667
},
1668+
"x-ms-identifiers": [
1669+
"identifier"
1670+
],
16541671
"readOnly": true
16551672
},
16561673
"pathTemplate": {
@@ -1662,6 +1679,9 @@
16621679
"items": {
16631680
"$ref": "#/definitions/ODataPathSegment"
16641681
},
1682+
"x-ms-identifiers": [
1683+
"identifier"
1684+
],
16651685
"readOnly": true
16661686
}
16671687
}
@@ -1682,6 +1702,7 @@
16821702
"items": {
16831703
"$ref": "#/definitions/SelectItem"
16841704
},
1705+
"x-ms-identifiers": [],
16851706
"readOnly": true
16861707
},
16871708
"allSelected": {
@@ -1698,6 +1719,7 @@
16981719
"items": {
16991720
"$ref": "#/definitions/TransformationNode"
17001721
},
1722+
"x-ms-identifiers": [],
17011723
"readOnly": true
17021724
}
17031725
}
@@ -1781,6 +1803,9 @@
17811803
"items": {
17821804
"$ref": "#/definitions/IEdmEntityContainerElement"
17831805
},
1806+
"x-ms-identifiers": [
1807+
"name"
1808+
],
17841809
"readOnly": true
17851810
},
17861811
"schemaElementKind": {
@@ -2137,6 +2162,10 @@
21372162
"items": {
21382163
"$ref": "#/definitions/EdmReferentialConstraintPropertyPair"
21392164
},
2165+
"x-ms-identifiers": [
2166+
"/dependentProperty/name",
2167+
"/principalProperty/name"
2168+
],
21402169
"readOnly": true
21412170
}
21422171
}
@@ -2161,6 +2190,9 @@
21612190
"items": {
21622191
"$ref": "#/definitions/IEdmProperty"
21632192
},
2193+
"x-ms-identifiers": [
2194+
"name"
2195+
],
21642196
"readOnly": true
21652197
},
21662198
"typeKind": {
@@ -2299,21 +2331,28 @@
22992331
"type": "array",
23002332
"items": {
23012333
"$ref": "#/definitions/DiscoveryDetails"
2302-
}
2334+
},
2335+
"x-ms-identifiers": [
2336+
"machineId"
2337+
]
23032338
},
23042339
"assessmentData": {
23052340
"description": "Gets or sets the assessment details of the machine published by various sources.",
23062341
"type": "array",
23072342
"items": {
23082343
"$ref": "#/definitions/AssessmentDetails"
2309-
}
2344+
},
2345+
"x-ms-identifiers": [
2346+
"assessmentId"
2347+
]
23102348
},
23112349
"migrationData": {
23122350
"description": "Gets or sets the migration details of the machine published by various sources.",
23132351
"type": "array",
23142352
"items": {
23152353
"$ref": "#/definitions/MigrationDetails"
2316-
}
2354+
},
2355+
"x-ms-identifiers": []
23172356
},
23182357
"lastUpdatedTime": {
23192358
"format": "date-time",
@@ -3082,7 +3121,10 @@
30823121
"description": "List of operations.",
30833122
"items": {
30843123
"$ref": "#/definitions/Operation"
3085-
}
3124+
},
3125+
"x-ms-identifiers": [
3126+
"name"
3127+
]
30863128
}
30873129
}
30883130
},
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
## Go
2+
3+
These settings apply only when `--go` is specified on the command line.
4+
5+
``` yaml $(go)
6+
go:
7+
license-header: MICROSOFT_APACHE_NO_VERSION
8+
clear-output-folder: true
9+
namespace: migrate
10+
```
11+
12+
### Go multi-api
13+
14+
``` yaml $(go) && $(multiapi)
15+
batch:
16+
- tag: package-2018-09
17+
```
18+
19+
### Tag: package-2018-09 and go
20+
21+
These settings apply only when `--tag=package-2018-09 --go` is specified on the command line.
22+
Please also specify `--go-sdk-folder=<path to the root directory of your azure-sdk-for-go clone>`.
23+
24+
``` yaml $(tag)=='package-2018-09' && $(go)
25+
output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2018-09-01-preview/$(namespace)
26+
```

specification/migrateprojects/resource-manager/readme.md

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -74,30 +74,4 @@ swagger-to-sdk:
7474

7575
## Go
7676

77-
These settings apply only when `--go` is specified on the command line.
78-
79-
``` yaml $(go)
80-
go:
81-
license-header: MICROSOFT_APACHE_NO_VERSION
82-
clear-output-folder: true
83-
namespace: migrate
84-
```
85-
86-
### Go multi-api
87-
88-
``` yaml $(go) && $(multiapi)
89-
batch:
90-
- tag: package-2018-09
91-
```
92-
93-
### Tag: package-2018-09 and go
94-
95-
These settings apply only when `--tag=package-2018-09 --go` is specified on the command line.
96-
Please also specify `--go-sdk-folder=<path to the root directory of your azure-sdk-for-go clone>`.
97-
98-
``` yaml $(tag)=='package-2018-09' && $(go)
99-
output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2018-09-01-preview/$(namespace)
100-
```
101-
102-
103-
77+
See configuration in [readme.go.md](./readme.go.md)

0 commit comments

Comments
 (0)