Skip to content

Commit 8f95f78

Browse files
feat: [google-cloud-dataform] Support adding a workflow action to execute a Data Preparation node (#13917)
- [ ] Regenerate this pull request now. BEGIN_COMMIT_OVERRIDE docs: Updated the formatting in some comments in multiple services feat: Support adding a workflow action to execute a Data Preparation node END_COMMIT_OVERRIDE PiperOrigin-RevId: 759511972 Source-Link: googleapis/googleapis@b1161bf Source-Link: googleapis/googleapis-gen@60bb6a1 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRhdGFmb3JtLy5Pd2xCb3QueWFtbCIsImgiOiI2MGJiNmExZDI5YzQ1ODQ4ZTA0MzY5ZmVhMjA1YzZiZmJhOTQ4YWFjIn0= BEGIN_NESTED_COMMIT feat: [google-cloud-dataform] Support adding a workflow action to execute a Data Preparation node docs: Updated the formatting in some comments in multiple services PiperOrigin-RevId: 759506593 Source-Link: googleapis/googleapis@e82ef04 Source-Link: googleapis/googleapis-gen@12cc731 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRhdGFmb3JtLy5Pd2xCb3QueWFtbCIsImgiOiIxMmNjNzMxM2Q5ODY2Y2M0MGY4OTFjMjAxNjBhYmMxOWE4NjE2MWEyIn0= END_NESTED_COMMIT --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 1423ec9 commit 8f95f78

File tree

12 files changed

+1292
-340
lines changed

12 files changed

+1292
-340
lines changed

packages/google-cloud-dataform/google/cloud/dataform_v1/services/dataform/async_client.py

Lines changed: 30 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,12 @@ class DataformAsyncClient:
9494
parse_crypto_key_version_path = staticmethod(
9595
DataformClient.parse_crypto_key_version_path
9696
)
97+
notebook_runtime_template_path = staticmethod(
98+
DataformClient.notebook_runtime_template_path
99+
)
100+
parse_notebook_runtime_template_path = staticmethod(
101+
DataformClient.parse_notebook_runtime_template_path
102+
)
97103
release_config_path = staticmethod(DataformClient.release_config_path)
98104
parse_release_config_path = staticmethod(DataformClient.parse_release_config_path)
99105
repository_path = staticmethod(DataformClient.repository_path)
@@ -323,6 +329,10 @@ async def list_repositories(
323329
) -> pagers.ListRepositoriesAsyncPager:
324330
r"""Lists Repositories in a given project and location.
325331
332+
**Note:** *This method can return repositories not shown in
333+
the*\ `Dataform
334+
UI <https://console.cloud.google.com/bigquery/dataform>`__.
335+
326336
.. code-block:: python
327337
328338
# This snippet has been automatically generated and should be regarded as a
@@ -685,13 +695,11 @@ async def update_repository(
685695
) -> dataform.Repository:
686696
r"""Updates a single Repository.
687697
688-
**Note:** *This method does not fully implement*, (see
689-
`AIP/134 <https://google.aip.dev/134>`__, in particular:
690-
691-
- The wildcard entry (**\***) is treated as a bad request
692-
- When the **field_mask** is omitted, instead of only updating
693-
the set fields, the request is treated as a full update on
694-
all modifiable fields
698+
**Note:** *This method does not fully
699+
implement*\ `AIP/134 <https://google.aip.dev/134>`__\ *. The
700+
wildcard entry (*) is treated as a bad request, and when the
701+
``field_mask`` is omitted, the request is treated as a full
702+
update on all modifiable fields.*
695703
696704
.. code-block:: python
697705
@@ -3780,13 +3788,11 @@ async def update_release_config(
37803788
) -> dataform.ReleaseConfig:
37813789
r"""Updates a single ReleaseConfig.
37823790
3783-
**Note:** *This method does not fully implement*, (see
3784-
`AIP/134 <https://google.aip.dev/134>`__, in particular:
3785-
3786-
- The wildcard entry (**\***) is treated as a bad request
3787-
- When the **field_mask** is omitted, instead of only updating
3788-
the set fields, the request is treated as a full update on
3789-
all modifiable fields
3791+
**Note:** *This method does not fully
3792+
implement*\ `AIP/134 <https://google.aip.dev/134>`__\ *. The
3793+
wildcard entry (*) is treated as a bad request, and when the
3794+
``field_mask`` is omitted, the request is treated as a full
3795+
update on all modifiable fields.*
37903796
37913797
.. code-block:: python
37923798
@@ -4844,13 +4850,11 @@ async def update_workflow_config(
48444850
) -> dataform.WorkflowConfig:
48454851
r"""Updates a single WorkflowConfig.
48464852
4847-
**Note:** *This method does not fully implement*, (see
4848-
`AIP/134 <https://google.aip.dev/134>`__, in particular:
4849-
4850-
- The wildcard entry (**\***) is treated as a bad request
4851-
- When the **field_mask** is omitted, instead of only updating
4852-
the set fields, the request is treated as a full update on
4853-
all modifiable fields
4853+
**Note:** *This method does not fully
4854+
implement*\ `AIP/134 <https://google.aip.dev/134>`__\ *. The
4855+
wildcard entry (*) is treated as a bad request, and when the
4856+
``field_mask`` is omitted, the request is treated as a full
4857+
update on all modifiable fields.*
48544858
48554859
.. code-block:: python
48564860
@@ -5827,13 +5831,11 @@ async def update_config(
58275831
) -> dataform.Config:
58285832
r"""Update default config for a given project and location.
58295833
5830-
**Note:** *This method does not fully implement*, (see
5831-
`AIP/134 <https://google.aip.dev/134>`__, in particular:
5832-
5833-
- The wildcard entry (**\***) is treated as a bad request
5834-
- When the **field_mask** is omitted, instead of only updating
5835-
the set fields, the request is treated as a full update on
5836-
all modifiable fields
5834+
**Note:** *This method does not fully
5835+
implement*\ `AIP/134 <https://google.aip.dev/134>`__\ *. The
5836+
wildcard entry (*) is treated as a bad request, and when the
5837+
``field_mask`` is omitted, the request is treated as a full
5838+
update on all modifiable fields.*
58375839
58385840
.. code-block:: python
58395841

packages/google-cloud-dataform/google/cloud/dataform_v1/services/dataform/client.py

Lines changed: 46 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,28 @@ def parse_crypto_key_version_path(path: str) -> Dict[str, str]:
296296
)
297297
return m.groupdict() if m else {}
298298

299+
@staticmethod
300+
def notebook_runtime_template_path(
301+
project: str,
302+
location: str,
303+
notebook_runtime_template: str,
304+
) -> str:
305+
"""Returns a fully-qualified notebook_runtime_template string."""
306+
return "projects/{project}/locations/{location}/notebookRuntimeTemplates/{notebook_runtime_template}".format(
307+
project=project,
308+
location=location,
309+
notebook_runtime_template=notebook_runtime_template,
310+
)
311+
312+
@staticmethod
313+
def parse_notebook_runtime_template_path(path: str) -> Dict[str, str]:
314+
"""Parses a notebook_runtime_template path into its component segments."""
315+
m = re.match(
316+
r"^projects/(?P<project>.+?)/locations/(?P<location>.+?)/notebookRuntimeTemplates/(?P<notebook_runtime_template>.+?)$",
317+
path,
318+
)
319+
return m.groupdict() if m else {}
320+
299321
@staticmethod
300322
def release_config_path(
301323
project: str,
@@ -938,6 +960,10 @@ def list_repositories(
938960
) -> pagers.ListRepositoriesPager:
939961
r"""Lists Repositories in a given project and location.
940962
963+
**Note:** *This method can return repositories not shown in
964+
the*\ `Dataform
965+
UI <https://console.cloud.google.com/bigquery/dataform>`__.
966+
941967
.. code-block:: python
942968
943969
# This snippet has been automatically generated and should be regarded as a
@@ -1291,13 +1317,11 @@ def update_repository(
12911317
) -> dataform.Repository:
12921318
r"""Updates a single Repository.
12931319
1294-
**Note:** *This method does not fully implement*, (see
1295-
`AIP/134 <https://google.aip.dev/134>`__, in particular:
1296-
1297-
- The wildcard entry (**\***) is treated as a bad request
1298-
- When the **field_mask** is omitted, instead of only updating
1299-
the set fields, the request is treated as a full update on
1300-
all modifiable fields
1320+
**Note:** *This method does not fully
1321+
implement*\ `AIP/134 <https://google.aip.dev/134>`__\ *. The
1322+
wildcard entry (*) is treated as a bad request, and when the
1323+
``field_mask`` is omitted, the request is treated as a full
1324+
update on all modifiable fields.*
13011325
13021326
.. code-block:: python
13031327
@@ -4319,13 +4343,11 @@ def update_release_config(
43194343
) -> dataform.ReleaseConfig:
43204344
r"""Updates a single ReleaseConfig.
43214345
4322-
**Note:** *This method does not fully implement*, (see
4323-
`AIP/134 <https://google.aip.dev/134>`__, in particular:
4324-
4325-
- The wildcard entry (**\***) is treated as a bad request
4326-
- When the **field_mask** is omitted, instead of only updating
4327-
the set fields, the request is treated as a full update on
4328-
all modifiable fields
4346+
**Note:** *This method does not fully
4347+
implement*\ `AIP/134 <https://google.aip.dev/134>`__\ *. The
4348+
wildcard entry (*) is treated as a bad request, and when the
4349+
``field_mask`` is omitted, the request is treated as a full
4350+
update on all modifiable fields.*
43294351
43304352
.. code-block:: python
43314353
@@ -5361,13 +5383,11 @@ def update_workflow_config(
53615383
) -> dataform.WorkflowConfig:
53625384
r"""Updates a single WorkflowConfig.
53635385
5364-
**Note:** *This method does not fully implement*, (see
5365-
`AIP/134 <https://google.aip.dev/134>`__, in particular:
5366-
5367-
- The wildcard entry (**\***) is treated as a bad request
5368-
- When the **field_mask** is omitted, instead of only updating
5369-
the set fields, the request is treated as a full update on
5370-
all modifiable fields
5386+
**Note:** *This method does not fully
5387+
implement*\ `AIP/134 <https://google.aip.dev/134>`__\ *. The
5388+
wildcard entry (*) is treated as a bad request, and when the
5389+
``field_mask`` is omitted, the request is treated as a full
5390+
update on all modifiable fields.*
53715391
53725392
.. code-block:: python
53735393
@@ -6329,13 +6349,11 @@ def update_config(
63296349
) -> dataform.Config:
63306350
r"""Update default config for a given project and location.
63316351
6332-
**Note:** *This method does not fully implement*, (see
6333-
`AIP/134 <https://google.aip.dev/134>`__, in particular:
6334-
6335-
- The wildcard entry (**\***) is treated as a bad request
6336-
- When the **field_mask** is omitted, instead of only updating
6337-
the set fields, the request is treated as a full update on
6338-
all modifiable fields
6352+
**Note:** *This method does not fully
6353+
implement*\ `AIP/134 <https://google.aip.dev/134>`__\ *. The
6354+
wildcard entry (*) is treated as a bad request, and when the
6355+
``field_mask`` is omitted, the request is treated as a full
6356+
update on all modifiable fields.*
63396357
63406358
.. code-block:: python
63416359

packages/google-cloud-dataform/google/cloud/dataform_v1/services/dataform/transports/grpc.py

Lines changed: 24 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,10 @@ def list_repositories(
334334
335335
Lists Repositories in a given project and location.
336336
337+
**Note:** *This method can return repositories not shown in
338+
the*\ `Dataform
339+
UI <https://console.cloud.google.com/bigquery/dataform>`__.
340+
337341
Returns:
338342
Callable[[~.ListRepositoriesRequest],
339343
~.ListRepositoriesResponse]:
@@ -413,13 +417,11 @@ def update_repository(
413417
414418
Updates a single Repository.
415419
416-
**Note:** *This method does not fully implement*, (see
417-
`AIP/134 <https://google.aip.dev/134>`__, in particular:
418-
419-
- The wildcard entry (**\***) is treated as a bad request
420-
- When the **field_mask** is omitted, instead of only updating
421-
the set fields, the request is treated as a full update on
422-
all modifiable fields
420+
**Note:** *This method does not fully
421+
implement*\ `AIP/134 <https://google.aip.dev/134>`__\ *. The
422+
wildcard entry (*) is treated as a bad request, and when the
423+
``field_mask`` is omitted, the request is treated as a full
424+
update on all modifiable fields.*
423425
424426
Returns:
425427
Callable[[~.UpdateRepositoryRequest],
@@ -1306,13 +1308,11 @@ def update_release_config(
13061308
13071309
Updates a single ReleaseConfig.
13081310
1309-
**Note:** *This method does not fully implement*, (see
1310-
`AIP/134 <https://google.aip.dev/134>`__, in particular:
1311-
1312-
- The wildcard entry (**\***) is treated as a bad request
1313-
- When the **field_mask** is omitted, instead of only updating
1314-
the set fields, the request is treated as a full update on
1315-
all modifiable fields
1311+
**Note:** *This method does not fully
1312+
implement*\ `AIP/134 <https://google.aip.dev/134>`__\ *. The
1313+
wildcard entry (*) is treated as a bad request, and when the
1314+
``field_mask`` is omitted, the request is treated as a full
1315+
update on all modifiable fields.*
13161316
13171317
Returns:
13181318
Callable[[~.UpdateReleaseConfigRequest],
@@ -1563,13 +1563,11 @@ def update_workflow_config(
15631563
15641564
Updates a single WorkflowConfig.
15651565
1566-
**Note:** *This method does not fully implement*, (see
1567-
`AIP/134 <https://google.aip.dev/134>`__, in particular:
1568-
1569-
- The wildcard entry (**\***) is treated as a bad request
1570-
- When the **field_mask** is omitted, instead of only updating
1571-
the set fields, the request is treated as a full update on
1572-
all modifiable fields
1566+
**Note:** *This method does not fully
1567+
implement*\ `AIP/134 <https://google.aip.dev/134>`__\ *. The
1568+
wildcard entry (*) is treated as a bad request, and when the
1569+
``field_mask`` is omitted, the request is treated as a full
1570+
update on all modifiable fields.*
15731571
15741572
Returns:
15751573
Callable[[~.UpdateWorkflowConfigRequest],
@@ -1826,13 +1824,11 @@ def update_config(
18261824
18271825
Update default config for a given project and location.
18281826
1829-
**Note:** *This method does not fully implement*, (see
1830-
`AIP/134 <https://google.aip.dev/134>`__, in particular:
1831-
1832-
- The wildcard entry (**\***) is treated as a bad request
1833-
- When the **field_mask** is omitted, instead of only updating
1834-
the set fields, the request is treated as a full update on
1835-
all modifiable fields
1827+
**Note:** *This method does not fully
1828+
implement*\ `AIP/134 <https://google.aip.dev/134>`__\ *. The
1829+
wildcard entry (*) is treated as a bad request, and when the
1830+
``field_mask`` is omitted, the request is treated as a full
1831+
update on all modifiable fields.*
18361832
18371833
Returns:
18381834
Callable[[~.UpdateConfigRequest],

packages/google-cloud-dataform/google/cloud/dataform_v1/services/dataform/transports/grpc_asyncio.py

Lines changed: 24 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,10 @@ def list_repositories(
342342
343343
Lists Repositories in a given project and location.
344344
345+
**Note:** *This method can return repositories not shown in
346+
the*\ `Dataform
347+
UI <https://console.cloud.google.com/bigquery/dataform>`__.
348+
345349
Returns:
346350
Callable[[~.ListRepositoriesRequest],
347351
Awaitable[~.ListRepositoriesResponse]]:
@@ -421,13 +425,11 @@ def update_repository(
421425
422426
Updates a single Repository.
423427
424-
**Note:** *This method does not fully implement*, (see
425-
`AIP/134 <https://google.aip.dev/134>`__, in particular:
426-
427-
- The wildcard entry (**\***) is treated as a bad request
428-
- When the **field_mask** is omitted, instead of only updating
429-
the set fields, the request is treated as a full update on
430-
all modifiable fields
428+
**Note:** *This method does not fully
429+
implement*\ `AIP/134 <https://google.aip.dev/134>`__\ *. The
430+
wildcard entry (*) is treated as a bad request, and when the
431+
``field_mask`` is omitted, the request is treated as a full
432+
update on all modifiable fields.*
431433
432434
Returns:
433435
Callable[[~.UpdateRepositoryRequest],
@@ -1343,13 +1345,11 @@ def update_release_config(
13431345
13441346
Updates a single ReleaseConfig.
13451347
1346-
**Note:** *This method does not fully implement*, (see
1347-
`AIP/134 <https://google.aip.dev/134>`__, in particular:
1348-
1349-
- The wildcard entry (**\***) is treated as a bad request
1350-
- When the **field_mask** is omitted, instead of only updating
1351-
the set fields, the request is treated as a full update on
1352-
all modifiable fields
1348+
**Note:** *This method does not fully
1349+
implement*\ `AIP/134 <https://google.aip.dev/134>`__\ *. The
1350+
wildcard entry (*) is treated as a bad request, and when the
1351+
``field_mask`` is omitted, the request is treated as a full
1352+
update on all modifiable fields.*
13531353
13541354
Returns:
13551355
Callable[[~.UpdateReleaseConfigRequest],
@@ -1609,13 +1609,11 @@ def update_workflow_config(
16091609
16101610
Updates a single WorkflowConfig.
16111611
1612-
**Note:** *This method does not fully implement*, (see
1613-
`AIP/134 <https://google.aip.dev/134>`__, in particular:
1614-
1615-
- The wildcard entry (**\***) is treated as a bad request
1616-
- When the **field_mask** is omitted, instead of only updating
1617-
the set fields, the request is treated as a full update on
1618-
all modifiable fields
1612+
**Note:** *This method does not fully
1613+
implement*\ `AIP/134 <https://google.aip.dev/134>`__\ *. The
1614+
wildcard entry (*) is treated as a bad request, and when the
1615+
``field_mask`` is omitted, the request is treated as a full
1616+
update on all modifiable fields.*
16191617
16201618
Returns:
16211619
Callable[[~.UpdateWorkflowConfigRequest],
@@ -1879,13 +1877,11 @@ def update_config(
18791877
18801878
Update default config for a given project and location.
18811879
1882-
**Note:** *This method does not fully implement*, (see
1883-
`AIP/134 <https://google.aip.dev/134>`__, in particular:
1884-
1885-
- The wildcard entry (**\***) is treated as a bad request
1886-
- When the **field_mask** is omitted, instead of only updating
1887-
the set fields, the request is treated as a full update on
1888-
all modifiable fields
1880+
**Note:** *This method does not fully
1881+
implement*\ `AIP/134 <https://google.aip.dev/134>`__\ *. The
1882+
wildcard entry (*) is treated as a bad request, and when the
1883+
``field_mask`` is omitted, the request is treated as a full
1884+
update on all modifiable fields.*
18891885
18901886
Returns:
18911887
Callable[[~.UpdateConfigRequest],

0 commit comments

Comments
 (0)