Skip to content

Commit

Permalink
Copybara import of the project:
Browse files Browse the repository at this point in the history
--
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
  • Loading branch information
gcf-owl-bot[bot] authored and copybara-github committed Apr 4, 2023
1 parent 3fad7bb commit 09535ad
Show file tree
Hide file tree
Showing 20 changed files with 214 additions and 88 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -306,11 +306,19 @@ async def sample_create_endpoint():
not provided, Vertex AI will generate a value for this
ID.
This value should be 1-10 characters, and valid
characters are /[0-9]/. When using HTTP/JSON, this field
is populated based on a query string argument, such as
``?endpoint_id=12345``. This is the fallback for fields
that are not included in either the URI or the body.
If the first character is a letter, this value may be up
to 63 characters, and valid characters are
``[a-z0-9-]``. The last character must be a letter or
number.
If the first character is a number, this value may be up
to 9 characters, and valid characters are ``[0-9]`` with
no leading zeros.
When using HTTP/JSON, this field is populated based on a
query string argument, such as ``?endpoint_id=12345``.
This is the fallback for fields that are not included in
either the URI or the body.
This corresponds to the ``endpoint_id`` field
on the ``request`` instance; if ``request`` is provided, this
Expand Down
18 changes: 13 additions & 5 deletions google/cloud/aiplatform_v1/services/endpoint_service/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -586,11 +586,19 @@ def sample_create_endpoint():
not provided, Vertex AI will generate a value for this
ID.
This value should be 1-10 characters, and valid
characters are /[0-9]/. When using HTTP/JSON, this field
is populated based on a query string argument, such as
``?endpoint_id=12345``. This is the fallback for fields
that are not included in either the URI or the body.
If the first character is a letter, this value may be up
to 63 characters, and valid characters are
``[a-z0-9-]``. The last character must be a letter or
number.
If the first character is a number, this value may be up
to 9 characters, and valid characters are ``[0-9]`` with
no leading zeros.
When using HTTP/JSON, this field is populated based on a
query string argument, such as ``?endpoint_id=12345``.
This is the fallback for fields that are not included in
either the URI or the body.
This corresponds to the ``endpoint_id`` field
on the ``request`` instance; if ``request`` is provided, this
Expand Down
18 changes: 9 additions & 9 deletions google/cloud/aiplatform_v1/services/migration_service/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,40 +230,40 @@ def parse_dataset_path(path: str) -> Dict[str, str]:
@staticmethod
def dataset_path(
project: str,
location: str,
dataset: str,
) -> str:
"""Returns a fully-qualified dataset string."""
return "projects/{project}/datasets/{dataset}".format(
return "projects/{project}/locations/{location}/datasets/{dataset}".format(
project=project,
location=location,
dataset=dataset,
)

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

@staticmethod
def dataset_path(
project: str,
location: str,
dataset: str,
) -> str:
"""Returns a fully-qualified dataset string."""
return "projects/{project}/locations/{location}/datasets/{dataset}".format(
return "projects/{project}/datasets/{dataset}".format(
project=project,
location=location,
dataset=dataset,
)

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

@staticmethod
Expand Down
1 change: 0 additions & 1 deletion google/cloud/aiplatform_v1/types/accelerator_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@

class AcceleratorType(proto.Enum):
r"""Represents a hardware accelerator type.
NEXT ID: 11.
Values:
ACCELERATOR_TYPE_UNSPECIFIED (0):
Expand Down
17 changes: 12 additions & 5 deletions google/cloud/aiplatform_v1/types/endpoint_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,18 @@ class CreateEndpointRequest(proto.Message):
final component of the endpoint resource name. If not
provided, Vertex AI will generate a value for this ID.
This value should be 1-10 characters, and valid characters
are /[0-9]/. When using HTTP/JSON, this field is populated
based on a query string argument, such as
``?endpoint_id=12345``. This is the fallback for fields that
are not included in either the URI or the body.
If the first character is a letter, this value may be up to
63 characters, and valid characters are ``[a-z0-9-]``. The
last character must be a letter or number.
If the first character is a number, this value may be up to
9 characters, and valid characters are ``[0-9]`` with no
leading zeros.
When using HTTP/JSON, this field is populated based on a
query string argument, such as ``?endpoint_id=12345``. This
is the fallback for fields that are not included in either
the URI or the body.
"""

parent: str = proto.Field(
Expand Down
7 changes: 2 additions & 5 deletions google/cloud/aiplatform_v1/types/featurestore_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,11 +553,8 @@ class BatchReadFeatureValuesRequest(proto.Message):
will be automatically inferred. For CSV source, the
pass-through values will be passed as opaque bytes.
entity_type_specs (MutableSequence[google.cloud.aiplatform_v1.types.BatchReadFeatureValuesRequest.EntityTypeSpec]):
Required. Specifies EntityType grouping Features to read
values of and settings. Each EntityType referenced in
[BatchReadFeatureValuesRequest.entity_type_specs] must have
a column specifying entity IDs in the EntityType in
[BatchReadFeatureValuesRequest.request][] .
Required. Specifies EntityType grouping
Features to read values of and settings.
start_time (google.protobuf.timestamp_pb2.Timestamp):
Optional. Excludes Feature values with
feature generation timestamp before this
Expand Down
18 changes: 17 additions & 1 deletion google/cloud/aiplatform_v1/types/index_endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,14 @@ class IndexEndpoint(proto.Message):
and
[private_service_connect_config][google.cloud.aiplatform.v1.IndexEndpoint.private_service_connect_config]
are mutually exclusive.
public_endpoint_enabled (bool):
Optional. If true, the deployed index will be
accessible through public endpoint.
public_endpoint_domain_name (str):
Output only. If
[public_endpoint_enabled][google.cloud.aiplatform.v1.IndexEndpoint.public_endpoint_enabled]
is true, this field will be populated with the domain name
to use for this index endpoint.
"""

name: str = proto.Field(
Expand Down Expand Up @@ -164,6 +172,14 @@ class IndexEndpoint(proto.Message):
message=service_networking.PrivateServiceConnectConfig,
)
)
public_endpoint_enabled: bool = proto.Field(
proto.BOOL,
number=13,
)
public_endpoint_domain_name: str = proto.Field(
proto.STRING,
number=14,
)


class DeployedIndex(proto.Message):
Expand Down Expand Up @@ -264,7 +280,7 @@ class DeployedIndex(proto.Message):
be deployed to any ip ranges under the provided
VPC network.
The value sohuld be the name of the address
The value should be the name of the address
(https://cloud.google.com/compute/docs/reference/rest/v1/addresses)
Example: 'vertex-ai-ip-range'.
deployment_group (str):
Expand Down
12 changes: 12 additions & 0 deletions google/cloud/aiplatform_v1/types/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -899,6 +899,10 @@ class ModelSourceInfo(proto.Message):
Attributes:
source_type (google.cloud.aiplatform_v1.types.ModelSourceInfo.ModelSourceType):
Type of the model source.
copy (bool):
If this Model is copy of another Model. If true then
[source_type][google.cloud.aiplatform.v1.ModelSourceInfo.source_type]
pertains to the original.
"""

class ModelSourceType(proto.Enum):
Expand All @@ -916,17 +920,25 @@ class ModelSourceType(proto.Enum):
BQML (3):
The Model is registered and sync'ed from
BigQuery ML.
MODEL_GARDEN (4):
The Model is saved or tuned from Model
Garden.
"""
MODEL_SOURCE_TYPE_UNSPECIFIED = 0
AUTOML = 1
CUSTOM = 2
BQML = 3
MODEL_GARDEN = 4

source_type: ModelSourceType = proto.Field(
proto.ENUM,
number=1,
enum=ModelSourceType,
)
copy: bool = proto.Field(
proto.BOOL,
number=2,
)


__all__ = tuple(sorted(__protobuf__.manifest))
Original file line number Diff line number Diff line change
Expand Up @@ -312,11 +312,19 @@ async def sample_create_endpoint():
not provided, Vertex AI will generate a value for this
ID.
This value should be 1-10 characters, and valid
characters are /[0-9]/. When using HTTP/JSON, this field
is populated based on a query string argument, such as
``?endpoint_id=12345``. This is the fallback for fields
that are not included in either the URI or the body.
If the first character is a letter, this value may be up
to 63 characters, and valid characters are
``[a-z0-9-]``. The last character must be a letter or
number.
If the first character is a number, this value may be up
to 9 characters, and valid characters are ``[0-9]`` with
no leading zeros.
When using HTTP/JSON, this field is populated based on a
query string argument, such as ``?endpoint_id=12345``.
This is the fallback for fields that are not included in
either the URI or the body.
This corresponds to the ``endpoint_id`` field
on the ``request`` instance; if ``request`` is provided, this
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -608,11 +608,19 @@ def sample_create_endpoint():
not provided, Vertex AI will generate a value for this
ID.
This value should be 1-10 characters, and valid
characters are /[0-9]/. When using HTTP/JSON, this field
is populated based on a query string argument, such as
``?endpoint_id=12345``. This is the fallback for fields
that are not included in either the URI or the body.
If the first character is a letter, this value may be up
to 63 characters, and valid characters are
``[a-z0-9-]``. The last character must be a letter or
number.
If the first character is a number, this value may be up
to 9 characters, and valid characters are ``[0-9]`` with
no leading zeros.
When using HTTP/JSON, this field is populated based on a
query string argument, such as ``?endpoint_id=12345``.
This is the fallback for fields that are not included in
either the URI or the body.
This corresponds to the ``endpoint_id`` field
on the ``request`` instance; if ``request`` is provided, this
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,40 +208,40 @@ def parse_annotated_dataset_path(path: str) -> Dict[str, str]:
@staticmethod
def dataset_path(
project: str,
location: str,
dataset: str,
) -> str:
"""Returns a fully-qualified dataset string."""
return "projects/{project}/locations/{location}/datasets/{dataset}".format(
return "projects/{project}/datasets/{dataset}".format(
project=project,
location=location,
dataset=dataset,
)

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

@staticmethod
def dataset_path(
project: str,
location: str,
dataset: str,
) -> str:
"""Returns a fully-qualified dataset string."""
return "projects/{project}/datasets/{dataset}".format(
return "projects/{project}/locations/{location}/datasets/{dataset}".format(
project=project,
location=location,
dataset=dataset,
)

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

@staticmethod
Expand Down
1 change: 0 additions & 1 deletion google/cloud/aiplatform_v1beta1/types/accelerator_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@

class AcceleratorType(proto.Enum):
r"""Represents a hardware accelerator type.
NEXT ID: 11.
Values:
ACCELERATOR_TYPE_UNSPECIFIED (0):
Expand Down
17 changes: 12 additions & 5 deletions google/cloud/aiplatform_v1beta1/types/endpoint_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,18 @@ class CreateEndpointRequest(proto.Message):
final component of the endpoint resource name. If not
provided, Vertex AI will generate a value for this ID.
This value should be 1-10 characters, and valid characters
are /[0-9]/. When using HTTP/JSON, this field is populated
based on a query string argument, such as
``?endpoint_id=12345``. This is the fallback for fields that
are not included in either the URI or the body.
If the first character is a letter, this value may be up to
63 characters, and valid characters are ``[a-z0-9-]``. The
last character must be a letter or number.
If the first character is a number, this value may be up to
9 characters, and valid characters are ``[0-9]`` with no
leading zeros.
When using HTTP/JSON, this field is populated based on a
query string argument, such as ``?endpoint_id=12345``. This
is the fallback for fields that are not included in either
the URI or the body.
"""

parent: str = proto.Field(
Expand Down
7 changes: 2 additions & 5 deletions google/cloud/aiplatform_v1beta1/types/featurestore_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,11 +555,8 @@ class BatchReadFeatureValuesRequest(proto.Message):
will be automatically inferred. For CSV source, the
pass-through values will be passed as opaque bytes.
entity_type_specs (MutableSequence[google.cloud.aiplatform_v1beta1.types.BatchReadFeatureValuesRequest.EntityTypeSpec]):
Required. Specifies EntityType grouping Features to read
values of and settings. Each EntityType referenced in
[BatchReadFeatureValuesRequest.entity_type_specs] must have
a column specifying entity IDs in the EntityType in
[BatchReadFeatureValuesRequest.request][] .
Required. Specifies EntityType grouping
Features to read values of and settings.
start_time (google.protobuf.timestamp_pb2.Timestamp):
Optional. Excludes Feature values with
feature generation timestamp before this
Expand Down
Loading

0 comments on commit 09535ad

Please sign in to comment.