Skip to content

Commit d778dee

Browse files
ivanmkcnayaknishantrosiezou
authored
fix: Fixed docstrings for wildcards and matching engine type (#1220)
* fix: Fixed docstrings for wildcards and matching engine type * Reverted FeatureStore wildcard removal from docstring Co-authored-by: nayaknishant <[email protected]> Co-authored-by: Rosie Zou <[email protected]>
1 parent 50d4129 commit d778dee

File tree

9 files changed

+23
-33
lines changed

9 files changed

+23
-33
lines changed

google/cloud/aiplatform/datasets/_datasources.py

+6-8
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,9 @@ def __init__(
121121
Args:
122122
gcs_source (Union[str, Sequence[str]]):
123123
Required. The Google Cloud Storage location for the input content.
124-
Google Cloud Storage URI(-s) to the input file(s). May contain
125-
wildcards. For more information on wildcards, see
126-
https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames.
127-
examples:
124+
Google Cloud Storage URI(-s) to the input file(s).
125+
126+
Examples:
128127
str: "gs://bucket/file.csv"
129128
Sequence[str]: ["gs://bucket/file1.csv", "gs://bucket/file2.csv"]
130129
import_schema_uri (str):
@@ -185,10 +184,9 @@ def create_datasource(
185184
`OpenAPI 3.0.2 Schema
186185
gcs_source (Union[str, Sequence[str]]):
187186
The Google Cloud Storage location for the input content.
188-
Google Cloud Storage URI(-s) to the input file(s). May contain
189-
wildcards. For more information on wildcards, see
190-
https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames.
191-
examples:
187+
Google Cloud Storage URI(-s) to the input file(s).
188+
189+
Examples:
192190
str: "gs://bucket/file.csv"
193191
Sequence[str]: ["gs://bucket/file1.csv", "gs://bucket/file2.csv"]
194192
bq_source (str):

google/cloud/aiplatform/datasets/image_dataset.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,9 @@ def create(
5959
of any UTF-8 characters.
6060
gcs_source (Union[str, Sequence[str]]):
6161
Google Cloud Storage URI(-s) to the
62-
input file(s). May contain wildcards. For more
63-
information on wildcards, see
64-
https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames.
65-
examples:
62+
input file(s).
63+
64+
Examples:
6665
str: "gs://bucket/file.csv"
6766
Sequence[str]: ["gs://bucket/file1.csv", "gs://bucket/file2.csv"]
6867
import_schema_uri (str):

google/cloud/aiplatform/datasets/tabular_dataset.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,9 @@ def create(
6363
of any UTF-8 characters.
6464
gcs_source (Union[str, Sequence[str]]):
6565
Google Cloud Storage URI(-s) to the
66-
input file(s). May contain wildcards. For more
67-
information on wildcards, see
68-
https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames.
69-
examples:
66+
input file(s).
67+
68+
Examples:
7069
str: "gs://bucket/file.csv"
7170
Sequence[str]: ["gs://bucket/file1.csv", "gs://bucket/file2.csv"]
7271
bq_source (str):

google/cloud/aiplatform/datasets/text_dataset.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,9 @@ def create(
6666
of any UTF-8 characters.
6767
gcs_source (Union[str, Sequence[str]]):
6868
Google Cloud Storage URI(-s) to the
69-
input file(s). May contain wildcards. For more
70-
information on wildcards, see
71-
https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames.
72-
examples:
69+
input file(s).
70+
71+
Examples:
7372
str: "gs://bucket/file.csv"
7473
Sequence[str]: ["gs://bucket/file1.csv", "gs://bucket/file2.csv"]
7574
import_schema_uri (str):

google/cloud/aiplatform/datasets/time_series_dataset.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,9 @@ def create(
5757
of any UTF-8 characters.
5858
gcs_source (Union[str, Sequence[str]]):
5959
Google Cloud Storage URI(-s) to the
60-
input file(s). May contain wildcards. For more
61-
information on wildcards, see
62-
https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames.
63-
examples:
60+
input file(s).
61+
62+
Examples:
6463
str: "gs://bucket/file.csv"
6564
Sequence[str]: ["gs://bucket/file1.csv", "gs://bucket/file2.csv"]
6665
bq_source (str):

google/cloud/aiplatform/datasets/video_dataset.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,9 @@ def create(
5959
of any UTF-8 characters.
6060
gcs_source (Union[str, Sequence[str]]):
6161
Google Cloud Storage URI(-s) to the
62-
input file(s). May contain wildcards. For more
63-
information on wildcards, see
64-
https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames.
65-
examples:
62+
input file(s).
63+
64+
Examples:
6665
str: "gs://bucket/file.csv"
6766
Sequence[str]: ["gs://bucket/file1.csv", "gs://bucket/file2.csv"]
6867
import_schema_uri (str):

google/cloud/aiplatform/jobs.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -409,8 +409,7 @@ def create(
409409
gcs_source (Optional[Sequence[str]]):
410410
Google Cloud Storage URI(-s) to your instances to run
411411
batch prediction on. They must match `instances_format`.
412-
May contain wildcards. For more information on wildcards, see
413-
https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames.
412+
414413
bigquery_source (Optional[str]):
415414
BigQuery URI to a table, up to 2000 characters long. For example:
416415
`bq://projectId.bqDatasetId.bqTableId`

google/cloud/aiplatform/matching_engine/matching_engine_index.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ def update_embeddings(
302302
The expected structure and format of the files this URI points to is
303303
described at
304304
https://docs.google.com/document/d/12DLVB6Nq6rdv8grxfBsPhUA283KWrQ9ZenPBp0zUC30
305-
is_complete_overwrite (str):
305+
is_complete_overwrite (bool):
306306
Optional. If this field is set together with contentsDeltaUri when calling IndexService.UpdateIndex,
307307
then existing content of the Index will be replaced by the data from the contentsDeltaUri.
308308
request_metadata (Sequence[Tuple[str, str]]):

google/cloud/aiplatform/models.py

-2
Original file line numberDiff line numberDiff line change
@@ -2491,8 +2491,6 @@ def batch_predict(
24912491
gcs_source: Optional[Sequence[str]] = None
24922492
Google Cloud Storage URI(-s) to your instances to run
24932493
batch prediction on. They must match `instances_format`.
2494-
May contain wildcards. For more information on wildcards, see
2495-
https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames.
24962494
bigquery_source: Optional[str] = None
24972495
BigQuery URI to a table, up to 2000 characters long. For example:
24982496
`bq://projectId.bqDatasetId.bqTableId`

0 commit comments

Comments
 (0)