Skip to content

Commit

Permalink
fix lro final-state-via and revert change of ErrorResponse (Azure#23544)
Browse files Browse the repository at this point in the history
* fix lro final-state-via

* revert replication role

* revert cloudError
  • Loading branch information
xiaoxuqi-ms authored and JoshLove-msft committed Apr 25, 2023
1 parent 9949375 commit d43ca8a
Show file tree
Hide file tree
Showing 10 changed files with 133 additions and 59 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
"$ref": "#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -148,7 +148,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
"$ref": "#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -195,7 +195,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
"$ref": "#/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/v2/types.json#/definitions/ErrorResponse"
"$ref": "#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -318,6 +318,17 @@
}
},
"description": "A List of azure ad administrators."
},
"CloudError": {
"type": "object",
"x-ms-external": true,
"properties": {
"error": {
"$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse",
"description": "The resource management error response."
}
},
"description": "An error response from the Batch service."
}
},
"parameters": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
"$ref": "#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -116,7 +116,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
"$ref": "#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -158,7 +158,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
"$ref": "#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -225,6 +225,17 @@
}
},
"description": "A list of server backups."
},
"CloudError": {
"type": "object",
"x-ms-external": true,
"properties": {
"error": {
"$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse",
"description": "The resource management error response."
}
},
"description": "An error response from the Batch service."
}
},
"parameters": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,7 @@
}
}
},
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "location"
}
"x-ms-long-running-operation": true
},
"patch": {
"tags": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,11 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
"$ref": "#/definitions/CloudError"
}
}
},
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "location"
}
"x-ms-long-running-operation": true
},
"patch": {
"tags": [
Expand Down Expand Up @@ -154,7 +151,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
"$ref": "#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -198,7 +195,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
"$ref": "#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -257,7 +254,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
"$ref": "#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -315,7 +312,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
"$ref": "#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -504,6 +501,17 @@
}
},
"description": "A list of server configurations to update."
},
"CloudError": {
"type": "object",
"x-ms-external": true,
"properties": {
"error": {
"$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse",
"description": "The resource management error response."
}
},
"description": "An error response from the Batch service."
}
},
"parameters": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
"$ref": "#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -148,14 +148,11 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
"$ref": "#/definitions/CloudError"
}
}
},
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "location"
}
"x-ms-long-running-operation": true
},
"get": {
"tags": [
Expand Down Expand Up @@ -195,7 +192,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
"$ref": "#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -237,7 +234,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
"$ref": "#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -299,6 +296,17 @@
}
},
"description": "A List of databases."
},
"CloudError": {
"type": "object",
"x-ms-external": true,
"properties": {
"error": {
"$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse",
"description": "The resource management error response."
}
},
"description": "An error response from the Batch service."
}
},
"parameters": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
"$ref": "#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -148,14 +148,11 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
"$ref": "#/definitions/CloudError"
}
}
},
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "location"
}
"x-ms-long-running-operation": true
},
"get": {
"tags": [
Expand Down Expand Up @@ -195,7 +192,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
"$ref": "#/definitions/CloudError"
}
}
}
Expand Down Expand Up @@ -237,7 +234,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
"$ref": "#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -308,6 +305,17 @@
}
},
"description": "A list of firewall rules."
},
"CloudError": {
"type": "object",
"x-ms-external": true,
"properties": {
"error": {
"$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse",
"description": "The resource management error response."
}
},
"description": "An error response from the Batch service."
}
},
"parameters": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@
},
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "location"
"final-state-via": "azure-async-operation"
}
},
"get": {
Expand Down
Loading

0 comments on commit d43ca8a

Please sign in to comment.