Skip to content

Commit ea44d9d

Browse files
feat(AIP-193): Include metadata and help link in example error (#1268)
* feat(AIP-193): Include metadata and help link in example error * Update 0193.md
1 parent c5f92af commit ea44d9d

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

aip/general/0193.md

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,19 +47,29 @@ following:
4747
"details": [
4848
{
4949
"@type": "type.googleapis.com/google.rpc.ErrorInfo",
50-
"reason": "STOCKOUT",
50+
"reason": "RESOURCE_AVAILABILITY",
5151
"domain": "compute.googleapis.com",
5252
"metadata": {
5353
"zone": "us-east1-a",
5454
"vmType": "e2-medium",
55-
"attachment": "local-ssd=3,nvidia-t4=2"
56-
}
57-
},
58-
{
55+
"attachment": "local-ssd=3,nvidia-t4=2",
56+
"zonesWithCapacity": "us-central1-f,us-central1-c"
57+
}
58+
},
59+
{
5960
"@type": "type.googleapis.com/google.rpc.LocalizedMessage",
6061
"locale": "en-US",
61-
"message": "A e2-medium with local-ssd=3,nvidia-t4=2 is currently unavailable in the us-east1-a zone.\nCapacity changes frequently, so try your request in a different zone, with a different VM hardware configuration, or at a later time. For more information, see troubleshooting documentation."
62-
}
62+
"message": "An <e2-medium> VM instance with <local-ssd=3,nvidia-t4=2> is currently unavailable in the <us-east1-a> zone.\n Consider trying your request in the <us-central1-f,us-central1-c> zone(s), which currently has/have capacity to accommodate your request.\n Alternatively, you can try your request again with a different VM hardware configuration or at a later time. For more information, see the troubleshooting documentation."
63+
},
64+
{
65+
"@type": "type.googleapis.com/google.rpc.Help",
66+
"links": [
67+
{
68+
"description": "troubleshooting documentation",
69+
"url": "https://cloud.google.com/compute/docs/resource-error"
70+
}
71+
]
72+
}
6373
]
6474
}
6575
}

0 commit comments

Comments
 (0)