Skip to content

Commit 258d7a2

Browse files
amarjeetkrAmarjeet Kumar
andauthored
Publish stable version of DMS APIs (#35993)
* Creating Stable Version of DMS V2 APIs * Update the version in the content of the example files * Updatd with all delta details * Removed APIs and properties deemed unnecessary for the current implementation * Prettier Fixes * Included all JSON files in the README.md * Swagger ModelValidation Fix * Model Validation fix * Model validation fix * model validation fix * Model validation fix * Model validation fix * Model validation fix * Model Validation Fix * Model validation fix * updates * updates * lintdiff fix * Prettier fixes * Suppressing LintDiff errors. * Suppress Lintdiff. * Revert LintDiff Suppression * Check in Operation API. * Include operation list example file * Removed Microsoft.DataMigration/operations * Suppress lint diff errors. --------- Co-authored-by: Amarjeet Kumar <[email protected]>
1 parent 897f194 commit 258d7a2

File tree

130 files changed

+19811
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

130 files changed

+19811
-0
lines changed

specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/datamigration.json

Lines changed: 1899 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,179 @@
1+
{
2+
"swagger": "2.0",
3+
"info": {
4+
"title": "Azure Database Migration Service (classic) Resource Provider",
5+
"version": "2025-06-30"
6+
},
7+
"securityDefinitions": {
8+
"azure_auth": {
9+
"type": "oauth2",
10+
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
11+
"flow": "implicit",
12+
"description": "Azure Active Directory OAuth2 Flow",
13+
"scopes": {
14+
"user_impersonation": "impersonate your user account"
15+
}
16+
}
17+
},
18+
"paths": {},
19+
"definitions": {
20+
"CommandProperties": {
21+
"type": "object",
22+
"description": "Base class for all types of DMS (classic) command properties. If command is not supported by current client, this object is returned.",
23+
"properties": {
24+
"commandType": {
25+
"enum": [
26+
"Migrate.Sync.Complete.Database",
27+
"Migrate.SqlServer.AzureDbSqlMi.Complete",
28+
"cancel",
29+
"finish",
30+
"restart"
31+
],
32+
"x-ms-enum": {
33+
"name": "CommandType",
34+
"modelAsString": true
35+
},
36+
"description": "Command type.",
37+
"type": "string"
38+
},
39+
"errors": {
40+
"type": "array",
41+
"items": {
42+
"$ref": "./Common.json#/definitions/ODataError"
43+
},
44+
"description": "Array of errors. This is ignored if submitted.",
45+
"readOnly": true
46+
},
47+
"state": {
48+
"type": "string",
49+
"description": "The state of the command. This is ignored if submitted.",
50+
"enum": [
51+
"Unknown",
52+
"Accepted",
53+
"Running",
54+
"Succeeded",
55+
"Failed"
56+
],
57+
"x-ms-enum": {
58+
"name": "CommandState",
59+
"modelAsString": true
60+
},
61+
"readOnly": true
62+
}
63+
},
64+
"required": [
65+
"commandType"
66+
],
67+
"discriminator": "commandType"
68+
},
69+
"MigrateSyncCompleteCommandProperties": {
70+
"x-ms-discriminator-value": "Migrate.Sync.Complete.Database",
71+
"type": "object",
72+
"description": "Properties for the command that completes sync migration for a database.",
73+
"properties": {
74+
"input": {
75+
"description": "Command input",
76+
"$ref": "#/definitions/MigrateSyncCompleteCommandInput"
77+
},
78+
"output": {
79+
"description": "Command output. This is ignored if submitted.",
80+
"$ref": "#/definitions/MigrateSyncCompleteCommandOutput",
81+
"readOnly": true
82+
},
83+
"commandId": {
84+
"type": "string",
85+
"description": "Command id"
86+
}
87+
},
88+
"allOf": [
89+
{
90+
"$ref": "#/definitions/CommandProperties"
91+
}
92+
]
93+
},
94+
"MigrateSyncCompleteCommandInput": {
95+
"type": "object",
96+
"description": "Input for command that completes sync migration for a database.",
97+
"properties": {
98+
"databaseName": {
99+
"description": "Name of database",
100+
"type": "string"
101+
},
102+
"commitTimeStamp": {
103+
"type": "string",
104+
"format": "date-time",
105+
"description": "Time stamp to complete"
106+
}
107+
},
108+
"required": [
109+
"databaseName"
110+
]
111+
},
112+
"MigrateSyncCompleteCommandOutput": {
113+
"type": "object",
114+
"description": "Output for command that completes sync migration for a database.",
115+
"properties": {
116+
"id": {
117+
"type": "string",
118+
"description": "Result identifier",
119+
"readOnly": true
120+
},
121+
"errors": {
122+
"description": "List of errors that happened during the command execution",
123+
"type": "array",
124+
"items": {
125+
"$ref": "./Common.json#/definitions/ReportableException"
126+
},
127+
"readOnly": true
128+
}
129+
}
130+
},
131+
"MigrateMISyncCompleteCommandProperties": {
132+
"x-ms-discriminator-value": "Migrate.SqlServer.AzureDbSqlMi.Complete",
133+
"type": "object",
134+
"description": "Properties for the command that completes online migration for an Azure SQL Database Managed Instance.",
135+
"properties": {
136+
"input": {
137+
"description": "Command input",
138+
"$ref": "#/definitions/MigrateMISyncCompleteCommandInput"
139+
},
140+
"output": {
141+
"description": "Command output. This is ignored if submitted.",
142+
"$ref": "#/definitions/MigrateMISyncCompleteCommandOutput",
143+
"readOnly": true
144+
}
145+
},
146+
"allOf": [
147+
{
148+
"$ref": "#/definitions/CommandProperties"
149+
}
150+
]
151+
},
152+
"MigrateMISyncCompleteCommandInput": {
153+
"type": "object",
154+
"description": "Input for command that completes online migration for an Azure SQL Database Managed Instance.",
155+
"properties": {
156+
"sourceDatabaseName": {
157+
"description": "Name of managed instance database",
158+
"type": "string"
159+
}
160+
},
161+
"required": [
162+
"sourceDatabaseName"
163+
]
164+
},
165+
"MigrateMISyncCompleteCommandOutput": {
166+
"type": "object",
167+
"description": "Output for command that completes online migration for an Azure SQL Database Managed Instance.",
168+
"properties": {
169+
"errors": {
170+
"description": "List of errors that happened during the command execution",
171+
"type": "array",
172+
"items": {
173+
"$ref": "./Common.json#/definitions/ReportableException"
174+
}
175+
}
176+
}
177+
}
178+
}
179+
}

0 commit comments

Comments
 (0)