Skip to content

Commit b6bf6dc

Browse files
gcf-owl-bot[bot]gcf-merge-on-green[bot]dizcology
authored
feat: Client libraries for the Dataform API (#1221)
* chore(ruby): Initial generation of google-iam-v1 PiperOrigin-RevId: 448073008 Source-Link: googleapis/googleapis@d664bc5 Source-Link: googleapis/googleapis-gen@73f6abc Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNzNmNmFiYzE0MWQyYmI3MjZjMDdjODExZmQ4MWRlMDY3Zjk3ZjY0ZSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: add display_name and metadata to ModelEvaluation in aiplatform model_evaluation.proto PiperOrigin-RevId: 448160148 Source-Link: googleapis/googleapis@936ab35 Source-Link: googleapis/googleapis-gen@f841b8e Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZjg0MWI4ZTIzZDgxNmU5OThmOWU4ZTZjMGUwNGJhOTJiN2Y2YjgzNSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: refreshes Bigtable Admin API(s) protos PiperOrigin-RevId: 448988001 Source-Link: googleapis/googleapis@b6fa58e Source-Link: googleapis/googleapis-gen@fc8b8db Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZmM4YjhkYmM3ZGExYTc4NDVkNTcxMzRmNDExMzAyZDEwNmVhMmVmMiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Synchronize new proto/yaml changes. PiperOrigin-RevId: 449052112 Source-Link: googleapis/googleapis@3150afa Source-Link: googleapis/googleapis-gen@9945a36 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOTk0NWEzNjZlNGE1ZWZiMDBmYzQwOTg1ZjAzYzEwN2JkZWU4OWRmMiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * docs: fix docstring formatting Committer: parthea PiperOrigin-RevId: 449545643 Source-Link: googleapis/googleapis@1bed8a0 Source-Link: googleapis/googleapis-gen@d4ccc5f Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZDRjY2M1ZmM2MTJjMjYwNTQ2YmNlY2VmMjg3MzU3NTY4OGEwMmQ4YiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: add Examples to Explanation related messages in aiplatform v1beta1 explanation.proto PiperOrigin-RevId: 449620845 Source-Link: googleapis/googleapis@117f86b Source-Link: googleapis/googleapis-gen@1d670db Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMWQ2NzBkYmIxYTlmZjE1NWNmNjg2ZTk1NDRmZWZmYjc1MDIxYTJmNSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: update protos to include InvalidateApprovalRequest and GetAccessApprovalServiceAccount APIs PiperOrigin-RevId: 449820922 Source-Link: googleapis/googleapis@9682584 Source-Link: googleapis/googleapis-gen@09360c9 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMDkzNjBjOTVjYTEyYWZmMDBiY2QyY2ZhMmY3NjE0YmJiM2UyOWJmMyJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore: remove unused imports PiperOrigin-RevId: 450372109 Source-Link: googleapis/googleapis@942691f Source-Link: googleapis/googleapis-gen@609a369 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjA5YTM2OTY2YzQwZjcyNmZkMGRjNzFlOTUzZGM4M2Y4ZTUyZmVmMSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: add latent_space_source to ExplanationMetadata in aiplatform v1 explanation_metadata.proto feat: add scaling to OnlineServingConfig in aiplatform v1 featurestore.proto feat: add template_metadata to PipelineJob in aiplatform v1 pipeline_job.proto PiperOrigin-RevId: 450687287 Source-Link: googleapis/googleapis@058bff3 Source-Link: googleapis/googleapis-gen@f072bfe Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZjA3MmJmZTc3MDRkOTk2YzQxZDc0YWMzYWExZDg1MTRmNDY0YzRmZiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: add failure_policy to PipelineJob in aiplatform v1 & v1beta1 pipeline_job.proto PiperOrigin-RevId: 450704795 Source-Link: googleapis/googleapis@c875f2b Source-Link: googleapis/googleapis-gen@e606d62 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTYwNmQ2MmFiMzJiODU0MzQ2OTc2NzhiMzAwNGYyMjA2ZDVjMDJhZSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: add IAM policy to aiplatform_v1beta1.yaml feat: add preset configuration for example-based explanations in aiplatform v1beta1 explanation.proto feat: add latent_space_source to ExplanationMetadata in aiplatform v1beta1 explanation_metadata.proto feat: add successful_forecast_point_count to CompletionStats in completion_stats.proto PiperOrigin-RevId: 450727462 Source-Link: googleapis/googleapis@665682d Source-Link: googleapis/googleapis-gen@34cddbe Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMzRjZGRiZWYzOWMxN2M1OGY5NmY1ZmZlYmY2MDY1MTM2YjZkNTcxOSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore: use gapic-generator-python 1.0.0 PiperOrigin-RevId: 451250442 Source-Link: googleapis/googleapis@cca5e81 Source-Link: googleapis/googleapis-gen@0b219da Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMGIyMTlkYTE2MWE4YmRjYzNjNmY3YjJlZmNkODIxMDUxODJhMzBjYSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: Client libraries for the Dataform API This is the first release of the Public Dataform API client libraries. PiperOrigin-RevId: 451825930 Source-Link: googleapis/googleapis@34c6901 Source-Link: googleapis/googleapis-gen@68f6624 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjhmNjYyNDgyOTdhMjJiNmJlYjY0Njc3ZDEyNmFkMDAwNDczMmU1NyJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: gcf-merge-on-green[bot] <60162190+gcf-merge-on-green[bot]@users.noreply.github.com> Co-authored-by: Yu-Han Liu <[email protected]>
1 parent 15fe100 commit b6bf6dc

File tree

75 files changed

+1724
-79
lines changed

Some content is hidden

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

75 files changed

+1724
-79
lines changed

docs/definition_v1/types.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Types for Google Cloud Aiplatform V1 Schema Trainingjob Definition v1 API
2+
=========================================================================
3+
4+
.. automodule:: google.cloud.aiplatform.v1.schema.trainingjob.definition_v1.types
5+
:members:
6+
:undoc-members:
7+
:show-inheritance:

docs/definition_v1beta1/types.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Types for Google Cloud Aiplatform V1beta1 Schema Trainingjob Definition v1beta1 API
2+
===================================================================================
3+
4+
.. automodule:: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition_v1beta1.types
5+
:members:
6+
:undoc-members:
7+
:show-inheritance:

docs/instance_v1/types.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Types for Google Cloud Aiplatform V1 Schema Predict Instance v1 API
2+
===================================================================
3+
4+
.. automodule:: google.cloud.aiplatform.v1.schema.predict.instance_v1.types
5+
:members:
6+
:undoc-members:
7+
:show-inheritance:

docs/instance_v1beta1/types.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Types for Google Cloud Aiplatform V1beta1 Schema Predict Instance v1beta1 API
2+
=============================================================================
3+
4+
.. automodule:: google.cloud.aiplatform.v1beta1.schema.predict.instance_v1beta1.types
5+
:members:
6+
:undoc-members:
7+
:show-inheritance:

docs/params_v1/types.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Types for Google Cloud Aiplatform V1 Schema Predict Params v1 API
2+
=================================================================
3+
4+
.. automodule:: google.cloud.aiplatform.v1.schema.predict.params_v1.types
5+
:members:
6+
:undoc-members:
7+
:show-inheritance:

docs/params_v1beta1/types.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Types for Google Cloud Aiplatform V1beta1 Schema Predict Params v1beta1 API
2+
===========================================================================
3+
4+
.. automodule:: google.cloud.aiplatform.v1beta1.schema.predict.params_v1beta1.types
5+
:members:
6+
:undoc-members:
7+
:show-inheritance:

docs/prediction_v1/types.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Types for Google Cloud Aiplatform V1 Schema Predict Prediction v1 API
2+
=====================================================================
3+
4+
.. automodule:: google.cloud.aiplatform.v1.schema.predict.prediction_v1.types
5+
:members:
6+
:undoc-members:
7+
:show-inheritance:

docs/prediction_v1beta1/types.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Types for Google Cloud Aiplatform V1beta1 Schema Predict Prediction v1beta1 API
2+
===============================================================================
3+
4+
.. automodule:: google.cloud.aiplatform.v1beta1.schema.predict.prediction_v1beta1.types
5+
:members:
6+
:undoc-members:
7+
:show-inheritance:

google/cloud/aiplatform_v1/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,10 +362,12 @@
362362
from .types.model_service import UploadModelResponse
363363
from .types.operation import DeleteOperationMetadata
364364
from .types.operation import GenericOperationMetadata
365+
from .types.pipeline_failure_policy import PipelineFailurePolicy
365366
from .types.pipeline_job import PipelineJob
366367
from .types.pipeline_job import PipelineJobDetail
367368
from .types.pipeline_job import PipelineTaskDetail
368369
from .types.pipeline_job import PipelineTaskExecutorDetail
370+
from .types.pipeline_job import PipelineTemplateMetadata
369371
from .types.pipeline_service import CancelPipelineJobRequest
370372
from .types.pipeline_service import CancelTrainingPipelineRequest
371373
from .types.pipeline_service import CreatePipelineJobRequest
@@ -829,12 +831,14 @@
829831
"NearestNeighborSearchOperationMetadata",
830832
"NfsMount",
831833
"PauseModelDeploymentMonitoringJobRequest",
834+
"PipelineFailurePolicy",
832835
"PipelineJob",
833836
"PipelineJobDetail",
834837
"PipelineServiceClient",
835838
"PipelineState",
836839
"PipelineTaskDetail",
837840
"PipelineTaskExecutorDetail",
841+
"PipelineTemplateMetadata",
838842
"Port",
839843
"PredefinedSplit",
840844
"PredictRequest",

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -192,40 +192,40 @@ def parse_annotated_dataset_path(path: str) -> Dict[str, str]:
192192
@staticmethod
193193
def dataset_path(
194194
project: str,
195+
location: str,
195196
dataset: str,
196197
) -> str:
197198
"""Returns a fully-qualified dataset string."""
198-
return "projects/{project}/datasets/{dataset}".format(
199+
return "projects/{project}/locations/{location}/datasets/{dataset}".format(
199200
project=project,
201+
location=location,
200202
dataset=dataset,
201203
)
202204

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

209214
@staticmethod
210215
def dataset_path(
211216
project: str,
212-
location: str,
213217
dataset: str,
214218
) -> str:
215219
"""Returns a fully-qualified dataset string."""
216-
return "projects/{project}/locations/{location}/datasets/{dataset}".format(
220+
return "projects/{project}/datasets/{dataset}".format(
217221
project=project,
218-
location=location,
219222
dataset=dataset,
220223
)
221224

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

231231
@staticmethod

0 commit comments

Comments
 (0)