Skip to content

Commit

Permalink
🦉 Updates from OwlBot post-processor
Browse files Browse the repository at this point in the history
  • Loading branch information
gcf-owl-bot[bot] committed Jul 21, 2023
1 parent 8e541cf commit 8173e33
Show file tree
Hide file tree
Showing 1,685 changed files with 3,401 additions and 690,604 deletions.
File renamed without changes.
1 change: 1 addition & 0 deletions docs/aiplatform_v1/services.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Services for Google Cloud Aiplatform v1 API
model_service
pipeline_service
prediction_service
schedule_service
specialist_pool_service
tensorboard_service
vizier_service
22 changes: 22 additions & 0 deletions google/cloud/aiplatform_v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@
from .services.pipeline_service import PipelineServiceAsyncClient
from .services.prediction_service import PredictionServiceClient
from .services.prediction_service import PredictionServiceAsyncClient
from .services.schedule_service import ScheduleServiceClient
from .services.schedule_service import ScheduleServiceAsyncClient
from .services.specialist_pool_service import SpecialistPoolServiceClient
from .services.specialist_pool_service import SpecialistPoolServiceAsyncClient
from .services.tensorboard_service import TensorboardServiceClient
Expand Down Expand Up @@ -465,6 +467,15 @@
from .types.prediction_service import RawPredictRequest
from .types.publisher_model import PublisherModel
from .types.saved_query import SavedQuery
from .types.schedule import Schedule
from .types.schedule_service import CreateScheduleRequest
from .types.schedule_service import DeleteScheduleRequest
from .types.schedule_service import GetScheduleRequest
from .types.schedule_service import ListSchedulesRequest
from .types.schedule_service import ListSchedulesResponse
from .types.schedule_service import PauseScheduleRequest
from .types.schedule_service import ResumeScheduleRequest
from .types.schedule_service import UpdateScheduleRequest
from .types.service_networking import PrivateServiceConnectConfig
from .types.specialist_pool import SpecialistPool
from .types.specialist_pool_service import CreateSpecialistPoolOperationMetadata
Expand Down Expand Up @@ -585,6 +596,7 @@
"ModelServiceAsyncClient",
"PipelineServiceAsyncClient",
"PredictionServiceAsyncClient",
"ScheduleServiceAsyncClient",
"SpecialistPoolServiceAsyncClient",
"TensorboardServiceAsyncClient",
"VizierServiceAsyncClient",
Expand Down Expand Up @@ -674,6 +686,7 @@
"CreateModelDeploymentMonitoringJobRequest",
"CreateNasJobRequest",
"CreatePipelineJobRequest",
"CreateScheduleRequest",
"CreateSpecialistPoolOperationMetadata",
"CreateSpecialistPoolRequest",
"CreateStudyRequest",
Expand Down Expand Up @@ -720,6 +733,7 @@
"DeleteOperationMetadata",
"DeletePipelineJobRequest",
"DeleteSavedQueryRequest",
"DeleteScheduleRequest",
"DeleteSpecialistPoolRequest",
"DeleteStudyRequest",
"DeleteTensorboardExperimentRequest",
Expand Down Expand Up @@ -820,6 +834,7 @@
"GetNasTrialDetailRequest",
"GetPipelineJobRequest",
"GetPublisherModelRequest",
"GetScheduleRequest",
"GetSpecialistPoolRequest",
"GetStudyRequest",
"GetTensorboardExperimentRequest",
Expand Down Expand Up @@ -908,6 +923,8 @@
"ListPipelineJobsResponse",
"ListSavedQueriesRequest",
"ListSavedQueriesResponse",
"ListSchedulesRequest",
"ListSchedulesResponse",
"ListSpecialistPoolsRequest",
"ListSpecialistPoolsResponse",
"ListStudiesRequest",
Expand Down Expand Up @@ -968,6 +985,7 @@
"Neighbor",
"NfsMount",
"PauseModelDeploymentMonitoringJobRequest",
"PauseScheduleRequest",
"PipelineFailurePolicy",
"PipelineJob",
"PipelineJobDetail",
Expand Down Expand Up @@ -1018,11 +1036,14 @@
"RemoveDatapointsResponse",
"ResourcesConsumed",
"ResumeModelDeploymentMonitoringJobRequest",
"ResumeScheduleRequest",
"SampleConfig",
"SampledShapleyAttribution",
"SamplingStrategy",
"SavedQuery",
"Scalar",
"Schedule",
"ScheduleServiceClient",
"Scheduling",
"SearchDataItemsRequest",
"SearchDataItemsResponse",
Expand Down Expand Up @@ -1085,6 +1106,7 @@
"UpdateModelDeploymentMonitoringJobOperationMetadata",
"UpdateModelDeploymentMonitoringJobRequest",
"UpdateModelRequest",
"UpdateScheduleRequest",
"UpdateSpecialistPoolOperationMetadata",
"UpdateSpecialistPoolRequest",
"UpdateTensorboardExperimentRequest",
Expand Down
84 changes: 84 additions & 0 deletions google/cloud/aiplatform_v1/gapic_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -1831,6 +1831,90 @@
}
}
},
"ScheduleService": {
"clients": {
"grpc": {
"libraryClient": "ScheduleServiceClient",
"rpcs": {
"CreateSchedule": {
"methods": [
"create_schedule"
]
},
"DeleteSchedule": {
"methods": [
"delete_schedule"
]
},
"GetSchedule": {
"methods": [
"get_schedule"
]
},
"ListSchedules": {
"methods": [
"list_schedules"
]
},
"PauseSchedule": {
"methods": [
"pause_schedule"
]
},
"ResumeSchedule": {
"methods": [
"resume_schedule"
]
},
"UpdateSchedule": {
"methods": [
"update_schedule"
]
}
}
},
"grpc-async": {
"libraryClient": "ScheduleServiceAsyncClient",
"rpcs": {
"CreateSchedule": {
"methods": [
"create_schedule"
]
},
"DeleteSchedule": {
"methods": [
"delete_schedule"
]
},
"GetSchedule": {
"methods": [
"get_schedule"
]
},
"ListSchedules": {
"methods": [
"list_schedules"
]
},
"PauseSchedule": {
"methods": [
"pause_schedule"
]
},
"ResumeSchedule": {
"methods": [
"resume_schedule"
]
},
"UpdateSchedule": {
"methods": [
"update_schedule"
]
}
}
}
}
},
"SpecialistPoolService": {
"clients": {
"grpc": {
Expand Down
18 changes: 9 additions & 9 deletions google/cloud/aiplatform_v1/services/migration_service/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,40 +208,40 @@ def parse_annotated_dataset_path(path: str) -> Dict[str, str]:
@staticmethod
def dataset_path(
project: str,
location: str,
dataset: str,
) -> str:
"""Returns a fully-qualified dataset string."""
return "projects/{project}/locations/{location}/datasets/{dataset}".format(
return "projects/{project}/datasets/{dataset}".format(
project=project,
location=location,
dataset=dataset,
)

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

@staticmethod
def dataset_path(
project: str,
location: str,
dataset: str,
) -> str:
"""Returns a fully-qualified dataset string."""
return "projects/{project}/datasets/{dataset}".format(
return "projects/{project}/locations/{location}/datasets/{dataset}".format(
project=project,
location=location,
dataset=dataset,
)

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

@staticmethod
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
from .async_client import ScheduleServiceAsyncClient

__all__ = (
'ScheduleServiceClient',
'ScheduleServiceAsyncClient',
"ScheduleServiceClient",
"ScheduleServiceAsyncClient",
)
Loading

0 comments on commit 8173e33

Please sign in to comment.