Skip to content
Open
40 changes: 40 additions & 0 deletions google/cloud/aiplatform_v1/types/reasoning_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,10 @@ class SourceCodeSpec(proto.Message):
Source code is in a Git repository managed by
Developer Connect.

This field is a member of `oneof`_ ``source``.
git_source (google.cloud.aiplatform_v1.types.ReasoningEngineSpec.SourceCodeSpec.GitSource):
Source code is in a public Git repository.

This field is a member of `oneof`_ ``source``.
python_spec (google.cloud.aiplatform_v1.types.ReasoningEngineSpec.SourceCodeSpec.PythonSpec):
Configuration for a Python application.
Expand Down Expand Up @@ -359,6 +363,36 @@ class DeveloperConnectSource(proto.Message):
)
)

class GitSource(proto.Message):
r"""Specifies source code to be fetched from a public Git
repository.

Attributes:
url (str):
Required. The HTTPS URL of the public Git
repository to clone.
dir_ (str):
Optional. Directory, relative to the source
root, in which to run the build.
revision (str):
Required. The revision to fetch from the Git
repository: a branch, a tag, or a full commit
SHA. Abbreviated commit SHAs are not supported.
"""

url: str = proto.Field(
proto.STRING,
number=1,
)
dir_: str = proto.Field(
proto.STRING,
number=2,
)
revision: str = proto.Field(
proto.STRING,
number=3,
)

class PythonSpec(proto.Message):
r"""Specification for running a Python application from source.

Expand Down Expand Up @@ -417,6 +451,12 @@ class PythonSpec(proto.Message):
oneof="source",
message="ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource",
)
git_source: "ReasoningEngineSpec.SourceCodeSpec.GitSource" = proto.Field(
proto.MESSAGE,
number=6,
oneof="source",
message="ReasoningEngineSpec.SourceCodeSpec.GitSource",
)
python_spec: "ReasoningEngineSpec.SourceCodeSpec.PythonSpec" = proto.Field(
proto.MESSAGE,
number=2,
Expand Down
40 changes: 40 additions & 0 deletions google/cloud/aiplatform_v1beta1/types/reasoning_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,10 @@ class SourceCodeSpec(proto.Message):
Source code is in a Git repository managed by
Developer Connect.

This field is a member of `oneof`_ ``source``.
git_source (google.cloud.aiplatform_v1beta1.types.ReasoningEngineSpec.SourceCodeSpec.GitSource):
Source code is in a public Git repository.

This field is a member of `oneof`_ ``source``.
python_spec (google.cloud.aiplatform_v1beta1.types.ReasoningEngineSpec.SourceCodeSpec.PythonSpec):
Configuration for a Python application.
Expand Down Expand Up @@ -361,6 +365,36 @@ class DeveloperConnectSource(proto.Message):
)
)

class GitSource(proto.Message):
r"""Specifies source code to be fetched from a public Git
repository.

Attributes:
url (str):
Required. The HTTPS URL of the public Git
repository to clone.
dir_ (str):
Optional. Directory, relative to the source
root, in which to run the build.
revision (str):
Required. The revision to fetch from the Git
repository: a branch, a tag, or a full commit
SHA. Abbreviated commit SHAs are not supported.
"""

url: str = proto.Field(
proto.STRING,
number=1,
)
dir_: str = proto.Field(
proto.STRING,
number=2,
)
revision: str = proto.Field(
proto.STRING,
number=3,
)

class PythonSpec(proto.Message):
r"""Specification for running a Python application from source.

Expand Down Expand Up @@ -419,6 +453,12 @@ class PythonSpec(proto.Message):
oneof="source",
message="ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource",
)
git_source: "ReasoningEngineSpec.SourceCodeSpec.GitSource" = proto.Field(
proto.MESSAGE,
number=6,
oneof="source",
message="ReasoningEngineSpec.SourceCodeSpec.GitSource",
)
python_spec: "ReasoningEngineSpec.SourceCodeSpec.PythonSpec" = proto.Field(
proto.MESSAGE,
number=2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-aiplatform",
"version": "2.7.0"
"version": "0.0.0"
},
"snippets": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-aiplatform",
"version": "2.7.0"
"version": "0.0.0"
},
"snippets": [
{
Expand Down
Loading
Loading