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