Skip to content

Commit f2244aa

Browse files
gcf-owl-bot[bot]copybara-github
authored andcommitted
Copybara import of the project:
-- 283839e by Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>: feat: add json schema support to structured output and function declaration PiperOrigin-RevId: 766041719 Source-Link: googleapis/googleapis@215fb4a Source-Link: googleapis/googleapis-gen@09064cb Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMDkwNjRjYmY2NjdkZWNlYjczYmU5YWQ1YjIwZTFlN2MxNzg0NmNmNSJ9 feat: add json schema support to structured output and function declaration PiperOrigin-RevId: 765394859 Source-Link: googleapis/googleapis@50febc7 Source-Link: googleapis/googleapis-gen@44798b7 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNDQ3OThiN2Y3YzdkODNlZTg3OGVmYjAyZmZhN2QxNGYwYzg1MzcyYyJ9 feat: add network_attachment to PscInterfaceConfig feat: add psc_interface_config to CustomJobSpec feat: add psc_interface_config to PersistentResource feat: add psc_interface_config to PipelineJob PiperOrigin-RevId: 765264778 Source-Link: googleapis/googleapis@89d75d5 Source-Link: googleapis/googleapis-gen@6ad81ec Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNmFkODFlYzU0NWVkNjM4ZGU2OTQ1NzMyYWMwNzZkNjI0M2Y0NWQ5NiJ9 feat: Expose URL Context API to v1 PiperOrigin-RevId: 764946762 Source-Link: googleapis/googleapis@8e81724 Source-Link: googleapis/googleapis-gen@d6dee1c Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZDZkZWUxY2Q4MjcxMDViZDdmMDBkYzYyZmRhYjg3YzEzOWY5ZDcwOCJ9 feat: Expose URL Context API to v1beta1 PiperOrigin-RevId: 764899677 Source-Link: googleapis/googleapis@69f9caa Source-Link: googleapis/googleapis-gen@8096a36 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiODA5NmEzNmIwZWIxMmVkMTFlOWRmYjZkYTM1NmIxMjg2NTk5OTE3NSJ9 feat: A new field `include_thoughts` is added to message `.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig` feat: A new field `thought_signature` is added to message `.google.cloud.aiplatform.v1.Part` feat: A new field `thought` is added to message `.google.cloud.aiplatform.v1.Part` docs: allow field `thought` to be set as input PiperOrigin-RevId: 764850502 Source-Link: googleapis/googleapis@93f5d45 Source-Link: googleapis/googleapis-gen@708f631 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNzA4ZjYzMTQ0MzYyMjcyNTEzNDY0NjljNjA4YjZhYzEyOTkzZjcxMCJ9 feat: A new field `include_thoughts` is added to message `.google.cloud.aiplatform.v1.Part` feat: A new field `thought` is added to message `.google.cloud.aiplatform.v1.Part` feat: A new field `thought_signature` is added to message `.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig` PiperOrigin-RevId: 764447916 Source-Link: googleapis/googleapis@ea40277 Source-Link: googleapis/googleapis-gen@37f4666 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMzdmNDY2NmFmNjdlZjMxM2VkMWRjNzQzMTZhNjI4ODEwNTk3YjU4MiJ9 -- 0a9f34a by Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>: 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md COPYBARA_INTEGRATE_REVIEW=#5364 from googleapis:owl-bot-copy 86a12ab PiperOrigin-RevId: 766820351
1 parent 51394c1 commit f2244aa

36 files changed

+801
-186
lines changed

google/cloud/aiplatform_v1/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -859,6 +859,7 @@
859859
from .types.service_networking import PrivateServiceConnectConfig
860860
from .types.service_networking import PscAutomatedEndpoints
861861
from .types.service_networking import PSCAutomationConfig
862+
from .types.service_networking import PscInterfaceConfig
862863
from .types.specialist_pool import SpecialistPool
863864
from .types.specialist_pool_service import CreateSpecialistPoolOperationMetadata
864865
from .types.specialist_pool_service import CreateSpecialistPoolRequest
@@ -944,6 +945,7 @@
944945
from .types.tool import RetrievalConfig
945946
from .types.tool import Tool
946947
from .types.tool import ToolConfig
948+
from .types.tool import UrlContext
947949
from .types.tool import VertexAISearch
948950
from .types.tool import VertexRagStore
949951
from .types.training_pipeline import FilterSplit
@@ -1710,6 +1712,7 @@
17101712
"PrivateServiceConnectConfig",
17111713
"Probe",
17121714
"PscAutomatedEndpoints",
1715+
"PscInterfaceConfig",
17131716
"PublisherModel",
17141717
"PublisherModelView",
17151718
"PurgeArtifactsMetadata",
@@ -1997,6 +2000,7 @@
19972000
"UploadRagFileResponse",
19982001
"UpsertDatapointsRequest",
19992002
"UpsertDatapointsResponse",
2003+
"UrlContext",
20002004
"UserActionReference",
20012005
"Value",
20022006
"VertexAISearch",

google/cloud/aiplatform_v1/services/job_service/async_client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,10 @@ class JobServiceAsyncClient:
153153
)
154154
network_path = staticmethod(JobServiceClient.network_path)
155155
parse_network_path = staticmethod(JobServiceClient.parse_network_path)
156+
network_attachment_path = staticmethod(JobServiceClient.network_attachment_path)
157+
parse_network_attachment_path = staticmethod(
158+
JobServiceClient.parse_network_attachment_path
159+
)
156160
notification_channel_path = staticmethod(JobServiceClient.notification_channel_path)
157161
parse_notification_channel_path = staticmethod(
158162
JobServiceClient.parse_notification_channel_path

google/cloud/aiplatform_v1/services/job_service/client.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,28 @@ def parse_network_path(path: str) -> Dict[str, str]:
514514
)
515515
return m.groupdict() if m else {}
516516

517+
@staticmethod
518+
def network_attachment_path(
519+
project: str,
520+
region: str,
521+
networkattachment: str,
522+
) -> str:
523+
"""Returns a fully-qualified network_attachment string."""
524+
return "projects/{project}/regions/{region}/networkAttachments/{networkattachment}".format(
525+
project=project,
526+
region=region,
527+
networkattachment=networkattachment,
528+
)
529+
530+
@staticmethod
531+
def parse_network_attachment_path(path: str) -> Dict[str, str]:
532+
"""Parses a network_attachment path into its component segments."""
533+
m = re.match(
534+
r"^projects/(?P<project>.+?)/regions/(?P<region>.+?)/networkAttachments/(?P<networkattachment>.+?)$",
535+
path,
536+
)
537+
return m.groupdict() if m else {}
538+
517539
@staticmethod
518540
def notification_channel_path(
519541
project: str,

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -265,40 +265,40 @@ def parse_dataset_path(path: str) -> Dict[str, str]:
265265
@staticmethod
266266
def dataset_path(
267267
project: str,
268+
location: str,
268269
dataset: str,
269270
) -> str:
270271
"""Returns a fully-qualified dataset string."""
271-
return "projects/{project}/datasets/{dataset}".format(
272+
return "projects/{project}/locations/{location}/datasets/{dataset}".format(
272273
project=project,
274+
location=location,
273275
dataset=dataset,
274276
)
275277

276278
@staticmethod
277279
def parse_dataset_path(path: str) -> Dict[str, str]:
278280
"""Parses a dataset path into its component segments."""
279-
m = re.match(r"^projects/(?P<project>.+?)/datasets/(?P<dataset>.+?)$", path)
281+
m = re.match(
282+
r"^projects/(?P<project>.+?)/locations/(?P<location>.+?)/datasets/(?P<dataset>.+?)$",
283+
path,
284+
)
280285
return m.groupdict() if m else {}
281286

282287
@staticmethod
283288
def dataset_path(
284289
project: str,
285-
location: str,
286290
dataset: str,
287291
) -> str:
288292
"""Returns a fully-qualified dataset string."""
289-
return "projects/{project}/locations/{location}/datasets/{dataset}".format(
293+
return "projects/{project}/datasets/{dataset}".format(
290294
project=project,
291-
location=location,
292295
dataset=dataset,
293296
)
294297

295298
@staticmethod
296299
def parse_dataset_path(path: str) -> Dict[str, str]:
297300
"""Parses a dataset path into its component segments."""
298-
m = re.match(
299-
r"^projects/(?P<project>.+?)/locations/(?P<location>.+?)/datasets/(?P<dataset>.+?)$",
300-
path,
301-
)
301+
m = re.match(r"^projects/(?P<project>.+?)/datasets/(?P<dataset>.+?)$", path)
302302
return m.groupdict() if m else {}
303303

304304
@staticmethod

google/cloud/aiplatform_v1/services/persistent_resource_service/async_client.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
persistent_resource as gca_persistent_resource,
5656
)
5757
from google.cloud.aiplatform_v1.types import persistent_resource_service
58+
from google.cloud.aiplatform_v1.types import service_networking
5859
from google.cloud.location import locations_pb2 # type: ignore
5960
from google.iam.v1 import iam_policy_pb2 # type: ignore
6061
from google.iam.v1 import policy_pb2 # type: ignore
@@ -97,6 +98,12 @@ class PersistentResourceServiceAsyncClient:
9798
parse_network_path = staticmethod(
9899
PersistentResourceServiceClient.parse_network_path
99100
)
101+
network_attachment_path = staticmethod(
102+
PersistentResourceServiceClient.network_attachment_path
103+
)
104+
parse_network_attachment_path = staticmethod(
105+
PersistentResourceServiceClient.parse_network_attachment_path
106+
)
100107
persistent_resource_path = staticmethod(
101108
PersistentResourceServiceClient.persistent_resource_path
102109
)

google/cloud/aiplatform_v1/services/persistent_resource_service/client.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
persistent_resource as gca_persistent_resource,
7272
)
7373
from google.cloud.aiplatform_v1.types import persistent_resource_service
74+
from google.cloud.aiplatform_v1.types import service_networking
7475
from google.cloud.location import locations_pb2 # type: ignore
7576
from google.iam.v1 import iam_policy_pb2 # type: ignore
7677
from google.iam.v1 import policy_pb2 # type: ignore
@@ -248,6 +249,28 @@ def parse_network_path(path: str) -> Dict[str, str]:
248249
)
249250
return m.groupdict() if m else {}
250251

252+
@staticmethod
253+
def network_attachment_path(
254+
project: str,
255+
region: str,
256+
networkattachment: str,
257+
) -> str:
258+
"""Returns a fully-qualified network_attachment string."""
259+
return "projects/{project}/regions/{region}/networkAttachments/{networkattachment}".format(
260+
project=project,
261+
region=region,
262+
networkattachment=networkattachment,
263+
)
264+
265+
@staticmethod
266+
def parse_network_attachment_path(path: str) -> Dict[str, str]:
267+
"""Parses a network_attachment path into its component segments."""
268+
m = re.match(
269+
r"^projects/(?P<project>.+?)/regions/(?P<region>.+?)/networkAttachments/(?P<networkattachment>.+?)$",
270+
path,
271+
)
272+
return m.groupdict() if m else {}
273+
251274
@staticmethod
252275
def persistent_resource_path(
253276
project: str,

google/cloud/aiplatform_v1/services/pipeline_service/async_client.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
from google.cloud.aiplatform_v1.types import pipeline_job as gca_pipeline_job
5656
from google.cloud.aiplatform_v1.types import pipeline_service
5757
from google.cloud.aiplatform_v1.types import pipeline_state
58+
from google.cloud.aiplatform_v1.types import service_networking
5859
from google.cloud.aiplatform_v1.types import training_pipeline
5960
from google.cloud.aiplatform_v1.types import training_pipeline as gca_training_pipeline
6061
from google.cloud.location import locations_pb2 # type: ignore
@@ -109,6 +110,12 @@ class PipelineServiceAsyncClient:
109110
parse_model_path = staticmethod(PipelineServiceClient.parse_model_path)
110111
network_path = staticmethod(PipelineServiceClient.network_path)
111112
parse_network_path = staticmethod(PipelineServiceClient.parse_network_path)
113+
network_attachment_path = staticmethod(
114+
PipelineServiceClient.network_attachment_path
115+
)
116+
parse_network_attachment_path = staticmethod(
117+
PipelineServiceClient.parse_network_attachment_path
118+
)
112119
pipeline_job_path = staticmethod(PipelineServiceClient.pipeline_job_path)
113120
parse_pipeline_job_path = staticmethod(
114121
PipelineServiceClient.parse_pipeline_job_path

google/cloud/aiplatform_v1/services/pipeline_service/client.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
from google.cloud.aiplatform_v1.types import pipeline_job as gca_pipeline_job
7272
from google.cloud.aiplatform_v1.types import pipeline_service
7373
from google.cloud.aiplatform_v1.types import pipeline_state
74+
from google.cloud.aiplatform_v1.types import service_networking
7475
from google.cloud.aiplatform_v1.types import training_pipeline
7576
from google.cloud.aiplatform_v1.types import training_pipeline as gca_training_pipeline
7677
from google.cloud.location import locations_pb2 # type: ignore
@@ -388,6 +389,28 @@ def parse_network_path(path: str) -> Dict[str, str]:
388389
)
389390
return m.groupdict() if m else {}
390391

392+
@staticmethod
393+
def network_attachment_path(
394+
project: str,
395+
region: str,
396+
networkattachment: str,
397+
) -> str:
398+
"""Returns a fully-qualified network_attachment string."""
399+
return "projects/{project}/regions/{region}/networkAttachments/{networkattachment}".format(
400+
project=project,
401+
region=region,
402+
networkattachment=networkattachment,
403+
)
404+
405+
@staticmethod
406+
def parse_network_attachment_path(path: str) -> Dict[str, str]:
407+
"""Parses a network_attachment path into its component segments."""
408+
m = re.match(
409+
r"^projects/(?P<project>.+?)/regions/(?P<region>.+?)/networkAttachments/(?P<networkattachment>.+?)$",
410+
path,
411+
)
412+
return m.groupdict() if m else {}
413+
391414
@staticmethod
392415
def pipeline_job_path(
393416
project: str,

google/cloud/aiplatform_v1/services/schedule_service/async_client.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,12 @@ class ScheduleServiceAsyncClient:
100100
parse_execution_path = staticmethod(ScheduleServiceClient.parse_execution_path)
101101
network_path = staticmethod(ScheduleServiceClient.network_path)
102102
parse_network_path = staticmethod(ScheduleServiceClient.parse_network_path)
103+
network_attachment_path = staticmethod(
104+
ScheduleServiceClient.network_attachment_path
105+
)
106+
parse_network_attachment_path = staticmethod(
107+
ScheduleServiceClient.parse_network_attachment_path
108+
)
103109
notebook_execution_job_path = staticmethod(
104110
ScheduleServiceClient.notebook_execution_job_path
105111
)

google/cloud/aiplatform_v1/services/schedule_service/client.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,28 @@ def parse_network_path(path: str) -> Dict[str, str]:
339339
)
340340
return m.groupdict() if m else {}
341341

342+
@staticmethod
343+
def network_attachment_path(
344+
project: str,
345+
region: str,
346+
networkattachment: str,
347+
) -> str:
348+
"""Returns a fully-qualified network_attachment string."""
349+
return "projects/{project}/regions/{region}/networkAttachments/{networkattachment}".format(
350+
project=project,
351+
region=region,
352+
networkattachment=networkattachment,
353+
)
354+
355+
@staticmethod
356+
def parse_network_attachment_path(path: str) -> Dict[str, str]:
357+
"""Parses a network_attachment path into its component segments."""
358+
m = re.match(
359+
r"^projects/(?P<project>.+?)/regions/(?P<region>.+?)/networkAttachments/(?P<networkattachment>.+?)$",
360+
path,
361+
)
362+
return m.groupdict() if m else {}
363+
342364
@staticmethod
343365
def notebook_execution_job_path(
344366
project: str,

0 commit comments

Comments
 (0)