Skip to content

Commit

Permalink
fix: Fixed docstrings for wildcards and matching engine type (#1220)
Browse files Browse the repository at this point in the history
* fix: Fixed docstrings for wildcards and matching engine type

* Reverted FeatureStore wildcard removal from docstring

Co-authored-by: nayaknishant <nishantnayak@google.com>
Co-authored-by: Rosie Zou <rosiezou@users.noreply.github.com>
  • Loading branch information
3 people committed Jun 23, 2022
1 parent 50d4129 commit d778dee
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 33 deletions.
14 changes: 6 additions & 8 deletions google/cloud/aiplatform/datasets/_datasources.py
Expand Up @@ -121,10 +121,9 @@ def __init__(
Args:
gcs_source (Union[str, Sequence[str]]):
Required. The Google Cloud Storage location for the input content.
Google Cloud Storage URI(-s) to the input file(s). May contain
wildcards. For more information on wildcards, see
https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames.
examples:
Google Cloud Storage URI(-s) to the input file(s).
Examples:
str: "gs://bucket/file.csv"
Sequence[str]: ["gs://bucket/file1.csv", "gs://bucket/file2.csv"]
import_schema_uri (str):
Expand Down Expand Up @@ -185,10 +184,9 @@ def create_datasource(
`OpenAPI 3.0.2 Schema
gcs_source (Union[str, Sequence[str]]):
The Google Cloud Storage location for the input content.
Google Cloud Storage URI(-s) to the input file(s). May contain
wildcards. For more information on wildcards, see
https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames.
examples:
Google Cloud Storage URI(-s) to the input file(s).
Examples:
str: "gs://bucket/file.csv"
Sequence[str]: ["gs://bucket/file1.csv", "gs://bucket/file2.csv"]
bq_source (str):
Expand Down
7 changes: 3 additions & 4 deletions google/cloud/aiplatform/datasets/image_dataset.py
Expand Up @@ -59,10 +59,9 @@ def create(
of any UTF-8 characters.
gcs_source (Union[str, Sequence[str]]):
Google Cloud Storage URI(-s) to the
input file(s). May contain wildcards. For more
information on wildcards, see
https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames.
examples:
input file(s).
Examples:
str: "gs://bucket/file.csv"
Sequence[str]: ["gs://bucket/file1.csv", "gs://bucket/file2.csv"]
import_schema_uri (str):
Expand Down
7 changes: 3 additions & 4 deletions google/cloud/aiplatform/datasets/tabular_dataset.py
Expand Up @@ -63,10 +63,9 @@ def create(
of any UTF-8 characters.
gcs_source (Union[str, Sequence[str]]):
Google Cloud Storage URI(-s) to the
input file(s). May contain wildcards. For more
information on wildcards, see
https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames.
examples:
input file(s).
Examples:
str: "gs://bucket/file.csv"
Sequence[str]: ["gs://bucket/file1.csv", "gs://bucket/file2.csv"]
bq_source (str):
Expand Down
7 changes: 3 additions & 4 deletions google/cloud/aiplatform/datasets/text_dataset.py
Expand Up @@ -66,10 +66,9 @@ def create(
of any UTF-8 characters.
gcs_source (Union[str, Sequence[str]]):
Google Cloud Storage URI(-s) to the
input file(s). May contain wildcards. For more
information on wildcards, see
https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames.
examples:
input file(s).
Examples:
str: "gs://bucket/file.csv"
Sequence[str]: ["gs://bucket/file1.csv", "gs://bucket/file2.csv"]
import_schema_uri (str):
Expand Down
7 changes: 3 additions & 4 deletions google/cloud/aiplatform/datasets/time_series_dataset.py
Expand Up @@ -57,10 +57,9 @@ def create(
of any UTF-8 characters.
gcs_source (Union[str, Sequence[str]]):
Google Cloud Storage URI(-s) to the
input file(s). May contain wildcards. For more
information on wildcards, see
https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames.
examples:
input file(s).
Examples:
str: "gs://bucket/file.csv"
Sequence[str]: ["gs://bucket/file1.csv", "gs://bucket/file2.csv"]
bq_source (str):
Expand Down
7 changes: 3 additions & 4 deletions google/cloud/aiplatform/datasets/video_dataset.py
Expand Up @@ -59,10 +59,9 @@ def create(
of any UTF-8 characters.
gcs_source (Union[str, Sequence[str]]):
Google Cloud Storage URI(-s) to the
input file(s). May contain wildcards. For more
information on wildcards, see
https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames.
examples:
input file(s).
Examples:
str: "gs://bucket/file.csv"
Sequence[str]: ["gs://bucket/file1.csv", "gs://bucket/file2.csv"]
import_schema_uri (str):
Expand Down
3 changes: 1 addition & 2 deletions google/cloud/aiplatform/jobs.py
Expand Up @@ -409,8 +409,7 @@ def create(
gcs_source (Optional[Sequence[str]]):
Google Cloud Storage URI(-s) to your instances to run
batch prediction on. They must match `instances_format`.
May contain wildcards. For more information on wildcards, see
https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames.
bigquery_source (Optional[str]):
BigQuery URI to a table, up to 2000 characters long. For example:
`bq://projectId.bqDatasetId.bqTableId`
Expand Down
Expand Up @@ -302,7 +302,7 @@ def update_embeddings(
The expected structure and format of the files this URI points to is
described at
https://docs.google.com/document/d/12DLVB6Nq6rdv8grxfBsPhUA283KWrQ9ZenPBp0zUC30
is_complete_overwrite (str):
is_complete_overwrite (bool):
Optional. If this field is set together with contentsDeltaUri when calling IndexService.UpdateIndex,
then existing content of the Index will be replaced by the data from the contentsDeltaUri.
request_metadata (Sequence[Tuple[str, str]]):
Expand Down
2 changes: 0 additions & 2 deletions google/cloud/aiplatform/models.py
Expand Up @@ -2491,8 +2491,6 @@ def batch_predict(
gcs_source: Optional[Sequence[str]] = None
Google Cloud Storage URI(-s) to your instances to run
batch prediction on. They must match `instances_format`.
May contain wildcards. For more information on wildcards, see
https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames.
bigquery_source: Optional[str] = None
BigQuery URI to a table, up to 2000 characters long. For example:
`bq://projectId.bqDatasetId.bqTableId`
Expand Down

0 comments on commit d778dee

Please sign in to comment.