Skip to content

Commit 1e23fb8

Browse files
dukumDurgesh Kumar
andauthored
Adding deep fetch swagger support for getUnresolvedDependencies api (#12504)
* adding deep fetch swagger support * adding filter properties * example improvements and fixes * marking property readOnly Co-authored-by: Durgesh Kumar <dukum@microsoft.com>
1 parent 3eb2bf6 commit 1e23fb8

File tree

1 file changed

+61
-0
lines changed

1 file changed

+61
-0
lines changed

specification/resourcemover/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/resourcemovercollection.json

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -587,8 +587,37 @@
587587
{
588588
"$ref": "#/parameters/moveCollectionName"
589589
},
590+
{
591+
"name": "dependencyLevel",
592+
"in": "query",
593+
"description": "Defines the dependency level.",
594+
"required": false,
595+
"type": "string",
596+
"enum": [
597+
"Direct",
598+
"Descendant"
599+
],
600+
"x-ms-enum": {
601+
"name": "DependencyLevel",
602+
"modelAsString": true
603+
}
604+
},
605+
{
606+
"name": "$orderby",
607+
"in": "query",
608+
"required": false,
609+
"type": "string",
610+
"description": "OData order by query option. For example, you can use $orderby=Count desc."
611+
},
590612
{
591613
"$ref": "#/parameters/api-version"
614+
},
615+
{
616+
"name": "$filter",
617+
"in": "query",
618+
"required": false,
619+
"type": "string",
620+
"description": "The filter to apply on the operation. For example, $apply=filter(count eq 2)."
592621
}
593622
],
594623
"responses": {
@@ -605,6 +634,10 @@
605634
}
606635
}
607636
},
637+
"x-ms-pageable": {
638+
"nextLinkName": "nextLink"
639+
},
640+
"x-ms-odata": "#/definitions/UnresolvedDependenciesFilter",
608641
"x-ms-examples": {
609642
"UnresolvedDependencies_Get": {
610643
"$ref": "./examples/UnresolvedDependencies_Get.json"
@@ -1537,6 +1570,23 @@
15371570
}
15381571
}
15391572
},
1573+
"UnresolvedDependenciesFilter": {
1574+
"description": "Unresolved dependencies contract.",
1575+
"properties": {
1576+
"properties": {
1577+
"$ref": "#/definitions/UnresolvedDependenciesFilterProperties"
1578+
}
1579+
}
1580+
},
1581+
"UnresolvedDependenciesFilterProperties": {
1582+
"properties": {
1583+
"count": {
1584+
"format": "int32",
1585+
"type": "integer",
1586+
"description": "The count of the resource."
1587+
}
1588+
}
1589+
},
15401590
"MoveResourceCollection": {
15411591
"description": "Defines the collection of move resources.",
15421592
"type": "object",
@@ -1610,6 +1660,17 @@
16101660
"nextLink": {
16111661
"description": "Gets or sets the value of next link.",
16121662
"type": "string"
1663+
},
1664+
"summaryCollection": {
1665+
"description": "Gets or sets the list of summary items and the field on which summary is done.",
1666+
"readOnly": true,
1667+
"$ref": "#/definitions/SummaryCollection"
1668+
},
1669+
"totalCount": {
1670+
"description": "Gets the total count.",
1671+
"type": "integer",
1672+
"readOnly": true,
1673+
"format": "int64"
16131674
}
16141675
}
16151676
},

0 commit comments

Comments
 (0)