Skip to content

Commit 5831667

Browse files
1 parent af4c4d4 commit 5831667

File tree

1,943 files changed

+2531
-821472
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,943 files changed

+2531
-821472
lines changed

google/cloud/aiplatform_v1beta1/__init__.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -576,13 +576,19 @@
576576
from .types.pipeline_state import PipelineState
577577
from .types.prediction_service import CountTokensRequest
578578
from .types.prediction_service import CountTokensResponse
579+
from .types.prediction_service import DirectPredictRequest
580+
from .types.prediction_service import DirectPredictResponse
581+
from .types.prediction_service import DirectRawPredictRequest
582+
from .types.prediction_service import DirectRawPredictResponse
579583
from .types.prediction_service import ExplainRequest
580584
from .types.prediction_service import ExplainResponse
581585
from .types.prediction_service import PredictRequest
582586
from .types.prediction_service import PredictResponse
583587
from .types.prediction_service import RawPredictRequest
584588
from .types.prediction_service import StreamingPredictRequest
585589
from .types.prediction_service import StreamingPredictResponse
590+
from .types.prediction_service import StreamingRawPredictRequest
591+
from .types.prediction_service import StreamingRawPredictResponse
586592
from .types.publisher_model import PublisherModel
587593
from .types.saved_query import SavedQuery
588594
from .types.schedule import Schedule
@@ -911,6 +917,10 @@
911917
"DeploymentResourcePool",
912918
"DeploymentResourcePoolServiceClient",
913919
"DestinationFeatureSetting",
920+
"DirectPredictRequest",
921+
"DirectPredictResponse",
922+
"DirectRawPredictRequest",
923+
"DirectRawPredictResponse",
914924
"DiskSpec",
915925
"DoubleArray",
916926
"EncryptionSpec",
@@ -1272,6 +1282,8 @@
12721282
"StratifiedSplit",
12731283
"StreamingPredictRequest",
12741284
"StreamingPredictResponse",
1285+
"StreamingRawPredictRequest",
1286+
"StreamingRawPredictResponse",
12751287
"StreamingReadFeatureValuesRequest",
12761288
"StringArray",
12771289
"Study",

google/cloud/aiplatform_v1beta1/gapic_metadata.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2311,6 +2311,16 @@
23112311
"count_tokens"
23122312
]
23132313
},
2314+
"DirectPredict": {
2315+
"methods": [
2316+
"direct_predict"
2317+
]
2318+
},
2319+
"DirectRawPredict": {
2320+
"methods": [
2321+
"direct_raw_predict"
2322+
]
2323+
},
23142324
"Explain": {
23152325
"methods": [
23162326
"explain"
@@ -2330,6 +2340,16 @@
23302340
"methods": [
23312341
"server_streaming_predict"
23322342
]
2343+
},
2344+
"StreamingPredict": {
2345+
"methods": [
2346+
"streaming_predict"
2347+
]
2348+
},
2349+
"StreamingRawPredict": {
2350+
"methods": [
2351+
"streaming_raw_predict"
2352+
]
23332353
}
23342354
}
23352355
},
@@ -2341,6 +2361,16 @@
23412361
"count_tokens"
23422362
]
23432363
},
2364+
"DirectPredict": {
2365+
"methods": [
2366+
"direct_predict"
2367+
]
2368+
},
2369+
"DirectRawPredict": {
2370+
"methods": [
2371+
"direct_raw_predict"
2372+
]
2373+
},
23442374
"Explain": {
23452375
"methods": [
23462376
"explain"
@@ -2360,6 +2390,16 @@
23602390
"methods": [
23612391
"server_streaming_predict"
23622392
]
2393+
},
2394+
"StreamingPredict": {
2395+
"methods": [
2396+
"streaming_predict"
2397+
]
2398+
},
2399+
"StreamingRawPredict": {
2400+
"methods": [
2401+
"streaming_raw_predict"
2402+
]
23632403
}
23642404
}
23652405
}

google/cloud/aiplatform_v1beta1/services/migration_service/client.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -230,40 +230,40 @@ def parse_dataset_path(path: str) -> Dict[str, str]:
230230
@staticmethod
231231
def dataset_path(
232232
project: str,
233+
location: str,
233234
dataset: str,
234235
) -> str:
235236
"""Returns a fully-qualified dataset string."""
236-
return "projects/{project}/datasets/{dataset}".format(
237+
return "projects/{project}/locations/{location}/datasets/{dataset}".format(
237238
project=project,
239+
location=location,
238240
dataset=dataset,
239241
)
240242

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

247252
@staticmethod
248253
def dataset_path(
249254
project: str,
250-
location: str,
251255
dataset: str,
252256
) -> str:
253257
"""Returns a fully-qualified dataset string."""
254-
return "projects/{project}/locations/{location}/datasets/{dataset}".format(
258+
return "projects/{project}/datasets/{dataset}".format(
255259
project=project,
256-
location=location,
257260
dataset=dataset,
258261
)
259262

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

269269
@staticmethod

0 commit comments

Comments
 (0)