Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

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 Jan 12, 2024
1 parent 9f63fdb commit f9c4acb
Show file tree
Hide file tree
Showing 1,970 changed files with 60 additions and 837,367 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ async def sample_create_feature_online_store():
parent (:class:`str`):
Required. The resource name of the Location to create
FeatureOnlineStores. Format:
``projects/{project}/locations/{location}'``
``projects/{project}/locations/{location}``
This corresponds to the ``parent`` field
on the ``request`` instance; if ``request`` is provided, this
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ def sample_create_feature_online_store():
parent (str):
Required. The resource name of the Location to create
FeatureOnlineStores. Format:
``projects/{project}/locations/{location}'``
``projects/{project}/locations/{location}``
This corresponds to the ``parent`` 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 @@ -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
29 changes: 29 additions & 0 deletions google/cloud/aiplatform_v1/types/custom_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,22 @@ class CustomJobSpec(proto.Message):
Optional. The Experiment Run associated with this job.
Format:
``projects/{project}/locations/{location}/metadataStores/{metadataStores}/contexts/{experiment-name}-{experiment-run-name}``
models (MutableSequence[str]):
Optional. The name of the Model resources for which to
generate a mapping to artifact URIs. Applicable only to some
of the Google-provided custom jobs. Format:
``projects/{project}/locations/{location}/models/{model}``
In order to retrieve a specific version of the model, also
provide the version ID or version alias. Example:
``projects/{project}/locations/{location}/models/{model}@2``
or
``projects/{project}/locations/{location}/models/{model}@golden``
If no version ID or alias is specified, the "default"
version will be returned. The "default" version alias is
created for the first version of the model, and can be moved
to other versions later on. There will be exactly one
default version.
"""

worker_pool_specs: MutableSequence["WorkerPoolSpec"] = proto.RepeatedField(
Expand Down Expand Up @@ -336,6 +352,10 @@ class CustomJobSpec(proto.Message):
proto.STRING,
number=18,
)
models: MutableSequence[str] = proto.RepeatedField(
proto.STRING,
number=20,
)


class WorkerPoolSpec(proto.Message):
Expand Down Expand Up @@ -509,6 +529,10 @@ class Scheduling(proto.Message):
Optional. Indicates if the job should retry for internal
errors after the job starts running. If true, overrides
``Scheduling.restart_job_on_worker_restart`` to false.
max_wait_duration (google.protobuf.duration_pb2.Duration):
Optional. This is the maximum time a user
will wait in the QRM queue for resources.
Default is 1 day
"""

timeout: duration_pb2.Duration = proto.Field(
Expand All @@ -524,6 +548,11 @@ class Scheduling(proto.Message):
proto.BOOL,
number=5,
)
max_wait_duration: duration_pb2.Duration = proto.Field(
proto.MESSAGE,
number=6,
message=duration_pb2.Duration,
)


__all__ = tuple(sorted(__protobuf__.manifest))
4 changes: 2 additions & 2 deletions google/cloud/aiplatform_v1/types/dataset_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,8 @@ class ExportDataResponse(proto.Message):
exported_files (MutableSequence[str]):
All of the files that are exported in this export operation.
For custom code training export, only three (training,
validation and test) GCS paths in wildcard format are
populated (e.g., gs://.../training-*).
validation and test) Cloud Storage paths in wildcard format
are populated (for example, gs://.../training-*).
data_stats (google.cloud.aiplatform_v1.types.Model.DataStats):
Only present for custom code training export
use case. Records data stats, i.e.,
Expand Down
4 changes: 2 additions & 2 deletions google/cloud/aiplatform_v1/types/feature.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ class Feature(proto.Message):
stats and anomalies with specified objectives.
version_column_name (str):
Only applicable for Vertex AI Feature Store. The name of the
BigQuery Table/View columnn hosting data for this version.
If no value is provided, will use feature_id.
BigQuery Table/View column hosting data for this version. If
no value is provided, will use feature_id.
"""

class ValueType(proto.Enum):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class CreateFeatureOnlineStoreRequest(proto.Message):
parent (str):
Required. The resource name of the Location to create
FeatureOnlineStores. Format:
``projects/{project}/locations/{location}'``
``projects/{project}/locations/{location}``
feature_online_store (google.cloud.aiplatform_v1.types.FeatureOnlineStore):
Required. The FeatureOnlineStore to create.
feature_online_store_id (str):
Expand Down
3 changes: 2 additions & 1 deletion google/cloud/aiplatform_v1/types/model_evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ class ModelEvaluation(proto.Message):
The metadata of the ModelEvaluation. For the ModelEvaluation
uploaded from Managed Pipeline, metadata contains a
structured value with keys of "pipeline_job_id",
"evaluation_dataset_type", "evaluation_dataset_path".
"evaluation_dataset_type", "evaluation_dataset_path",
"row_based_metrics_path".
"""

class ModelEvaluationExplanationSpec(proto.Message):
Expand Down
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.

3 changes: 0 additions & 3 deletions owl-bot-staging/v1/docs/_static/custom.css

This file was deleted.

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

This file was deleted.

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.

This file was deleted.

10 changes: 0 additions & 10 deletions owl-bot-staging/v1/docs/aiplatform_v1/feature_registry_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.

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

This file was deleted.

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

This file was deleted.

Loading

0 comments on commit f9c4acb

Please sign in to comment.