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

[Hub Generated] Review request for Microsoft.KeyVault to add version stable/2019-09-01 #12475

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 @@ -443,6 +443,12 @@
"schema": {
"$ref": "#/definitions/VaultListResult"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
},
"x-ms-pageable": {
Expand Down Expand Up @@ -489,6 +495,12 @@
"schema": {
"$ref": "#/definitions/VaultListResult"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
},
"x-ms-pageable": {
Expand Down Expand Up @@ -528,6 +540,12 @@
"schema": {
"$ref": "#/definitions/DeletedVaultListResult"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
},
"x-ms-pageable": {
Expand Down Expand Up @@ -719,6 +737,12 @@
"schema": {
"$ref": "#/definitions/ResourceListResult"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
},
"x-ms-pageable": {
Expand Down Expand Up @@ -764,6 +788,12 @@
"schema": {
"$ref": "#/definitions/CheckNameAvailabilityResult"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
},
"x-ms-examples": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@
"schema": {
"$ref": "#/definitions/OperationListResult"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
},
"x-ms-pageable": {
Expand Down Expand Up @@ -152,6 +158,29 @@
"description": "Blob duration of specification."
}
}
},
"CloudError": {
"description": "An error response from Key Vault resource provider",
"properties": {
"error": {
Copy link
Member

Choose a reason for hiding this comment

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

Why is the actual error nested? Is this common of mgmt plane?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I believed so. Both Key.json and KeyVault.json use the same model.

"$ref": "#/definitions/CloudErrorBody"
}
},
"x-ms-external": true
},
"CloudErrorBody": {
"description": "An error response from Key Vault resource provider",
"properties": {
"code": {
"type": "string",
"description": "Error code. This is a mnemonic that can be consumed programmatically."
},
"message": {
"type": "string",
"description": "User friendly error message. The message is typically localized and may vary with service version."
}
},
"x-ms-external": true
}
},
"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": "#/definitions/ResponseError"
"$ref": "#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -151,7 +151,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ResponseError"
"$ref": "#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -212,7 +212,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ResponseError"
"$ref": "#/definitions/CloudError"
}
}
},
Expand Down Expand Up @@ -291,21 +291,25 @@
}
},
"definitions": {
"ResponseError": {
"CloudError": {
"description": "An error response from Key Vault resource provider",
"properties": {
"error": {
"description": "An error response from Key Vault resource provider",
"properties": {
"code": {
"type": "string",
"description": "Error code. This is a mnemonic that can be consumed programmatically."
},
"message": {
"type": "string",
"description": "User friendly error message. The message is typically localized and may vary with service version."
}
}
"$ref": "#/definitions/CloudErrorBody"
}
},
"x-ms-external": true
},
"CloudErrorBody": {
"description": "An error response from Key Vault resource provider",
"properties": {
"code": {
"type": "string",
"description": "Error code. This is a mnemonic that can be consumed programmatically."
},
"message": {
"type": "string",
"description": "User friendly error message. The message is typically localized and may vary with service version."
}
},
"x-ms-external": true
Expand Down