Skip to content

Commit efdd99a

Browse files
1 parent e339795 commit efdd99a

File tree

2,947 files changed

+133
-2712772
lines changed

Some content is hidden

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

2,947 files changed

+133
-2712772
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -243,40 +243,40 @@ def parse_annotated_dataset_path(path: str) -> Dict[str, str]:
243243
@staticmethod
244244
def dataset_path(
245245
project: str,
246-
location: str,
247246
dataset: str,
248247
) -> str:
249248
"""Returns a fully-qualified dataset string."""
250-
return "projects/{project}/locations/{location}/datasets/{dataset}".format(
249+
return "projects/{project}/datasets/{dataset}".format(
251250
project=project,
252-
location=location,
253251
dataset=dataset,
254252
)
255253

256254
@staticmethod
257255
def parse_dataset_path(path: str) -> Dict[str, str]:
258256
"""Parses a dataset path into its component segments."""
259-
m = re.match(
260-
r"^projects/(?P<project>.+?)/locations/(?P<location>.+?)/datasets/(?P<dataset>.+?)$",
261-
path,
262-
)
257+
m = re.match(r"^projects/(?P<project>.+?)/datasets/(?P<dataset>.+?)$", path)
263258
return m.groupdict() if m else {}
264259

265260
@staticmethod
266261
def dataset_path(
267262
project: str,
263+
location: str,
268264
dataset: str,
269265
) -> str:
270266
"""Returns a fully-qualified dataset string."""
271-
return "projects/{project}/datasets/{dataset}".format(
267+
return "projects/{project}/locations/{location}/datasets/{dataset}".format(
272268
project=project,
269+
location=location,
273270
dataset=dataset,
274271
)
275272

276273
@staticmethod
277274
def parse_dataset_path(path: str) -> Dict[str, str]:
278275
"""Parses a dataset path into its component segments."""
279-
m = re.match(r"^projects/(?P<project>.+?)/datasets/(?P<dataset>.+?)$", path)
276+
m = re.match(
277+
r"^projects/(?P<project>.+?)/locations/(?P<location>.+?)/datasets/(?P<dataset>.+?)$",
278+
path,
279+
)
280280
return m.groupdict() if m else {}
281281

282282
@staticmethod

google/cloud/aiplatform_v1/types/accelerator_type.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ class AcceleratorType(proto.Enum):
6363
Nvidia B200 GPU.
6464
NVIDIA_GB200 (17):
6565
Nvidia GB200 GPU.
66+
NVIDIA_RTX_PRO_6000 (18):
67+
Nvidia RTX Pro 6000 GPU.
6668
TPU_V2 (6):
6769
TPU v2.
6870
TPU_V3 (7):
@@ -87,6 +89,7 @@ class AcceleratorType(proto.Enum):
8789
NVIDIA_H200_141GB = 15
8890
NVIDIA_B200 = 16
8991
NVIDIA_GB200 = 17
92+
NVIDIA_RTX_PRO_6000 = 18
9093
TPU_V2 = 6
9194
TPU_V3 = 7
9295
TPU_V4_POD = 10

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -243,40 +243,40 @@ def parse_annotated_dataset_path(path: str) -> Dict[str, str]:
243243
@staticmethod
244244
def dataset_path(
245245
project: str,
246+
location: str,
246247
dataset: str,
247248
) -> str:
248249
"""Returns a fully-qualified dataset string."""
249-
return "projects/{project}/datasets/{dataset}".format(
250+
return "projects/{project}/locations/{location}/datasets/{dataset}".format(
250251
project=project,
252+
location=location,
251253
dataset=dataset,
252254
)
253255

254256
@staticmethod
255257
def parse_dataset_path(path: str) -> Dict[str, str]:
256258
"""Parses a dataset path into its component segments."""
257-
m = re.match(r"^projects/(?P<project>.+?)/datasets/(?P<dataset>.+?)$", path)
259+
m = re.match(
260+
r"^projects/(?P<project>.+?)/locations/(?P<location>.+?)/datasets/(?P<dataset>.+?)$",
261+
path,
262+
)
258263
return m.groupdict() if m else {}
259264

260265
@staticmethod
261266
def dataset_path(
262267
project: str,
263-
location: str,
264268
dataset: str,
265269
) -> str:
266270
"""Returns a fully-qualified dataset string."""
267-
return "projects/{project}/locations/{location}/datasets/{dataset}".format(
271+
return "projects/{project}/datasets/{dataset}".format(
268272
project=project,
269-
location=location,
270273
dataset=dataset,
271274
)
272275

273276
@staticmethod
274277
def parse_dataset_path(path: str) -> Dict[str, str]:
275278
"""Parses a dataset path into its component segments."""
276-
m = re.match(
277-
r"^projects/(?P<project>.+?)/locations/(?P<location>.+?)/datasets/(?P<dataset>.+?)$",
278-
path,
279-
)
279+
m = re.match(r"^projects/(?P<project>.+?)/datasets/(?P<dataset>.+?)$", path)
280280
return m.groupdict() if m else {}
281281

282282
@staticmethod

google/cloud/aiplatform_v1beta1/types/accelerator_type.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ class AcceleratorType(proto.Enum):
6363
Nvidia B200 GPU.
6464
NVIDIA_GB200 (17):
6565
Nvidia GB200 GPU.
66+
NVIDIA_RTX_PRO_6000 (18):
67+
Nvidia RTX Pro 6000 GPU.
6668
TPU_V2 (6):
6769
TPU v2.
6870
TPU_V3 (7):
@@ -87,6 +89,7 @@ class AcceleratorType(proto.Enum):
8789
NVIDIA_H200_141GB = 15
8890
NVIDIA_B200 = 16
8991
NVIDIA_GB200 = 17
92+
NVIDIA_RTX_PRO_6000 = 18
9093
TPU_V2 = 6
9194
TPU_V3 = 7
9295
TPU_V4_POD = 10

google/cloud/aiplatform_v1beta1/types/tool.py

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,21 +107,73 @@ class Tool(proto.Message):
107107
specific Function Declarations.
108108
"""
109109

110+
class PhishBlockThreshold(proto.Enum):
111+
r"""These are available confidence level user can set to block
112+
malicious urls with chosen confidence and above. For
113+
understanding different confidence of webrisk, please refer to
114+
https://cloud.google.com/web-risk/docs/reference/rpc/google.cloud.webrisk.v1eap1#confidencelevel
115+
116+
Values:
117+
PHISH_BLOCK_THRESHOLD_UNSPECIFIED (0):
118+
Defaults to unspecified.
119+
BLOCK_LOW_AND_ABOVE (30):
120+
Blocks Low and above confidence URL that is
121+
risky.
122+
BLOCK_MEDIUM_AND_ABOVE (40):
123+
Blocks Medium and above confidence URL that
124+
is risky.
125+
BLOCK_HIGH_AND_ABOVE (50):
126+
Blocks High and above confidence URL that is
127+
risky.
128+
BLOCK_HIGHER_AND_ABOVE (55):
129+
Blocks Higher and above confidence URL that
130+
is risky.
131+
BLOCK_VERY_HIGH_AND_ABOVE (60):
132+
Blocks Very high and above confidence URL
133+
that is risky.
134+
BLOCK_ONLY_EXTREMELY_HIGH (100):
135+
Blocks Extremely high confidence URL that is
136+
risky.
137+
"""
138+
139+
PHISH_BLOCK_THRESHOLD_UNSPECIFIED = 0
140+
BLOCK_LOW_AND_ABOVE = 30
141+
BLOCK_MEDIUM_AND_ABOVE = 40
142+
BLOCK_HIGH_AND_ABOVE = 50
143+
BLOCK_HIGHER_AND_ABOVE = 55
144+
BLOCK_VERY_HIGH_AND_ABOVE = 60
145+
BLOCK_ONLY_EXTREMELY_HIGH = 100
146+
110147
class GoogleSearch(proto.Message):
111148
r"""GoogleSearch tool type.
112149
Tool to support Google Search in Model. Powered by Google.
113150
151+
152+
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
153+
114154
Attributes:
115155
exclude_domains (MutableSequence[str]):
116156
Optional. List of domains to be excluded from the search
117157
results. The default limit is 2000 domains. Example:
118158
["amazon.com", "facebook.com"].
159+
blocking_confidence (google.cloud.aiplatform_v1beta1.types.Tool.PhishBlockThreshold):
160+
Optional. Sites with confidence level chosen
161+
& above this value will be blocked from the
162+
search results.
163+
164+
This field is a member of `oneof`_ ``_blocking_confidence``.
119165
"""
120166

121167
exclude_domains: MutableSequence[str] = proto.RepeatedField(
122168
proto.STRING,
123169
number=3,
124170
)
171+
blocking_confidence: "Tool.PhishBlockThreshold" = proto.Field(
172+
proto.ENUM,
173+
number=4,
174+
optional=True,
175+
enum="Tool.PhishBlockThreshold",
176+
)
125177

126178
class CodeExecution(proto.Message):
127179
r"""Tool that executes code generated by the model, and automatically
@@ -816,17 +868,32 @@ class EnterpriseWebSearch(proto.Message):
816868
r"""Tool to search public web data, powered by Vertex AI Search
817869
and Sec4 compliance.
818870
871+
872+
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
873+
819874
Attributes:
820875
exclude_domains (MutableSequence[str]):
821876
Optional. List of domains to be excluded from
822877
the search results. The default limit is 2000
823878
domains.
879+
blocking_confidence (google.cloud.aiplatform_v1beta1.types.Tool.PhishBlockThreshold):
880+
Optional. Sites with confidence level chosen
881+
& above this value will be blocked from the
882+
search results.
883+
884+
This field is a member of `oneof`_ ``_blocking_confidence``.
824885
"""
825886

826887
exclude_domains: MutableSequence[str] = proto.RepeatedField(
827888
proto.STRING,
828889
number=1,
829890
)
891+
blocking_confidence: "Tool.PhishBlockThreshold" = proto.Field(
892+
proto.ENUM,
893+
number=4,
894+
optional=True,
895+
enum="Tool.PhishBlockThreshold",
896+
)
830897

831898

832899
class DynamicRetrievalConfig(proto.Message):

owl-bot-staging/v1/.coveragerc

Lines changed: 0 additions & 13 deletions
This file was deleted.

owl-bot-staging/v1/.flake8

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)