Skip to content

Commit 09535ad

Browse files
gcf-owl-bot[bot]copybara-github
authored andcommitted
Copybara import of the project:
-- b60cfed by Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>: feat: add public_endpoint_enabled and publid_endpoint_domain_name to IndexEndpoint feat: add ModelSourceType.MODEL_GARDEN enum to ModelSourceInfo feat: add copy to ModelSourceInfo PiperOrigin-RevId: 520696120 Source-Link: googleapis/googleapis@e941b6a Source-Link: googleapis/googleapis-gen@725c05d Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNzI1YzA1ZGM1OWYxZTg1MWY5Nzc4YTdiY2I2NTA1NWUxNTg0MDk1NSJ9 -- 5b125cb by Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>: 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md -- c0fcaa6 by Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>: feat: add public_endpoint_enabled and publid_endpoint_domain_name to IndexEndpoint feat: add ModelSourceType.MODEL_GARDEN enum to ModelSourceInfo feat: add copy to ModelSourceInfo PiperOrigin-RevId: 520696525 Source-Link: googleapis/googleapis@c14398a Source-Link: googleapis/googleapis-gen@0df1e4b Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMGRmMWU0YjZlODcyOTRmMjViN2MwODZlYTUzOWIyYjJmNzM4Y2Y1MCJ9 -- 24ed1c0 by Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>: 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md -- 2647285 by Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>: feat: Chrome OS Moblab API: add a new build label field to the Build resource proto PiperOrigin-RevId: 520792552 Source-Link: googleapis/googleapis@53d620a Source-Link: googleapis/googleapis-gen@d86abae Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZDg2YWJhZWYxOGMyY2QzNzQ1ZGMxNzQwZTZjNTIwZDliY2VkZDJiMiJ9 -- dade258 by Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>: 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md COPYBARA_INTEGRATE_REVIEW=#2053 from googleapis:owl-bot-copy 88dea47 PiperOrigin-RevId: 521805363
1 parent 3fad7bb commit 09535ad

File tree

20 files changed

+214
-88
lines changed

20 files changed

+214
-88
lines changed

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

+13-5
Original file line numberDiff line numberDiff line change
@@ -306,11 +306,19 @@ async def sample_create_endpoint():
306306
not provided, Vertex AI will generate a value for this
307307
ID.
308308
309-
This value should be 1-10 characters, and valid
310-
characters are /[0-9]/. When using HTTP/JSON, this field
311-
is populated based on a query string argument, such as
312-
``?endpoint_id=12345``. This is the fallback for fields
313-
that are not included in either the URI or the body.
309+
If the first character is a letter, this value may be up
310+
to 63 characters, and valid characters are
311+
``[a-z0-9-]``. The last character must be a letter or
312+
number.
313+
314+
If the first character is a number, this value may be up
315+
to 9 characters, and valid characters are ``[0-9]`` with
316+
no leading zeros.
317+
318+
When using HTTP/JSON, this field is populated based on a
319+
query string argument, such as ``?endpoint_id=12345``.
320+
This is the fallback for fields that are not included in
321+
either the URI or the body.
314322
315323
This corresponds to the ``endpoint_id`` field
316324
on the ``request`` instance; if ``request`` is provided, this

google/cloud/aiplatform_v1/services/endpoint_service/client.py

+13-5
Original file line numberDiff line numberDiff line change
@@ -586,11 +586,19 @@ def sample_create_endpoint():
586586
not provided, Vertex AI will generate a value for this
587587
ID.
588588
589-
This value should be 1-10 characters, and valid
590-
characters are /[0-9]/. When using HTTP/JSON, this field
591-
is populated based on a query string argument, such as
592-
``?endpoint_id=12345``. This is the fallback for fields
593-
that are not included in either the URI or the body.
589+
If the first character is a letter, this value may be up
590+
to 63 characters, and valid characters are
591+
``[a-z0-9-]``. The last character must be a letter or
592+
number.
593+
594+
If the first character is a number, this value may be up
595+
to 9 characters, and valid characters are ``[0-9]`` with
596+
no leading zeros.
597+
598+
When using HTTP/JSON, this field is populated based on a
599+
query string argument, such as ``?endpoint_id=12345``.
600+
This is the fallback for fields that are not included in
601+
either the URI or the body.
594602
595603
This corresponds to the ``endpoint_id`` field
596604
on the ``request`` instance; if ``request`` is provided, this

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

+9-9
Original file line numberDiff line numberDiff line change
@@ -230,40 +230,40 @@ def parse_dataset_path(path: str) -> Dict[str, str]:
230230
@staticmethod
231231
def dataset_path(
232232
project: str,
233+
location: str,
233234
dataset: str,
234235
) -> str:
235236
"""Returns a fully-qualified dataset string."""
236-
return "projects/{project}/datasets/{dataset}".format(
237+
return "projects/{project}/locations/{location}/datasets/{dataset}".format(
237238
project=project,
239+
location=location,
238240
dataset=dataset,
239241
)
240242

241243
@staticmethod
242244
def parse_dataset_path(path: str) -> Dict[str, str]:
243245
"""Parses a dataset path into its component segments."""
244-
m = re.match(r"^projects/(?P<project>.+?)/datasets/(?P<dataset>.+?)$", path)
246+
m = re.match(
247+
r"^projects/(?P<project>.+?)/locations/(?P<location>.+?)/datasets/(?P<dataset>.+?)$",
248+
path,
249+
)
245250
return m.groupdict() if m else {}
246251

247252
@staticmethod
248253
def dataset_path(
249254
project: str,
250-
location: str,
251255
dataset: str,
252256
) -> str:
253257
"""Returns a fully-qualified dataset string."""
254-
return "projects/{project}/locations/{location}/datasets/{dataset}".format(
258+
return "projects/{project}/datasets/{dataset}".format(
255259
project=project,
256-
location=location,
257260
dataset=dataset,
258261
)
259262

260263
@staticmethod
261264
def parse_dataset_path(path: str) -> Dict[str, str]:
262265
"""Parses a dataset path into its component segments."""
263-
m = re.match(
264-
r"^projects/(?P<project>.+?)/locations/(?P<location>.+?)/datasets/(?P<dataset>.+?)$",
265-
path,
266-
)
266+
m = re.match(r"^projects/(?P<project>.+?)/datasets/(?P<dataset>.+?)$", path)
267267
return m.groupdict() if m else {}
268268

269269
@staticmethod

google/cloud/aiplatform_v1/types/accelerator_type.py

-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030

3131
class AcceleratorType(proto.Enum):
3232
r"""Represents a hardware accelerator type.
33-
NEXT ID: 11.
3433
3534
Values:
3635
ACCELERATOR_TYPE_UNSPECIFIED (0):

google/cloud/aiplatform_v1/types/endpoint_service.py

+12-5
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,18 @@ class CreateEndpointRequest(proto.Message):
6060
final component of the endpoint resource name. If not
6161
provided, Vertex AI will generate a value for this ID.
6262
63-
This value should be 1-10 characters, and valid characters
64-
are /[0-9]/. When using HTTP/JSON, this field is populated
65-
based on a query string argument, such as
66-
``?endpoint_id=12345``. This is the fallback for fields that
67-
are not included in either the URI or the body.
63+
If the first character is a letter, this value may be up to
64+
63 characters, and valid characters are ``[a-z0-9-]``. The
65+
last character must be a letter or number.
66+
67+
If the first character is a number, this value may be up to
68+
9 characters, and valid characters are ``[0-9]`` with no
69+
leading zeros.
70+
71+
When using HTTP/JSON, this field is populated based on a
72+
query string argument, such as ``?endpoint_id=12345``. This
73+
is the fallback for fields that are not included in either
74+
the URI or the body.
6875
"""
6976

7077
parent: str = proto.Field(

google/cloud/aiplatform_v1/types/featurestore_service.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -553,11 +553,8 @@ class BatchReadFeatureValuesRequest(proto.Message):
553553
will be automatically inferred. For CSV source, the
554554
pass-through values will be passed as opaque bytes.
555555
entity_type_specs (MutableSequence[google.cloud.aiplatform_v1.types.BatchReadFeatureValuesRequest.EntityTypeSpec]):
556-
Required. Specifies EntityType grouping Features to read
557-
values of and settings. Each EntityType referenced in
558-
[BatchReadFeatureValuesRequest.entity_type_specs] must have
559-
a column specifying entity IDs in the EntityType in
560-
[BatchReadFeatureValuesRequest.request][] .
556+
Required. Specifies EntityType grouping
557+
Features to read values of and settings.
561558
start_time (google.protobuf.timestamp_pb2.Timestamp):
562559
Optional. Excludes Feature values with
563560
feature generation timestamp before this

google/cloud/aiplatform_v1/types/index_endpoint.py

+17-1
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,14 @@ class IndexEndpoint(proto.Message):
111111
and
112112
[private_service_connect_config][google.cloud.aiplatform.v1.IndexEndpoint.private_service_connect_config]
113113
are mutually exclusive.
114+
public_endpoint_enabled (bool):
115+
Optional. If true, the deployed index will be
116+
accessible through public endpoint.
117+
public_endpoint_domain_name (str):
118+
Output only. If
119+
[public_endpoint_enabled][google.cloud.aiplatform.v1.IndexEndpoint.public_endpoint_enabled]
120+
is true, this field will be populated with the domain name
121+
to use for this index endpoint.
114122
"""
115123

116124
name: str = proto.Field(
@@ -164,6 +172,14 @@ class IndexEndpoint(proto.Message):
164172
message=service_networking.PrivateServiceConnectConfig,
165173
)
166174
)
175+
public_endpoint_enabled: bool = proto.Field(
176+
proto.BOOL,
177+
number=13,
178+
)
179+
public_endpoint_domain_name: str = proto.Field(
180+
proto.STRING,
181+
number=14,
182+
)
167183

168184

169185
class DeployedIndex(proto.Message):
@@ -264,7 +280,7 @@ class DeployedIndex(proto.Message):
264280
be deployed to any ip ranges under the provided
265281
VPC network.
266282
267-
The value sohuld be the name of the address
283+
The value should be the name of the address
268284
(https://cloud.google.com/compute/docs/reference/rest/v1/addresses)
269285
Example: 'vertex-ai-ip-range'.
270286
deployment_group (str):

google/cloud/aiplatform_v1/types/model.py

+12
Original file line numberDiff line numberDiff line change
@@ -899,6 +899,10 @@ class ModelSourceInfo(proto.Message):
899899
Attributes:
900900
source_type (google.cloud.aiplatform_v1.types.ModelSourceInfo.ModelSourceType):
901901
Type of the model source.
902+
copy (bool):
903+
If this Model is copy of another Model. If true then
904+
[source_type][google.cloud.aiplatform.v1.ModelSourceInfo.source_type]
905+
pertains to the original.
902906
"""
903907

904908
class ModelSourceType(proto.Enum):
@@ -916,17 +920,25 @@ class ModelSourceType(proto.Enum):
916920
BQML (3):
917921
The Model is registered and sync'ed from
918922
BigQuery ML.
923+
MODEL_GARDEN (4):
924+
The Model is saved or tuned from Model
925+
Garden.
919926
"""
920927
MODEL_SOURCE_TYPE_UNSPECIFIED = 0
921928
AUTOML = 1
922929
CUSTOM = 2
923930
BQML = 3
931+
MODEL_GARDEN = 4
924932

925933
source_type: ModelSourceType = proto.Field(
926934
proto.ENUM,
927935
number=1,
928936
enum=ModelSourceType,
929937
)
938+
copy: bool = proto.Field(
939+
proto.BOOL,
940+
number=2,
941+
)
930942

931943

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

google/cloud/aiplatform_v1beta1/services/endpoint_service/async_client.py

+13-5
Original file line numberDiff line numberDiff line change
@@ -312,11 +312,19 @@ async def sample_create_endpoint():
312312
not provided, Vertex AI will generate a value for this
313313
ID.
314314
315-
This value should be 1-10 characters, and valid
316-
characters are /[0-9]/. When using HTTP/JSON, this field
317-
is populated based on a query string argument, such as
318-
``?endpoint_id=12345``. This is the fallback for fields
319-
that are not included in either the URI or the body.
315+
If the first character is a letter, this value may be up
316+
to 63 characters, and valid characters are
317+
``[a-z0-9-]``. The last character must be a letter or
318+
number.
319+
320+
If the first character is a number, this value may be up
321+
to 9 characters, and valid characters are ``[0-9]`` with
322+
no leading zeros.
323+
324+
When using HTTP/JSON, this field is populated based on a
325+
query string argument, such as ``?endpoint_id=12345``.
326+
This is the fallback for fields that are not included in
327+
either the URI or the body.
320328
321329
This corresponds to the ``endpoint_id`` field
322330
on the ``request`` instance; if ``request`` is provided, this

google/cloud/aiplatform_v1beta1/services/endpoint_service/client.py

+13-5
Original file line numberDiff line numberDiff line change
@@ -608,11 +608,19 @@ def sample_create_endpoint():
608608
not provided, Vertex AI will generate a value for this
609609
ID.
610610
611-
This value should be 1-10 characters, and valid
612-
characters are /[0-9]/. When using HTTP/JSON, this field
613-
is populated based on a query string argument, such as
614-
``?endpoint_id=12345``. This is the fallback for fields
615-
that are not included in either the URI or the body.
611+
If the first character is a letter, this value may be up
612+
to 63 characters, and valid characters are
613+
``[a-z0-9-]``. The last character must be a letter or
614+
number.
615+
616+
If the first character is a number, this value may be up
617+
to 9 characters, and valid characters are ``[0-9]`` with
618+
no leading zeros.
619+
620+
When using HTTP/JSON, this field is populated based on a
621+
query string argument, such as ``?endpoint_id=12345``.
622+
This is the fallback for fields that are not included in
623+
either the URI or the body.
616624
617625
This corresponds to the ``endpoint_id`` field
618626
on the ``request`` instance; if ``request`` is provided, this

google/cloud/aiplatform_v1beta1/services/migration_service/client.py

+9-9
Original file line numberDiff line numberDiff line change
@@ -208,40 +208,40 @@ def parse_annotated_dataset_path(path: str) -> Dict[str, str]:
208208
@staticmethod
209209
def dataset_path(
210210
project: str,
211-
location: str,
212211
dataset: str,
213212
) -> str:
214213
"""Returns a fully-qualified dataset string."""
215-
return "projects/{project}/locations/{location}/datasets/{dataset}".format(
214+
return "projects/{project}/datasets/{dataset}".format(
216215
project=project,
217-
location=location,
218216
dataset=dataset,
219217
)
220218

221219
@staticmethod
222220
def parse_dataset_path(path: str) -> Dict[str, str]:
223221
"""Parses a dataset path into its component segments."""
224-
m = re.match(
225-
r"^projects/(?P<project>.+?)/locations/(?P<location>.+?)/datasets/(?P<dataset>.+?)$",
226-
path,
227-
)
222+
m = re.match(r"^projects/(?P<project>.+?)/datasets/(?P<dataset>.+?)$", path)
228223
return m.groupdict() if m else {}
229224

230225
@staticmethod
231226
def dataset_path(
232227
project: str,
228+
location: str,
233229
dataset: str,
234230
) -> str:
235231
"""Returns a fully-qualified dataset string."""
236-
return "projects/{project}/datasets/{dataset}".format(
232+
return "projects/{project}/locations/{location}/datasets/{dataset}".format(
237233
project=project,
234+
location=location,
238235
dataset=dataset,
239236
)
240237

241238
@staticmethod
242239
def parse_dataset_path(path: str) -> Dict[str, str]:
243240
"""Parses a dataset path into its component segments."""
244-
m = re.match(r"^projects/(?P<project>.+?)/datasets/(?P<dataset>.+?)$", path)
241+
m = re.match(
242+
r"^projects/(?P<project>.+?)/locations/(?P<location>.+?)/datasets/(?P<dataset>.+?)$",
243+
path,
244+
)
245245
return m.groupdict() if m else {}
246246

247247
@staticmethod

google/cloud/aiplatform_v1beta1/types/accelerator_type.py

-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030

3131
class AcceleratorType(proto.Enum):
3232
r"""Represents a hardware accelerator type.
33-
NEXT ID: 11.
3433
3534
Values:
3635
ACCELERATOR_TYPE_UNSPECIFIED (0):

google/cloud/aiplatform_v1beta1/types/endpoint_service.py

+12-5
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,18 @@ class CreateEndpointRequest(proto.Message):
6060
final component of the endpoint resource name. If not
6161
provided, Vertex AI will generate a value for this ID.
6262
63-
This value should be 1-10 characters, and valid characters
64-
are /[0-9]/. When using HTTP/JSON, this field is populated
65-
based on a query string argument, such as
66-
``?endpoint_id=12345``. This is the fallback for fields that
67-
are not included in either the URI or the body.
63+
If the first character is a letter, this value may be up to
64+
63 characters, and valid characters are ``[a-z0-9-]``. The
65+
last character must be a letter or number.
66+
67+
If the first character is a number, this value may be up to
68+
9 characters, and valid characters are ``[0-9]`` with no
69+
leading zeros.
70+
71+
When using HTTP/JSON, this field is populated based on a
72+
query string argument, such as ``?endpoint_id=12345``. This
73+
is the fallback for fields that are not included in either
74+
the URI or the body.
6875
"""
6976

7077
parent: str = proto.Field(

google/cloud/aiplatform_v1beta1/types/featurestore_service.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -555,11 +555,8 @@ class BatchReadFeatureValuesRequest(proto.Message):
555555
will be automatically inferred. For CSV source, the
556556
pass-through values will be passed as opaque bytes.
557557
entity_type_specs (MutableSequence[google.cloud.aiplatform_v1beta1.types.BatchReadFeatureValuesRequest.EntityTypeSpec]):
558-
Required. Specifies EntityType grouping Features to read
559-
values of and settings. Each EntityType referenced in
560-
[BatchReadFeatureValuesRequest.entity_type_specs] must have
561-
a column specifying entity IDs in the EntityType in
562-
[BatchReadFeatureValuesRequest.request][] .
558+
Required. Specifies EntityType grouping
559+
Features to read values of and settings.
563560
start_time (google.protobuf.timestamp_pb2.Timestamp):
564561
Optional. Excludes Feature values with
565562
feature generation timestamp before this

0 commit comments

Comments
 (0)