google-cloud-dataform 0.6.1__tar.gz → 0.6.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- google_cloud_dataform-0.6.2/MANIFEST.in +20 -0
- {google_cloud_dataform-0.6.1/google_cloud_dataform.egg-info → google_cloud_dataform-0.6.2}/PKG-INFO +3 -3
- {google_cloud_dataform-0.6.1 → google_cloud_dataform-0.6.2}/README.rst +2 -2
- {google_cloud_dataform-0.6.1 → google_cloud_dataform-0.6.2}/google/cloud/dataform/__init__.py +1 -1
- {google_cloud_dataform-0.6.1 → google_cloud_dataform-0.6.2}/google/cloud/dataform/gapic_version.py +2 -2
- {google_cloud_dataform-0.6.1 → google_cloud_dataform-0.6.2}/google/cloud/dataform_v1/__init__.py +1 -1
- {google_cloud_dataform-0.6.1/google/cloud/dataform_v1beta1 → google_cloud_dataform-0.6.2/google/cloud/dataform_v1}/gapic_version.py +2 -2
- {google_cloud_dataform-0.6.1/google/cloud/dataform_v1beta1 → google_cloud_dataform-0.6.2/google/cloud/dataform_v1}/services/__init__.py +1 -1
- {google_cloud_dataform-0.6.1 → google_cloud_dataform-0.6.2}/google/cloud/dataform_v1/services/dataform/__init__.py +1 -1
- {google_cloud_dataform-0.6.1 → google_cloud_dataform-0.6.2}/google/cloud/dataform_v1/services/dataform/async_client.py +35 -29
- {google_cloud_dataform-0.6.1 → google_cloud_dataform-0.6.2}/google/cloud/dataform_v1/services/dataform/client.py +50 -29
- {google_cloud_dataform-0.6.1 → google_cloud_dataform-0.6.2}/google/cloud/dataform_v1/services/dataform/pagers.py +1 -1
- {google_cloud_dataform-0.6.1/google/cloud/dataform_v1beta1 → google_cloud_dataform-0.6.2/google/cloud/dataform_v1}/services/dataform/transports/__init__.py +1 -1
- {google_cloud_dataform-0.6.1 → google_cloud_dataform-0.6.2}/google/cloud/dataform_v1/services/dataform/transports/base.py +5 -1
- {google_cloud_dataform-0.6.1 → google_cloud_dataform-0.6.2}/google/cloud/dataform_v1/services/dataform/transports/grpc.py +26 -31
- {google_cloud_dataform-0.6.1 → google_cloud_dataform-0.6.2}/google/cloud/dataform_v1/services/dataform/transports/grpc_asyncio.py +25 -29
- {google_cloud_dataform-0.6.1 → google_cloud_dataform-0.6.2}/google/cloud/dataform_v1/services/dataform/transports/rest.py +5 -1
- {google_cloud_dataform-0.6.1 → google_cloud_dataform-0.6.2}/google/cloud/dataform_v1/services/dataform/transports/rest_base.py +1 -1
- {google_cloud_dataform-0.6.1/google/cloud/dataform_v1beta1 → google_cloud_dataform-0.6.2/google/cloud/dataform_v1}/types/__init__.py +1 -1
- {google_cloud_dataform-0.6.1 → google_cloud_dataform-0.6.2}/google/cloud/dataform_v1/types/dataform.py +408 -1
- {google_cloud_dataform-0.6.1 → google_cloud_dataform-0.6.2}/google/cloud/dataform_v1beta1/__init__.py +1 -1
- {google_cloud_dataform-0.6.1/google/cloud/dataform_v1 → google_cloud_dataform-0.6.2/google/cloud/dataform_v1beta1}/gapic_version.py +2 -2
- {google_cloud_dataform-0.6.1/tests → google_cloud_dataform-0.6.2/google/cloud/dataform_v1beta1/services}/__init__.py +1 -1
- {google_cloud_dataform-0.6.1 → google_cloud_dataform-0.6.2}/google/cloud/dataform_v1beta1/services/dataform/__init__.py +1 -1
- {google_cloud_dataform-0.6.1 → google_cloud_dataform-0.6.2}/google/cloud/dataform_v1beta1/services/dataform/async_client.py +35 -29
- {google_cloud_dataform-0.6.1 → google_cloud_dataform-0.6.2}/google/cloud/dataform_v1beta1/services/dataform/client.py +50 -29
- {google_cloud_dataform-0.6.1 → google_cloud_dataform-0.6.2}/google/cloud/dataform_v1beta1/services/dataform/pagers.py +1 -1
- {google_cloud_dataform-0.6.1/google/cloud/dataform_v1 → google_cloud_dataform-0.6.2/google/cloud/dataform_v1beta1}/services/dataform/transports/__init__.py +1 -1
- {google_cloud_dataform-0.6.1 → google_cloud_dataform-0.6.2}/google/cloud/dataform_v1beta1/services/dataform/transports/base.py +5 -1
- {google_cloud_dataform-0.6.1 → google_cloud_dataform-0.6.2}/google/cloud/dataform_v1beta1/services/dataform/transports/grpc.py +26 -31
- {google_cloud_dataform-0.6.1 → google_cloud_dataform-0.6.2}/google/cloud/dataform_v1beta1/services/dataform/transports/grpc_asyncio.py +25 -29
- {google_cloud_dataform-0.6.1 → google_cloud_dataform-0.6.2}/google/cloud/dataform_v1beta1/services/dataform/transports/rest.py +5 -1
- {google_cloud_dataform-0.6.1 → google_cloud_dataform-0.6.2}/google/cloud/dataform_v1beta1/services/dataform/transports/rest_base.py +1 -1
- {google_cloud_dataform-0.6.1/google/cloud/dataform_v1 → google_cloud_dataform-0.6.2/google/cloud/dataform_v1beta1}/types/__init__.py +1 -1
- {google_cloud_dataform-0.6.1 → google_cloud_dataform-0.6.2}/google/cloud/dataform_v1beta1/types/dataform.py +408 -1
- {google_cloud_dataform-0.6.1 → google_cloud_dataform-0.6.2/google_cloud_dataform.egg-info}/PKG-INFO +3 -3
- {google_cloud_dataform-0.6.1 → google_cloud_dataform-0.6.2}/setup.py +1 -1
- {google_cloud_dataform-0.6.1/tests/unit → google_cloud_dataform-0.6.2/tests}/__init__.py +1 -1
- {google_cloud_dataform-0.6.1/google/cloud/dataform_v1/services → google_cloud_dataform-0.6.2/tests/unit}/__init__.py +1 -1
- google_cloud_dataform-0.6.2/tests/unit/gapic/__init__.py +15 -0
- google_cloud_dataform-0.6.2/tests/unit/gapic/dataform_v1/__init__.py +15 -0
- {google_cloud_dataform-0.6.1 → google_cloud_dataform-0.6.2}/tests/unit/gapic/dataform_v1/test_dataform.py +116 -59
- google_cloud_dataform-0.6.2/tests/unit/gapic/dataform_v1beta1/__init__.py +15 -0
- {google_cloud_dataform-0.6.1 → google_cloud_dataform-0.6.2}/tests/unit/gapic/dataform_v1beta1/test_dataform.py +116 -59
- google_cloud_dataform-0.6.1/MANIFEST.in +0 -25
- google_cloud_dataform-0.6.1/tests/unit/gapic/__init__.py +0 -15
- google_cloud_dataform-0.6.1/tests/unit/gapic/dataform_v1/__init__.py +0 -15
- google_cloud_dataform-0.6.1/tests/unit/gapic/dataform_v1beta1/__init__.py +0 -15
- {google_cloud_dataform-0.6.1 → google_cloud_dataform-0.6.2}/LICENSE +0 -0
- {google_cloud_dataform-0.6.1 → google_cloud_dataform-0.6.2}/google/cloud/dataform/py.typed +0 -0
- {google_cloud_dataform-0.6.1 → google_cloud_dataform-0.6.2}/google/cloud/dataform_v1/gapic_metadata.json +0 -0
- {google_cloud_dataform-0.6.1 → google_cloud_dataform-0.6.2}/google/cloud/dataform_v1/py.typed +0 -0
- {google_cloud_dataform-0.6.1 → google_cloud_dataform-0.6.2}/google/cloud/dataform_v1beta1/gapic_metadata.json +0 -0
- {google_cloud_dataform-0.6.1 → google_cloud_dataform-0.6.2}/google/cloud/dataform_v1beta1/py.typed +0 -0
- {google_cloud_dataform-0.6.1 → google_cloud_dataform-0.6.2}/google_cloud_dataform.egg-info/SOURCES.txt +0 -0
- {google_cloud_dataform-0.6.1 → google_cloud_dataform-0.6.2}/google_cloud_dataform.egg-info/dependency_links.txt +0 -0
- {google_cloud_dataform-0.6.1 → google_cloud_dataform-0.6.2}/google_cloud_dataform.egg-info/not-zip-safe +0 -0
- {google_cloud_dataform-0.6.1 → google_cloud_dataform-0.6.2}/google_cloud_dataform.egg-info/requires.txt +0 -0
- {google_cloud_dataform-0.6.1 → google_cloud_dataform-0.6.2}/google_cloud_dataform.egg-info/top_level.txt +0 -0
- {google_cloud_dataform-0.6.1 → google_cloud_dataform-0.6.2}/setup.cfg +0 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Copyright 2025 Google LLC
|
|
3
|
+
#
|
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
# you may not use this file except in compliance with the License.
|
|
6
|
+
# You may obtain a copy of the License at
|
|
7
|
+
#
|
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
#
|
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
# See the License for the specific language governing permissions and
|
|
14
|
+
# limitations under the License.
|
|
15
|
+
#
|
|
16
|
+
include README.rst LICENSE
|
|
17
|
+
recursive-include google *.py *.pyi *.json *.proto py.typed
|
|
18
|
+
recursive-include tests *
|
|
19
|
+
global-exclude *.py[co]
|
|
20
|
+
global-exclude __pycache__
|
{google_cloud_dataform-0.6.1/google_cloud_dataform.egg-info → google_cloud_dataform-0.6.2}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: google-cloud-dataform
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.2
|
|
4
4
|
Summary: Google Cloud Dataform API client library
|
|
5
5
|
Home-page: https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-dataform
|
|
6
6
|
Author: Google LLC
|
|
@@ -194,7 +194,7 @@ Code-Based Examples
|
|
|
194
194
|
|
|
195
195
|
import logging
|
|
196
196
|
|
|
197
|
-
from google.cloud
|
|
197
|
+
from google.cloud import library_v1
|
|
198
198
|
|
|
199
199
|
base_logger = logging.getLogger("google")
|
|
200
200
|
base_logger.addHandler(logging.StreamHandler())
|
|
@@ -206,7 +206,7 @@ Code-Based Examples
|
|
|
206
206
|
|
|
207
207
|
import logging
|
|
208
208
|
|
|
209
|
-
from google.cloud
|
|
209
|
+
from google.cloud import library_v1
|
|
210
210
|
|
|
211
211
|
base_logger = logging.getLogger("google.cloud.library_v1")
|
|
212
212
|
base_logger.addHandler(logging.StreamHandler())
|
|
@@ -162,7 +162,7 @@ Code-Based Examples
|
|
|
162
162
|
|
|
163
163
|
import logging
|
|
164
164
|
|
|
165
|
-
from google.cloud
|
|
165
|
+
from google.cloud import library_v1
|
|
166
166
|
|
|
167
167
|
base_logger = logging.getLogger("google")
|
|
168
168
|
base_logger.addHandler(logging.StreamHandler())
|
|
@@ -174,7 +174,7 @@ Code-Based Examples
|
|
|
174
174
|
|
|
175
175
|
import logging
|
|
176
176
|
|
|
177
|
-
from google.cloud
|
|
177
|
+
from google.cloud import library_v1
|
|
178
178
|
|
|
179
179
|
base_logger = logging.getLogger("google.cloud.library_v1")
|
|
180
180
|
base_logger.addHandler(logging.StreamHandler())
|
{google_cloud_dataform-0.6.1 → google_cloud_dataform-0.6.2}/google/cloud/dataform/gapic_version.py
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
|
-
# Copyright
|
|
2
|
+
# Copyright 2025 Google LLC
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -13,4 +13,4 @@
|
|
|
13
13
|
# See the License for the specific language governing permissions and
|
|
14
14
|
# limitations under the License.
|
|
15
15
|
#
|
|
16
|
-
__version__ = "0.6.
|
|
16
|
+
__version__ = "0.6.2" # {x-release-please-version}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
|
-
# Copyright
|
|
2
|
+
# Copyright 2025 Google LLC
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -13,4 +13,4 @@
|
|
|
13
13
|
# See the License for the specific language governing permissions and
|
|
14
14
|
# limitations under the License.
|
|
15
15
|
#
|
|
16
|
-
__version__ = "0.6.
|
|
16
|
+
__version__ = "0.6.2" # {x-release-please-version}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
|
-
# Copyright
|
|
2
|
+
# Copyright 2025 Google LLC
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -35,6 +35,7 @@ from google.api_core import retry_async as retries
|
|
|
35
35
|
from google.api_core.client_options import ClientOptions
|
|
36
36
|
from google.auth import credentials as ga_credentials # type: ignore
|
|
37
37
|
from google.oauth2 import service_account # type: ignore
|
|
38
|
+
import google.protobuf
|
|
38
39
|
|
|
39
40
|
from google.cloud.dataform_v1 import gapic_version as package_version
|
|
40
41
|
|
|
@@ -93,6 +94,12 @@ class DataformAsyncClient:
|
|
|
93
94
|
parse_crypto_key_version_path = staticmethod(
|
|
94
95
|
DataformClient.parse_crypto_key_version_path
|
|
95
96
|
)
|
|
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
|
+
)
|
|
96
103
|
release_config_path = staticmethod(DataformClient.release_config_path)
|
|
97
104
|
parse_release_config_path = staticmethod(DataformClient.parse_release_config_path)
|
|
98
105
|
repository_path = staticmethod(DataformClient.repository_path)
|
|
@@ -322,6 +329,10 @@ class DataformAsyncClient:
|
|
|
322
329
|
) -> pagers.ListRepositoriesAsyncPager:
|
|
323
330
|
r"""Lists Repositories in a given project and location.
|
|
324
331
|
|
|
332
|
+
**Note:** *This method can return repositories not shown in
|
|
333
|
+
the*\ `Dataform
|
|
334
|
+
UI <https://console.cloud.google.com/bigquery/dataform>`__.
|
|
335
|
+
|
|
325
336
|
.. code-block:: python
|
|
326
337
|
|
|
327
338
|
# This snippet has been automatically generated and should be regarded as a
|
|
@@ -684,13 +695,11 @@ class DataformAsyncClient:
|
|
|
684
695
|
) -> dataform.Repository:
|
|
685
696
|
r"""Updates a single Repository.
|
|
686
697
|
|
|
687
|
-
**Note:** *This method does not fully
|
|
688
|
-
`AIP/134 <https://google.aip.dev/134>`__
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
the set fields, the request is treated as a full update on
|
|
693
|
-
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.*
|
|
694
703
|
|
|
695
704
|
.. code-block:: python
|
|
696
705
|
|
|
@@ -3779,13 +3788,11 @@ class DataformAsyncClient:
|
|
|
3779
3788
|
) -> dataform.ReleaseConfig:
|
|
3780
3789
|
r"""Updates a single ReleaseConfig.
|
|
3781
3790
|
|
|
3782
|
-
**Note:** *This method does not fully
|
|
3783
|
-
`AIP/134 <https://google.aip.dev/134>`__
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
the set fields, the request is treated as a full update on
|
|
3788
|
-
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.*
|
|
3789
3796
|
|
|
3790
3797
|
.. code-block:: python
|
|
3791
3798
|
|
|
@@ -4843,13 +4850,11 @@ class DataformAsyncClient:
|
|
|
4843
4850
|
) -> dataform.WorkflowConfig:
|
|
4844
4851
|
r"""Updates a single WorkflowConfig.
|
|
4845
4852
|
|
|
4846
|
-
**Note:** *This method does not fully
|
|
4847
|
-
`AIP/134 <https://google.aip.dev/134>`__
|
|
4848
|
-
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
the set fields, the request is treated as a full update on
|
|
4852
|
-
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.*
|
|
4853
4858
|
|
|
4854
4859
|
.. code-block:: python
|
|
4855
4860
|
|
|
@@ -5826,13 +5831,11 @@ class DataformAsyncClient:
|
|
|
5826
5831
|
) -> dataform.Config:
|
|
5827
5832
|
r"""Update default config for a given project and location.
|
|
5828
5833
|
|
|
5829
|
-
**Note:** *This method does not fully
|
|
5830
|
-
`AIP/134 <https://google.aip.dev/134>`__
|
|
5831
|
-
|
|
5832
|
-
|
|
5833
|
-
|
|
5834
|
-
the set fields, the request is treated as a full update on
|
|
5835
|
-
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.*
|
|
5836
5839
|
|
|
5837
5840
|
.. code-block:: python
|
|
5838
5841
|
|
|
@@ -6367,5 +6370,8 @@ DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo(
|
|
|
6367
6370
|
gapic_version=package_version.__version__
|
|
6368
6371
|
)
|
|
6369
6372
|
|
|
6373
|
+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
|
|
6374
|
+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
|
|
6375
|
+
|
|
6370
6376
|
|
|
6371
6377
|
__all__ = ("DataformAsyncClient",)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
|
-
# Copyright
|
|
2
|
+
# Copyright 2025 Google LLC
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -43,6 +43,7 @@ from google.auth.exceptions import MutualTLSChannelError # type: ignore
|
|
|
43
43
|
from google.auth.transport import mtls # type: ignore
|
|
44
44
|
from google.auth.transport.grpc import SslCredentials # type: ignore
|
|
45
45
|
from google.oauth2 import service_account # type: ignore
|
|
46
|
+
import google.protobuf
|
|
46
47
|
|
|
47
48
|
from google.cloud.dataform_v1 import gapic_version as package_version
|
|
48
49
|
|
|
@@ -295,6 +296,28 @@ class DataformClient(metaclass=DataformClientMeta):
|
|
|
295
296
|
)
|
|
296
297
|
return m.groupdict() if m else {}
|
|
297
298
|
|
|
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
|
+
|
|
298
321
|
@staticmethod
|
|
299
322
|
def release_config_path(
|
|
300
323
|
project: str,
|
|
@@ -937,6 +960,10 @@ class DataformClient(metaclass=DataformClientMeta):
|
|
|
937
960
|
) -> pagers.ListRepositoriesPager:
|
|
938
961
|
r"""Lists Repositories in a given project and location.
|
|
939
962
|
|
|
963
|
+
**Note:** *This method can return repositories not shown in
|
|
964
|
+
the*\ `Dataform
|
|
965
|
+
UI <https://console.cloud.google.com/bigquery/dataform>`__.
|
|
966
|
+
|
|
940
967
|
.. code-block:: python
|
|
941
968
|
|
|
942
969
|
# This snippet has been automatically generated and should be regarded as a
|
|
@@ -1290,13 +1317,11 @@ class DataformClient(metaclass=DataformClientMeta):
|
|
|
1290
1317
|
) -> dataform.Repository:
|
|
1291
1318
|
r"""Updates a single Repository.
|
|
1292
1319
|
|
|
1293
|
-
**Note:** *This method does not fully
|
|
1294
|
-
`AIP/134 <https://google.aip.dev/134>`__
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
the set fields, the request is treated as a full update on
|
|
1299
|
-
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.*
|
|
1300
1325
|
|
|
1301
1326
|
.. code-block:: python
|
|
1302
1327
|
|
|
@@ -4318,13 +4343,11 @@ class DataformClient(metaclass=DataformClientMeta):
|
|
|
4318
4343
|
) -> dataform.ReleaseConfig:
|
|
4319
4344
|
r"""Updates a single ReleaseConfig.
|
|
4320
4345
|
|
|
4321
|
-
**Note:** *This method does not fully
|
|
4322
|
-
`AIP/134 <https://google.aip.dev/134>`__
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
the set fields, the request is treated as a full update on
|
|
4327
|
-
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.*
|
|
4328
4351
|
|
|
4329
4352
|
.. code-block:: python
|
|
4330
4353
|
|
|
@@ -5360,13 +5383,11 @@ class DataformClient(metaclass=DataformClientMeta):
|
|
|
5360
5383
|
) -> dataform.WorkflowConfig:
|
|
5361
5384
|
r"""Updates a single WorkflowConfig.
|
|
5362
5385
|
|
|
5363
|
-
**Note:** *This method does not fully
|
|
5364
|
-
`AIP/134 <https://google.aip.dev/134>`__
|
|
5365
|
-
|
|
5366
|
-
|
|
5367
|
-
|
|
5368
|
-
the set fields, the request is treated as a full update on
|
|
5369
|
-
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.*
|
|
5370
5391
|
|
|
5371
5392
|
.. code-block:: python
|
|
5372
5393
|
|
|
@@ -6328,13 +6349,11 @@ class DataformClient(metaclass=DataformClientMeta):
|
|
|
6328
6349
|
) -> dataform.Config:
|
|
6329
6350
|
r"""Update default config for a given project and location.
|
|
6330
6351
|
|
|
6331
|
-
**Note:** *This method does not fully
|
|
6332
|
-
`AIP/134 <https://google.aip.dev/134>`__
|
|
6333
|
-
|
|
6334
|
-
|
|
6335
|
-
|
|
6336
|
-
the set fields, the request is treated as a full update on
|
|
6337
|
-
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.*
|
|
6338
6357
|
|
|
6339
6358
|
.. code-block:: python
|
|
6340
6359
|
|
|
@@ -6891,5 +6910,7 @@ DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo(
|
|
|
6891
6910
|
gapic_version=package_version.__version__
|
|
6892
6911
|
)
|
|
6893
6912
|
|
|
6913
|
+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
|
|
6914
|
+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
|
|
6894
6915
|
|
|
6895
6916
|
__all__ = ("DataformClient",)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
|
-
# Copyright
|
|
2
|
+
# Copyright 2025 Google LLC
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -26,6 +26,7 @@ from google.cloud.location import locations_pb2 # type: ignore
|
|
|
26
26
|
from google.iam.v1 import iam_policy_pb2 # type: ignore
|
|
27
27
|
from google.iam.v1 import policy_pb2 # type: ignore
|
|
28
28
|
from google.oauth2 import service_account # type: ignore
|
|
29
|
+
import google.protobuf
|
|
29
30
|
from google.protobuf import empty_pb2 # type: ignore
|
|
30
31
|
|
|
31
32
|
from google.cloud.dataform_v1 import gapic_version as package_version
|
|
@@ -35,6 +36,9 @@ DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo(
|
|
|
35
36
|
gapic_version=package_version.__version__
|
|
36
37
|
)
|
|
37
38
|
|
|
39
|
+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
|
|
40
|
+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
|
|
41
|
+
|
|
38
42
|
|
|
39
43
|
class DataformTransport(abc.ABC):
|
|
40
44
|
"""Abstract transport class for Dataform."""
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
|
-
# Copyright
|
|
2
|
+
# Copyright 2025 Google LLC
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -73,12 +73,11 @@ class _LoggingClientInterceptor(grpc.UnaryUnaryClientInterceptor): # pragma: NO
|
|
|
73
73
|
f"Sending request for {client_call_details.method}",
|
|
74
74
|
extra={
|
|
75
75
|
"serviceName": "google.cloud.dataform.v1.Dataform",
|
|
76
|
-
"rpcName": client_call_details.method,
|
|
76
|
+
"rpcName": str(client_call_details.method),
|
|
77
77
|
"request": grpc_request,
|
|
78
78
|
"metadata": grpc_request["metadata"],
|
|
79
79
|
},
|
|
80
80
|
)
|
|
81
|
-
|
|
82
81
|
response = continuation(client_call_details, request)
|
|
83
82
|
if logging_enabled: # pragma: NO COVER
|
|
84
83
|
response_metadata = response.trailing_metadata()
|
|
@@ -335,6 +334,10 @@ class DataformGrpcTransport(DataformTransport):
|
|
|
335
334
|
|
|
336
335
|
Lists Repositories in a given project and location.
|
|
337
336
|
|
|
337
|
+
**Note:** *This method can return repositories not shown in
|
|
338
|
+
the*\ `Dataform
|
|
339
|
+
UI <https://console.cloud.google.com/bigquery/dataform>`__.
|
|
340
|
+
|
|
338
341
|
Returns:
|
|
339
342
|
Callable[[~.ListRepositoriesRequest],
|
|
340
343
|
~.ListRepositoriesResponse]:
|
|
@@ -414,13 +417,11 @@ class DataformGrpcTransport(DataformTransport):
|
|
|
414
417
|
|
|
415
418
|
Updates a single Repository.
|
|
416
419
|
|
|
417
|
-
**Note:** *This method does not fully
|
|
418
|
-
`AIP/134 <https://google.aip.dev/134>`__
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
the set fields, the request is treated as a full update on
|
|
423
|
-
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.*
|
|
424
425
|
|
|
425
426
|
Returns:
|
|
426
427
|
Callable[[~.UpdateRepositoryRequest],
|
|
@@ -1307,13 +1308,11 @@ class DataformGrpcTransport(DataformTransport):
|
|
|
1307
1308
|
|
|
1308
1309
|
Updates a single ReleaseConfig.
|
|
1309
1310
|
|
|
1310
|
-
**Note:** *This method does not fully
|
|
1311
|
-
`AIP/134 <https://google.aip.dev/134>`__
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
the set fields, the request is treated as a full update on
|
|
1316
|
-
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.*
|
|
1317
1316
|
|
|
1318
1317
|
Returns:
|
|
1319
1318
|
Callable[[~.UpdateReleaseConfigRequest],
|
|
@@ -1564,13 +1563,11 @@ class DataformGrpcTransport(DataformTransport):
|
|
|
1564
1563
|
|
|
1565
1564
|
Updates a single WorkflowConfig.
|
|
1566
1565
|
|
|
1567
|
-
**Note:** *This method does not fully
|
|
1568
|
-
`AIP/134 <https://google.aip.dev/134>`__
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
the set fields, the request is treated as a full update on
|
|
1573
|
-
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.*
|
|
1574
1571
|
|
|
1575
1572
|
Returns:
|
|
1576
1573
|
Callable[[~.UpdateWorkflowConfigRequest],
|
|
@@ -1827,13 +1824,11 @@ class DataformGrpcTransport(DataformTransport):
|
|
|
1827
1824
|
|
|
1828
1825
|
Update default config for a given project and location.
|
|
1829
1826
|
|
|
1830
|
-
**Note:** *This method does not fully
|
|
1831
|
-
`AIP/134 <https://google.aip.dev/134>`__
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
the set fields, the request is treated as a full update on
|
|
1836
|
-
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.*
|
|
1837
1832
|
|
|
1838
1833
|
Returns:
|
|
1839
1834
|
Callable[[~.UpdateConfigRequest],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
|
-
# Copyright
|
|
2
|
+
# Copyright 2025 Google LLC
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -342,6 +342,10 @@ class DataformGrpcAsyncIOTransport(DataformTransport):
|
|
|
342
342
|
|
|
343
343
|
Lists Repositories in a given project and location.
|
|
344
344
|
|
|
345
|
+
**Note:** *This method can return repositories not shown in
|
|
346
|
+
the*\ `Dataform
|
|
347
|
+
UI <https://console.cloud.google.com/bigquery/dataform>`__.
|
|
348
|
+
|
|
345
349
|
Returns:
|
|
346
350
|
Callable[[~.ListRepositoriesRequest],
|
|
347
351
|
Awaitable[~.ListRepositoriesResponse]]:
|
|
@@ -421,13 +425,11 @@ class DataformGrpcAsyncIOTransport(DataformTransport):
|
|
|
421
425
|
|
|
422
426
|
Updates a single Repository.
|
|
423
427
|
|
|
424
|
-
**Note:** *This method does not fully
|
|
425
|
-
`AIP/134 <https://google.aip.dev/134>`__
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
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.*
|
|
431
433
|
|
|
432
434
|
Returns:
|
|
433
435
|
Callable[[~.UpdateRepositoryRequest],
|
|
@@ -1343,13 +1345,11 @@ class DataformGrpcAsyncIOTransport(DataformTransport):
|
|
|
1343
1345
|
|
|
1344
1346
|
Updates a single ReleaseConfig.
|
|
1345
1347
|
|
|
1346
|
-
**Note:** *This method does not fully
|
|
1347
|
-
`AIP/134 <https://google.aip.dev/134>`__
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
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.*
|
|
1353
1353
|
|
|
1354
1354
|
Returns:
|
|
1355
1355
|
Callable[[~.UpdateReleaseConfigRequest],
|
|
@@ -1609,13 +1609,11 @@ class DataformGrpcAsyncIOTransport(DataformTransport):
|
|
|
1609
1609
|
|
|
1610
1610
|
Updates a single WorkflowConfig.
|
|
1611
1611
|
|
|
1612
|
-
**Note:** *This method does not fully
|
|
1613
|
-
`AIP/134 <https://google.aip.dev/134>`__
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
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.*
|
|
1619
1617
|
|
|
1620
1618
|
Returns:
|
|
1621
1619
|
Callable[[~.UpdateWorkflowConfigRequest],
|
|
@@ -1879,13 +1877,11 @@ class DataformGrpcAsyncIOTransport(DataformTransport):
|
|
|
1879
1877
|
|
|
1880
1878
|
Update default config for a given project and location.
|
|
1881
1879
|
|
|
1882
|
-
**Note:** *This method does not fully
|
|
1883
|
-
`AIP/134 <https://google.aip.dev/134>`__
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
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.*
|
|
1889
1885
|
|
|
1890
1886
|
Returns:
|
|
1891
1887
|
Callable[[~.UpdateConfigRequest],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
|
-
# Copyright
|
|
2
|
+
# Copyright 2025 Google LLC
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -27,6 +27,7 @@ from google.auth.transport.requests import AuthorizedSession # type: ignore
|
|
|
27
27
|
from google.cloud.location import locations_pb2 # type: ignore
|
|
28
28
|
from google.iam.v1 import iam_policy_pb2 # type: ignore
|
|
29
29
|
from google.iam.v1 import policy_pb2 # type: ignore
|
|
30
|
+
import google.protobuf
|
|
30
31
|
from google.protobuf import empty_pb2 # type: ignore
|
|
31
32
|
from google.protobuf import json_format
|
|
32
33
|
from requests import __version__ as requests_version
|
|
@@ -56,6 +57,9 @@ DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo(
|
|
|
56
57
|
rest_version=f"requests@{requests_version}",
|
|
57
58
|
)
|
|
58
59
|
|
|
60
|
+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
|
|
61
|
+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
|
|
62
|
+
|
|
59
63
|
|
|
60
64
|
class DataformRestInterceptor:
|
|
61
65
|
"""Interceptor for Dataform.
|