GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: add model_version_id to UploadModelResponse in aiplatform v1 mo… · yaoliugg/python-aiplatform@1c198f1

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .kokoro/samples/python3.6
    • common.cfg
    • continuous.cfg
    • periodic-head.cfg
    • presubmit.cfg
  • google/cloud/aiplatform_v1
    • services/migration_service
      • client.py
    • types
      • model_service.py
  • mypy.ini
  • samples
    • model-builder
      • noxfile.py
    • snippets
      • noxfile.py
  • scripts/readme-gen/templates
    • install_deps.tmpl.rst
  • tests/unit/gapic/aiplatform_v1
    • test_migration_service.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.kokoro/samples/python3.6/common.cfg‎

Copy file name to clipboard
+40Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
# Build logs will be here
4+
action {
5+
define_artifacts {
6+
regex: "**/*sponge_log.xml"
7+
}
8+
}
9+
10+
# Specify which tests to run
11+
env_vars: {
12+
key: "RUN_TESTS_SESSION"
13+
value: "py-3.6"
14+
}
15+
16+
# Declare build specific Cloud project.
17+
env_vars: {
18+
key: "BUILD_SPECIFIC_GCLOUD_PROJECT"
19+
value: "ucaip-sample-tests"
20+
}
21+
22+
env_vars: {
23+
key: "TRAMPOLINE_BUILD_FILE"
24+
value: "github/python-aiplatform/.kokoro/test-samples.sh"
25+
}
26+
27+
# Configure the docker image for kokoro-trampoline.
28+
env_vars: {
29+
key: "TRAMPOLINE_IMAGE"
30+
value: "gcr.io/cloud-devrel-kokoro-resources/python-samples-testing-docker"
31+
}
32+
33+
# Download secrets for samples
34+
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/python-docs-samples"
35+
36+
# Download trampoline resources.
37+
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"
38+
39+
# Use the trampoline script to run in docker.
40+
build_file: "python-aiplatform/.kokoro/trampoline_v2.sh"
Collapse file

‎.kokoro/samples/python3.6/continuous.cfg‎

Copy file name to clipboard
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
env_vars: {
4+
key: "INSTALL_LIBRARY_FROM_SOURCE"
5+
value: "True"
6+
}
7+
Collapse file

‎.kokoro/samples/python3.6/periodic-head.cfg‎

Copy file name to clipboard
+11Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
env_vars: {
4+
key: "INSTALL_LIBRARY_FROM_SOURCE"
5+
value: "True"
6+
}
7+
8+
env_vars: {
9+
key: "TRAMPOLINE_BUILD_FILE"
10+
value: "github/python-aiplatform/.kokoro/test-samples-against-head.sh"
11+
}
Collapse file

‎.kokoro/samples/python3.6/presubmit.cfg‎

Copy file name to clipboard
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
env_vars: {
4+
key: "INSTALL_LIBRARY_FROM_SOURCE"
5+
value: "True"
6+
}
Collapse file

‎google/cloud/aiplatform_v1/services/migration_service/client.py‎

Copy file name to clipboardExpand all lines: google/cloud/aiplatform_v1/services/migration_service/client.py
+9-9Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -218,40 +218,40 @@ def parse_dataset_path(path: str) -> Dict[str, str]:
218218
@staticmethod
219219
def dataset_path(
220220
project: str,
221+
location: str,
221222
dataset: str,
222223
) -> str:
223224
"""Returns a fully-qualified dataset string."""
224-
return "projects/{project}/datasets/{dataset}".format(
225+
return "projects/{project}/locations/{location}/datasets/{dataset}".format(
225226
project=project,
227+
location=location,
226228
dataset=dataset,
227229
)
228230

229231
@staticmethod
230232
def parse_dataset_path(path: str) -> Dict[str, str]:
231233
"""Parses a dataset path into its component segments."""
232-
m = re.match(r"^projects/(?P<project>.+?)/datasets/(?P<dataset>.+?)$", path)
234+
m = re.match(
235+
r"^projects/(?P<project>.+?)/locations/(?P<location>.+?)/datasets/(?P<dataset>.+?)$",
236+
path,
237+
)
233238
return m.groupdict() if m else {}
234239

235240
@staticmethod
236241
def dataset_path(
237242
project: str,
238-
location: str,
239243
dataset: str,
240244
) -> str:
241245
"""Returns a fully-qualified dataset string."""
242-
return "projects/{project}/locations/{location}/datasets/{dataset}".format(
246+
return "projects/{project}/datasets/{dataset}".format(
243247
project=project,
244-
location=location,
245248
dataset=dataset,
246249
)
247250

248251
@staticmethod
249252
def parse_dataset_path(path: str) -> Dict[str, str]:
250253
"""Parses a dataset path into its component segments."""
251-
m = re.match(
252-
r"^projects/(?P<project>.+?)/locations/(?P<location>.+?)/datasets/(?P<dataset>.+?)$",
253-
path,
254-
)
254+
m = re.match(r"^projects/(?P<project>.+?)/datasets/(?P<dataset>.+?)$", path)
255255
return m.groupdict() if m else {}
256256

257257
@staticmethod
Collapse file

‎google/cloud/aiplatform_v1/types/model_service.py‎

Copy file name to clipboardExpand all lines: google/cloud/aiplatform_v1/types/model_service.py
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,19 @@ class UploadModelResponse(proto.Message):
121121
model (str):
122122
The name of the uploaded Model resource. Format:
123123
``projects/{project}/locations/{location}/models/{model}``
124+
model_version_id (str):
125+
Output only. The version ID of the model that
126+
is uploaded.
124127
"""
125128

126129
model = proto.Field(
127130
proto.STRING,
128131
number=1,
129132
)
133+
model_version_id = proto.Field(
134+
proto.STRING,
135+
number=2,
136+
)
130137

131138

132139
class GetModelRequest(proto.Message):
Collapse file

‎mypy.ini‎

Copy file name to clipboard
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[mypy]
2-
python_version = 3.7
2+
python_version = 3.6
33
namespace_packages = True
Collapse file

‎samples/model-builder/noxfile.py‎

Copy file name to clipboardExpand all lines: samples/model-builder/noxfile.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def get_pytest_env_vars() -> Dict[str, str]:
8989

9090
# DO NOT EDIT - automatically generated.
9191
# All versions used to test samples.
92-
ALL_VERSIONS = ["3.7", "3.8", "3.9", "3.10"]
92+
ALL_VERSIONS = ["3.6", "3.7", "3.8", "3.9", "3.10"]
9393

9494
# Any default versions that should be ignored.
9595
IGNORED_VERSIONS = TEST_CONFIG["ignored_versions"]
Collapse file

‎samples/snippets/noxfile.py‎

Copy file name to clipboardExpand all lines: samples/snippets/noxfile.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def get_pytest_env_vars() -> Dict[str, str]:
8989

9090
# DO NOT EDIT - automatically generated.
9191
# All versions used to test samples.
92-
ALL_VERSIONS = ["3.7", "3.8", "3.9", "3.10"]
92+
ALL_VERSIONS = ["3.6", "3.7", "3.8", "3.9", "3.10"]
9393

9494
# Any default versions that should be ignored.
9595
IGNORED_VERSIONS = TEST_CONFIG["ignored_versions"]
Collapse file

‎scripts/readme-gen/templates/install_deps.tmpl.rst‎

Copy file name to clipboardExpand all lines: scripts/readme-gen/templates/install_deps.tmpl.rst
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Install Dependencies
1212
.. _Python Development Environment Setup Guide:
1313
https://cloud.google.com/python/setup
1414

15-
#. Create a virtualenv. Samples are compatible with Python 3.7+.
15+
#. Create a virtualenv. Samples are compatible with Python 3.6+.
1616

1717
.. code-block:: bash
1818

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.