Skip to content

Commit a50f3ca

Browse files
Merge branch 'main' into fix/7119-session-events-leak
2 parents 0288251 + a31d2ba commit a50f3ca

2 files changed

Lines changed: 21 additions & 20 deletions

File tree

agentplatform/_genai/types/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1968,6 +1968,7 @@
19681968
from .common import SandboxEnvironmentTemplateResourceRequirements
19691969
from .common import SandboxEnvironmentTemplateResourceRequirementsDict
19701970
from .common import SandboxEnvironmentTemplateResourceRequirementsOrDict
1971+
from .common import SandboxEnvironmentTemplateState
19711972
from .common import SandboxState
19721973
from .common import SavedQuery
19731974
from .common import SavedQueryDict
@@ -4309,6 +4310,7 @@
43094310
"Protocol",
43104311
"DefaultContainerCategory",
43114312
"PscAutomationState",
4313+
"SandboxEnvironmentTemplateState",
43124314
"PostSnapshotAction",
43134315
"Framework",
43144316
"SkillSource",

agentplatform/_genai/types/common.py

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,23 @@ class PscAutomationState(_common.CaseInSensitiveEnum):
359359
"""The PSC service automation has failed."""
360360

361361

362+
class SandboxEnvironmentTemplateState(_common.CaseInSensitiveEnum):
363+
"""Output only. The state of the sandbox environment template."""
364+
365+
UNSPECIFIED = "UNSPECIFIED"
366+
"""The default value. This value is unused."""
367+
PROVISIONING = "PROVISIONING"
368+
"""Runtime resources are being allocated for the sandbox environment."""
369+
ACTIVE = "ACTIVE"
370+
"""Sandbox runtime is ready for serving."""
371+
DEPROVISIONING = "DEPROVISIONING"
372+
"""Sandbox runtime is halted, performing tear down tasks."""
373+
DELETED = "DELETED"
374+
"""Sandbox has terminated with underlying runtime failure."""
375+
FAILED = "FAILED"
376+
"""Sandbox has failed to provision."""
377+
378+
362379
class PostSnapshotAction(_common.CaseInSensitiveEnum):
363380
"""Input only. Action to take on the source SandboxEnvironment after the snapshot is taken. This field is only used in CreateSandboxEnvironmentSnapshotRequest and it is not stored in the resource."""
364381

@@ -17838,16 +17855,7 @@ class SandboxEnvironmentTemplate(_common.BaseModel):
1783817855
default=None,
1783917856
description="""Identifier. The resource name of the SandboxEnvironmentTemplate. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/sandboxEnvironmentTemplates/{sandbox_environment_template}`""",
1784017857
)
17841-
state: Optional[
17842-
Literal[
17843-
"UNSPECIFIED",
17844-
"PROVISIONING",
17845-
"ACTIVE",
17846-
"DEPROVISIONING",
17847-
"DELETED",
17848-
"FAILED",
17849-
]
17850-
] = Field(
17858+
state: Optional[SandboxEnvironmentTemplateState] = Field(
1785117859
default=None,
1785217860
description="""Output only. The state of the sandbox environment template.""",
1785317861
)
@@ -17886,16 +17894,7 @@ class SandboxEnvironmentTemplateDict(TypedDict, total=False):
1788617894
name: Optional[str]
1788717895
"""Identifier. The resource name of the SandboxEnvironmentTemplate. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/sandboxEnvironmentTemplates/{sandbox_environment_template}`"""
1788817896

17889-
state: Optional[
17890-
Literal[
17891-
"UNSPECIFIED",
17892-
"PROVISIONING",
17893-
"ACTIVE",
17894-
"DEPROVISIONING",
17895-
"DELETED",
17896-
"FAILED",
17897-
]
17898-
]
17897+
state: Optional[SandboxEnvironmentTemplateState]
1789917898
"""Output only. The state of the sandbox environment template."""
1790017899

1790117900
update_time: Optional[datetime.datetime]

0 commit comments

Comments
 (0)