Skip to content

Commit 38844df

Browse files
sureleoyang-hai-feng
authored andcommitted
Move swagger json file out of definitions folder (Azure#16700)
* IoT Central Public API 1.1-preview Oct Release (Azure#16514) * Add new 2.0-preview.1 version for IoT Central * fix typo on enum value * rollback 1.0 changes, applied 2.0-preview.1 * fix typo * remove non-used examples * fix style * update version from 2.0-preview.1 to 1.1-preview * update code review comments, fix patch consumes with json-patch support, fix examples for fileupload * add nextLink to collection of orgs * fix typo * fix wrong position of paging * fix the paging * add . to description * update default to use enum for api-version * add oct release with query, cde v2, device filter, device template filter, relationship, edge template, simplified template patching * update examples * fix lint error, model validation * fix missing type in examples, remove url format * fix ID case * fix id case * fix ID case * add iotc query language reference * fix typo * Move things out of definitions * remove ../ Co-authored-by: Johnson Yang <hayang@microsoft.com>
1 parent c097da3 commit 38844df

File tree

6 files changed

+47
-47
lines changed

6 files changed

+47
-47
lines changed

specification/azurearcdata/resource-manager/Microsoft.AzureArcData/stable/2021-11-01/azurearcdata.json

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@
3232
"200": {
3333
"description": "Successfully retrieved operations.",
3434
"schema": {
35-
"$ref": "./definitions/operations.json#/definitions/OperationListResult"
35+
"$ref": "./operations.json#/definitions/OperationListResult"
3636
}
3737
},
3838
"default": {
3939
"description": "*** Error Responses: ***\n\n * 400 InvalidParameterValue - An invalid value was given to parameter.\n\n * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource.\n\n * 400 RPGenericUser - User Failure when calling other Resource Provider.\n\n * 400 InvalidArgument - Invalid argument '{0}'.\n\n * 400 ArgumentNotInRange - Argument '{0}' not in range.\n\n * 400 ResourceNotProvisioned - As the resource: {0} is not in a provisioned state, the request cannot be proceeded forward\n\n * 400 InvalidRgResourceId - Invalid Resourcegroup resource id specified.\n\n * 403 AccessDenied - Access denied.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SubscriptionDoesNotExist - Subscription id does not exist.\n\n * 404 ResourceDoesNotExist - Resource does not exist.\n\n * 404 OperationIdNotFound - Operation id could not be found.\n\n * 404 OperationTypeNotFound - Operation Type not found.\n\n * 409 ResourceAlreadyExists - Resource already exists.\n\n * 409 SqlExtensionNotInstalled - SQL extension not installed.\n\n * 409 MissingMoveResources - Cannot move resources(s) because some resources are missing in the request.\n\n * 409 OperationInProgress - Operation in progress on resource already.\n\n * 409 OperationCanceled - Operation Cancelled.\n\n * 500 RPGenericSystem - System Failure when calling other Resource Provider.\n\n * 500 UnExpectedErrorOccurred - Unexpected error occurred.\n\n * 500 OperationTimeout - Operation timed out.",
4040
"schema": {
41-
"$ref": "./definitions/common.json#/definitions/ErrorResponse"
41+
"$ref": "./common.json#/definitions/ErrorResponse"
4242
}
4343
}
4444
},
@@ -71,13 +71,13 @@
7171
"200": {
7272
"description": "OK",
7373
"schema": {
74-
"$ref": "./definitions/sqlManagedInstances.json#/definitions/SqlManagedInstanceListResult"
74+
"$ref": "./sqlManagedInstances.json#/definitions/SqlManagedInstanceListResult"
7575
}
7676
},
7777
"default": {
7878
"description": "*** Error Responses: ***\n\n * 400 InvalidParameterValue - An invalid value was given to parameter.\n\n * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource.\n\n * 404 ResourceNotFound - The requested resource was not found.",
7979
"schema": {
80-
"$ref": "./definitions/common.json#/definitions/ErrorResponse"
80+
"$ref": "./common.json#/definitions/ErrorResponse"
8181
}
8282
}
8383
},
@@ -114,13 +114,13 @@
114114
"200": {
115115
"description": "OK",
116116
"schema": {
117-
"$ref": "./definitions/sqlManagedInstances.json#/definitions/SqlManagedInstanceListResult"
117+
"$ref": "./sqlManagedInstances.json#/definitions/SqlManagedInstanceListResult"
118118
}
119119
},
120120
"default": {
121121
"description": "*** Error Responses: ***",
122122
"schema": {
123-
"$ref": "./definitions/common.json#/definitions/ErrorResponse"
123+
"$ref": "./common.json#/definitions/ErrorResponse"
124124
}
125125
}
126126
},
@@ -164,13 +164,13 @@
164164
"200": {
165165
"description": "OK",
166166
"schema": {
167-
"$ref": "./definitions/sqlManagedInstances.json#/definitions/SqlManagedInstance"
167+
"$ref": "./sqlManagedInstances.json#/definitions/SqlManagedInstance"
168168
}
169169
},
170170
"default": {
171171
"description": "*** Error Responses: ***",
172172
"schema": {
173-
"$ref": "./definitions/common.json#/definitions/ErrorResponse"
173+
"$ref": "./common.json#/definitions/ErrorResponse"
174174
}
175175
}
176176
},
@@ -207,7 +207,7 @@
207207
"description": "The SQL Managed Instance to be created or updated.",
208208
"required": true,
209209
"schema": {
210-
"$ref": "./definitions/sqlManagedInstances.json#/definitions/SqlManagedInstance"
210+
"$ref": "./sqlManagedInstances.json#/definitions/SqlManagedInstance"
211211
}
212212
},
213213
{
@@ -218,19 +218,19 @@
218218
"200": {
219219
"description": "OK",
220220
"schema": {
221-
"$ref": "./definitions/sqlManagedInstances.json#/definitions/SqlManagedInstance"
221+
"$ref": "./sqlManagedInstances.json#/definitions/SqlManagedInstance"
222222
}
223223
},
224224
"201": {
225225
"description": "Created",
226226
"schema": {
227-
"$ref": "./definitions/sqlManagedInstances.json#/definitions/SqlManagedInstance"
227+
"$ref": "./sqlManagedInstances.json#/definitions/SqlManagedInstance"
228228
}
229229
},
230230
"default": {
231231
"description": "*** Error Responses: ***",
232232
"schema": {
233-
"$ref": "./definitions/common.json#/definitions/ErrorResponse"
233+
"$ref": "./common.json#/definitions/ErrorResponse"
234234
}
235235
}
236236
},
@@ -279,7 +279,7 @@
279279
"default": {
280280
"description": "*** Error Responses: ***",
281281
"schema": {
282-
"$ref": "./definitions/common.json#/definitions/ErrorResponse"
282+
"$ref": "./common.json#/definitions/ErrorResponse"
283283
}
284284
},
285285
"204": {
@@ -320,7 +320,7 @@
320320
"description": "The SQL Managed Instance.",
321321
"required": true,
322322
"schema": {
323-
"$ref": "./definitions/sqlManagedInstances.json#/definitions/SqlManagedInstanceUpdate"
323+
"$ref": "./sqlManagedInstances.json#/definitions/SqlManagedInstanceUpdate"
324324
}
325325
},
326326
{
@@ -331,13 +331,13 @@
331331
"200": {
332332
"description": "OK",
333333
"schema": {
334-
"$ref": "./definitions/sqlManagedInstances.json#/definitions/SqlManagedInstance"
334+
"$ref": "./sqlManagedInstances.json#/definitions/SqlManagedInstance"
335335
}
336336
},
337337
"default": {
338338
"description": "*** Error Responses: ***",
339339
"schema": {
340-
"$ref": "./definitions/common.json#/definitions/ErrorResponse"
340+
"$ref": "./common.json#/definitions/ErrorResponse"
341341
}
342342
}
343343
},
@@ -367,13 +367,13 @@
367367
"200": {
368368
"description": "OK",
369369
"schema": {
370-
"$ref": "./definitions/sqlServerInstances.json#/definitions/SqlServerInstanceListResult"
370+
"$ref": "./sqlServerInstances.json#/definitions/SqlServerInstanceListResult"
371371
}
372372
},
373373
"default": {
374374
"description": "*** Error Responses: ***\n\n * 400 InvalidParameterValue - An invalid value was given to parameter.\n\n * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource.\n\n * 404 ResourceNotFound - The requested resource was not found.",
375375
"schema": {
376-
"$ref": "./definitions/common.json#/definitions/ErrorResponse"
376+
"$ref": "./common.json#/definitions/ErrorResponse"
377377
}
378378
}
379379
},
@@ -410,13 +410,13 @@
410410
"200": {
411411
"description": "OK",
412412
"schema": {
413-
"$ref": "./definitions/sqlServerInstances.json#/definitions/SqlServerInstanceListResult"
413+
"$ref": "./sqlServerInstances.json#/definitions/SqlServerInstanceListResult"
414414
}
415415
},
416416
"default": {
417417
"description": "*** Error Responses: ***",
418418
"schema": {
419-
"$ref": "./definitions/common.json#/definitions/ErrorResponse"
419+
"$ref": "./common.json#/definitions/ErrorResponse"
420420
}
421421
}
422422
},
@@ -460,13 +460,13 @@
460460
"200": {
461461
"description": "OK",
462462
"schema": {
463-
"$ref": "./definitions/sqlServerInstances.json#/definitions/SqlServerInstance"
463+
"$ref": "./sqlServerInstances.json#/definitions/SqlServerInstance"
464464
}
465465
},
466466
"default": {
467467
"description": "*** Error Responses: ***",
468468
"schema": {
469-
"$ref": "./definitions/common.json#/definitions/ErrorResponse"
469+
"$ref": "./common.json#/definitions/ErrorResponse"
470470
}
471471
}
472472
},
@@ -503,7 +503,7 @@
503503
"description": "The SQL Server Instance to be created or updated.",
504504
"required": true,
505505
"schema": {
506-
"$ref": "./definitions/sqlServerInstances.json#/definitions/SqlServerInstance"
506+
"$ref": "./sqlServerInstances.json#/definitions/SqlServerInstance"
507507
}
508508
},
509509
{
@@ -514,19 +514,19 @@
514514
"200": {
515515
"description": "OK",
516516
"schema": {
517-
"$ref": "./definitions/sqlServerInstances.json#/definitions/SqlServerInstance"
517+
"$ref": "./sqlServerInstances.json#/definitions/SqlServerInstance"
518518
}
519519
},
520520
"201": {
521521
"description": "Created",
522522
"schema": {
523-
"$ref": "./definitions/sqlServerInstances.json#/definitions/SqlServerInstance"
523+
"$ref": "./sqlServerInstances.json#/definitions/SqlServerInstance"
524524
}
525525
},
526526
"default": {
527527
"description": "*** Error Responses: ***",
528528
"schema": {
529-
"$ref": "./definitions/common.json#/definitions/ErrorResponse"
529+
"$ref": "./common.json#/definitions/ErrorResponse"
530530
}
531531
}
532532
},
@@ -575,7 +575,7 @@
575575
"default": {
576576
"description": "*** Error Responses: ***",
577577
"schema": {
578-
"$ref": "./definitions/common.json#/definitions/ErrorResponse"
578+
"$ref": "./common.json#/definitions/ErrorResponse"
579579
}
580580
},
581581
"204": {
@@ -616,7 +616,7 @@
616616
"description": "The SQL Server Instance.",
617617
"required": true,
618618
"schema": {
619-
"$ref": "./definitions/sqlServerInstances.json#/definitions/SqlServerInstanceUpdate"
619+
"$ref": "./sqlServerInstances.json#/definitions/SqlServerInstanceUpdate"
620620
}
621621
},
622622
{
@@ -627,13 +627,13 @@
627627
"200": {
628628
"description": "OK",
629629
"schema": {
630-
"$ref": "./definitions/sqlServerInstances.json#/definitions/SqlServerInstance"
630+
"$ref": "./sqlServerInstances.json#/definitions/SqlServerInstance"
631631
}
632632
},
633633
"default": {
634634
"description": "*** Error Responses: ***",
635635
"schema": {
636-
"$ref": "./definitions/common.json#/definitions/ErrorResponse"
636+
"$ref": "./common.json#/definitions/ErrorResponse"
637637
}
638638
}
639639
},
@@ -663,13 +663,13 @@
663663
"200": {
664664
"description": "OK",
665665
"schema": {
666-
"$ref": "./definitions/dataControllers.json#/definitions/PageOfDataControllerResource"
666+
"$ref": "./dataControllers.json#/definitions/PageOfDataControllerResource"
667667
}
668668
},
669669
"default": {
670670
"description": "*** Error Responses: ***",
671671
"schema": {
672-
"$ref": "./definitions/common.json#/definitions/ErrorResponse"
672+
"$ref": "./common.json#/definitions/ErrorResponse"
673673
}
674674
}
675675
},
@@ -705,13 +705,13 @@
705705
"200": {
706706
"description": "OK",
707707
"schema": {
708-
"$ref": "./definitions/dataControllers.json#/definitions/PageOfDataControllerResource"
708+
"$ref": "./dataControllers.json#/definitions/PageOfDataControllerResource"
709709
}
710710
},
711711
"default": {
712712
"description": "*** Error Responses: ***",
713713
"schema": {
714-
"$ref": "./definitions/common.json#/definitions/ErrorResponse"
714+
"$ref": "./common.json#/definitions/ErrorResponse"
715715
}
716716
}
717717
},
@@ -745,7 +745,7 @@
745745
"required": true,
746746
"in": "body",
747747
"schema": {
748-
"$ref": "./definitions/dataControllers.json#/definitions/DataControllerResource"
748+
"$ref": "./dataControllers.json#/definitions/DataControllerResource"
749749
}
750750
},
751751
{
@@ -763,19 +763,19 @@
763763
"200": {
764764
"description": "OK",
765765
"schema": {
766-
"$ref": "./definitions/dataControllers.json#/definitions/DataControllerResource"
766+
"$ref": "./dataControllers.json#/definitions/DataControllerResource"
767767
}
768768
},
769769
"201": {
770770
"description": "Created",
771771
"schema": {
772-
"$ref": "./definitions/dataControllers.json#/definitions/DataControllerResource"
772+
"$ref": "./dataControllers.json#/definitions/DataControllerResource"
773773
}
774774
},
775775
"default": {
776776
"description": "*** Error Responses: ***",
777777
"schema": {
778-
"$ref": "./definitions/common.json#/definitions/ErrorResponse"
778+
"$ref": "./common.json#/definitions/ErrorResponse"
779779
}
780780
}
781781
},
@@ -823,7 +823,7 @@
823823
"default": {
824824
"description": "*** Error Responses: ***",
825825
"schema": {
826-
"$ref": "./definitions/common.json#/definitions/ErrorResponse"
826+
"$ref": "./common.json#/definitions/ErrorResponse"
827827
}
828828
},
829829
"204": {
@@ -865,13 +865,13 @@
865865
"200": {
866866
"description": "OK",
867867
"schema": {
868-
"$ref": "./definitions/dataControllers.json#/definitions/DataControllerResource"
868+
"$ref": "./dataControllers.json#/definitions/DataControllerResource"
869869
}
870870
},
871871
"default": {
872872
"description": "*** Error Responses: ***",
873873
"schema": {
874-
"$ref": "./definitions/common.json#/definitions/ErrorResponse"
874+
"$ref": "./common.json#/definitions/ErrorResponse"
875875
}
876876
}
877877
},
@@ -910,21 +910,21 @@
910910
"required": true,
911911
"in": "body",
912912
"schema": {
913-
"$ref": "./definitions/dataControllers.json#/definitions/DataControllerUpdate"
913+
"$ref": "./dataControllers.json#/definitions/DataControllerUpdate"
914914
}
915915
}
916916
],
917917
"responses": {
918918
"200": {
919919
"description": "OK",
920920
"schema": {
921-
"$ref": "./definitions/dataControllers.json#/definitions/DataControllerResource"
921+
"$ref": "./dataControllers.json#/definitions/DataControllerResource"
922922
}
923923
},
924924
"default": {
925925
"description": "*** Error Responses: ***",
926926
"schema": {
927-
"$ref": "./definitions/common.json#/definitions/ErrorResponse"
927+
"$ref": "./common.json#/definitions/ErrorResponse"
928928
}
929929
}
930930
},

specification/azurearcdata/resource-manager/Microsoft.AzureArcData/stable/2021-11-01/definitions/common.json renamed to specification/azurearcdata/resource-manager/Microsoft.AzureArcData/stable/2021-11-01/common.json

File renamed without changes.

specification/azurearcdata/resource-manager/Microsoft.AzureArcData/stable/2021-11-01/definitions/dataControllers.json renamed to specification/azurearcdata/resource-manager/Microsoft.AzureArcData/stable/2021-11-01/dataControllers.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"type": "object",
1313
"allOf": [
1414
{
15-
"$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource"
15+
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource"
1616
}
1717
],
1818
"properties": {

specification/azurearcdata/resource-manager/Microsoft.AzureArcData/stable/2021-11-01/definitions/operations.json renamed to specification/azurearcdata/resource-manager/Microsoft.AzureArcData/stable/2021-11-01/operations.json

File renamed without changes.

specification/azurearcdata/resource-manager/Microsoft.AzureArcData/stable/2021-11-01/definitions/sqlManagedInstances.json renamed to specification/azurearcdata/resource-manager/Microsoft.AzureArcData/stable/2021-11-01/sqlManagedInstances.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"type": "object",
1313
"allOf": [
1414
{
15-
"$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource"
15+
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource"
1616
}
1717
],
1818
"properties": {

specification/azurearcdata/resource-manager/Microsoft.AzureArcData/stable/2021-11-01/definitions/sqlServerInstances.json renamed to specification/azurearcdata/resource-manager/Microsoft.AzureArcData/stable/2021-11-01/sqlServerInstances.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"type": "object",
1313
"allOf": [
1414
{
15-
"$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource"
15+
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource"
1616
}
1717
],
1818
"properties": {

0 commit comments

Comments
 (0)