Skip to content

Commit a814923

Browse files
feat: add dedicated_resources to DeployedIndex message in aiplatform v1 index_endpoint.proto chore: sort imports (#990)
* feat: add dedicated_resources to DeployedIndex message in aiplatform v1 index_endpoint.proto chore: sort imports PiperOrigin-RevId: 425394497 Source-Link: googleapis/googleapis@bd97e46 Source-Link: googleapis/googleapis-gen@13eed11 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMTNlZWQxMTA1MWUxY2Y5ZjlhYjQzZDE3NGYyM2QzNWZmYjMyOTQxYyJ9 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 0ca3747 commit a814923

File tree

224 files changed

+11938
-5626
lines changed

Some content is hidden

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

224 files changed

+11938
-5626
lines changed

google/cloud/aiplatform/v1/schema/trainingjob/definition_v1/types/automl_tables.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -99,21 +99,21 @@ class AutoMlTablesInputs(proto.Message):
9999
operating characteristic (ROC) curve.
100100
"minimize-log-loss" - Minimize log loss.
101101
"maximize-au-prc" - Maximize the area under
102-
the precision-recall curve. "maximize-
103-
precision-at-recall" - Maximize precision for a
104-
specified
102+
the precision-recall curve.
103+
"maximize-precision-at-recall" - Maximize
104+
precision for a specified
105105
recall value. "maximize-recall-at-precision" -
106106
Maximize recall for a specified
107107
precision value.
108108
classification (multi-class):
109109
"minimize-log-loss" (default) - Minimize log
110110
loss.
111111
regression:
112-
"minimize-rmse" (default) - Minimize root-
113-
mean-squared error (RMSE). "minimize-mae" -
114-
Minimize mean-absolute error (MAE). "minimize-
115-
rmsle" - Minimize root-mean-squared log error
116-
(RMSLE).
112+
"minimize-rmse" (default) - Minimize
113+
root-mean-squared error (RMSE). "minimize-mae"
114+
- Minimize mean-absolute error (MAE).
115+
"minimize-rmsle" - Minimize root-mean-squared
116+
log error (RMSLE).
117117
train_budget_milli_node_hours (int):
118118
Required. The train budget of creating this
119119
model, expressed in milli node hours i.e. 1,000

google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/types/automl_tables.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -99,21 +99,21 @@ class AutoMlTablesInputs(proto.Message):
9999
operating characteristic (ROC) curve.
100100
"minimize-log-loss" - Minimize log loss.
101101
"maximize-au-prc" - Maximize the area under
102-
the precision-recall curve. "maximize-
103-
precision-at-recall" - Maximize precision for a
104-
specified
102+
the precision-recall curve.
103+
"maximize-precision-at-recall" - Maximize
104+
precision for a specified
105105
recall value. "maximize-recall-at-precision" -
106106
Maximize recall for a specified
107107
precision value.
108108
classification (multi-class):
109109
"minimize-log-loss" (default) - Minimize log
110110
loss.
111111
regression:
112-
"minimize-rmse" (default) - Minimize root-
113-
mean-squared error (RMSE). "minimize-mae" -
114-
Minimize mean-absolute error (MAE). "minimize-
115-
rmsle" - Minimize root-mean-squared log error
116-
(RMSLE).
112+
"minimize-rmse" (default) - Minimize
113+
root-mean-squared error (RMSE). "minimize-mae"
114+
- Minimize mean-absolute error (MAE).
115+
"minimize-rmsle" - Minimize root-mean-squared
116+
log error (RMSLE).
117117
train_budget_milli_node_hours (int):
118118
Required. The train budget of creating this
119119
model, expressed in milli node hours i.e. 1,000

google/cloud/aiplatform_v1/services/dataset_service/async_client.py

Lines changed: 47 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from collections import OrderedDict
1717
import functools
1818
import re
19-
from typing import Dict, Sequence, Tuple, Type, Union
19+
from typing import Dict, Optional, Sequence, Tuple, Type, Union
2020
import pkg_resources
2121

2222
from google.api_core.client_options import ClientOptions
@@ -129,6 +129,42 @@ def from_service_account_file(cls, filename: str, *args, **kwargs):
129129

130130
from_service_account_json = from_service_account_file
131131

132+
@classmethod
133+
def get_mtls_endpoint_and_cert_source(
134+
cls, client_options: Optional[ClientOptions] = None
135+
):
136+
"""Return the API endpoint and client cert source for mutual TLS.
137+
138+
The client cert source is determined in the following order:
139+
(1) if `GOOGLE_API_USE_CLIENT_CERTIFICATE` environment variable is not "true", the
140+
client cert source is None.
141+
(2) if `client_options.client_cert_source` is provided, use the provided one; if the
142+
default client cert source exists, use the default one; otherwise the client cert
143+
source is None.
144+
145+
The API endpoint is determined in the following order:
146+
(1) if `client_options.api_endpoint` if provided, use the provided one.
147+
(2) if `GOOGLE_API_USE_CLIENT_CERTIFICATE` environment variable is "always", use the
148+
default mTLS endpoint; if the environment variabel is "never", use the default API
149+
endpoint; otherwise if client cert source exists, use the default mTLS endpoint, otherwise
150+
use the default API endpoint.
151+
152+
More details can be found at https://google.aip.dev/auth/4114.
153+
154+
Args:
155+
client_options (google.api_core.client_options.ClientOptions): Custom options for the
156+
client. Only the `api_endpoint` and `client_cert_source` properties may be used
157+
in this method.
158+
159+
Returns:
160+
Tuple[str, Callable[[], Tuple[bytes, bytes]]]: returns the API endpoint and the
161+
client cert source to use.
162+
163+
Raises:
164+
google.auth.exceptions.MutualTLSChannelError: If any errors happen.
165+
"""
166+
return DatasetServiceClient.get_mtls_endpoint_and_cert_source(client_options) # type: ignore
167+
132168
@property
133169
def transport(self) -> DatasetServiceTransport:
134170
"""Returns the transport used by the client instance.
@@ -234,7 +270,7 @@ async def create_dataset(
234270
235271
"""
236272
# Create or coerce a protobuf request object.
237-
# Sanity check: If we got a request object, we should *not* have
273+
# Quick check: If we got a request object, we should *not* have
238274
# gotten any keyword arguments that map to the request.
239275
has_flattened_params = any([parent, dataset])
240276
if request is not None and has_flattened_params:
@@ -315,7 +351,7 @@ async def get_dataset(
315351
316352
"""
317353
# Create or coerce a protobuf request object.
318-
# Sanity check: If we got a request object, we should *not* have
354+
# Quick check: If we got a request object, we should *not* have
319355
# gotten any keyword arguments that map to the request.
320356
has_flattened_params = any([name])
321357
if request is not None and has_flattened_params:
@@ -400,7 +436,7 @@ async def update_dataset(
400436
401437
"""
402438
# Create or coerce a protobuf request object.
403-
# Sanity check: If we got a request object, we should *not* have
439+
# Quick check: If we got a request object, we should *not* have
404440
# gotten any keyword arguments that map to the request.
405441
has_flattened_params = any([dataset, update_mask])
406442
if request is not None and has_flattened_params:
@@ -478,7 +514,7 @@ async def list_datasets(
478514
479515
"""
480516
# Create or coerce a protobuf request object.
481-
# Sanity check: If we got a request object, we should *not* have
517+
# Quick check: If we got a request object, we should *not* have
482518
# gotten any keyword arguments that map to the request.
483519
has_flattened_params = any([parent])
484520
if request is not None and has_flattened_params:
@@ -569,7 +605,7 @@ async def delete_dataset(
569605
570606
"""
571607
# Create or coerce a protobuf request object.
572-
# Sanity check: If we got a request object, we should *not* have
608+
# Quick check: If we got a request object, we should *not* have
573609
# gotten any keyword arguments that map to the request.
574610
has_flattened_params = any([name])
575611
if request is not None and has_flattened_params:
@@ -661,7 +697,7 @@ async def import_data(
661697
662698
"""
663699
# Create or coerce a protobuf request object.
664-
# Sanity check: If we got a request object, we should *not* have
700+
# Quick check: If we got a request object, we should *not* have
665701
# gotten any keyword arguments that map to the request.
666702
has_flattened_params = any([name, import_configs])
667703
if request is not None and has_flattened_params:
@@ -754,7 +790,7 @@ async def export_data(
754790
755791
"""
756792
# Create or coerce a protobuf request object.
757-
# Sanity check: If we got a request object, we should *not* have
793+
# Quick check: If we got a request object, we should *not* have
758794
# gotten any keyword arguments that map to the request.
759795
has_flattened_params = any([name, export_config])
760796
if request is not None and has_flattened_params:
@@ -839,7 +875,7 @@ async def list_data_items(
839875
840876
"""
841877
# Create or coerce a protobuf request object.
842-
# Sanity check: If we got a request object, we should *not* have
878+
# Quick check: If we got a request object, we should *not* have
843879
# gotten any keyword arguments that map to the request.
844880
has_flattened_params = any([parent])
845881
if request is not None and has_flattened_params:
@@ -917,7 +953,7 @@ async def get_annotation_spec(
917953
918954
"""
919955
# Create or coerce a protobuf request object.
920-
# Sanity check: If we got a request object, we should *not* have
956+
# Quick check: If we got a request object, we should *not* have
921957
# gotten any keyword arguments that map to the request.
922958
has_flattened_params = any([name])
923959
if request is not None and has_flattened_params:
@@ -992,7 +1028,7 @@ async def list_annotations(
9921028
9931029
"""
9941030
# Create or coerce a protobuf request object.
995-
# Sanity check: If we got a request object, we should *not* have
1031+
# Quick check: If we got a request object, we should *not* have
9961032
# gotten any keyword arguments that map to the request.
9971033
has_flattened_params = any([parent])
9981034
if request is not None and has_flattened_params:

0 commit comments

Comments
 (0)