Skip to content

Commit

Permalink
🦉 Updates from OwlBot post-processor
Browse files Browse the repository at this point in the history
  • Loading branch information
gcf-owl-bot[bot] committed Mar 30, 2023
1 parent b60cfed commit 5b125cb
Show file tree
Hide file tree
Showing 1,588 changed files with 107 additions and 648,856 deletions.
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 @@ -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_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
18 changes: 17 additions & 1 deletion google/cloud/aiplatform_v1beta1/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.v1beta1.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.v1beta1.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_v1beta1/types/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -901,6 +901,10 @@ class ModelSourceInfo(proto.Message):
Attributes:
source_type (google.cloud.aiplatform_v1beta1.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.v1beta1.ModelSourceInfo.source_type]
pertains to the original.
"""

class ModelSourceType(proto.Enum):
Expand All @@ -918,17 +922,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))
13 changes: 0 additions & 13 deletions owl-bot-staging/v1/.coveragerc

This file was deleted.

33 changes: 0 additions & 33 deletions owl-bot-staging/v1/.flake8

This file was deleted.

2 changes: 0 additions & 2 deletions owl-bot-staging/v1/MANIFEST.in

This file was deleted.

49 changes: 0 additions & 49 deletions owl-bot-staging/v1/README.rst

This file was deleted.

10 changes: 0 additions & 10 deletions owl-bot-staging/v1/docs/aiplatform_v1/dataset_service.rst

This file was deleted.

10 changes: 0 additions & 10 deletions owl-bot-staging/v1/docs/aiplatform_v1/endpoint_service.rst

This file was deleted.

This file was deleted.

10 changes: 0 additions & 10 deletions owl-bot-staging/v1/docs/aiplatform_v1/featurestore_service.rst

This file was deleted.

10 changes: 0 additions & 10 deletions owl-bot-staging/v1/docs/aiplatform_v1/index_endpoint_service.rst

This file was deleted.

10 changes: 0 additions & 10 deletions owl-bot-staging/v1/docs/aiplatform_v1/index_service.rst

This file was deleted.

10 changes: 0 additions & 10 deletions owl-bot-staging/v1/docs/aiplatform_v1/job_service.rst

This file was deleted.

Loading

0 comments on commit 5b125cb

Please sign in to comment.