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

[synapse][mgmt] extract common definition for CloudError #18762

Merged
merged 3 commits into from
Apr 21, 2022
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 @@ -66,7 +66,7 @@
"default": {
"description": "An error response received from the Azure Synapse service.",
"schema": {
"$ref": "#/definitions/CloudError"
"$ref": "../../../../common/v1/types.json#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -127,7 +127,7 @@
"default": {
"description": "An error response received from GET integration runtime operation.",
"schema": {
"$ref": "#/definitions/CloudError"
"$ref": "../../../../common/v1/types.json#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -198,7 +198,7 @@
"default": {
"description": "An error response received from PUT integration runtime operation.",
"schema": {
"$ref": "#/definitions/CloudError"
"$ref": "../../../../common/v1/types.json#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -253,7 +253,7 @@
"default": {
"description": "An error response received from DELETE integration runtime operation.",
"schema": {
"$ref": "#/definitions/CloudError"
"$ref": "../../../../common/v1/types.json#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -313,7 +313,7 @@
"default": {
"description": "An error response received from the Azure Synapse service.",
"schema": {
"$ref": "#/definitions/CloudError"
"$ref": "../../../../common/v1/types.json#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -363,7 +363,7 @@
"default": {
"description": "An error response received from the Azure Synapse service.",
"schema": {
"$ref": "#/definitions/CloudError"
"$ref": "../../../../common/v1/types.json#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -425,7 +425,7 @@
"default": {
"description": "An error response received from the Azure Synapse service.",
"schema": {
"$ref": "#/definitions/CloudError"
"$ref": "../../../../common/v1/types.json#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -485,7 +485,7 @@
"default": {
"description": "An error response received from the Azure Synapse service.",
"schema": {
"$ref": "#/definitions/CloudError"
"$ref": "../../../../common/v1/types.json#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -550,7 +550,7 @@
"default": {
"description": "An error response received from the Azure Synapse service.",
"schema": {
"$ref": "#/definitions/CloudError"
"$ref": "../../../../common/v1/types.json#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -608,7 +608,7 @@
"default": {
"description": "An error response received from the Azure Synapse service.",
"schema": {
"$ref": "#/definitions/CloudError"
"$ref": "../../../../common/v1/types.json#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -656,7 +656,7 @@
"default": {
"description": "An error response received from the Azure Synapse service.",
"schema": {
"$ref": "#/definitions/CloudError"
"$ref": "../../../../common/v1/types.json#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -706,7 +706,7 @@
"default": {
"description": "An error response received from the Azure Synapse service.",
"schema": {
"$ref": "#/definitions/CloudError"
"$ref": "../../../../common/v1/types.json#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -760,7 +760,7 @@
"default": {
"description": "An error response received from the Azure Synapse service.",
"schema": {
"$ref": "#/definitions/CloudError"
"$ref": "../../../../common/v1/types.json#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -816,7 +816,7 @@
"default": {
"description": "An error response received from the Azure Synapse service.",
"schema": {
"$ref": "#/definitions/CloudError"
"$ref": "../../../../common/v1/types.json#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -879,7 +879,7 @@
"default": {
"description": "An error response received from the Azure Synapse service.",
"schema": {
"$ref": "#/definitions/CloudError"
"$ref": "../../../../common/v1/types.json#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -932,7 +932,7 @@
"default": {
"description": "An error response received from the Azure Synapse service.",
"schema": {
"$ref": "#/definitions/CloudError"
"$ref": "../../../../common/v1/types.json#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -985,7 +985,7 @@
"default": {
"description": "An error response received from the Azure Synapse service.",
"schema": {
"$ref": "#/definitions/CloudError"
"$ref": "../../../../common/v1/types.json#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -1038,7 +1038,7 @@
"default": {
"description": "An error response received from the Azure Synapse service.",
"schema": {
"$ref": "#/definitions/CloudError"
"$ref": "../../../../common/v1/types.json#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -1095,7 +1095,7 @@
"default": {
"description": "An error response received from the Azure Synapse service.",
"schema": {
"$ref": "#/definitions/CloudError"
"$ref": "../../../../common/v1/types.json#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -1149,7 +1149,7 @@
"default": {
"description": "An error response received from the Azure Synapse service.",
"schema": {
"$ref": "#/definitions/CloudError"
"$ref": "../../../../common/v1/types.json#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -1201,7 +1201,7 @@
"default": {
"description": "An error response received from the Azure Synapse service.",
"schema": {
"$ref": "#/definitions/CloudError"
"$ref": "../../../../common/v1/types.json#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -1254,7 +1254,7 @@
"default": {
"description": "An error response received from the Azure Synapse service.",
"schema": {
"$ref": "#/definitions/CloudError"
"$ref": "../../../../common/v1/types.json#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -2791,51 +2791,6 @@
}
}
},
"CloudError": {
"x-ms-external": true,
"description": "The object that defines the structure of an Azure Synapse error response.",
"type": "object",
"properties": {
"error": {
"x-ms-client-flatten": true,
"description": "Error data",
"$ref": "#/definitions/CloudErrorBody"
}
},
"required": [
"error"
]
},
"CloudErrorBody": {
"x-ms-external": true,
"description": "The object that defines the structure of an Azure Synapse error.",
"type": "object",
"properties": {
"code": {
"description": "Error code.",
"type": "string"
},
"message": {
"description": "Error message.",
"type": "string"
},
"target": {
"description": "Property name/path in request associated with error.",
"type": "string"
},
"details": {
"description": "Array with additional error details.",
"type": "array",
"items": {
"$ref": "#/definitions/CloudError"
}
}
},
"required": [
"code",
"message"
]
},
"UpdateIntegrationRuntimeRequest": {
"description": "Update integration runtime request.",
"type": "object",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7522,51 +7522,6 @@
}
}
}
},
"CloudError": {
"x-ms-external": true,
"description": "The object that defines the structure of an Azure Synapse error response.",
"type": "object",
"properties": {
"error": {
"x-ms-client-flatten": true,
"description": "Error data",
"$ref": "#/definitions/CloudErrorBody"
}
},
"required": [
"error"
]
},
"CloudErrorBody": {
"x-ms-external": true,
"description": "The object that defines the structure of an Azure Synapse error.",
"type": "object",
"properties": {
"code": {
"description": "Error code.",
"type": "string"
},
"message": {
"description": "Error message.",
"type": "string"
},
"target": {
"description": "Property name/path in request associated with error.",
"type": "string"
},
"details": {
"description": "Array with additional error details.",
"type": "array",
"items": {
"$ref": "#/definitions/CloudError"
}
}
},
"required": [
"code",
"message"
]
Comment on lines -7526 to -7569
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unused definition

}
},
"parameters": {
Expand Down