Skip to content

Commit 82170aa

Browse files
authored
Merge pull request Azure#1 from Azure/datamigration
Merge
2 parents 98a066a + db33e11 commit 82170aa

12 files changed

Lines changed: 427 additions & 30 deletions

File tree

specification/datamigration/resource-manager/Microsoft.DataMigration/2017-04-15-privatepreview/datamigration.json

Lines changed: 55 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,7 +1040,7 @@
10401040
}
10411041
}
10421042
},
1043-
"/subscriptions/{subscriptionId}/providers/Microsoft.DataMigration/checkNameAvailability": {
1043+
"/subscriptions/{subscriptionId}/providers/Microsoft.DataMigration/locations/{location}/checkNameAvailability": {
10441044
"post": {
10451045
"summary": "Check name validity and availability",
10461046
"description": "This method checks whether a proposed top-level resource name is valid and available.",
@@ -1056,6 +1056,9 @@
10561056
{
10571057
"$ref": "#/parameters/subscriptionId"
10581058
},
1059+
{
1060+
"$ref": "#/parameters/location"
1061+
},
10591062
{
10601063
"$ref": "#/parameters/apiVersion"
10611064
},
@@ -1079,6 +1082,48 @@
10791082
}
10801083
}
10811084
},
1085+
"/subscriptions/{subscriptionId}/providers/Microsoft.DataMigration/locations/{location}/usages": {
1086+
"get": {
1087+
"summary": "Get resource quotas and usage information",
1088+
"description": "This method returns region-specific quotas and resource usage information for the Data Migration Service.",
1089+
"tags": [
1090+
"Standard operation",
1091+
"GET"
1092+
],
1093+
"operationId": "Usages_List",
1094+
"x-ms-examples": {
1095+
"Services_Usages": { "$ref": "./examples/Usages_List.json" }
1096+
},
1097+
"parameters": [
1098+
{
1099+
"$ref": "#/parameters/subscriptionId"
1100+
},
1101+
{
1102+
"$ref": "#/parameters/location"
1103+
},
1104+
{
1105+
"$ref": "#/parameters/apiVersion"
1106+
}
1107+
],
1108+
"x-ms-pageable": {
1109+
"nextLinkName": "nextLink"
1110+
},
1111+
"responses": {
1112+
"200": {
1113+
"description": "Quotas returned",
1114+
"schema": {
1115+
"$ref": "./definitions/Common.json#/definitions/QuotaList"
1116+
}
1117+
},
1118+
"default": {
1119+
"description": "Error",
1120+
"schema": {
1121+
"$ref": "./definitions/Common.json#/definitions/ApiError"
1122+
}
1123+
}
1124+
}
1125+
}
1126+
},
10821127
"/providers/Microsoft.DataMigration/operations": {
10831128
"get": {
10841129
"summary": "Get available resource provider actions (operations)",
@@ -1140,6 +1185,14 @@
11401185
"type": "string",
11411186
"x-ms-parameter-location": "method"
11421187
},
1188+
"location": {
1189+
"name": "location",
1190+
"description": "The Azure region of the operation",
1191+
"in": "path",
1192+
"required": true,
1193+
"type": "string",
1194+
"x-ms-parameter-location": "method"
1195+
},
11431196
"project": {
11441197
"name": "parameters",
11451198
"description": "Information about the project",
@@ -1229,4 +1282,4 @@
12291282
"x-ms-parameter-location": "method"
12301283
}
12311284
}
1232-
}
1285+
}

specification/datamigration/resource-manager/Microsoft.DataMigration/2017-04-15-privatepreview/definitions/Common.json

Lines changed: 56 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,61 @@
8888
}
8989
}
9090
},
91+
"Quota": {
92+
"type": "object",
93+
"description": "Describes a quota for or usage details about a resource",
94+
"properties": {
95+
"currentValue": {
96+
"type": "number",
97+
"format": "double",
98+
"description": "The current value of the quota. If null or missing, the current value cannot be determined in the context of the request."
99+
},
100+
"id": {
101+
"type": "string",
102+
"description": "The resource ID of the quota object"
103+
},
104+
"limit": {
105+
"type": "number",
106+
"format": "double",
107+
"description": "The maximum value of the quota. If null or missing, the quota has no maximum, in which case it merely tracks usage."
108+
},
109+
"name": {
110+
"type": "object",
111+
"description": "The name of the quota",
112+
"properties": {
113+
"localizedValue": {
114+
"type": "string",
115+
"description": "The localized name of the quota"
116+
},
117+
"value": {
118+
"type": "string",
119+
"description": "The unlocalized name (or ID) of the quota"
120+
}
121+
}
122+
},
123+
"unit": {
124+
"type": "string",
125+
"description": "The unit for the quota, such as Count, Bytes, BytesPerSecond, etc."
126+
}
127+
}
128+
},
129+
"QuotaList": {
130+
"type": "object",
131+
"description": "OData page of quota objects",
132+
"properties": {
133+
"value": {
134+
"type": "array",
135+
"description": "List of quotas",
136+
"items": {
137+
"$ref": "#/definitions/Quota"
138+
}
139+
},
140+
"nextLink": {
141+
"type": "string",
142+
"description": "URL to load the next page of quotas, or null or missing if this is the last page"
143+
}
144+
}
145+
},
91146
"ReportableException": {
92147
"type": "object",
93148
"description": "Exception object for all custom exceptions",
@@ -335,4 +390,4 @@
335390
}
336391
}
337392
}
338-
}
393+
}

specification/datamigration/resource-manager/Microsoft.DataMigration/2017-04-15-privatepreview/definitions/MigrateSqlServerSqlDbTask.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,26 @@
400400
"$ref": "TasksCommon.json#/definitions/DataItemMigrationSummaryResult"
401401
}
402402
]
403+
},
404+
"MigrateSqlServerSqlDbTaskOutputValidationResult": {
405+
"x-ms-discriminator-value": "MigrationValidationOutput",
406+
"type": "object",
407+
"$ref": "./MigrationValidation.json#/definitions/MigrationValidationResult",
408+
"allOf": [
409+
{
410+
"$ref": "#/definitions/MigrateSqlServerSqlDbTaskOutput"
411+
}
412+
]
413+
},
414+
"MigrateSqlServerSqlDbTaskOutputDatabaseLevelValidationResult": {
415+
"x-ms-discriminator-value": "MigrationDatabaseLevelValidationOutput",
416+
"type": "object",
417+
"$ref": "./MigrationValidation.json#/definitions/MigrationValidationDatabaseLevelResult",
418+
"allOf": [
419+
{
420+
"$ref": "#/definitions/MigrateSqlServerSqlDbTaskOutput"
421+
}
422+
]
403423
}
404424
}
405425
}

specification/datamigration/resource-manager/Microsoft.DataMigration/2017-04-15-privatepreview/definitions/MigrationValidation.json

Lines changed: 59 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,17 +55,19 @@
5555
"properties": {
5656
"id": {
5757
"type": "string",
58-
"description": "Migration validation result identifier"
58+
"description": "Migration validation result identifier",
59+
"readOnly": true
5960
},
6061
"migrationId": {
6162
"type": "string",
62-
"description": "Migration Identifier"
63+
"description": "Migration Identifier",
64+
"readOnly": true
6365
},
64-
"databaseLevelValidationResults": {
66+
"summaryResults": {
6567
"type": "object",
66-
"description": "Validation results for each database",
68+
"description": "Validation summary results for each database",
6769
"additionalProperties": {
68-
"$ref": "#/definitions/MigrationValidationDatabaseLevelResult"
70+
"$ref": "#/definitions/MigrationValidationDatabaseSummaryResult"
6971
}
7072
},
7173
"status": {
@@ -75,25 +77,73 @@
7577
}
7678
}
7779
},
80+
"MigrationValidationDatabaseSummaryResult": {
81+
"type": "object",
82+
"description": "Migration Validation Database level summary result",
83+
"properties": {
84+
"id": {
85+
"type": "string",
86+
"description": "Result identifier",
87+
"readOnly": true
88+
},
89+
"migrationId": {
90+
"type": "string",
91+
"description": "Migration Identifier",
92+
"readOnly": true
93+
},
94+
"sourceDatabaseName": {
95+
"type": "string",
96+
"description": "Name of the source database",
97+
"readOnly": true
98+
},
99+
"targetDatabaseName": {
100+
"type": "string",
101+
"description": "Name of the target database",
102+
"readOnly": true
103+
},
104+
105+
"startedOn": {
106+
"type": "string",
107+
"format": "date-time",
108+
"description": "Validation start time",
109+
"readOnly": true
110+
},
111+
"endedOn": {
112+
"type": "string",
113+
"format": "date-time",
114+
"description": "Validation end time",
115+
"readOnly": true
116+
},
117+
"status": {
118+
"$ref": "#/definitions/ValidationStatus",
119+
"description": "Current status of validation at the database level",
120+
"readOnly": true
121+
}
122+
}
123+
},
78124
"MigrationValidationDatabaseLevelResult": {
79125
"type": "object",
80126
"description": "Database level validation results",
81127
"properties": {
82128
"id": {
83129
"type": "string",
84-
"description": "Result identifier"
130+
"description": "Result identifier",
131+
"readOnly": true
85132
},
86133
"migrationId": {
87134
"type": "string",
88-
"description": "Migration Identifier"
135+
"description": "Migration Identifier",
136+
"readOnly": true
89137
},
90138
"sourceDatabaseName": {
91139
"type": "string",
92-
"description": "Name of the source database"
140+
"description": "Name of the source database",
141+
"readOnly": true
93142
},
94143
"targetDatabaseName": {
95144
"type": "string",
96-
"description": "Name of the target database"
145+
"description": "Name of the target database",
146+
"readOnly": true
97147
},
98148
"startedOn": {
99149
"type": "string",

specification/datamigration/resource-manager/Microsoft.DataMigration/2017-04-15-privatepreview/definitions/Services.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@
171171
},
172172
"status": {
173173
"type": "string",
174-
"description": "The machine-readable status, such as 'Offline', 'Online', 'Deploying', 'Deleting', 'Stopped', 'Stopping', 'Starting', 'FailedToStart', 'FailedToStop', or 'Failed'"
174+
"description": "The machine-readable status, such as 'Initializing', 'Offline', 'Online', 'Deploying', 'Deleting', 'Stopped', 'Stopping', 'Starting', 'FailedToStart', 'FailedToStop' or 'Failed'"
175175
},
176176
"vmSize": {
177177
"type": "string",
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "90fb80a6-0f71-4761-8f03-921e7396f3c0",
4+
"location": "westus",
5+
"api-version": "2017-04-15-privatepreview"
6+
},
7+
"responses": {
8+
"200": {
9+
"value": [
10+
{
11+
"currentValue": 1.0,
12+
"id": "/subscriptions/90fb80a6-0f71-4761-8f03-921e7396f3c0/providers/Microsoft.DataMigration/locations/westus/usages/Services",
13+
"limit": 2.0,
14+
"name": {
15+
"localizedValue": "DMS service instances per region",
16+
"value": "Services"
17+
},
18+
"unit": "Count"
19+
}
20+
]
21+
}
22+
}
23+
}

0 commit comments

Comments
 (0)