google-cloud-dataform 0.6.2__tar.gz → 0.8.0__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.
Files changed (56) hide show
  1. {google_cloud_dataform-0.6.2/google_cloud_dataform.egg-info → google_cloud_dataform-0.8.0}/PKG-INFO +17 -3
  2. {google_cloud_dataform-0.6.2 → google_cloud_dataform-0.8.0}/README.rst +1 -1
  3. {google_cloud_dataform-0.6.2 → google_cloud_dataform-0.8.0}/google/cloud/dataform/gapic_version.py +1 -1
  4. {google_cloud_dataform-0.6.2 → google_cloud_dataform-0.8.0}/google/cloud/dataform_v1/__init__.py +104 -0
  5. {google_cloud_dataform-0.6.2/google/cloud/dataform_v1beta1 → google_cloud_dataform-0.8.0/google/cloud/dataform_v1}/gapic_version.py +1 -1
  6. {google_cloud_dataform-0.6.2 → google_cloud_dataform-0.8.0}/google/cloud/dataform_v1/services/dataform/async_client.py +6 -6
  7. {google_cloud_dataform-0.6.2 → google_cloud_dataform-0.8.0}/google/cloud/dataform_v1/services/dataform/client.py +38 -20
  8. {google_cloud_dataform-0.6.2 → google_cloud_dataform-0.8.0}/google/cloud/dataform_v1/services/dataform/transports/base.py +3 -2
  9. {google_cloud_dataform-0.6.2 → google_cloud_dataform-0.8.0}/google/cloud/dataform_v1/services/dataform/transports/grpc.py +11 -9
  10. {google_cloud_dataform-0.6.2 → google_cloud_dataform-0.8.0}/google/cloud/dataform_v1/services/dataform/transports/grpc_asyncio.py +11 -9
  11. {google_cloud_dataform-0.6.2 → google_cloud_dataform-0.8.0}/google/cloud/dataform_v1/services/dataform/transports/rest.py +3 -2
  12. {google_cloud_dataform-0.6.2 → google_cloud_dataform-0.8.0}/google/cloud/dataform_v1/types/dataform.py +6 -6
  13. {google_cloud_dataform-0.6.2 → google_cloud_dataform-0.8.0}/google/cloud/dataform_v1beta1/__init__.py +104 -0
  14. {google_cloud_dataform-0.6.2/google/cloud/dataform_v1 → google_cloud_dataform-0.8.0/google/cloud/dataform_v1beta1}/gapic_version.py +1 -1
  15. {google_cloud_dataform-0.6.2 → google_cloud_dataform-0.8.0}/google/cloud/dataform_v1beta1/services/dataform/async_client.py +6 -6
  16. {google_cloud_dataform-0.6.2 → google_cloud_dataform-0.8.0}/google/cloud/dataform_v1beta1/services/dataform/client.py +38 -20
  17. {google_cloud_dataform-0.6.2 → google_cloud_dataform-0.8.0}/google/cloud/dataform_v1beta1/services/dataform/transports/base.py +3 -2
  18. {google_cloud_dataform-0.6.2 → google_cloud_dataform-0.8.0}/google/cloud/dataform_v1beta1/services/dataform/transports/grpc.py +11 -9
  19. {google_cloud_dataform-0.6.2 → google_cloud_dataform-0.8.0}/google/cloud/dataform_v1beta1/services/dataform/transports/grpc_asyncio.py +11 -9
  20. {google_cloud_dataform-0.6.2 → google_cloud_dataform-0.8.0}/google/cloud/dataform_v1beta1/services/dataform/transports/rest.py +3 -2
  21. {google_cloud_dataform-0.6.2 → google_cloud_dataform-0.8.0}/google/cloud/dataform_v1beta1/types/dataform.py +6 -6
  22. {google_cloud_dataform-0.6.2 → google_cloud_dataform-0.8.0/google_cloud_dataform.egg-info}/PKG-INFO +17 -3
  23. {google_cloud_dataform-0.6.2 → google_cloud_dataform-0.8.0}/google_cloud_dataform.egg-info/requires.txt +4 -0
  24. {google_cloud_dataform-0.6.2 → google_cloud_dataform-0.8.0}/setup.py +3 -0
  25. {google_cloud_dataform-0.6.2 → google_cloud_dataform-0.8.0}/tests/unit/gapic/dataform_v1/test_dataform.py +226 -29
  26. {google_cloud_dataform-0.6.2 → google_cloud_dataform-0.8.0}/tests/unit/gapic/dataform_v1beta1/test_dataform.py +226 -29
  27. {google_cloud_dataform-0.6.2 → google_cloud_dataform-0.8.0}/LICENSE +0 -0
  28. {google_cloud_dataform-0.6.2 → google_cloud_dataform-0.8.0}/MANIFEST.in +0 -0
  29. {google_cloud_dataform-0.6.2 → google_cloud_dataform-0.8.0}/google/cloud/dataform/__init__.py +0 -0
  30. {google_cloud_dataform-0.6.2 → google_cloud_dataform-0.8.0}/google/cloud/dataform/py.typed +0 -0
  31. {google_cloud_dataform-0.6.2 → google_cloud_dataform-0.8.0}/google/cloud/dataform_v1/gapic_metadata.json +0 -0
  32. {google_cloud_dataform-0.6.2 → google_cloud_dataform-0.8.0}/google/cloud/dataform_v1/py.typed +0 -0
  33. {google_cloud_dataform-0.6.2 → google_cloud_dataform-0.8.0}/google/cloud/dataform_v1/services/__init__.py +0 -0
  34. {google_cloud_dataform-0.6.2 → google_cloud_dataform-0.8.0}/google/cloud/dataform_v1/services/dataform/__init__.py +0 -0
  35. {google_cloud_dataform-0.6.2 → google_cloud_dataform-0.8.0}/google/cloud/dataform_v1/services/dataform/pagers.py +0 -0
  36. {google_cloud_dataform-0.6.2 → google_cloud_dataform-0.8.0}/google/cloud/dataform_v1/services/dataform/transports/__init__.py +0 -0
  37. {google_cloud_dataform-0.6.2 → google_cloud_dataform-0.8.0}/google/cloud/dataform_v1/services/dataform/transports/rest_base.py +0 -0
  38. {google_cloud_dataform-0.6.2 → google_cloud_dataform-0.8.0}/google/cloud/dataform_v1/types/__init__.py +0 -0
  39. {google_cloud_dataform-0.6.2 → google_cloud_dataform-0.8.0}/google/cloud/dataform_v1beta1/gapic_metadata.json +0 -0
  40. {google_cloud_dataform-0.6.2 → google_cloud_dataform-0.8.0}/google/cloud/dataform_v1beta1/py.typed +0 -0
  41. {google_cloud_dataform-0.6.2 → google_cloud_dataform-0.8.0}/google/cloud/dataform_v1beta1/services/__init__.py +0 -0
  42. {google_cloud_dataform-0.6.2 → google_cloud_dataform-0.8.0}/google/cloud/dataform_v1beta1/services/dataform/__init__.py +0 -0
  43. {google_cloud_dataform-0.6.2 → google_cloud_dataform-0.8.0}/google/cloud/dataform_v1beta1/services/dataform/pagers.py +0 -0
  44. {google_cloud_dataform-0.6.2 → google_cloud_dataform-0.8.0}/google/cloud/dataform_v1beta1/services/dataform/transports/__init__.py +0 -0
  45. {google_cloud_dataform-0.6.2 → google_cloud_dataform-0.8.0}/google/cloud/dataform_v1beta1/services/dataform/transports/rest_base.py +0 -0
  46. {google_cloud_dataform-0.6.2 → google_cloud_dataform-0.8.0}/google/cloud/dataform_v1beta1/types/__init__.py +0 -0
  47. {google_cloud_dataform-0.6.2 → google_cloud_dataform-0.8.0}/google_cloud_dataform.egg-info/SOURCES.txt +0 -0
  48. {google_cloud_dataform-0.6.2 → google_cloud_dataform-0.8.0}/google_cloud_dataform.egg-info/dependency_links.txt +0 -0
  49. {google_cloud_dataform-0.6.2 → google_cloud_dataform-0.8.0}/google_cloud_dataform.egg-info/not-zip-safe +0 -0
  50. {google_cloud_dataform-0.6.2 → google_cloud_dataform-0.8.0}/google_cloud_dataform.egg-info/top_level.txt +0 -0
  51. {google_cloud_dataform-0.6.2 → google_cloud_dataform-0.8.0}/setup.cfg +0 -0
  52. {google_cloud_dataform-0.6.2 → google_cloud_dataform-0.8.0}/tests/__init__.py +0 -0
  53. {google_cloud_dataform-0.6.2 → google_cloud_dataform-0.8.0}/tests/unit/__init__.py +0 -0
  54. {google_cloud_dataform-0.6.2 → google_cloud_dataform-0.8.0}/tests/unit/gapic/__init__.py +0 -0
  55. {google_cloud_dataform-0.6.2 → google_cloud_dataform-0.8.0}/tests/unit/gapic/dataform_v1/__init__.py +0 -0
  56. {google_cloud_dataform-0.6.2 → google_cloud_dataform-0.8.0}/tests/unit/gapic/dataform_v1beta1/__init__.py +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: google-cloud-dataform
3
- Version: 0.6.2
3
+ Version: 0.8.0
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
@@ -19,16 +19,30 @@ Classifier: Programming Language :: Python :: 3.10
19
19
  Classifier: Programming Language :: Python :: 3.11
20
20
  Classifier: Programming Language :: Python :: 3.12
21
21
  Classifier: Programming Language :: Python :: 3.13
22
+ Classifier: Programming Language :: Python :: 3.14
22
23
  Classifier: Operating System :: OS Independent
23
24
  Classifier: Topic :: Internet
24
25
  Requires-Python: >=3.7
25
26
  License-File: LICENSE
26
27
  Requires-Dist: google-api-core[grpc]!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0,>=1.34.1
27
28
  Requires-Dist: google-auth!=2.24.0,!=2.25.0,<3.0.0,>=2.14.1
29
+ Requires-Dist: grpcio<2.0.0,>=1.33.2
30
+ Requires-Dist: grpcio<2.0.0,>=1.75.1; python_version >= "3.14"
28
31
  Requires-Dist: proto-plus<2.0.0,>=1.22.3
29
32
  Requires-Dist: proto-plus<2.0.0,>=1.25.0; python_version >= "3.13"
30
33
  Requires-Dist: protobuf!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<7.0.0,>=3.20.2
31
34
  Requires-Dist: grpc-google-iam-v1<1.0.0,>=0.14.0
35
+ Dynamic: author
36
+ Dynamic: author-email
37
+ Dynamic: classifier
38
+ Dynamic: description
39
+ Dynamic: home-page
40
+ Dynamic: license
41
+ Dynamic: license-file
42
+ Dynamic: platform
43
+ Dynamic: requires-dist
44
+ Dynamic: requires-python
45
+ Dynamic: summary
32
46
 
33
47
  Python Client for Cloud Dataform
34
48
  ================================
@@ -93,7 +107,7 @@ Supported Python Versions
93
107
  Our client libraries are compatible with all current `active`_ and `maintenance`_ versions of
94
108
  Python.
95
109
 
96
- Python >= 3.7
110
+ Python >= 3.7, including 3.14
97
111
 
98
112
  .. _active: https://devguide.python.org/devcycle/#in-development-main-branch
99
113
  .. _maintenance: https://devguide.python.org/devcycle/#maintenance-branches
@@ -61,7 +61,7 @@ Supported Python Versions
61
61
  Our client libraries are compatible with all current `active`_ and `maintenance`_ versions of
62
62
  Python.
63
63
 
64
- Python >= 3.7
64
+ Python >= 3.7, including 3.14
65
65
 
66
66
  .. _active: https://devguide.python.org/devcycle/#in-development-main-branch
67
67
  .. _maintenance: https://devguide.python.org/devcycle/#maintenance-branches
@@ -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.2" # {x-release-please-version}
16
+ __version__ = "0.8.0" # {x-release-please-version}
@@ -13,10 +13,20 @@
13
13
  # See the License for the specific language governing permissions and
14
14
  # limitations under the License.
15
15
  #
16
+ import sys
17
+
18
+ import google.api_core as api_core
19
+
16
20
  from google.cloud.dataform_v1 import gapic_version as package_version
17
21
 
18
22
  __version__ = package_version.__version__
19
23
 
24
+ if sys.version_info >= (3, 8): # pragma: NO COVER
25
+ from importlib import metadata
26
+ else: # pragma: NO COVER
27
+ # TODO(https://github.com/googleapis/python-api-core/issues/835): Remove
28
+ # this code path once we drop support for Python 3.7
29
+ import importlib_metadata as metadata
20
30
 
21
31
  from .services.dataform import DataformAsyncClient, DataformClient
22
32
  from .types.dataform import (
@@ -130,6 +140,100 @@ from .types.dataform import (
130
140
  WriteFileResponse,
131
141
  )
132
142
 
143
+ if hasattr(api_core, "check_python_version") and hasattr(
144
+ api_core, "check_dependency_versions"
145
+ ): # pragma: NO COVER
146
+ api_core.check_python_version("google.cloud.dataform_v1") # type: ignore
147
+ api_core.check_dependency_versions("google.cloud.dataform_v1") # type: ignore
148
+ else: # pragma: NO COVER
149
+ # An older version of api_core is installed which does not define the
150
+ # functions above. We do equivalent checks manually.
151
+ try:
152
+ import sys
153
+ import warnings
154
+
155
+ _py_version_str = sys.version.split()[0]
156
+ _package_label = "google.cloud.dataform_v1"
157
+ if sys.version_info < (3, 9):
158
+ warnings.warn(
159
+ "You are using a non-supported Python version "
160
+ + f"({_py_version_str}). Google will not post any further "
161
+ + f"updates to {_package_label} supporting this Python version. "
162
+ + "Please upgrade to the latest Python version, or at "
163
+ + f"least to Python 3.9, and then update {_package_label}.",
164
+ FutureWarning,
165
+ )
166
+ if sys.version_info[:2] == (3, 9):
167
+ warnings.warn(
168
+ f"You are using a Python version ({_py_version_str}) "
169
+ + f"which Google will stop supporting in {_package_label} in "
170
+ + "January 2026. Please "
171
+ + "upgrade to the latest Python version, or at "
172
+ + "least to Python 3.10, before then, and "
173
+ + f"then update {_package_label}.",
174
+ FutureWarning,
175
+ )
176
+
177
+ def parse_version_to_tuple(version_string: str):
178
+ """Safely converts a semantic version string to a comparable tuple of integers.
179
+ Example: "4.25.8" -> (4, 25, 8)
180
+ Ignores non-numeric parts and handles common version formats.
181
+ Args:
182
+ version_string: Version string in the format "x.y.z" or "x.y.z<suffix>"
183
+ Returns:
184
+ Tuple of integers for the parsed version string.
185
+ """
186
+ parts = []
187
+ for part in version_string.split("."):
188
+ try:
189
+ parts.append(int(part))
190
+ except ValueError:
191
+ # If it's a non-numeric part (e.g., '1.0.0b1' -> 'b1'), stop here.
192
+ # This is a simplification compared to 'packaging.parse_version', but sufficient
193
+ # for comparing strictly numeric semantic versions.
194
+ break
195
+ return tuple(parts)
196
+
197
+ def _get_version(dependency_name):
198
+ try:
199
+ version_string: str = metadata.version(dependency_name)
200
+ parsed_version = parse_version_to_tuple(version_string)
201
+ return (parsed_version, version_string)
202
+ except Exception:
203
+ # Catch exceptions from metadata.version() (e.g., PackageNotFoundError)
204
+ # or errors during parse_version_to_tuple
205
+ return (None, "--")
206
+
207
+ _dependency_package = "google.protobuf"
208
+ _next_supported_version = "4.25.8"
209
+ _next_supported_version_tuple = (4, 25, 8)
210
+ _recommendation = " (we recommend 6.x)"
211
+ (_version_used, _version_used_string) = _get_version(_dependency_package)
212
+ if _version_used and _version_used < _next_supported_version_tuple:
213
+ warnings.warn(
214
+ f"Package {_package_label} depends on "
215
+ + f"{_dependency_package}, currently installed at version "
216
+ + f"{_version_used_string}. Future updates to "
217
+ + f"{_package_label} will require {_dependency_package} at "
218
+ + f"version {_next_supported_version} or higher{_recommendation}."
219
+ + " Please ensure "
220
+ + "that either (a) your Python environment doesn't pin the "
221
+ + f"version of {_dependency_package}, so that updates to "
222
+ + f"{_package_label} can require the higher version, or "
223
+ + "(b) you manually update your Python environment to use at "
224
+ + f"least version {_next_supported_version} of "
225
+ + f"{_dependency_package}.",
226
+ FutureWarning,
227
+ )
228
+ except Exception:
229
+ warnings.warn(
230
+ "Could not determine the version of Python "
231
+ + "currently being used. To continue receiving "
232
+ + "updates for {_package_label}, ensure you are "
233
+ + "using a supported version of Python; see "
234
+ + "https://devguide.python.org/versions/"
235
+ )
236
+
133
237
  __all__ = (
134
238
  "DataformAsyncClient",
135
239
  "CancelWorkflowInvocationRequest",
@@ -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.2" # {x-release-please-version}
16
+ __version__ = "0.8.0" # {x-release-please-version}
@@ -329,8 +329,8 @@ class DataformAsyncClient:
329
329
  ) -> pagers.ListRepositoriesAsyncPager:
330
330
  r"""Lists Repositories in a given project and location.
331
331
 
332
- **Note:** *This method can return repositories not shown in
333
- the*\ `Dataform
332
+ **Note:** *This method can return repositories not shown in the*
333
+ `Dataform
334
334
  UI <https://console.cloud.google.com/bigquery/dataform>`__.
335
335
 
336
336
  .. code-block:: python
@@ -697,7 +697,7 @@ class DataformAsyncClient:
697
697
 
698
698
  **Note:** *This method does not fully
699
699
  implement*\ `AIP/134 <https://google.aip.dev/134>`__\ *. The
700
- wildcard entry (*) is treated as a bad request, and when the
700
+ wildcard entry (\*) is treated as a bad request, and when the
701
701
  ``field_mask`` is omitted, the request is treated as a full
702
702
  update on all modifiable fields.*
703
703
 
@@ -3790,7 +3790,7 @@ class DataformAsyncClient:
3790
3790
 
3791
3791
  **Note:** *This method does not fully
3792
3792
  implement*\ `AIP/134 <https://google.aip.dev/134>`__\ *. The
3793
- wildcard entry (*) is treated as a bad request, and when the
3793
+ wildcard entry (\*) is treated as a bad request, and when the
3794
3794
  ``field_mask`` is omitted, the request is treated as a full
3795
3795
  update on all modifiable fields.*
3796
3796
 
@@ -4852,7 +4852,7 @@ class DataformAsyncClient:
4852
4852
 
4853
4853
  **Note:** *This method does not fully
4854
4854
  implement*\ `AIP/134 <https://google.aip.dev/134>`__\ *. The
4855
- wildcard entry (*) is treated as a bad request, and when the
4855
+ wildcard entry (\*) is treated as a bad request, and when the
4856
4856
  ``field_mask`` is omitted, the request is treated as a full
4857
4857
  update on all modifiable fields.*
4858
4858
 
@@ -5833,7 +5833,7 @@ class DataformAsyncClient:
5833
5833
 
5834
5834
  **Note:** *This method does not fully
5835
5835
  implement*\ `AIP/134 <https://google.aip.dev/134>`__\ *. The
5836
- wildcard entry (*) is treated as a bad request, and when the
5836
+ wildcard entry (\*) is treated as a bad request, and when the
5837
5837
  ``field_mask`` is omitted, the request is treated as a full
5838
5838
  update on all modifiable fields.*
5839
5839
 
@@ -156,6 +156,34 @@ class DataformClient(metaclass=DataformClientMeta):
156
156
  _DEFAULT_ENDPOINT_TEMPLATE = "dataform.{UNIVERSE_DOMAIN}"
157
157
  _DEFAULT_UNIVERSE = "googleapis.com"
158
158
 
159
+ @staticmethod
160
+ def _use_client_cert_effective():
161
+ """Returns whether client certificate should be used for mTLS if the
162
+ google-auth version supports should_use_client_cert automatic mTLS enablement.
163
+
164
+ Alternatively, read from the GOOGLE_API_USE_CLIENT_CERTIFICATE env var.
165
+
166
+ Returns:
167
+ bool: whether client certificate should be used for mTLS
168
+ Raises:
169
+ ValueError: (If using a version of google-auth without should_use_client_cert and
170
+ GOOGLE_API_USE_CLIENT_CERTIFICATE is set to an unexpected value.)
171
+ """
172
+ # check if google-auth version supports should_use_client_cert for automatic mTLS enablement
173
+ if hasattr(mtls, "should_use_client_cert"): # pragma: NO COVER
174
+ return mtls.should_use_client_cert()
175
+ else: # pragma: NO COVER
176
+ # if unsupported, fallback to reading from env var
177
+ use_client_cert_str = os.getenv(
178
+ "GOOGLE_API_USE_CLIENT_CERTIFICATE", "false"
179
+ ).lower()
180
+ if use_client_cert_str not in ("true", "false"):
181
+ raise ValueError(
182
+ "Environment variable `GOOGLE_API_USE_CLIENT_CERTIFICATE` must be"
183
+ " either `true` or `false`"
184
+ )
185
+ return use_client_cert_str == "true"
186
+
159
187
  @classmethod
160
188
  def from_service_account_info(cls, info: dict, *args, **kwargs):
161
189
  """Creates an instance of this client using the provided credentials
@@ -578,12 +606,8 @@ class DataformClient(metaclass=DataformClientMeta):
578
606
  )
579
607
  if client_options is None:
580
608
  client_options = client_options_lib.ClientOptions()
581
- use_client_cert = os.getenv("GOOGLE_API_USE_CLIENT_CERTIFICATE", "false")
609
+ use_client_cert = DataformClient._use_client_cert_effective()
582
610
  use_mtls_endpoint = os.getenv("GOOGLE_API_USE_MTLS_ENDPOINT", "auto")
583
- if use_client_cert not in ("true", "false"):
584
- raise ValueError(
585
- "Environment variable `GOOGLE_API_USE_CLIENT_CERTIFICATE` must be either `true` or `false`"
586
- )
587
611
  if use_mtls_endpoint not in ("auto", "never", "always"):
588
612
  raise MutualTLSChannelError(
589
613
  "Environment variable `GOOGLE_API_USE_MTLS_ENDPOINT` must be `never`, `auto` or `always`"
@@ -591,7 +615,7 @@ class DataformClient(metaclass=DataformClientMeta):
591
615
 
592
616
  # Figure out the client cert source to use.
593
617
  client_cert_source = None
594
- if use_client_cert == "true":
618
+ if use_client_cert:
595
619
  if client_options.client_cert_source:
596
620
  client_cert_source = client_options.client_cert_source
597
621
  elif mtls.has_default_client_cert_source():
@@ -623,20 +647,14 @@ class DataformClient(metaclass=DataformClientMeta):
623
647
  google.auth.exceptions.MutualTLSChannelError: If GOOGLE_API_USE_MTLS_ENDPOINT
624
648
  is not any of ["auto", "never", "always"].
625
649
  """
626
- use_client_cert = os.getenv(
627
- "GOOGLE_API_USE_CLIENT_CERTIFICATE", "false"
628
- ).lower()
650
+ use_client_cert = DataformClient._use_client_cert_effective()
629
651
  use_mtls_endpoint = os.getenv("GOOGLE_API_USE_MTLS_ENDPOINT", "auto").lower()
630
652
  universe_domain_env = os.getenv("GOOGLE_CLOUD_UNIVERSE_DOMAIN")
631
- if use_client_cert not in ("true", "false"):
632
- raise ValueError(
633
- "Environment variable `GOOGLE_API_USE_CLIENT_CERTIFICATE` must be either `true` or `false`"
634
- )
635
653
  if use_mtls_endpoint not in ("auto", "never", "always"):
636
654
  raise MutualTLSChannelError(
637
655
  "Environment variable `GOOGLE_API_USE_MTLS_ENDPOINT` must be `never`, `auto` or `always`"
638
656
  )
639
- return use_client_cert == "true", use_mtls_endpoint, universe_domain_env
657
+ return use_client_cert, use_mtls_endpoint, universe_domain_env
640
658
 
641
659
  @staticmethod
642
660
  def _get_client_cert_source(provided_cert_source, use_cert_flag):
@@ -960,8 +978,8 @@ class DataformClient(metaclass=DataformClientMeta):
960
978
  ) -> pagers.ListRepositoriesPager:
961
979
  r"""Lists Repositories in a given project and location.
962
980
 
963
- **Note:** *This method can return repositories not shown in
964
- the*\ `Dataform
981
+ **Note:** *This method can return repositories not shown in the*
982
+ `Dataform
965
983
  UI <https://console.cloud.google.com/bigquery/dataform>`__.
966
984
 
967
985
  .. code-block:: python
@@ -1319,7 +1337,7 @@ class DataformClient(metaclass=DataformClientMeta):
1319
1337
 
1320
1338
  **Note:** *This method does not fully
1321
1339
  implement*\ `AIP/134 <https://google.aip.dev/134>`__\ *. The
1322
- wildcard entry (*) is treated as a bad request, and when the
1340
+ wildcard entry (\*) is treated as a bad request, and when the
1323
1341
  ``field_mask`` is omitted, the request is treated as a full
1324
1342
  update on all modifiable fields.*
1325
1343
 
@@ -4345,7 +4363,7 @@ class DataformClient(metaclass=DataformClientMeta):
4345
4363
 
4346
4364
  **Note:** *This method does not fully
4347
4365
  implement*\ `AIP/134 <https://google.aip.dev/134>`__\ *. The
4348
- wildcard entry (*) is treated as a bad request, and when the
4366
+ wildcard entry (\*) is treated as a bad request, and when the
4349
4367
  ``field_mask`` is omitted, the request is treated as a full
4350
4368
  update on all modifiable fields.*
4351
4369
 
@@ -5385,7 +5403,7 @@ class DataformClient(metaclass=DataformClientMeta):
5385
5403
 
5386
5404
  **Note:** *This method does not fully
5387
5405
  implement*\ `AIP/134 <https://google.aip.dev/134>`__\ *. The
5388
- wildcard entry (*) is treated as a bad request, and when the
5406
+ wildcard entry (\*) is treated as a bad request, and when the
5389
5407
  ``field_mask`` is omitted, the request is treated as a full
5390
5408
  update on all modifiable fields.*
5391
5409
 
@@ -6351,7 +6369,7 @@ class DataformClient(metaclass=DataformClientMeta):
6351
6369
 
6352
6370
  **Note:** *This method does not fully
6353
6371
  implement*\ `AIP/134 <https://google.aip.dev/134>`__\ *. The
6354
- wildcard entry (*) is treated as a bad request, and when the
6372
+ wildcard entry (\*) is treated as a bad request, and when the
6355
6373
  ``field_mask`` is omitted, the request is treated as a full
6356
6374
  update on all modifiable fields.*
6357
6375
 
@@ -73,9 +73,10 @@ class DataformTransport(abc.ABC):
73
73
  credentials identify the application to the service; if none
74
74
  are specified, the client will attempt to ascertain the
75
75
  credentials from the environment.
76
- credentials_file (Optional[str]): A file with credentials that can
76
+ credentials_file (Optional[str]): Deprecated. A file with credentials that can
77
77
  be loaded with :func:`google.auth.load_credentials_from_file`.
78
- This argument is mutually exclusive with credentials.
78
+ This argument is mutually exclusive with credentials. This argument will be
79
+ removed in the next major version of this library.
79
80
  scopes (Optional[Sequence[str]]): A list of scopes.
80
81
  quota_project_id (Optional[str]): An optional project to use for billing
81
82
  and quota.
@@ -155,9 +155,10 @@ class DataformGrpcTransport(DataformTransport):
155
155
  are specified, the client will attempt to ascertain the
156
156
  credentials from the environment.
157
157
  This argument is ignored if a ``channel`` instance is provided.
158
- credentials_file (Optional[str]): A file with credentials that can
158
+ credentials_file (Optional[str]): Deprecated. A file with credentials that can
159
159
  be loaded with :func:`google.auth.load_credentials_from_file`.
160
160
  This argument is ignored if a ``channel`` instance is provided.
161
+ This argument will be removed in the next major version of this library.
161
162
  scopes (Optional(Sequence[str])): A list of scopes. This argument is
162
163
  ignored if a ``channel`` instance is provided.
163
164
  channel (Optional[Union[grpc.Channel, Callable[..., grpc.Channel]]]):
@@ -290,9 +291,10 @@ class DataformGrpcTransport(DataformTransport):
290
291
  credentials identify this application to the service. If
291
292
  none are specified, the client will attempt to ascertain
292
293
  the credentials from the environment.
293
- credentials_file (Optional[str]): A file with credentials that can
294
+ credentials_file (Optional[str]): Deprecated. A file with credentials that can
294
295
  be loaded with :func:`google.auth.load_credentials_from_file`.
295
- This argument is mutually exclusive with credentials.
296
+ This argument is mutually exclusive with credentials. This argument will be
297
+ removed in the next major version of this library.
296
298
  scopes (Optional[Sequence[str]]): A optional list of scopes needed for this
297
299
  service. These are only used when credentials are not specified and
298
300
  are passed to :func:`google.auth.default`.
@@ -334,8 +336,8 @@ class DataformGrpcTransport(DataformTransport):
334
336
 
335
337
  Lists Repositories in a given project and location.
336
338
 
337
- **Note:** *This method can return repositories not shown in
338
- the*\ `Dataform
339
+ **Note:** *This method can return repositories not shown in the*
340
+ `Dataform
339
341
  UI <https://console.cloud.google.com/bigquery/dataform>`__.
340
342
 
341
343
  Returns:
@@ -419,7 +421,7 @@ class DataformGrpcTransport(DataformTransport):
419
421
 
420
422
  **Note:** *This method does not fully
421
423
  implement*\ `AIP/134 <https://google.aip.dev/134>`__\ *. The
422
- wildcard entry (*) is treated as a bad request, and when the
424
+ wildcard entry (\*) is treated as a bad request, and when the
423
425
  ``field_mask`` is omitted, the request is treated as a full
424
426
  update on all modifiable fields.*
425
427
 
@@ -1310,7 +1312,7 @@ class DataformGrpcTransport(DataformTransport):
1310
1312
 
1311
1313
  **Note:** *This method does not fully
1312
1314
  implement*\ `AIP/134 <https://google.aip.dev/134>`__\ *. The
1313
- wildcard entry (*) is treated as a bad request, and when the
1315
+ wildcard entry (\*) is treated as a bad request, and when the
1314
1316
  ``field_mask`` is omitted, the request is treated as a full
1315
1317
  update on all modifiable fields.*
1316
1318
 
@@ -1565,7 +1567,7 @@ class DataformGrpcTransport(DataformTransport):
1565
1567
 
1566
1568
  **Note:** *This method does not fully
1567
1569
  implement*\ `AIP/134 <https://google.aip.dev/134>`__\ *. The
1568
- wildcard entry (*) is treated as a bad request, and when the
1570
+ wildcard entry (\*) is treated as a bad request, and when the
1569
1571
  ``field_mask`` is omitted, the request is treated as a full
1570
1572
  update on all modifiable fields.*
1571
1573
 
@@ -1826,7 +1828,7 @@ class DataformGrpcTransport(DataformTransport):
1826
1828
 
1827
1829
  **Note:** *This method does not fully
1828
1830
  implement*\ `AIP/134 <https://google.aip.dev/134>`__\ *. The
1829
- wildcard entry (*) is treated as a bad request, and when the
1831
+ wildcard entry (\*) is treated as a bad request, and when the
1830
1832
  ``field_mask`` is omitted, the request is treated as a full
1831
1833
  update on all modifiable fields.*
1832
1834
 
@@ -152,8 +152,9 @@ class DataformGrpcAsyncIOTransport(DataformTransport):
152
152
  credentials identify this application to the service. If
153
153
  none are specified, the client will attempt to ascertain
154
154
  the credentials from the environment.
155
- credentials_file (Optional[str]): A file with credentials that can
156
- be loaded with :func:`google.auth.load_credentials_from_file`.
155
+ credentials_file (Optional[str]): Deprecated. A file with credentials that can
156
+ be loaded with :func:`google.auth.load_credentials_from_file`. This argument will be
157
+ removed in the next major version of this library.
157
158
  scopes (Optional[Sequence[str]]): A optional list of scopes needed for this
158
159
  service. These are only used when credentials are not specified and
159
160
  are passed to :func:`google.auth.default`.
@@ -204,9 +205,10 @@ class DataformGrpcAsyncIOTransport(DataformTransport):
204
205
  are specified, the client will attempt to ascertain the
205
206
  credentials from the environment.
206
207
  This argument is ignored if a ``channel`` instance is provided.
207
- credentials_file (Optional[str]): A file with credentials that can
208
+ credentials_file (Optional[str]): Deprecated. A file with credentials that can
208
209
  be loaded with :func:`google.auth.load_credentials_from_file`.
209
210
  This argument is ignored if a ``channel`` instance is provided.
211
+ This argument will be removed in the next major version of this library.
210
212
  scopes (Optional[Sequence[str]]): A optional list of scopes needed for this
211
213
  service. These are only used when credentials are not specified and
212
214
  are passed to :func:`google.auth.default`.
@@ -342,8 +344,8 @@ class DataformGrpcAsyncIOTransport(DataformTransport):
342
344
 
343
345
  Lists Repositories in a given project and location.
344
346
 
345
- **Note:** *This method can return repositories not shown in
346
- the*\ `Dataform
347
+ **Note:** *This method can return repositories not shown in the*
348
+ `Dataform
347
349
  UI <https://console.cloud.google.com/bigquery/dataform>`__.
348
350
 
349
351
  Returns:
@@ -427,7 +429,7 @@ class DataformGrpcAsyncIOTransport(DataformTransport):
427
429
 
428
430
  **Note:** *This method does not fully
429
431
  implement*\ `AIP/134 <https://google.aip.dev/134>`__\ *. The
430
- wildcard entry (*) is treated as a bad request, and when the
432
+ wildcard entry (\*) is treated as a bad request, and when the
431
433
  ``field_mask`` is omitted, the request is treated as a full
432
434
  update on all modifiable fields.*
433
435
 
@@ -1347,7 +1349,7 @@ class DataformGrpcAsyncIOTransport(DataformTransport):
1347
1349
 
1348
1350
  **Note:** *This method does not fully
1349
1351
  implement*\ `AIP/134 <https://google.aip.dev/134>`__\ *. The
1350
- wildcard entry (*) is treated as a bad request, and when the
1352
+ wildcard entry (\*) is treated as a bad request, and when the
1351
1353
  ``field_mask`` is omitted, the request is treated as a full
1352
1354
  update on all modifiable fields.*
1353
1355
 
@@ -1611,7 +1613,7 @@ class DataformGrpcAsyncIOTransport(DataformTransport):
1611
1613
 
1612
1614
  **Note:** *This method does not fully
1613
1615
  implement*\ `AIP/134 <https://google.aip.dev/134>`__\ *. The
1614
- wildcard entry (*) is treated as a bad request, and when the
1616
+ wildcard entry (\*) is treated as a bad request, and when the
1615
1617
  ``field_mask`` is omitted, the request is treated as a full
1616
1618
  update on all modifiable fields.*
1617
1619
 
@@ -1879,7 +1881,7 @@ class DataformGrpcAsyncIOTransport(DataformTransport):
1879
1881
 
1880
1882
  **Note:** *This method does not fully
1881
1883
  implement*\ `AIP/134 <https://google.aip.dev/134>`__\ *. The
1882
- wildcard entry (*) is treated as a bad request, and when the
1884
+ wildcard entry (\*) is treated as a bad request, and when the
1883
1885
  ``field_mask`` is omitted, the request is treated as a full
1884
1886
  update on all modifiable fields.*
1885
1887
 
@@ -3107,9 +3107,10 @@ class DataformRestTransport(_BaseDataformRestTransport):
3107
3107
  are specified, the client will attempt to ascertain the
3108
3108
  credentials from the environment.
3109
3109
 
3110
- credentials_file (Optional[str]): A file with credentials that can
3110
+ credentials_file (Optional[str]): Deprecated. A file with credentials that can
3111
3111
  be loaded with :func:`google.auth.load_credentials_from_file`.
3112
- This argument is ignored if ``channel`` is provided.
3112
+ This argument is ignored if ``channel`` is provided. This argument will be
3113
+ removed in the next major version of this library.
3113
3114
  scopes (Optional(Sequence[str])): A list of scopes. This argument is
3114
3115
  ignored if ``channel`` is provided.
3115
3116
  client_cert_source_for_mtls (Callable[[], Tuple[bytes, bytes]]): Client
@@ -1975,9 +1975,9 @@ class ReleaseConfig(proto.Message):
1975
1975
  should be compiled. Must exist in the remote repository.
1976
1976
  Examples:
1977
1977
 
1978
- - a commit SHA: ``12ade345``
1979
- - a tag: ``tag1``
1980
- - a branch name: ``branch1``
1978
+ - a commit SHA: ``12ade345``
1979
+ - a tag: ``tag1``
1980
+ - a branch name: ``branch1``
1981
1981
  code_compilation_config (google.cloud.dataform_v1.types.CodeCompilationConfig):
1982
1982
  Optional. If set, fields of ``code_compilation_config``
1983
1983
  override the default compilation settings that are specified
@@ -2275,9 +2275,9 @@ class CompilationResult(proto.Message):
2275
2275
  repository should be compiled. Must exist in the remote
2276
2276
  repository. Examples:
2277
2277
 
2278
- - a commit SHA: ``12ade345``
2279
- - a tag: ``tag1``
2280
- - a branch name: ``branch1``
2278
+ - a commit SHA: ``12ade345``
2279
+ - a tag: ``tag1``
2280
+ - a branch name: ``branch1``
2281
2281
 
2282
2282
  This field is a member of `oneof`_ ``source``.
2283
2283
  workspace (str):