Skip to content

Commit

Permalink
Use CloudError instead of ErrorResponse to align with preview version…
Browse files Browse the repository at this point in the history
…s and our back-end. (#17472)
  • Loading branch information
anat-gilenson authored Jan 28, 2022
1 parent a435926 commit fb36347
Show file tree
Hide file tree
Showing 9 changed files with 83 additions and 55 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -124,7 +124,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -182,7 +182,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -225,7 +225,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -270,7 +270,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -321,7 +321,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -376,7 +376,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -422,7 +422,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -464,7 +464,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -512,7 +512,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -118,7 +118,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -170,7 +170,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -213,7 +213,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -139,7 +139,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -194,7 +194,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -237,7 +237,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -130,7 +130,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -182,7 +182,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -225,7 +225,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -270,7 +270,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -315,7 +315,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -372,7 +372,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -424,7 +424,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -479,7 +479,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -525,7 +525,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -570,7 +570,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -627,7 +627,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -679,7 +679,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -734,7 +734,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -780,7 +780,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"default": {
"description": "Error in getting the Sentinel onboarding state",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -125,7 +125,7 @@
"default": {
"description": "Error in creating the Sentinel onboarding state",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -168,7 +168,7 @@
"default": {
"description": "Error in deleting the Sentinel onboarding state",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -210,7 +210,7 @@
"default": {
"description": "Error in listing the Sentinel onboarding states",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
}
Expand Down
Loading

0 comments on commit fb36347

Please sign in to comment.