@@ -5118,6 +5118,28 @@ class ReasoningEngineSpecSourceCodeSpecPythonSpecDict(TypedDict, total=False):
51185118]
51195119
51205120
5121+ class ReasoningEngineSpecSourceCodeSpecImageSpec(_common.BaseModel):
5122+ """The image spec for building an image (within a single build step), based on the config file (i.e. Dockerfile) in the source directory."""
5123+
5124+ build_args: Optional[dict[str, str]] = Field(
5125+ default=None,
5126+ description="""Optional. Build arguments to be used. They will be passed through --build-arg flags.""",
5127+ )
5128+
5129+
5130+ class ReasoningEngineSpecSourceCodeSpecImageSpecDict(TypedDict, total=False):
5131+ """The image spec for building an image (within a single build step), based on the config file (i.e. Dockerfile) in the source directory."""
5132+
5133+ build_args: Optional[dict[str, str]]
5134+ """Optional. Build arguments to be used. They will be passed through --build-arg flags."""
5135+
5136+
5137+ ReasoningEngineSpecSourceCodeSpecImageSpecOrDict = Union[
5138+ ReasoningEngineSpecSourceCodeSpecImageSpec,
5139+ ReasoningEngineSpecSourceCodeSpecImageSpecDict,
5140+ ]
5141+
5142+
51215143class ReasoningEngineSpecSourceCodeSpec(_common.BaseModel):
51225144 """Specification for deploying from source code."""
51235145
@@ -5133,6 +5155,10 @@ class ReasoningEngineSpecSourceCodeSpec(_common.BaseModel):
51335155 python_spec: Optional[ReasoningEngineSpecSourceCodeSpecPythonSpec] = Field(
51345156 default=None, description="""Configuration for a Python application."""
51355157 )
5158+ image_spec: Optional[ReasoningEngineSpecSourceCodeSpecImageSpec] = Field(
5159+ default=None,
5160+ description="""Optional. Configuration for building an image with custom config file.""",
5161+ )
51365162
51375163
51385164class ReasoningEngineSpecSourceCodeSpecDict(TypedDict, total=False):
@@ -5149,6 +5175,9 @@ class ReasoningEngineSpecSourceCodeSpecDict(TypedDict, total=False):
51495175 python_spec: Optional[ReasoningEngineSpecSourceCodeSpecPythonSpecDict]
51505176 """Configuration for a Python application."""
51515177
5178+ image_spec: Optional[ReasoningEngineSpecSourceCodeSpecImageSpecDict]
5179+ """Optional. Configuration for building an image with custom config file."""
5180+
51525181
51535182ReasoningEngineSpecSourceCodeSpecOrDict = Union[
51545183 ReasoningEngineSpecSourceCodeSpec, ReasoningEngineSpecSourceCodeSpecDict
0 commit comments