Skip to content

Commit 778d132

Browse files
1 parent 886f845 commit 778d132

File tree

1,584 files changed

+103
-648963
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,584 files changed

+103
-648963
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,10 @@ class JobServiceAsyncClient:
137137
)
138138
network_path = staticmethod(JobServiceClient.network_path)
139139
parse_network_path = staticmethod(JobServiceClient.parse_network_path)
140+
notification_channel_path = staticmethod(JobServiceClient.notification_channel_path)
141+
parse_notification_channel_path = staticmethod(
142+
JobServiceClient.parse_notification_channel_path
143+
)
140144
tensorboard_path = staticmethod(JobServiceClient.tensorboard_path)
141145
parse_tensorboard_path = staticmethod(JobServiceClient.parse_tensorboard_path)
142146
trial_path = staticmethod(JobServiceClient.trial_path)

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

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,26 @@ def parse_network_path(path: str) -> Dict[str, str]:
457457
)
458458
return m.groupdict() if m else {}
459459

460+
@staticmethod
461+
def notification_channel_path(
462+
project: str,
463+
notification_channel: str,
464+
) -> str:
465+
"""Returns a fully-qualified notification_channel string."""
466+
return "projects/{project}/notificationChannels/{notification_channel}".format(
467+
project=project,
468+
notification_channel=notification_channel,
469+
)
470+
471+
@staticmethod
472+
def parse_notification_channel_path(path: str) -> Dict[str, str]:
473+
"""Parses a notification_channel path into its component segments."""
474+
m = re.match(
475+
r"^projects/(?P<project>.+?)/notificationChannels/(?P<notification_channel>.+?)$",
476+
path,
477+
)
478+
return m.groupdict() if m else {}
479+
460480
@staticmethod
461481
def tensorboard_path(
462482
project: str,

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

google/cloud/aiplatform_v1beta1/types/model_monitoring.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,10 @@ class ModelMonitoringAlertConfig(proto.Message):
401401
[google.cloud.aiplatform.logging.ModelMonitoringAnomaliesLogEntry][].
402402
This can be further sinked to Pub/Sub or any other services
403403
supported by Cloud Logging.
404+
notification_channels (MutableSequence[str]):
405+
Resource names of the NotificationChannels to send alert.
406+
Must be of the format
407+
``projects/<project_id_or_number>/notificationChannels/<channel_id>``
404408
"""
405409

406410
class EmailAlertConfig(proto.Message):
@@ -426,6 +430,10 @@ class EmailAlertConfig(proto.Message):
426430
proto.BOOL,
427431
number=2,
428432
)
433+
notification_channels: MutableSequence[str] = proto.RepeatedField(
434+
proto.STRING,
435+
number=3,
436+
)
429437

430438

431439
class ThresholdConfig(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 & 33 deletions
This file was deleted.

owl-bot-staging/v1/MANIFEST.in

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

owl-bot-staging/v1/README.rst

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

owl-bot-staging/v1/docs/aiplatform_v1/dataset_service.rst

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

owl-bot-staging/v1/docs/aiplatform_v1/endpoint_service.rst

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

0 commit comments

Comments
 (0)