Skip to content

Commit 2aae1f9

Browse files
gcf-owl-bot[bot]copybara-github
authored andcommitted
Copybara import of the project:
-- fb42326 by Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>: feat: add option EndpointUserId and ModelUserId fields feat: migrate dedicated endpoint to be enabled by default docs: A comment for field `dedicated_endpoint_enabled` in message `.google.cloud.aiplatform.v1beta1.DeployRequest` is changed PiperOrigin-RevId: 794762651 Source-Link: googleapis/googleapis@00f5023 Source-Link: googleapis/googleapis-gen@2946921 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjk0NjkyMTZmZjQxYzYzZTgwODc2ZmIxODQzYzU2ZjRiZTRkMjE3YiJ9 -- 4f8c212 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=#5704 from googleapis:owl-bot-copy 4f8c212 PiperOrigin-RevId: 796591450
1 parent 1b135ca commit 2aae1f9

File tree

3 files changed

+57
-3
lines changed

3 files changed

+57
-3
lines changed

google/cloud/aiplatform_v1beta1/types/model_garden_service.py

Lines changed: 55 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,16 @@ class ModelConfig(proto.Message):
321321
Optional. The specification of the container
322322
that is to be used when deploying. If not set,
323323
the default container spec will be used.
324+
model_user_id (str):
325+
Optional. The ID to use for the uploaded Model, which will
326+
become the final component of the model resource name. When
327+
not provided, Vertex AI will generate a value for this ID.
328+
When Model Registry model is provided, this field will be
329+
ignored.
330+
331+
This value may be up to 63 characters, and valid characters
332+
are ``[a-z0-9_-]``. The first character cannot be a number
333+
or hyphen.
324334
"""
325335

326336
accept_eula: bool = proto.Field(
@@ -344,6 +354,10 @@ class ModelConfig(proto.Message):
344354
number=5,
345355
message=gca_model.ModelContainerSpec,
346356
)
357+
model_user_id: str = proto.Field(
358+
proto.STRING,
359+
number=6,
360+
)
347361

348362
class EndpointConfig(proto.Message):
349363
r"""The endpoint config to use for the deployment.
@@ -354,14 +368,46 @@ class EndpointConfig(proto.Message):
354368
the endpoint. If not set, a default name will be
355369
used.
356370
dedicated_endpoint_enabled (bool):
357-
Optional. If true, the endpoint will be exposed through a
371+
Optional. Deprecated. Use dedicated_endpoint_disabled
372+
instead. If true, the endpoint will be exposed through a
358373
dedicated DNS [Endpoint.dedicated_endpoint_dns]. Your
359374
request to the dedicated DNS will be isolated from other
360375
users' traffic and will have better performance and
361376
reliability. Note: Once you enabled dedicated endpoint, you
362377
won't be able to send request to the shared DNS
363378
{region}-aiplatform.googleapis.com. The limitations will be
364379
removed soon.
380+
dedicated_endpoint_disabled (bool):
381+
Optional. By default, if dedicated endpoint is enabled, the
382+
endpoint will be exposed through a dedicated DNS
383+
[Endpoint.dedicated_endpoint_dns]. Your request to the
384+
dedicated DNS will be isolated from other users' traffic and
385+
will have better performance and reliability. Note: Once you
386+
enabled dedicated endpoint, you won't be able to send
387+
request to the shared DNS
388+
{region}-aiplatform.googleapis.com. The limitations will be
389+
removed soon.
390+
391+
If this field is set to true, the dedicated endpoint will be
392+
disabled and the deployed model will be exposed through the
393+
shared DNS {region}-aiplatform.googleapis.com.
394+
endpoint_user_id (str):
395+
Optional. Immutable. The ID to use for endpoint, which will
396+
become the final component of the endpoint resource name. If
397+
not provided, Vertex AI will generate a value for this ID.
398+
399+
If the first character is a letter, this value may be up to
400+
63 characters, and valid characters are ``[a-z0-9-]``. The
401+
last character must be a letter or number.
402+
403+
If the first character is a number, this value may be up to
404+
9 characters, and valid characters are ``[0-9]`` with no
405+
leading zeros.
406+
407+
When using HTTP/JSON, this field is populated based on a
408+
query string argument, such as ``?endpoint_id=12345``. This
409+
is the fallback for fields that are not included in either
410+
the URI or the body.
365411
"""
366412

367413
endpoint_display_name: str = proto.Field(
@@ -372,6 +418,14 @@ class EndpointConfig(proto.Message):
372418
proto.BOOL,
373419
number=2,
374420
)
421+
dedicated_endpoint_disabled: bool = proto.Field(
422+
proto.BOOL,
423+
number=4,
424+
)
425+
endpoint_user_id: str = proto.Field(
426+
proto.STRING,
427+
number=3,
428+
)
375429

376430
class DeployConfig(proto.Message):
377431
r"""The deploy config to use for the deployment.

samples/generated_samples/snippet_metadata_google.cloud.aiplatform.v1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-aiplatform",
11-
"version": "1.109.0"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

samples/generated_samples/snippet_metadata_google.cloud.aiplatform.v1beta1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-aiplatform",
11-
"version": "1.109.0"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

0 commit comments

Comments
 (0)