GeezerVison is showing github.com — feat: add prediction service RPC RawPredict to aiplatform_v1beta1 fea… · googleapis/python-aiplatform@b73cd94
File treeExpand file treeCollapse file tree Open diff view settings google/cloud/aiplatform_v1beta1 tests/unit/gapic/aiplatform_v1beta1
Some content is hiddenLarge Commits have some content hidden by default. Use the searchbox below for content that may be hidden. Dismiss bannerExpand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: google/cloud/aiplatform_v1beta1/__init__.py +14Lines changed: 14 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 376 | 376 | from .types.prediction_service import ExplainResponse | 377 | 377 | from .types.prediction_service import PredictRequest | 378 | 378 | from .types.prediction_service import PredictResponse | | 379 | +from .types.prediction_service import RawPredictRequest | 379 | 380 | from .types.specialist_pool import SpecialistPool | 380 | 381 | from .types.specialist_pool_service import CreateSpecialistPoolOperationMetadata | 381 | 382 | from .types.specialist_pool_service import CreateSpecialistPoolRequest | | 398 | 399 | from .types.tensorboard_data import TimeSeriesDataPoint | 399 | 400 | from .types.tensorboard_experiment import TensorboardExperiment | 400 | 401 | from .types.tensorboard_run import TensorboardRun | | 402 | +from .types.tensorboard_service import BatchCreateTensorboardRunsRequest | | 403 | +from .types.tensorboard_service import BatchCreateTensorboardRunsResponse | | 404 | +from .types.tensorboard_service import BatchCreateTensorboardTimeSeriesRequest | | 405 | +from .types.tensorboard_service import BatchCreateTensorboardTimeSeriesResponse | 401 | 406 | from .types.tensorboard_service import CreateTensorboardExperimentRequest | 402 | 407 | from .types.tensorboard_service import CreateTensorboardOperationMetadata | 403 | 408 | from .types.tensorboard_service import CreateTensorboardRequest | | 430 | 435 | from .types.tensorboard_service import UpdateTensorboardRequest | 431 | 436 | from .types.tensorboard_service import UpdateTensorboardRunRequest | 432 | 437 | from .types.tensorboard_service import UpdateTensorboardTimeSeriesRequest | | 438 | +from .types.tensorboard_service import WriteTensorboardExperimentDataRequest | | 439 | +from .types.tensorboard_service import WriteTensorboardExperimentDataResponse | 433 | 440 | from .types.tensorboard_service import WriteTensorboardRunDataRequest | 434 | 441 | from .types.tensorboard_service import WriteTensorboardRunDataResponse | 435 | 442 | from .types.tensorboard_time_series import TensorboardTimeSeries | | 503 | 510 | "BatchCreateFeaturesOperationMetadata", | 504 | 511 | "BatchCreateFeaturesRequest", | 505 | 512 | "BatchCreateFeaturesResponse", | | 513 | + "BatchCreateTensorboardRunsRequest", | | 514 | + "BatchCreateTensorboardRunsResponse", | | 515 | + "BatchCreateTensorboardTimeSeriesRequest", | | 516 | + "BatchCreateTensorboardTimeSeriesResponse", | 506 | 517 | "BatchDedicatedResources", | 507 | 518 | "BatchMigrateResourcesOperationMetadata", | 508 | 519 | "BatchMigrateResourcesRequest", | | 825 | 836 | "QueryArtifactLineageSubgraphRequest", | 826 | 837 | "QueryContextLineageSubgraphRequest", | 827 | 838 | "QueryExecutionInputsAndOutputsRequest", | | 839 | + "RawPredictRequest", | 828 | 840 | "ReadFeatureValuesRequest", | 829 | 841 | "ReadFeatureValuesResponse", | 830 | 842 | "ReadTensorboardBlobDataRequest", | | 906 | 918 | "Value", | 907 | 919 | "VizierServiceClient", | 908 | 920 | "WorkerPoolSpec", | | 921 | + "WriteTensorboardExperimentDataRequest", | | 922 | + "WriteTensorboardExperimentDataResponse", | 909 | 923 | "WriteTensorboardRunDataRequest", | 910 | 924 | "WriteTensorboardRunDataResponse", | 911 | 925 | "XraiAttribution", | |
Collapse file Copy file name to clipboardExpand all lines: google/cloud/aiplatform_v1beta1/gapic_metadata.json +40Lines changed: 40 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1493 | 1493 | "methods": [ | 1494 | 1494 | "predict" | 1495 | 1495 | ] | | 1496 | + }, | | 1497 | + "RawPredict": { | | 1498 | + "methods": [ | | 1499 | + "raw_predict" | | 1500 | + ] | 1496 | 1501 | } | 1497 | 1502 | } | 1498 | 1503 | }, | | 1508 | 1513 | "methods": [ | 1509 | 1514 | "predict" | 1510 | 1515 | ] | | 1516 | + }, | | 1517 | + "RawPredict": { | | 1518 | + "methods": [ | | 1519 | + "raw_predict" | | 1520 | + ] | 1511 | 1521 | } | 1512 | 1522 | } | 1513 | 1523 | } | | 1582 | 1592 | "grpc": { | 1583 | 1593 | "libraryClient": "TensorboardServiceClient", | 1584 | 1594 | "rpcs": { | | 1595 | + "BatchCreateTensorboardRuns": { | | 1596 | + "methods": [ | | 1597 | + "batch_create_tensorboard_runs" | | 1598 | + ] | | 1599 | + }, | | 1600 | + "BatchCreateTensorboardTimeSeries": { | | 1601 | + "methods": [ | | 1602 | + "batch_create_tensorboard_time_series" | | 1603 | + ] | | 1604 | + }, | 1585 | 1605 | "CreateTensorboard": { | 1586 | 1606 | "methods": [ | 1587 | 1607 | "create_tensorboard" | | 1697 | 1717 | "update_tensorboard_time_series" | 1698 | 1718 | ] | 1699 | 1719 | }, | | 1720 | + "WriteTensorboardExperimentData": { | | 1721 | + "methods": [ | | 1722 | + "write_tensorboard_experiment_data" | | 1723 | + ] | | 1724 | + }, | 1700 | 1725 | "WriteTensorboardRunData": { | 1701 | 1726 | "methods": [ | 1702 | 1727 | "write_tensorboard_run_data" | | 1707 | 1732 | "grpc-async": { | 1708 | 1733 | "libraryClient": "TensorboardServiceAsyncClient", | 1709 | 1734 | "rpcs": { | | 1735 | + "BatchCreateTensorboardRuns": { | | 1736 | + "methods": [ | | 1737 | + "batch_create_tensorboard_runs" | | 1738 | + ] | | 1739 | + }, | | 1740 | + "BatchCreateTensorboardTimeSeries": { | | 1741 | + "methods": [ | | 1742 | + "batch_create_tensorboard_time_series" | | 1743 | + ] | | 1744 | + }, | 1710 | 1745 | "CreateTensorboard": { | 1711 | 1746 | "methods": [ | 1712 | 1747 | "create_tensorboard" | | 1822 | 1857 | "update_tensorboard_time_series" | 1823 | 1858 | ] | 1824 | 1859 | }, | | 1860 | + "WriteTensorboardExperimentData": { | | 1861 | + "methods": [ | | 1862 | + "write_tensorboard_experiment_data" | | 1863 | + ] | | 1864 | + }, | 1825 | 1865 | "WriteTensorboardRunData": { | 1826 | 1866 | "methods": [ | 1827 | 1867 | "write_tensorboard_run_data" | |
Collapse file Copy file name to clipboardExpand all lines: google/cloud/aiplatform_v1beta1/services/dataset_service/async_client.py +3-1Lines changed: 3 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 47 | 47 |
| 48 | 48 |
| 49 | 49 | class DatasetServiceAsyncClient: | 50 | | - """""" | | 50 | + """The service that handles the CRUD of Vertex AI Dataset and | | 51 | + its child resources. | | 52 | + """ | 51 | 53 |
| 52 | 54 | _client: DatasetServiceClient | 53 | 55 |
| |
Collapse file Copy file name to clipboardExpand all lines: google/cloud/aiplatform_v1beta1/services/dataset_service/client.py +3-1Lines changed: 3 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -84,7 +84,9 @@ def get_transport_class(cls, label: str = None,) -> Type[DatasetServiceTransport | 84 | 84 |
| 85 | 85 |
| 86 | 86 | class DatasetServiceClient(metaclass=DatasetServiceClientMeta): | 87 | | - """""" | | 87 | + """The service that handles the CRUD of Vertex AI Dataset and | | 88 | + its child resources. | | 89 | + """ | 88 | 90 |
| 89 | 91 | @staticmethod | 90 | 92 | def _get_default_mtls_endpoint(api_endpoint): | |
Collapse file Copy file name to clipboardExpand all lines: google/cloud/aiplatform_v1beta1/services/dataset_service/transports/grpc.py +3Lines changed: 3 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 36 | 36 | class DatasetServiceGrpcTransport(DatasetServiceTransport): | 37 | 37 | """gRPC backend transport for DatasetService. | 38 | 38 |
| | 39 | + The service that handles the CRUD of Vertex AI Dataset and | | 40 | + its child resources. | | 41 | +
| 39 | 42 | This class defines the same methods as the primary client, so the | 40 | 43 | primary client can load the underlying transport implementation | 41 | 44 | and call it. | |
Collapse file Copy file name to clipboardExpand all lines: google/cloud/aiplatform_v1beta1/services/dataset_service/transports/grpc_asyncio.py +3Lines changed: 3 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 38 | 38 | class DatasetServiceGrpcAsyncIOTransport(DatasetServiceTransport): | 39 | 39 | """gRPC AsyncIO backend transport for DatasetService. | 40 | 40 |
| | 41 | + The service that handles the CRUD of Vertex AI Dataset and | | 42 | + its child resources. | | 43 | +
| 41 | 44 | This class defines the same methods as the primary client, so the | 42 | 45 | primary client can load the underlying transport implementation | 43 | 46 | and call it. | |
Collapse file Copy file name to clipboardExpand all lines: google/cloud/aiplatform_v1beta1/services/endpoint_service/async_client.py +7-1Lines changed: 7 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 43 | 43 |
| 44 | 44 |
| 45 | 45 | class EndpointServiceAsyncClient: | 46 | | - """""" | | 46 | + """A service for managing Vertex AI's Endpoints.""" | 47 | 47 |
| 48 | 48 | _client: EndpointServiceClient | 49 | 49 |
| @@ -54,6 +54,12 @@ class EndpointServiceAsyncClient: | 54 | 54 | parse_endpoint_path = staticmethod(EndpointServiceClient.parse_endpoint_path) | 55 | 55 | model_path = staticmethod(EndpointServiceClient.model_path) | 56 | 56 | parse_model_path = staticmethod(EndpointServiceClient.parse_model_path) | | 57 | + model_deployment_monitoring_job_path = staticmethod( | | 58 | + EndpointServiceClient.model_deployment_monitoring_job_path | | 59 | + ) | | 60 | + parse_model_deployment_monitoring_job_path = staticmethod( | | 61 | + EndpointServiceClient.parse_model_deployment_monitoring_job_path | | 62 | + ) | 57 | 63 | network_path = staticmethod(EndpointServiceClient.network_path) | 58 | 64 | parse_network_path = staticmethod(EndpointServiceClient.parse_network_path) | 59 | 65 | common_billing_account_path = staticmethod( | |
Collapse file Copy file name to clipboardExpand all lines: google/cloud/aiplatform_v1beta1/services/endpoint_service/client.py +21-1Lines changed: 21 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -80,7 +80,7 @@ def get_transport_class(cls, label: str = None,) -> Type[EndpointServiceTranspor | 80 | 80 |
| 81 | 81 |
| 82 | 82 | class EndpointServiceClient(metaclass=EndpointServiceClientMeta): | 83 | | - """""" | | 83 | + """A service for managing Vertex AI's Endpoints.""" | 84 | 84 |
| 85 | 85 | @staticmethod | 86 | 86 | def _get_default_mtls_endpoint(api_endpoint): | @@ -196,6 +196,26 @@ def parse_model_path(path: str) -> Dict[str, str]: | 196 | 196 | ) | 197 | 197 | return m.groupdict() if m else {} | 198 | 198 |
| | 199 | + @staticmethod | | 200 | + def model_deployment_monitoring_job_path( | | 201 | + project: str, location: str, model_deployment_monitoring_job: str, | | 202 | + ) -> str: | | 203 | + """Returns a fully-qualified model_deployment_monitoring_job string.""" | | 204 | + return "projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}".format( | | 205 | + project=project, | | 206 | + location=location, | | 207 | + model_deployment_monitoring_job=model_deployment_monitoring_job, | | 208 | + ) | | 209 | + | | 210 | + @staticmethod | | 211 | + def parse_model_deployment_monitoring_job_path(path: str) -> Dict[str, str]: | | 212 | + """Parses a model_deployment_monitoring_job path into its component segments.""" | | 213 | + m = re.match( | | 214 | + r"^projects/(?P<project>.+?)/locations/(?P<location>.+?)/modelDeploymentMonitoringJobs/(?P<model_deployment_monitoring_job>.+?)$", | | 215 | + path, | | 216 | + ) | | 217 | + return m.groupdict() if m else {} | | 218 | + | 199 | 219 | @staticmethod | 200 | 220 | def network_path(project: str, network: str,) -> str: | 201 | 221 | """Returns a fully-qualified network string.""" | |
Collapse file Copy file name to clipboardExpand all lines: google/cloud/aiplatform_v1beta1/services/endpoint_service/transports/grpc.py +2Lines changed: 2 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 35 | 35 | class EndpointServiceGrpcTransport(EndpointServiceTransport): | 36 | 36 | """gRPC backend transport for EndpointService. | 37 | 37 |
| | 38 | + A service for managing Vertex AI's Endpoints. | | 39 | +
| 38 | 40 | This class defines the same methods as the primary client, so the | 39 | 41 | primary client can load the underlying transport implementation | 40 | 42 | and call it. | |
Collapse file Copy file name to clipboardExpand all lines: google/cloud/aiplatform_v1beta1/services/endpoint_service/transports/grpc_asyncio.py +2Lines changed: 2 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 37 | 37 | class EndpointServiceGrpcAsyncIOTransport(EndpointServiceTransport): | 38 | 38 | """gRPC AsyncIO backend transport for EndpointService. | 39 | 39 |
| | 40 | + A service for managing Vertex AI's Endpoints. | | 41 | +
| 40 | 42 | This class defines the same methods as the primary client, so the | 41 | 43 | primary client can load the underlying transport implementation | 42 | 44 | and call it. | |
|