Skip to content

Commit

Permalink
[synapse][mgmt] extract common definition for CloudError (Azure#18762)
Browse files Browse the repository at this point in the history
* Update readme.python.md

* update

* fix
  • Loading branch information
msyyc authored and FredericHeem committed May 16, 2022
1 parent b7745b6 commit 4538d60
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 112 deletions.
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"
]
}
},
"parameters": {
Expand Down

0 comments on commit 4538d60

Please sign in to comment.