Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move swagger json file out of definitions folder #16700

Merged
merged 5 commits into from
Nov 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@
"200": {
"description": "Successfully retrieved operations.",
"schema": {
"$ref": "./definitions/operations.json#/definitions/OperationListResult"
"$ref": "./operations.json#/definitions/OperationListResult"
}
},
"default": {
"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.",
"schema": {
"$ref": "./definitions/common.json#/definitions/ErrorResponse"
"$ref": "./common.json#/definitions/ErrorResponse"
}
}
},
Expand Down Expand Up @@ -71,13 +71,13 @@
"200": {
"description": "OK",
"schema": {
"$ref": "./definitions/sqlManagedInstances.json#/definitions/SqlManagedInstanceListResult"
"$ref": "./sqlManagedInstances.json#/definitions/SqlManagedInstanceListResult"
}
},
"default": {
"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.",
"schema": {
"$ref": "./definitions/common.json#/definitions/ErrorResponse"
"$ref": "./common.json#/definitions/ErrorResponse"
}
}
},
Expand Down Expand Up @@ -114,13 +114,13 @@
"200": {
"description": "OK",
"schema": {
"$ref": "./definitions/sqlManagedInstances.json#/definitions/SqlManagedInstanceListResult"
"$ref": "./sqlManagedInstances.json#/definitions/SqlManagedInstanceListResult"
}
},
"default": {
"description": "*** Error Responses: ***",
"schema": {
"$ref": "./definitions/common.json#/definitions/ErrorResponse"
"$ref": "./common.json#/definitions/ErrorResponse"
}
}
},
Expand Down Expand Up @@ -164,13 +164,13 @@
"200": {
"description": "OK",
"schema": {
"$ref": "./definitions/sqlManagedInstances.json#/definitions/SqlManagedInstance"
"$ref": "./sqlManagedInstances.json#/definitions/SqlManagedInstance"
}
},
"default": {
"description": "*** Error Responses: ***",
"schema": {
"$ref": "./definitions/common.json#/definitions/ErrorResponse"
"$ref": "./common.json#/definitions/ErrorResponse"
}
}
},
Expand Down Expand Up @@ -207,7 +207,7 @@
"description": "The SQL Managed Instance to be created or updated.",
"required": true,
"schema": {
"$ref": "./definitions/sqlManagedInstances.json#/definitions/SqlManagedInstance"
"$ref": "./sqlManagedInstances.json#/definitions/SqlManagedInstance"
}
},
{
Expand All @@ -218,19 +218,19 @@
"200": {
"description": "OK",
"schema": {
"$ref": "./definitions/sqlManagedInstances.json#/definitions/SqlManagedInstance"
"$ref": "./sqlManagedInstances.json#/definitions/SqlManagedInstance"
}
},
"201": {
"description": "Created",
"schema": {
"$ref": "./definitions/sqlManagedInstances.json#/definitions/SqlManagedInstance"
"$ref": "./sqlManagedInstances.json#/definitions/SqlManagedInstance"
}
},
"default": {
"description": "*** Error Responses: ***",
"schema": {
"$ref": "./definitions/common.json#/definitions/ErrorResponse"
"$ref": "./common.json#/definitions/ErrorResponse"
}
}
},
Expand Down Expand Up @@ -279,7 +279,7 @@
"default": {
"description": "*** Error Responses: ***",
"schema": {
"$ref": "./definitions/common.json#/definitions/ErrorResponse"
"$ref": "./common.json#/definitions/ErrorResponse"
}
},
"204": {
Expand Down Expand Up @@ -320,7 +320,7 @@
"description": "The SQL Managed Instance.",
"required": true,
"schema": {
"$ref": "./definitions/sqlManagedInstances.json#/definitions/SqlManagedInstanceUpdate"
"$ref": "./sqlManagedInstances.json#/definitions/SqlManagedInstanceUpdate"
}
},
{
Expand All @@ -331,13 +331,13 @@
"200": {
"description": "OK",
"schema": {
"$ref": "./definitions/sqlManagedInstances.json#/definitions/SqlManagedInstance"
"$ref": "./sqlManagedInstances.json#/definitions/SqlManagedInstance"
}
},
"default": {
"description": "*** Error Responses: ***",
"schema": {
"$ref": "./definitions/common.json#/definitions/ErrorResponse"
"$ref": "./common.json#/definitions/ErrorResponse"
}
}
},
Expand Down Expand Up @@ -367,13 +367,13 @@
"200": {
"description": "OK",
"schema": {
"$ref": "./definitions/sqlServerInstances.json#/definitions/SqlServerInstanceListResult"
"$ref": "./sqlServerInstances.json#/definitions/SqlServerInstanceListResult"
}
},
"default": {
"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.",
"schema": {
"$ref": "./definitions/common.json#/definitions/ErrorResponse"
"$ref": "./common.json#/definitions/ErrorResponse"
}
}
},
Expand Down Expand Up @@ -410,13 +410,13 @@
"200": {
"description": "OK",
"schema": {
"$ref": "./definitions/sqlServerInstances.json#/definitions/SqlServerInstanceListResult"
"$ref": "./sqlServerInstances.json#/definitions/SqlServerInstanceListResult"
}
},
"default": {
"description": "*** Error Responses: ***",
"schema": {
"$ref": "./definitions/common.json#/definitions/ErrorResponse"
"$ref": "./common.json#/definitions/ErrorResponse"
}
}
},
Expand Down Expand Up @@ -460,13 +460,13 @@
"200": {
"description": "OK",
"schema": {
"$ref": "./definitions/sqlServerInstances.json#/definitions/SqlServerInstance"
"$ref": "./sqlServerInstances.json#/definitions/SqlServerInstance"
}
},
"default": {
"description": "*** Error Responses: ***",
"schema": {
"$ref": "./definitions/common.json#/definitions/ErrorResponse"
"$ref": "./common.json#/definitions/ErrorResponse"
}
}
},
Expand Down Expand Up @@ -503,7 +503,7 @@
"description": "The SQL Server Instance to be created or updated.",
"required": true,
"schema": {
"$ref": "./definitions/sqlServerInstances.json#/definitions/SqlServerInstance"
"$ref": "./sqlServerInstances.json#/definitions/SqlServerInstance"
}
},
{
Expand All @@ -514,19 +514,19 @@
"200": {
"description": "OK",
"schema": {
"$ref": "./definitions/sqlServerInstances.json#/definitions/SqlServerInstance"
"$ref": "./sqlServerInstances.json#/definitions/SqlServerInstance"
}
},
"201": {
"description": "Created",
"schema": {
"$ref": "./definitions/sqlServerInstances.json#/definitions/SqlServerInstance"
"$ref": "./sqlServerInstances.json#/definitions/SqlServerInstance"
}
},
"default": {
"description": "*** Error Responses: ***",
"schema": {
"$ref": "./definitions/common.json#/definitions/ErrorResponse"
"$ref": "./common.json#/definitions/ErrorResponse"
}
}
},
Expand Down Expand Up @@ -575,7 +575,7 @@
"default": {
"description": "*** Error Responses: ***",
"schema": {
"$ref": "./definitions/common.json#/definitions/ErrorResponse"
"$ref": "./common.json#/definitions/ErrorResponse"
}
},
"204": {
Expand Down Expand Up @@ -616,7 +616,7 @@
"description": "The SQL Server Instance.",
"required": true,
"schema": {
"$ref": "./definitions/sqlServerInstances.json#/definitions/SqlServerInstanceUpdate"
"$ref": "./sqlServerInstances.json#/definitions/SqlServerInstanceUpdate"
}
},
{
Expand All @@ -627,13 +627,13 @@
"200": {
"description": "OK",
"schema": {
"$ref": "./definitions/sqlServerInstances.json#/definitions/SqlServerInstance"
"$ref": "./sqlServerInstances.json#/definitions/SqlServerInstance"
}
},
"default": {
"description": "*** Error Responses: ***",
"schema": {
"$ref": "./definitions/common.json#/definitions/ErrorResponse"
"$ref": "./common.json#/definitions/ErrorResponse"
}
}
},
Expand Down Expand Up @@ -663,13 +663,13 @@
"200": {
"description": "OK",
"schema": {
"$ref": "./definitions/dataControllers.json#/definitions/PageOfDataControllerResource"
"$ref": "./dataControllers.json#/definitions/PageOfDataControllerResource"
}
},
"default": {
"description": "*** Error Responses: ***",
"schema": {
"$ref": "./definitions/common.json#/definitions/ErrorResponse"
"$ref": "./common.json#/definitions/ErrorResponse"
}
}
},
Expand Down Expand Up @@ -705,13 +705,13 @@
"200": {
"description": "OK",
"schema": {
"$ref": "./definitions/dataControllers.json#/definitions/PageOfDataControllerResource"
"$ref": "./dataControllers.json#/definitions/PageOfDataControllerResource"
}
},
"default": {
"description": "*** Error Responses: ***",
"schema": {
"$ref": "./definitions/common.json#/definitions/ErrorResponse"
"$ref": "./common.json#/definitions/ErrorResponse"
}
}
},
Expand Down Expand Up @@ -745,7 +745,7 @@
"required": true,
"in": "body",
"schema": {
"$ref": "./definitions/dataControllers.json#/definitions/DataControllerResource"
"$ref": "./dataControllers.json#/definitions/DataControllerResource"
}
},
{
Expand All @@ -763,19 +763,19 @@
"200": {
"description": "OK",
"schema": {
"$ref": "./definitions/dataControllers.json#/definitions/DataControllerResource"
"$ref": "./dataControllers.json#/definitions/DataControllerResource"
}
},
"201": {
"description": "Created",
"schema": {
"$ref": "./definitions/dataControllers.json#/definitions/DataControllerResource"
"$ref": "./dataControllers.json#/definitions/DataControllerResource"
}
},
"default": {
"description": "*** Error Responses: ***",
"schema": {
"$ref": "./definitions/common.json#/definitions/ErrorResponse"
"$ref": "./common.json#/definitions/ErrorResponse"
}
}
},
Expand Down Expand Up @@ -823,7 +823,7 @@
"default": {
"description": "*** Error Responses: ***",
"schema": {
"$ref": "./definitions/common.json#/definitions/ErrorResponse"
"$ref": "./common.json#/definitions/ErrorResponse"
}
},
"204": {
Expand Down Expand Up @@ -865,13 +865,13 @@
"200": {
"description": "OK",
"schema": {
"$ref": "./definitions/dataControllers.json#/definitions/DataControllerResource"
"$ref": "./dataControllers.json#/definitions/DataControllerResource"
}
},
"default": {
"description": "*** Error Responses: ***",
"schema": {
"$ref": "./definitions/common.json#/definitions/ErrorResponse"
"$ref": "./common.json#/definitions/ErrorResponse"
}
}
},
Expand Down Expand Up @@ -910,21 +910,21 @@
"required": true,
"in": "body",
"schema": {
"$ref": "./definitions/dataControllers.json#/definitions/DataControllerUpdate"
"$ref": "./dataControllers.json#/definitions/DataControllerUpdate"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "./definitions/dataControllers.json#/definitions/DataControllerResource"
"$ref": "./dataControllers.json#/definitions/DataControllerResource"
}
},
"default": {
"description": "*** Error Responses: ***",
"schema": {
"$ref": "./definitions/common.json#/definitions/ErrorResponse"
"$ref": "./common.json#/definitions/ErrorResponse"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"type": "object",
"allOf": [
{
"$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource"
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource"
}
],
"properties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"type": "object",
"allOf": [
{
"$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource"
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource"
}
],
"properties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"type": "object",
"allOf": [
{
"$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource"
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource"
}
],
"properties": {
Expand Down