Skip to content

Commit 71e8709

Browse files
feat: Add multihost_gpu_node_count to Vertex SDK for multihost GPU support
PiperOrigin-RevId: 733768886 Source-Link: googleapis/googleapis@4129cd8 Source-Link: googleapis/googleapis-gen@fc4062c Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZmM0MDYyY2NjMjk3M2QzZGNkYzVlYTIyNGU3OTgxMzA3YjUzYzIxNyJ9
1 parent bf3eec8 commit 71e8709

File tree

2,788 files changed

+2545469
-0
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,788 files changed

+2545469
-0
lines changed

owl-bot-staging/v1/.coveragerc

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[run]
2+
branch = True
3+
4+
[report]
5+
show_missing = True
6+
omit =
7+
google/cloud/aiplatform/v1/schema/trainingjob/definition/__init__.py
8+
google/cloud/aiplatform/v1/schema/trainingjob/definition/gapic_version.py
9+
exclude_lines =
10+
# Re-enable the standard pragma
11+
pragma: NO COVER
12+
# Ignore debug-only repr
13+
def __repr__

owl-bot-staging/v1/.flake8

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# -*- coding: utf-8 -*-
2+
#
3+
# Copyright 2020 Google LLC
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# https://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
17+
# Generated by synthtool. DO NOT EDIT!
18+
[flake8]
19+
ignore = E203, E266, E501, W503
20+
exclude =
21+
# Exclude generated code.
22+
**/proto/**
23+
**/gapic/**
24+
**/services/**
25+
**/types/**
26+
*_pb2.py
27+
28+
# Standard linting exemptions.
29+
**/.nox/**
30+
__pycache__,
31+
.git,
32+
*.pyc,
33+
conf.py

owl-bot-staging/v1/MANIFEST.in

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
recursive-include google/cloud/aiplatform/v1/schema/trainingjob/definition *.py
2+
recursive-include google/cloud/aiplatform/v1/schema/trainingjob/definition_v1 *.py

owl-bot-staging/v1/README.rst

+143
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
Python Client for Google Cloud Aiplatform V1 Schema Trainingjob Definition API
2+
=================================================
3+
4+
Quick Start
5+
-----------
6+
7+
In order to use this library, you first need to go through the following steps:
8+
9+
1. `Select or create a Cloud Platform project.`_
10+
2. `Enable billing for your project.`_
11+
3. Enable the Google Cloud Aiplatform V1 Schema Trainingjob Definition API.
12+
4. `Setup Authentication.`_
13+
14+
.. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project
15+
.. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project
16+
.. _Setup Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html
17+
18+
Installation
19+
~~~~~~~~~~~~
20+
21+
Install this library in a `virtualenv`_ using pip. `virtualenv`_ is a tool to
22+
create isolated Python environments. The basic problem it addresses is one of
23+
dependencies and versions, and indirectly permissions.
24+
25+
With `virtualenv`_, it's possible to install this library without needing system
26+
install permissions, and without clashing with the installed system
27+
dependencies.
28+
29+
.. _`virtualenv`: https://virtualenv.pypa.io/en/latest/
30+
31+
32+
Mac/Linux
33+
^^^^^^^^^
34+
35+
.. code-block:: console
36+
37+
python3 -m venv <your-env>
38+
source <your-env>/bin/activate
39+
<your-env>/bin/pip install /path/to/library
40+
41+
42+
Windows
43+
^^^^^^^
44+
45+
.. code-block:: console
46+
47+
python3 -m venv <your-env>
48+
<your-env>\Scripts\activate
49+
<your-env>\Scripts\pip.exe install \path\to\library
50+
51+
52+
Logging
53+
-------
54+
55+
This library uses the standard Python :code:`logging` functionality to log some RPC events that could be of interest for debugging and monitoring purposes.
56+
Note the following:
57+
58+
#. Logs may contain sensitive information. Take care to **restrict access to the logs** if they are saved, whether it be on local storage or on Google Cloud Logging.
59+
#. Google may refine the occurrence, level, and content of various log messages in this library without flagging such changes as breaking. **Do not depend on immutability of the logging events**.
60+
#. By default, the logging events from this library are not handled. You must **explicitly configure log handling** using one of the mechanisms below.
61+
62+
63+
Simple, environment-based configuration
64+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
65+
66+
To enable logging for this library without any changes in your code, set the :code:`GOOGLE_SDK_PYTHON_LOGGING_SCOPE` environment variable to a valid Google
67+
logging scope. This configures handling of logging events (at level :code:`logging.DEBUG` or higher) from this library in a default manner, emitting the logged
68+
messages in a structured format. It does not currently allow customizing the logging levels captured nor the handlers, formatters, etc. used for any logging
69+
event.
70+
71+
A logging scope is a period-separated namespace that begins with :code:`google`, identifying the Python module or package to log.
72+
73+
- Valid logging scopes: :code:`google`, :code:`google.cloud.asset.v1`, :code:`google.api`, :code:`google.auth`, etc.
74+
- Invalid logging scopes: :code:`foo`, :code:`123`, etc.
75+
76+
**NOTE**: If the logging scope is invalid, the library does not set up any logging handlers.
77+
78+
79+
Examples
80+
^^^^^^^^
81+
82+
- Enabling the default handler for all Google-based loggers
83+
84+
.. code-block:: console
85+
86+
export GOOGLE_SDK_PYTHON_LOGGING_SCOPE=google
87+
88+
- Enabling the default handler for a specific Google module (for a client library called :code:`library_v1`):
89+
90+
.. code-block:: console
91+
92+
export GOOGLE_SDK_PYTHON_LOGGING_SCOPE=google.cloud.library_v1
93+
94+
95+
Advanced, code-based configuration
96+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
97+
98+
You can also configure a valid logging scope using Python's standard `logging` mechanism.
99+
100+
101+
Examples
102+
^^^^^^^^
103+
104+
- Configuring a handler for all Google-based loggers
105+
106+
.. code-block:: python
107+
108+
import logging
109+
110+
from google.cloud.translate_v3 import translate
111+
112+
base_logger = logging.getLogger("google")
113+
base_logger.addHandler(logging.StreamHandler())
114+
base_logger.setLevel(logging.DEBUG)
115+
116+
- Configuring a handler for a specific Google module (for a client library called :code:`library_v1`):
117+
118+
.. code-block:: python
119+
120+
import logging
121+
122+
from google.cloud.translate_v3 import translate
123+
124+
base_logger = logging.getLogger("google.cloud.library_v1")
125+
base_logger.addHandler(logging.StreamHandler())
126+
base_logger.setLevel(logging.DEBUG)
127+
128+
129+
Logging details
130+
~~~~~~~~~~~~~~~
131+
132+
#. Regardless of which of the mechanisms above you use to configure logging for this library, by default logging events are not propagated up to the root
133+
logger from the `google`-level logger. If you need the events to be propagated to the root logger, you must explicitly set
134+
:code:`logging.getLogger("google").propagate = True` in your code.
135+
#. You can mix the different logging configurations above for different Google modules. For example, you may want use a code-based logging configuration for
136+
one library, but decide you need to also set up environment-based logging configuration for another library.
137+
138+
#. If you attempt to use both code-based and environment-based configuration for the same module, the environment-based configuration will be ineffectual
139+
if the code -based configuration gets applied first.
140+
141+
#. The Google-specific logging configurations (default handlers for environment-based configuration; not propagating logging events to the root logger) get
142+
executed the first time *any* client library is instantiated in your application, and only if the affected loggers have not been previously configured.
143+
(This is the reason for 2.i. above.)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
dl.field-list > dt {
2+
min-width: 100px
3+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
DatasetService
2+
--------------------------------
3+
4+
.. automodule:: google.cloud.aiplatform_v1.services.dataset_service
5+
:members:
6+
:inherited-members:
7+
8+
.. automodule:: google.cloud.aiplatform_v1.services.dataset_service.pagers
9+
:members:
10+
:inherited-members:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
DeploymentResourcePoolService
2+
-----------------------------------------------
3+
4+
.. automodule:: google.cloud.aiplatform_v1.services.deployment_resource_pool_service
5+
:members:
6+
:inherited-members:
7+
8+
.. automodule:: google.cloud.aiplatform_v1.services.deployment_resource_pool_service.pagers
9+
:members:
10+
:inherited-members:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
EndpointService
2+
---------------------------------
3+
4+
.. automodule:: google.cloud.aiplatform_v1.services.endpoint_service
5+
:members:
6+
:inherited-members:
7+
8+
.. automodule:: google.cloud.aiplatform_v1.services.endpoint_service.pagers
9+
:members:
10+
:inherited-members:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
EvaluationService
2+
-----------------------------------
3+
4+
.. automodule:: google.cloud.aiplatform_v1.services.evaluation_service
5+
:members:
6+
:inherited-members:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FeatureOnlineStoreAdminService
2+
------------------------------------------------
3+
4+
.. automodule:: google.cloud.aiplatform_v1.services.feature_online_store_admin_service
5+
:members:
6+
:inherited-members:
7+
8+
.. automodule:: google.cloud.aiplatform_v1.services.feature_online_store_admin_service.pagers
9+
:members:
10+
:inherited-members:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
FeatureOnlineStoreService
2+
-------------------------------------------
3+
4+
.. automodule:: google.cloud.aiplatform_v1.services.feature_online_store_service
5+
:members:
6+
:inherited-members:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FeatureRegistryService
2+
----------------------------------------
3+
4+
.. automodule:: google.cloud.aiplatform_v1.services.feature_registry_service
5+
:members:
6+
:inherited-members:
7+
8+
.. automodule:: google.cloud.aiplatform_v1.services.feature_registry_service.pagers
9+
:members:
10+
:inherited-members:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
FeaturestoreOnlineServingService
2+
--------------------------------------------------
3+
4+
.. automodule:: google.cloud.aiplatform_v1.services.featurestore_online_serving_service
5+
:members:
6+
:inherited-members:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FeaturestoreService
2+
-------------------------------------
3+
4+
.. automodule:: google.cloud.aiplatform_v1.services.featurestore_service
5+
:members:
6+
:inherited-members:
7+
8+
.. automodule:: google.cloud.aiplatform_v1.services.featurestore_service.pagers
9+
:members:
10+
:inherited-members:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
GenAiCacheService
2+
-----------------------------------
3+
4+
.. automodule:: google.cloud.aiplatform_v1.services.gen_ai_cache_service
5+
:members:
6+
:inherited-members:
7+
8+
.. automodule:: google.cloud.aiplatform_v1.services.gen_ai_cache_service.pagers
9+
:members:
10+
:inherited-members:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
GenAiTuningService
2+
------------------------------------
3+
4+
.. automodule:: google.cloud.aiplatform_v1.services.gen_ai_tuning_service
5+
:members:
6+
:inherited-members:
7+
8+
.. automodule:: google.cloud.aiplatform_v1.services.gen_ai_tuning_service.pagers
9+
:members:
10+
:inherited-members:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
IndexEndpointService
2+
--------------------------------------
3+
4+
.. automodule:: google.cloud.aiplatform_v1.services.index_endpoint_service
5+
:members:
6+
:inherited-members:
7+
8+
.. automodule:: google.cloud.aiplatform_v1.services.index_endpoint_service.pagers
9+
:members:
10+
:inherited-members:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
IndexService
2+
------------------------------
3+
4+
.. automodule:: google.cloud.aiplatform_v1.services.index_service
5+
:members:
6+
:inherited-members:
7+
8+
.. automodule:: google.cloud.aiplatform_v1.services.index_service.pagers
9+
:members:
10+
:inherited-members:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
JobService
2+
----------------------------
3+
4+
.. automodule:: google.cloud.aiplatform_v1.services.job_service
5+
:members:
6+
:inherited-members:
7+
8+
.. automodule:: google.cloud.aiplatform_v1.services.job_service.pagers
9+
:members:
10+
:inherited-members:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
LlmUtilityService
2+
-----------------------------------
3+
4+
.. automodule:: google.cloud.aiplatform_v1.services.llm_utility_service
5+
:members:
6+
:inherited-members:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
MatchService
2+
------------------------------
3+
4+
.. automodule:: google.cloud.aiplatform_v1.services.match_service
5+
:members:
6+
:inherited-members:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
MetadataService
2+
---------------------------------
3+
4+
.. automodule:: google.cloud.aiplatform_v1.services.metadata_service
5+
:members:
6+
:inherited-members:
7+
8+
.. automodule:: google.cloud.aiplatform_v1.services.metadata_service.pagers
9+
:members:
10+
:inherited-members:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
MigrationService
2+
----------------------------------
3+
4+
.. automodule:: google.cloud.aiplatform_v1.services.migration_service
5+
:members:
6+
:inherited-members:
7+
8+
.. automodule:: google.cloud.aiplatform_v1.services.migration_service.pagers
9+
:members:
10+
:inherited-members:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
ModelGardenService
2+
------------------------------------
3+
4+
.. automodule:: google.cloud.aiplatform_v1.services.model_garden_service
5+
:members:
6+
:inherited-members:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
ModelService
2+
------------------------------
3+
4+
.. automodule:: google.cloud.aiplatform_v1.services.model_service
5+
:members:
6+
:inherited-members:
7+
8+
.. automodule:: google.cloud.aiplatform_v1.services.model_service.pagers
9+
:members:
10+
:inherited-members:

0 commit comments

Comments
 (0)