Skip to content

Commit 8d74377

Browse files
vertex-sdk-botcopybara-github
authored andcommitted
fix: Send display_name when creating a sandbox environment template.
The `display_name` parameter of the sandbox template create method was routed with `_parent.*`, but it is a top-level request parameter with no parent object, so it was silently dropped from the request body (never sent to the backend). Route it to the request body (`*`) so `display_name` is correctly included. PiperOrigin-RevId: 952240948
1 parent e46d239 commit 8d74377

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

agentplatform/_genai/sandbox_templates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def _CreateSandboxEnvironmentTemplateRequestParameters_to_vertex(
7979
)
8080

8181
if getv(from_object, ["display_name"]) is not None:
82-
setv(parent_object, ["displayName"], getv(from_object, ["display_name"]))
82+
setv(to_object, ["displayName"], getv(from_object, ["display_name"]))
8383

8484
return to_object
8585

0 commit comments

Comments
 (0)