Skip to content

Commit 42233cf

Browse files
1 parent c00637b commit 42233cf

File tree

2,944 files changed

+25
-2713404
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,944 files changed

+25
-2713404
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
@@ -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,
269268
dataset: str,
270269
) -> str:
271270
"""Returns a fully-qualified dataset string."""
272-
return "projects/{project}/locations/{location}/datasets/{dataset}".format(
271+
return "projects/{project}/datasets/{dataset}".format(
273272
project=project,
274-
location=location,
275273
dataset=dataset,
276274
)
277275

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

287282
@staticmethod
288283
def dataset_path(
289284
project: str,
285+
location: str,
290286
dataset: str,
291287
) -> str:
292288
"""Returns a fully-qualified dataset string."""
293-
return "projects/{project}/datasets/{dataset}".format(
289+
return "projects/{project}/locations/{location}/datasets/{dataset}".format(
294290
project=project,
291+
location=location,
295292
dataset=dataset,
296293
)
297294

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

304304
@staticmethod

google/cloud/aiplatform_v1/types/content.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ class HarmCategory(proto.Enum):
7676
HARM_CATEGORY_CIVIC_INTEGRITY (5):
7777
Deprecated: Election filter is not longer
7878
supported. The harm category is civic integrity.
79+
HARM_CATEGORY_JAILBREAK (6):
80+
The harm category is for jailbreak prompts.
7981
"""
8082

8183
HARM_CATEGORY_UNSPECIFIED = 0
@@ -84,6 +86,7 @@ class HarmCategory(proto.Enum):
8486
HARM_CATEGORY_HARASSMENT = 3
8587
HARM_CATEGORY_SEXUALLY_EXPLICIT = 4
8688
HARM_CATEGORY_CIVIC_INTEGRITY = 5
89+
HARM_CATEGORY_JAILBREAK = 6
8790

8891

8992
class Modality(proto.Enum):

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.

owl-bot-staging/v1/LICENSE

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

owl-bot-staging/v1/MANIFEST.in

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

0 commit comments

Comments
 (0)