google-cloud-dataform 0.5.16__tar.gz → 0.6.1__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.5.16/google_cloud_dataform.egg-info → google_cloud_dataform-0.6.1}/PKG-INFO +96 -7
- google_cloud_dataform-0.6.1/README.rst +197 -0
- {google_cloud_dataform-0.5.16 → google_cloud_dataform-0.6.1}/google/cloud/dataform/__init__.py +36 -0
- google_cloud_dataform-0.6.1/google/cloud/dataform/gapic_version.py +16 -0
- google_cloud_dataform-0.6.1/google/cloud/dataform_v1/__init__.py +244 -0
- google_cloud_dataform-0.6.1/google/cloud/dataform_v1/gapic_metadata.json +838 -0
- google_cloud_dataform-0.6.1/google/cloud/dataform_v1/gapic_version.py +16 -0
- google_cloud_dataform-0.6.1/google/cloud/dataform_v1/services/dataform/async_client.py +6371 -0
- google_cloud_dataform-0.6.1/google/cloud/dataform_v1/services/dataform/client.py +6895 -0
- google_cloud_dataform-0.6.1/google/cloud/dataform_v1/services/dataform/pagers.py +1925 -0
- google_cloud_dataform-0.6.1/google/cloud/dataform_v1/services/dataform/transports/base.py +1060 -0
- google_cloud_dataform-0.6.1/google/cloud/dataform_v1/services/dataform/transports/grpc.py +1980 -0
- google_cloud_dataform-0.6.1/google/cloud/dataform_v1/services/dataform/transports/grpc_asyncio.py +2337 -0
- google_cloud_dataform-0.6.1/google/cloud/dataform_v1/services/dataform/transports/rest.py +12350 -0
- google_cloud_dataform-0.6.1/google/cloud/dataform_v1/services/dataform/transports/rest_base.py +3028 -0
- {google_cloud_dataform-0.5.16/google/cloud/dataform_v1beta1 → google_cloud_dataform-0.6.1/google/cloud/dataform_v1}/types/__init__.py +36 -0
- google_cloud_dataform-0.6.1/google/cloud/dataform_v1/types/dataform.py +4157 -0
- {google_cloud_dataform-0.5.16 → google_cloud_dataform-0.6.1}/google/cloud/dataform_v1beta1/__init__.py +36 -0
- {google_cloud_dataform-0.5.16 → google_cloud_dataform-0.6.1}/google/cloud/dataform_v1beta1/gapic_metadata.json +45 -0
- google_cloud_dataform-0.6.1/google/cloud/dataform_v1beta1/gapic_version.py +16 -0
- google_cloud_dataform-0.6.1/google/cloud/dataform_v1beta1/py.typed +2 -0
- google_cloud_dataform-0.6.1/google/cloud/dataform_v1beta1/services/dataform/__init__.py +22 -0
- {google_cloud_dataform-0.5.16 → google_cloud_dataform-0.6.1}/google/cloud/dataform_v1beta1/services/dataform/async_client.py +580 -50
- {google_cloud_dataform-0.5.16 → google_cloud_dataform-0.6.1}/google/cloud/dataform_v1beta1/services/dataform/client.py +633 -50
- {google_cloud_dataform-0.5.16 → google_cloud_dataform-0.6.1}/google/cloud/dataform_v1beta1/services/dataform/pagers.py +156 -0
- google_cloud_dataform-0.6.1/google/cloud/dataform_v1beta1/services/dataform/transports/__init__.py +36 -0
- {google_cloud_dataform-0.5.16 → google_cloud_dataform-0.6.1}/google/cloud/dataform_v1beta1/services/dataform/transports/base.py +73 -9
- {google_cloud_dataform-0.5.16 → google_cloud_dataform-0.6.1}/google/cloud/dataform_v1beta1/services/dataform/transports/grpc.py +146 -24
- {google_cloud_dataform-0.5.16 → google_cloud_dataform-0.6.1}/google/cloud/dataform_v1beta1/services/dataform/transports/grpc_asyncio.py +166 -24
- {google_cloud_dataform-0.5.16 → google_cloud_dataform-0.6.1}/google/cloud/dataform_v1beta1/services/dataform/transports/rest.py +1480 -204
- {google_cloud_dataform-0.5.16 → google_cloud_dataform-0.6.1}/google/cloud/dataform_v1beta1/services/dataform/transports/rest_base.py +151 -14
- google_cloud_dataform-0.6.1/google/cloud/dataform_v1beta1/types/__init__.py +236 -0
- {google_cloud_dataform-0.5.16 → google_cloud_dataform-0.6.1}/google/cloud/dataform_v1beta1/types/dataform.py +741 -108
- {google_cloud_dataform-0.5.16 → google_cloud_dataform-0.6.1/google_cloud_dataform.egg-info}/PKG-INFO +96 -7
- {google_cloud_dataform-0.5.16 → google_cloud_dataform-0.6.1}/google_cloud_dataform.egg-info/SOURCES.txt +19 -1
- google_cloud_dataform-0.6.1/google_cloud_dataform.egg-info/requires.txt +8 -0
- {google_cloud_dataform-0.5.16 → google_cloud_dataform-0.6.1}/setup.cfg +0 -3
- {google_cloud_dataform-0.5.16 → google_cloud_dataform-0.6.1}/setup.py +6 -6
- google_cloud_dataform-0.6.1/tests/unit/gapic/dataform_v1/__init__.py +15 -0
- google_cloud_dataform-0.6.1/tests/unit/gapic/dataform_v1/test_dataform.py +43711 -0
- google_cloud_dataform-0.6.1/tests/unit/gapic/dataform_v1beta1/__init__.py +15 -0
- {google_cloud_dataform-0.5.16 → google_cloud_dataform-0.6.1}/tests/unit/gapic/dataform_v1beta1/test_dataform.py +3260 -376
- google_cloud_dataform-0.5.16/README.rst +0 -108
- google_cloud_dataform-0.5.16/google/cloud/dataform/gapic_version.py +0 -16
- google_cloud_dataform-0.5.16/google/cloud/dataform_v1beta1/gapic_version.py +0 -16
- google_cloud_dataform-0.5.16/google_cloud_dataform.egg-info/requires.txt +0 -8
- {google_cloud_dataform-0.5.16 → google_cloud_dataform-0.6.1}/LICENSE +0 -0
- {google_cloud_dataform-0.5.16 → google_cloud_dataform-0.6.1}/MANIFEST.in +0 -0
- {google_cloud_dataform-0.5.16 → google_cloud_dataform-0.6.1}/google/cloud/dataform/py.typed +0 -0
- {google_cloud_dataform-0.5.16/google/cloud/dataform_v1beta1 → google_cloud_dataform-0.6.1/google/cloud/dataform_v1}/py.typed +0 -0
- {google_cloud_dataform-0.5.16/google/cloud/dataform_v1beta1 → google_cloud_dataform-0.6.1/google/cloud/dataform_v1}/services/__init__.py +0 -0
- {google_cloud_dataform-0.5.16/google/cloud/dataform_v1beta1 → google_cloud_dataform-0.6.1/google/cloud/dataform_v1}/services/dataform/__init__.py +0 -0
- {google_cloud_dataform-0.5.16/google/cloud/dataform_v1beta1 → google_cloud_dataform-0.6.1/google/cloud/dataform_v1}/services/dataform/transports/__init__.py +0 -0
- {google_cloud_dataform-0.5.16/tests → google_cloud_dataform-0.6.1/google/cloud/dataform_v1beta1/services}/__init__.py +0 -0
- {google_cloud_dataform-0.5.16 → google_cloud_dataform-0.6.1}/google_cloud_dataform.egg-info/dependency_links.txt +0 -0
- {google_cloud_dataform-0.5.16 → google_cloud_dataform-0.6.1}/google_cloud_dataform.egg-info/not-zip-safe +0 -0
- {google_cloud_dataform-0.5.16 → google_cloud_dataform-0.6.1}/google_cloud_dataform.egg-info/top_level.txt +0 -0
- {google_cloud_dataform-0.5.16/tests/unit → google_cloud_dataform-0.6.1/tests}/__init__.py +0 -0
- {google_cloud_dataform-0.5.16/tests/unit/gapic → google_cloud_dataform-0.6.1/tests/unit}/__init__.py +0 -0
- {google_cloud_dataform-0.5.16/tests/unit/gapic/dataform_v1beta1 → google_cloud_dataform-0.6.1/tests/unit/gapic}/__init__.py +0 -0
{google_cloud_dataform-0.5.16/google_cloud_dataform.egg-info → google_cloud_dataform-0.6.1}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: google-cloud-dataform
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.6.1
|
|
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
|
|
@@ -23,12 +23,12 @@ Classifier: Operating System :: OS Independent
|
|
|
23
23
|
Classifier: Topic :: Internet
|
|
24
24
|
Requires-Python: >=3.7
|
|
25
25
|
License-File: LICENSE
|
|
26
|
-
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.
|
|
27
|
-
Requires-Dist: google-auth!=2.24.0,!=2.25.0,<3.0.
|
|
28
|
-
Requires-Dist: proto-plus<2.0.
|
|
29
|
-
Requires-Dist: proto-plus<2.0.
|
|
30
|
-
Requires-Dist: protobuf!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<
|
|
31
|
-
Requires-Dist: grpc-google-iam-v1<1.0.
|
|
26
|
+
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
|
+
Requires-Dist: google-auth!=2.24.0,!=2.25.0,<3.0.0,>=2.14.1
|
|
28
|
+
Requires-Dist: proto-plus<2.0.0,>=1.22.3
|
|
29
|
+
Requires-Dist: proto-plus<2.0.0,>=1.25.0; python_version >= "3.13"
|
|
30
|
+
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
|
+
Requires-Dist: grpc-google-iam-v1<1.0.0,>=0.14.0
|
|
32
32
|
|
|
33
33
|
Python Client for Cloud Dataform
|
|
34
34
|
================================
|
|
@@ -138,3 +138,92 @@ Next Steps
|
|
|
138
138
|
|
|
139
139
|
.. _Cloud Dataform Product documentation: https://cloud.google.com
|
|
140
140
|
.. _README: https://github.com/googleapis/google-cloud-python/blob/main/README.rst
|
|
141
|
+
|
|
142
|
+
Logging
|
|
143
|
+
-------
|
|
144
|
+
|
|
145
|
+
This library uses the standard Python :code:`logging` functionality to log some RPC events that could be of interest for debugging and monitoring purposes.
|
|
146
|
+
Note the following:
|
|
147
|
+
|
|
148
|
+
#. Logs may contain sensitive information. Take care to **restrict access to the logs** if they are saved, whether it be on local storage or on Google Cloud Logging.
|
|
149
|
+
#. Google may refine the occurrence, level, and content of various log messages in this library without flagging such changes as breaking. **Do not depend on immutability of the logging events**.
|
|
150
|
+
#. By default, the logging events from this library are not handled. You must **explicitly configure log handling** using one of the mechanisms below.
|
|
151
|
+
|
|
152
|
+
Simple, environment-based configuration
|
|
153
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
154
|
+
|
|
155
|
+
To enable logging for this library without any changes in your code, set the :code:`GOOGLE_SDK_PYTHON_LOGGING_SCOPE` environment variable to a valid Google
|
|
156
|
+
logging scope. This configures handling of logging events (at level :code:`logging.DEBUG` or higher) from this library in a default manner, emitting the logged
|
|
157
|
+
messages in a structured format. It does not currently allow customizing the logging levels captured nor the handlers, formatters, etc. used for any logging
|
|
158
|
+
event.
|
|
159
|
+
|
|
160
|
+
A logging scope is a period-separated namespace that begins with :code:`google`, identifying the Python module or package to log.
|
|
161
|
+
|
|
162
|
+
- Valid logging scopes: :code:`google`, :code:`google.cloud.asset.v1`, :code:`google.api`, :code:`google.auth`, etc.
|
|
163
|
+
- Invalid logging scopes: :code:`foo`, :code:`123`, etc.
|
|
164
|
+
|
|
165
|
+
**NOTE**: If the logging scope is invalid, the library does not set up any logging handlers.
|
|
166
|
+
|
|
167
|
+
Environment-Based Examples
|
|
168
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
169
|
+
|
|
170
|
+
- Enabling the default handler for all Google-based loggers
|
|
171
|
+
|
|
172
|
+
.. code-block:: console
|
|
173
|
+
|
|
174
|
+
export GOOGLE_SDK_PYTHON_LOGGING_SCOPE=google
|
|
175
|
+
|
|
176
|
+
- Enabling the default handler for a specific Google module (for a client library called :code:`library_v1`):
|
|
177
|
+
|
|
178
|
+
.. code-block:: console
|
|
179
|
+
|
|
180
|
+
export GOOGLE_SDK_PYTHON_LOGGING_SCOPE=google.cloud.library_v1
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
Advanced, code-based configuration
|
|
184
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
185
|
+
|
|
186
|
+
You can also configure a valid logging scope using Python's standard `logging` mechanism.
|
|
187
|
+
|
|
188
|
+
Code-Based Examples
|
|
189
|
+
^^^^^^^^^^^^^^^^^^^
|
|
190
|
+
|
|
191
|
+
- Configuring a handler for all Google-based loggers
|
|
192
|
+
|
|
193
|
+
.. code-block:: python
|
|
194
|
+
|
|
195
|
+
import logging
|
|
196
|
+
|
|
197
|
+
from google.cloud.translate_v3 import translate
|
|
198
|
+
|
|
199
|
+
base_logger = logging.getLogger("google")
|
|
200
|
+
base_logger.addHandler(logging.StreamHandler())
|
|
201
|
+
base_logger.setLevel(logging.DEBUG)
|
|
202
|
+
|
|
203
|
+
- Configuring a handler for a specific Google module (for a client library called :code:`library_v1`):
|
|
204
|
+
|
|
205
|
+
.. code-block:: python
|
|
206
|
+
|
|
207
|
+
import logging
|
|
208
|
+
|
|
209
|
+
from google.cloud.translate_v3 import translate
|
|
210
|
+
|
|
211
|
+
base_logger = logging.getLogger("google.cloud.library_v1")
|
|
212
|
+
base_logger.addHandler(logging.StreamHandler())
|
|
213
|
+
base_logger.setLevel(logging.DEBUG)
|
|
214
|
+
|
|
215
|
+
Logging details
|
|
216
|
+
~~~~~~~~~~~~~~~
|
|
217
|
+
|
|
218
|
+
#. Regardless of which of the mechanisms above you use to configure logging for this library, by default logging events are not propagated up to the root
|
|
219
|
+
logger from the `google`-level logger. If you need the events to be propagated to the root logger, you must explicitly set
|
|
220
|
+
:code:`logging.getLogger("google").propagate = True` in your code.
|
|
221
|
+
#. You can mix the different logging configurations above for different Google modules. For example, you may want use a code-based logging configuration for
|
|
222
|
+
one library, but decide you need to also set up environment-based logging configuration for another library.
|
|
223
|
+
|
|
224
|
+
#. If you attempt to use both code-based and environment-based configuration for the same module, the environment-based configuration will be ineffectual
|
|
225
|
+
if the code -based configuration gets applied first.
|
|
226
|
+
|
|
227
|
+
#. The Google-specific logging configurations (default handlers for environment-based configuration; not propagating logging events to the root logger) get
|
|
228
|
+
executed the first time *any* client library is instantiated in your application, and only if the affected loggers have not been previously configured.
|
|
229
|
+
(This is the reason for 2.i. above.)
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
Python Client for Cloud Dataform
|
|
2
|
+
================================
|
|
3
|
+
|
|
4
|
+
|preview| |pypi| |versions|
|
|
5
|
+
|
|
6
|
+
`Cloud Dataform`_:
|
|
7
|
+
|
|
8
|
+
- `Client Library Documentation`_
|
|
9
|
+
- `Product Documentation`_
|
|
10
|
+
|
|
11
|
+
.. |preview| image:: https://img.shields.io/badge/support-preview-orange.svg
|
|
12
|
+
:target: https://github.com/googleapis/google-cloud-python/blob/main/README.rst#stability-levels
|
|
13
|
+
.. |pypi| image:: https://img.shields.io/pypi/v/google-cloud-dataform.svg
|
|
14
|
+
:target: https://pypi.org/project/google-cloud-dataform/
|
|
15
|
+
.. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-dataform.svg
|
|
16
|
+
:target: https://pypi.org/project/google-cloud-dataform/
|
|
17
|
+
.. _Cloud Dataform: https://cloud.google.com
|
|
18
|
+
.. _Client Library Documentation: https://cloud.google.com/python/docs/reference/dataform/latest/summary_overview
|
|
19
|
+
.. _Product Documentation: https://cloud.google.com
|
|
20
|
+
|
|
21
|
+
Quick Start
|
|
22
|
+
-----------
|
|
23
|
+
|
|
24
|
+
In order to use this library, you first need to go through the following steps:
|
|
25
|
+
|
|
26
|
+
1. `Select or create a Cloud Platform project.`_
|
|
27
|
+
2. `Enable billing for your project.`_
|
|
28
|
+
3. `Enable the Cloud Dataform.`_
|
|
29
|
+
4. `Set up Authentication.`_
|
|
30
|
+
|
|
31
|
+
.. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project
|
|
32
|
+
.. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project
|
|
33
|
+
.. _Enable the Cloud Dataform.: https://cloud.google.com
|
|
34
|
+
.. _Set up Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html
|
|
35
|
+
|
|
36
|
+
Installation
|
|
37
|
+
~~~~~~~~~~~~
|
|
38
|
+
|
|
39
|
+
Install this library in a virtual environment using `venv`_. `venv`_ is a tool that
|
|
40
|
+
creates isolated Python environments. These isolated environments can have separate
|
|
41
|
+
versions of Python packages, which allows you to isolate one project's dependencies
|
|
42
|
+
from the dependencies of other projects.
|
|
43
|
+
|
|
44
|
+
With `venv`_, it's possible to install this library without needing system
|
|
45
|
+
install permissions, and without clashing with the installed system
|
|
46
|
+
dependencies.
|
|
47
|
+
|
|
48
|
+
.. _`venv`: https://docs.python.org/3/library/venv.html
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
Code samples and snippets
|
|
52
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
53
|
+
|
|
54
|
+
Code samples and snippets live in the `samples/`_ folder.
|
|
55
|
+
|
|
56
|
+
.. _samples/: https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-dataform/samples
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
Supported Python Versions
|
|
60
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
61
|
+
Our client libraries are compatible with all current `active`_ and `maintenance`_ versions of
|
|
62
|
+
Python.
|
|
63
|
+
|
|
64
|
+
Python >= 3.7
|
|
65
|
+
|
|
66
|
+
.. _active: https://devguide.python.org/devcycle/#in-development-main-branch
|
|
67
|
+
.. _maintenance: https://devguide.python.org/devcycle/#maintenance-branches
|
|
68
|
+
|
|
69
|
+
Unsupported Python Versions
|
|
70
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
71
|
+
Python <= 3.6
|
|
72
|
+
|
|
73
|
+
If you are using an `end-of-life`_
|
|
74
|
+
version of Python, we recommend that you update as soon as possible to an actively supported version.
|
|
75
|
+
|
|
76
|
+
.. _end-of-life: https://devguide.python.org/devcycle/#end-of-life-branches
|
|
77
|
+
|
|
78
|
+
Mac/Linux
|
|
79
|
+
^^^^^^^^^
|
|
80
|
+
|
|
81
|
+
.. code-block:: console
|
|
82
|
+
|
|
83
|
+
python3 -m venv <your-env>
|
|
84
|
+
source <your-env>/bin/activate
|
|
85
|
+
pip install google-cloud-dataform
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
Windows
|
|
89
|
+
^^^^^^^
|
|
90
|
+
|
|
91
|
+
.. code-block:: console
|
|
92
|
+
|
|
93
|
+
py -m venv <your-env>
|
|
94
|
+
.\<your-env>\Scripts\activate
|
|
95
|
+
pip install google-cloud-dataform
|
|
96
|
+
|
|
97
|
+
Next Steps
|
|
98
|
+
~~~~~~~~~~
|
|
99
|
+
|
|
100
|
+
- Read the `Client Library Documentation`_ for Cloud Dataform
|
|
101
|
+
to see other available methods on the client.
|
|
102
|
+
- Read the `Cloud Dataform Product documentation`_ to learn
|
|
103
|
+
more about the product and see How-to Guides.
|
|
104
|
+
- View this `README`_ to see the full list of Cloud
|
|
105
|
+
APIs that we cover.
|
|
106
|
+
|
|
107
|
+
.. _Cloud Dataform Product documentation: https://cloud.google.com
|
|
108
|
+
.. _README: https://github.com/googleapis/google-cloud-python/blob/main/README.rst
|
|
109
|
+
|
|
110
|
+
Logging
|
|
111
|
+
-------
|
|
112
|
+
|
|
113
|
+
This library uses the standard Python :code:`logging` functionality to log some RPC events that could be of interest for debugging and monitoring purposes.
|
|
114
|
+
Note the following:
|
|
115
|
+
|
|
116
|
+
#. Logs may contain sensitive information. Take care to **restrict access to the logs** if they are saved, whether it be on local storage or on Google Cloud Logging.
|
|
117
|
+
#. Google may refine the occurrence, level, and content of various log messages in this library without flagging such changes as breaking. **Do not depend on immutability of the logging events**.
|
|
118
|
+
#. By default, the logging events from this library are not handled. You must **explicitly configure log handling** using one of the mechanisms below.
|
|
119
|
+
|
|
120
|
+
Simple, environment-based configuration
|
|
121
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
122
|
+
|
|
123
|
+
To enable logging for this library without any changes in your code, set the :code:`GOOGLE_SDK_PYTHON_LOGGING_SCOPE` environment variable to a valid Google
|
|
124
|
+
logging scope. This configures handling of logging events (at level :code:`logging.DEBUG` or higher) from this library in a default manner, emitting the logged
|
|
125
|
+
messages in a structured format. It does not currently allow customizing the logging levels captured nor the handlers, formatters, etc. used for any logging
|
|
126
|
+
event.
|
|
127
|
+
|
|
128
|
+
A logging scope is a period-separated namespace that begins with :code:`google`, identifying the Python module or package to log.
|
|
129
|
+
|
|
130
|
+
- Valid logging scopes: :code:`google`, :code:`google.cloud.asset.v1`, :code:`google.api`, :code:`google.auth`, etc.
|
|
131
|
+
- Invalid logging scopes: :code:`foo`, :code:`123`, etc.
|
|
132
|
+
|
|
133
|
+
**NOTE**: If the logging scope is invalid, the library does not set up any logging handlers.
|
|
134
|
+
|
|
135
|
+
Environment-Based Examples
|
|
136
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
137
|
+
|
|
138
|
+
- Enabling the default handler for all Google-based loggers
|
|
139
|
+
|
|
140
|
+
.. code-block:: console
|
|
141
|
+
|
|
142
|
+
export GOOGLE_SDK_PYTHON_LOGGING_SCOPE=google
|
|
143
|
+
|
|
144
|
+
- Enabling the default handler for a specific Google module (for a client library called :code:`library_v1`):
|
|
145
|
+
|
|
146
|
+
.. code-block:: console
|
|
147
|
+
|
|
148
|
+
export GOOGLE_SDK_PYTHON_LOGGING_SCOPE=google.cloud.library_v1
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
Advanced, code-based configuration
|
|
152
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
153
|
+
|
|
154
|
+
You can also configure a valid logging scope using Python's standard `logging` mechanism.
|
|
155
|
+
|
|
156
|
+
Code-Based Examples
|
|
157
|
+
^^^^^^^^^^^^^^^^^^^
|
|
158
|
+
|
|
159
|
+
- Configuring a handler for all Google-based loggers
|
|
160
|
+
|
|
161
|
+
.. code-block:: python
|
|
162
|
+
|
|
163
|
+
import logging
|
|
164
|
+
|
|
165
|
+
from google.cloud.translate_v3 import translate
|
|
166
|
+
|
|
167
|
+
base_logger = logging.getLogger("google")
|
|
168
|
+
base_logger.addHandler(logging.StreamHandler())
|
|
169
|
+
base_logger.setLevel(logging.DEBUG)
|
|
170
|
+
|
|
171
|
+
- Configuring a handler for a specific Google module (for a client library called :code:`library_v1`):
|
|
172
|
+
|
|
173
|
+
.. code-block:: python
|
|
174
|
+
|
|
175
|
+
import logging
|
|
176
|
+
|
|
177
|
+
from google.cloud.translate_v3 import translate
|
|
178
|
+
|
|
179
|
+
base_logger = logging.getLogger("google.cloud.library_v1")
|
|
180
|
+
base_logger.addHandler(logging.StreamHandler())
|
|
181
|
+
base_logger.setLevel(logging.DEBUG)
|
|
182
|
+
|
|
183
|
+
Logging details
|
|
184
|
+
~~~~~~~~~~~~~~~
|
|
185
|
+
|
|
186
|
+
#. Regardless of which of the mechanisms above you use to configure logging for this library, by default logging events are not propagated up to the root
|
|
187
|
+
logger from the `google`-level logger. If you need the events to be propagated to the root logger, you must explicitly set
|
|
188
|
+
:code:`logging.getLogger("google").propagate = True` in your code.
|
|
189
|
+
#. You can mix the different logging configurations above for different Google modules. For example, you may want use a code-based logging configuration for
|
|
190
|
+
one library, but decide you need to also set up environment-based logging configuration for another library.
|
|
191
|
+
|
|
192
|
+
#. If you attempt to use both code-based and environment-based configuration for the same module, the environment-based configuration will be ineffectual
|
|
193
|
+
if the code -based configuration gets applied first.
|
|
194
|
+
|
|
195
|
+
#. The Google-specific logging configurations (default handlers for environment-based configuration; not propagating logging events to the root logger) get
|
|
196
|
+
executed the first time *any* client library is instantiated in your application, and only if the affected loggers have not been previously configured.
|
|
197
|
+
(This is the reason for 2.i. above.)
|
{google_cloud_dataform-0.5.16 → google_cloud_dataform-0.6.1}/google/cloud/dataform/__init__.py
RENAMED
|
@@ -24,28 +24,34 @@ from google.cloud.dataform_v1beta1.services.dataform.async_client import (
|
|
|
24
24
|
from google.cloud.dataform_v1beta1.services.dataform.client import DataformClient
|
|
25
25
|
from google.cloud.dataform_v1beta1.types.dataform import (
|
|
26
26
|
CancelWorkflowInvocationRequest,
|
|
27
|
+
CancelWorkflowInvocationResponse,
|
|
27
28
|
CodeCompilationConfig,
|
|
28
29
|
CommitAuthor,
|
|
29
30
|
CommitLogEntry,
|
|
30
31
|
CommitMetadata,
|
|
31
32
|
CommitRepositoryChangesRequest,
|
|
33
|
+
CommitRepositoryChangesResponse,
|
|
32
34
|
CommitWorkspaceChangesRequest,
|
|
35
|
+
CommitWorkspaceChangesResponse,
|
|
33
36
|
CompilationResult,
|
|
34
37
|
CompilationResultAction,
|
|
35
38
|
ComputeRepositoryAccessTokenStatusRequest,
|
|
36
39
|
ComputeRepositoryAccessTokenStatusResponse,
|
|
40
|
+
Config,
|
|
37
41
|
CreateCompilationResultRequest,
|
|
38
42
|
CreateReleaseConfigRequest,
|
|
39
43
|
CreateRepositoryRequest,
|
|
40
44
|
CreateWorkflowConfigRequest,
|
|
41
45
|
CreateWorkflowInvocationRequest,
|
|
42
46
|
CreateWorkspaceRequest,
|
|
47
|
+
DataEncryptionState,
|
|
43
48
|
DeleteReleaseConfigRequest,
|
|
44
49
|
DeleteRepositoryRequest,
|
|
45
50
|
DeleteWorkflowConfigRequest,
|
|
46
51
|
DeleteWorkflowInvocationRequest,
|
|
47
52
|
DeleteWorkspaceRequest,
|
|
48
53
|
DirectoryEntry,
|
|
54
|
+
DirectorySearchResult,
|
|
49
55
|
FetchFileDiffRequest,
|
|
50
56
|
FetchFileDiffResponse,
|
|
51
57
|
FetchFileGitStatusesRequest,
|
|
@@ -56,7 +62,9 @@ from google.cloud.dataform_v1beta1.types.dataform import (
|
|
|
56
62
|
FetchRemoteBranchesResponse,
|
|
57
63
|
FetchRepositoryHistoryRequest,
|
|
58
64
|
FetchRepositoryHistoryResponse,
|
|
65
|
+
FileSearchResult,
|
|
59
66
|
GetCompilationResultRequest,
|
|
67
|
+
GetConfigRequest,
|
|
60
68
|
GetReleaseConfigRequest,
|
|
61
69
|
GetRepositoryRequest,
|
|
62
70
|
GetWorkflowConfigRequest,
|
|
@@ -83,8 +91,11 @@ from google.cloud.dataform_v1beta1.types.dataform import (
|
|
|
83
91
|
MoveDirectoryResponse,
|
|
84
92
|
MoveFileRequest,
|
|
85
93
|
MoveFileResponse,
|
|
94
|
+
NotebookRuntimeOptions,
|
|
86
95
|
PullGitCommitsRequest,
|
|
96
|
+
PullGitCommitsResponse,
|
|
87
97
|
PushGitCommitsRequest,
|
|
98
|
+
PushGitCommitsResponse,
|
|
88
99
|
QueryCompilationResultActionsRequest,
|
|
89
100
|
QueryCompilationResultActionsResponse,
|
|
90
101
|
QueryDirectoryContentsRequest,
|
|
@@ -100,10 +111,17 @@ from google.cloud.dataform_v1beta1.types.dataform import (
|
|
|
100
111
|
RelationDescriptor,
|
|
101
112
|
ReleaseConfig,
|
|
102
113
|
RemoveDirectoryRequest,
|
|
114
|
+
RemoveDirectoryResponse,
|
|
103
115
|
RemoveFileRequest,
|
|
116
|
+
RemoveFileResponse,
|
|
104
117
|
Repository,
|
|
105
118
|
ResetWorkspaceChangesRequest,
|
|
119
|
+
ResetWorkspaceChangesResponse,
|
|
120
|
+
SearchFilesRequest,
|
|
121
|
+
SearchFilesResponse,
|
|
122
|
+
SearchResult,
|
|
106
123
|
Target,
|
|
124
|
+
UpdateConfigRequest,
|
|
107
125
|
UpdateReleaseConfigRequest,
|
|
108
126
|
UpdateRepositoryRequest,
|
|
109
127
|
UpdateWorkflowConfigRequest,
|
|
@@ -119,28 +137,34 @@ __all__ = (
|
|
|
119
137
|
"DataformClient",
|
|
120
138
|
"DataformAsyncClient",
|
|
121
139
|
"CancelWorkflowInvocationRequest",
|
|
140
|
+
"CancelWorkflowInvocationResponse",
|
|
122
141
|
"CodeCompilationConfig",
|
|
123
142
|
"CommitAuthor",
|
|
124
143
|
"CommitLogEntry",
|
|
125
144
|
"CommitMetadata",
|
|
126
145
|
"CommitRepositoryChangesRequest",
|
|
146
|
+
"CommitRepositoryChangesResponse",
|
|
127
147
|
"CommitWorkspaceChangesRequest",
|
|
148
|
+
"CommitWorkspaceChangesResponse",
|
|
128
149
|
"CompilationResult",
|
|
129
150
|
"CompilationResultAction",
|
|
130
151
|
"ComputeRepositoryAccessTokenStatusRequest",
|
|
131
152
|
"ComputeRepositoryAccessTokenStatusResponse",
|
|
153
|
+
"Config",
|
|
132
154
|
"CreateCompilationResultRequest",
|
|
133
155
|
"CreateReleaseConfigRequest",
|
|
134
156
|
"CreateRepositoryRequest",
|
|
135
157
|
"CreateWorkflowConfigRequest",
|
|
136
158
|
"CreateWorkflowInvocationRequest",
|
|
137
159
|
"CreateWorkspaceRequest",
|
|
160
|
+
"DataEncryptionState",
|
|
138
161
|
"DeleteReleaseConfigRequest",
|
|
139
162
|
"DeleteRepositoryRequest",
|
|
140
163
|
"DeleteWorkflowConfigRequest",
|
|
141
164
|
"DeleteWorkflowInvocationRequest",
|
|
142
165
|
"DeleteWorkspaceRequest",
|
|
143
166
|
"DirectoryEntry",
|
|
167
|
+
"DirectorySearchResult",
|
|
144
168
|
"FetchFileDiffRequest",
|
|
145
169
|
"FetchFileDiffResponse",
|
|
146
170
|
"FetchFileGitStatusesRequest",
|
|
@@ -151,7 +175,9 @@ __all__ = (
|
|
|
151
175
|
"FetchRemoteBranchesResponse",
|
|
152
176
|
"FetchRepositoryHistoryRequest",
|
|
153
177
|
"FetchRepositoryHistoryResponse",
|
|
178
|
+
"FileSearchResult",
|
|
154
179
|
"GetCompilationResultRequest",
|
|
180
|
+
"GetConfigRequest",
|
|
155
181
|
"GetReleaseConfigRequest",
|
|
156
182
|
"GetRepositoryRequest",
|
|
157
183
|
"GetWorkflowConfigRequest",
|
|
@@ -178,8 +204,11 @@ __all__ = (
|
|
|
178
204
|
"MoveDirectoryResponse",
|
|
179
205
|
"MoveFileRequest",
|
|
180
206
|
"MoveFileResponse",
|
|
207
|
+
"NotebookRuntimeOptions",
|
|
181
208
|
"PullGitCommitsRequest",
|
|
209
|
+
"PullGitCommitsResponse",
|
|
182
210
|
"PushGitCommitsRequest",
|
|
211
|
+
"PushGitCommitsResponse",
|
|
183
212
|
"QueryCompilationResultActionsRequest",
|
|
184
213
|
"QueryCompilationResultActionsResponse",
|
|
185
214
|
"QueryDirectoryContentsRequest",
|
|
@@ -195,10 +224,17 @@ __all__ = (
|
|
|
195
224
|
"RelationDescriptor",
|
|
196
225
|
"ReleaseConfig",
|
|
197
226
|
"RemoveDirectoryRequest",
|
|
227
|
+
"RemoveDirectoryResponse",
|
|
198
228
|
"RemoveFileRequest",
|
|
229
|
+
"RemoveFileResponse",
|
|
199
230
|
"Repository",
|
|
200
231
|
"ResetWorkspaceChangesRequest",
|
|
232
|
+
"ResetWorkspaceChangesResponse",
|
|
233
|
+
"SearchFilesRequest",
|
|
234
|
+
"SearchFilesResponse",
|
|
235
|
+
"SearchResult",
|
|
201
236
|
"Target",
|
|
237
|
+
"UpdateConfigRequest",
|
|
202
238
|
"UpdateReleaseConfigRequest",
|
|
203
239
|
"UpdateRepositoryRequest",
|
|
204
240
|
"UpdateWorkflowConfigRequest",
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Copyright 2024 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
|
+
__version__ = "0.6.1" # {x-release-please-version}
|