Skip to content

Commit e545930

Browse files
authored
Update readme.md (#22057)
* Update readme.md * Add query expand params
1 parent 3194301 commit e545930

File tree

4 files changed

+45
-2
lines changed

4 files changed

+45
-2
lines changed

specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/Databases.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,20 @@
8484
{
8585
"$ref": "#/parameters/DatabaseNameParameter"
8686
},
87+
{
88+
"name": "$expand",
89+
"in": "query",
90+
"description": "The child resources to include in the response.",
91+
"required": false,
92+
"type": "string"
93+
},
94+
{
95+
"name": "$filter",
96+
"in": "query",
97+
"description": "An OData filter expression that filters elements in the collection.",
98+
"required": false,
99+
"type": "string"
100+
},
87101
{
88102
"$ref": "../../../common/v1/types.json#/parameters/SubscriptionIdParameter"
89103
},
@@ -102,6 +116,7 @@
102116
"description": "*** Error Responses: ***\n\n * 400 ManagedInstanceStoppingOrStopped - Conflicting operation submitted while instance is in stopping/stopped state\n\n * 400 ManagedInstanceStarting - Conflicting operation submitted while instance is in starting state\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ServerNotInSubscriptionResourceGroup - Specified server does not exist in the specified resource group and subscription.\n\n * 404 ResourceNotFound - The requested resource was not found."
103117
}
104118
},
119+
"x-ms-odata": "#/definitions/Database",
105120
"x-ms-examples": {
106121
"Gets a database configured with Default enclave type.": {
107122
"$ref": "./examples/GetVCoreDatabaseDefaultEnclave.json"

specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/RecoverableDatabases.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,20 @@
7575
{
7676
"$ref": "#/parameters/DatabaseNameParameter"
7777
},
78+
{
79+
"name": "$expand",
80+
"in": "query",
81+
"description": "The child resources to include in the response.",
82+
"required": false,
83+
"type": "string"
84+
},
85+
{
86+
"name": "$filter",
87+
"in": "query",
88+
"description": "An OData filter expression that filters elements in the collection.",
89+
"required": false,
90+
"type": "string"
91+
},
7892
{
7993
"$ref": "../../../common/v1/types.json#/parameters/SubscriptionIdParameter"
8094
},
@@ -93,6 +107,7 @@
93107
"description": "*** Error Responses: ***\n\n * 400 ManagedInstanceStoppingOrStopped - Conflicting operation submitted while instance is in stopping/stopped state\n\n * 400 ManagedInstanceStarting - Conflicting operation submitted while instance is in starting state\n\n * 400 InvalidRecoverableDatabaseId - Invalid recoverable database identifier.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ServerNotInSubscriptionResourceGroup - Specified server does not exist in the specified resource group and subscription.\n\n * 404 ResourceNotFound - The requested resource was not found."
94108
}
95109
},
110+
"x-ms-odata": "#/definitions/RecoverableDatabase",
96111
"x-ms-examples": {
97112
"Get a recoverable database.": {
98113
"$ref": "./examples/RecoverableDatabaseGet.json"

specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/RestorableDroppedDatabases.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,20 @@
7878
"required": true,
7979
"type": "string"
8080
},
81+
{
82+
"name": "$expand",
83+
"in": "query",
84+
"description": "The child resources to include in the response.",
85+
"required": false,
86+
"type": "string"
87+
},
88+
{
89+
"name": "$filter",
90+
"in": "query",
91+
"description": "An OData filter expression that filters elements in the collection.",
92+
"required": false,
93+
"type": "string"
94+
},
8195
{
8296
"$ref": "../../../common/v1/types.json#/parameters/SubscriptionIdParameter"
8397
},
@@ -96,6 +110,7 @@
96110
"description": "*** Error Responses: ***\n\n * 400 ManagedInstanceStoppingOrStopped - Conflicting operation submitted while instance is in stopping/stopped state\n\n * 400 ManagedInstanceStarting - Conflicting operation submitted while instance is in starting state\n\n * 400 InvalidRestorableDroppedDatabaseDeletionDate - The restorable dropped database deletion date given is invalid\n\n * 400 InvalidRestorableDroppedDatabaseId - Invalid restorable dropped database identifier\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ServerNotInSubscriptionResourceGroup - Specified server does not exist in the specified resource group and subscription.\n\n * 404 ResourceNotFound - The requested resource was not found."
97111
}
98112
},
113+
"x-ms-odata": "#/definitions/RestorableDroppedDatabase",
99114
"x-ms-examples": {
100115
"Gets a restorable dropped database.": {
101116
"$ref": "./examples/GetRestorableDroppedDatabase.json"

specification/sql/resource-manager/readme.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -850,8 +850,6 @@ input-file:
850850
- ./Microsoft.Sql/preview/2022-08-01-preview/DatabaseEncryptionProtectorRevert.json
851851
- ./Microsoft.Sql/preview/2022-08-01-preview/ManagedLedgerDigestUploads.json
852852
- ./Microsoft.Sql/preview/2022-08-01-preview/Servers.json
853-
- ./Microsoft.Sql/preview/2022-08-01-preview/DatabaseEncryptionProtectorRevalidate.json
854-
- ./Microsoft.Sql/preview/2022-08-01-preview/DatabaseEncryptionProtectorRevert.json
855853
- ./Microsoft.Sql/preview/2022-08-01-preview/StartStopManagedInstanceSchedules.json
856854
857855
# Needed when there is more than one input file

0 commit comments

Comments
 (0)