Skip to content

Commit fdfad71

Browse files
1 parent 48a5fc1 commit fdfad71

File tree

2,947 files changed

+151
-2716783
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,947 files changed

+151
-2716783
lines changed

google/cloud/aiplatform_v1/types/reasoning_engine.py

Lines changed: 111 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ class ReasoningEngineSpec(proto.Message):
4141
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
4242
4343
Attributes:
44+
source_code_spec (google.cloud.aiplatform_v1.types.ReasoningEngineSpec.SourceCodeSpec):
45+
Deploy from source code files with a defined
46+
entrypoint.
47+
48+
This field is a member of `oneof`_ ``deployment_source``.
4449
service_account (str):
4550
Optional. The service account that the
4651
Reasoning Engine artifact runs as. It should
@@ -57,7 +62,8 @@ class ReasoningEngineSpec(proto.Message):
5762
Ignored when users directly specify a deployment image
5863
through ``deployment_spec.first_party_image_override``, but
5964
keeping the field_behavior to avoid introducing breaking
60-
changes.
65+
changes. The ``deployment_source`` field should not be set
66+
if ``package_spec`` is specified.
6167
deployment_spec (google.cloud.aiplatform_v1.types.ReasoningEngineSpec.DeploymentSpec):
6268
Optional. The specification of a Reasoning
6369
Engine deployment.
@@ -72,8 +78,8 @@ class ReasoningEngineSpec(proto.Message):
7278
"""
7379

7480
class PackageSpec(proto.Message):
75-
r"""User provided package spec like pickled object and package
76-
requirements.
81+
r"""User-provided package specification, containing pickled
82+
object and package requirements.
7783
7884
Attributes:
7985
pickle_object_gcs_uri (str):
@@ -198,6 +204,101 @@ class DeploymentSpec(proto.Message):
198204
optional=True,
199205
)
200206

207+
class SourceCodeSpec(proto.Message):
208+
r"""Specification for deploying from source code.
209+
210+
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
211+
212+
Attributes:
213+
inline_source (google.cloud.aiplatform_v1.types.ReasoningEngineSpec.SourceCodeSpec.InlineSource):
214+
Source code is provided directly in the
215+
request.
216+
217+
This field is a member of `oneof`_ ``source``.
218+
python_spec (google.cloud.aiplatform_v1.types.ReasoningEngineSpec.SourceCodeSpec.PythonSpec):
219+
Configuration for a Python application.
220+
221+
This field is a member of `oneof`_ ``language_spec``.
222+
"""
223+
224+
class InlineSource(proto.Message):
225+
r"""Specifies source code provided as a byte stream.
226+
227+
Attributes:
228+
source_archive (bytes):
229+
Required. Input only. The application source
230+
code archive, provided as a compressed tarball
231+
(.tar.gz) file.
232+
"""
233+
234+
source_archive: bytes = proto.Field(
235+
proto.BYTES,
236+
number=1,
237+
)
238+
239+
class PythonSpec(proto.Message):
240+
r"""Specification for running a Python application from source.
241+
242+
Attributes:
243+
version (str):
244+
Optional. The version of Python to use.
245+
Support version includes 3.9, 3.10, 3.11, 3.12,
246+
3.13. If not specified, default value is 3.10.
247+
entrypoint_module (str):
248+
Optional. The Python module to load as the
249+
entrypoint, specified as a fully qualified
250+
module name. For example: path.to.agent. If not
251+
specified, defaults to "agent".
252+
253+
The project root will be added to Python
254+
sys.path, allowing imports to be specified
255+
relative to the root.
256+
entrypoint_object (str):
257+
Optional. The name of the callable object within the
258+
``entrypoint_module`` to use as the application If not
259+
specified, defaults to "root_agent".
260+
requirements_file (str):
261+
Optional. The path to the requirements file,
262+
relative to the source root. If not specified,
263+
defaults to "requirements.txt".
264+
"""
265+
266+
version: str = proto.Field(
267+
proto.STRING,
268+
number=1,
269+
)
270+
entrypoint_module: str = proto.Field(
271+
proto.STRING,
272+
number=2,
273+
)
274+
entrypoint_object: str = proto.Field(
275+
proto.STRING,
276+
number=3,
277+
)
278+
requirements_file: str = proto.Field(
279+
proto.STRING,
280+
number=4,
281+
)
282+
283+
inline_source: "ReasoningEngineSpec.SourceCodeSpec.InlineSource" = proto.Field(
284+
proto.MESSAGE,
285+
number=1,
286+
oneof="source",
287+
message="ReasoningEngineSpec.SourceCodeSpec.InlineSource",
288+
)
289+
python_spec: "ReasoningEngineSpec.SourceCodeSpec.PythonSpec" = proto.Field(
290+
proto.MESSAGE,
291+
number=2,
292+
oneof="language_spec",
293+
message="ReasoningEngineSpec.SourceCodeSpec.PythonSpec",
294+
)
295+
296+
source_code_spec: SourceCodeSpec = proto.Field(
297+
proto.MESSAGE,
298+
number=11,
299+
oneof="deployment_source",
300+
message=SourceCodeSpec,
301+
)
201302
service_account: str = proto.Field(
202303
proto.STRING,
203304
number=1,
@@ -257,6 +358,8 @@ class ReasoningEngine(proto.Message):
257358
ReasoningEngine. If set, this ReasoningEngine
258359
and all sub-resources of this ReasoningEngine
259360
will be secured by this key.
361+
labels (MutableMapping[str, str]):
362+
Labels for the ReasoningEngine.
260363
"""
261364

262365
name: str = proto.Field(
@@ -295,6 +398,11 @@ class ReasoningEngine(proto.Message):
295398
number=11,
296399
message=gca_encryption_spec.EncryptionSpec,
297400
)
401+
labels: MutableMapping[str, str] = proto.MapField(
402+
proto.STRING,
403+
proto.STRING,
404+
number=17,
405+
)
298406

299407

300408
__all__ = tuple(sorted(__protobuf__.manifest))

owl-bot-staging/v1/.coveragerc

Lines changed: 0 additions & 13 deletions
This file was deleted.

owl-bot-staging/v1/.flake8

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)