google-cloud-securesourcemanager 0.1.14__tar.gz → 0.1.16__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 (52) hide show
  1. google_cloud_securesourcemanager-0.1.16/MANIFEST.in +20 -0
  2. {google_cloud_securesourcemanager-0.1.14/google_cloud_securesourcemanager.egg-info → google_cloud_securesourcemanager-0.1.16}/PKG-INFO +108 -8
  3. google_cloud_securesourcemanager-0.1.16/README.rst +197 -0
  4. google_cloud_securesourcemanager-0.1.16/google/cloud/securesourcemanager/__init__.py +181 -0
  5. {google_cloud_securesourcemanager-0.1.14 → google_cloud_securesourcemanager-0.1.16}/google/cloud/securesourcemanager/gapic_version.py +2 -2
  6. google_cloud_securesourcemanager-0.1.16/google/cloud/securesourcemanager_v1/__init__.py +179 -0
  7. google_cloud_securesourcemanager-0.1.16/google/cloud/securesourcemanager_v1/gapic_metadata.json +808 -0
  8. {google_cloud_securesourcemanager-0.1.14 → google_cloud_securesourcemanager-0.1.16}/google/cloud/securesourcemanager_v1/gapic_version.py +2 -2
  9. {google_cloud_securesourcemanager-0.1.14/tests/unit → google_cloud_securesourcemanager-0.1.16/google/cloud/securesourcemanager_v1/services}/__init__.py +1 -1
  10. {google_cloud_securesourcemanager-0.1.14 → google_cloud_securesourcemanager-0.1.16}/google/cloud/securesourcemanager_v1/services/secure_source_manager/__init__.py +1 -1
  11. google_cloud_securesourcemanager-0.1.16/google/cloud/securesourcemanager_v1/services/secure_source_manager/async_client.py +7832 -0
  12. google_cloud_securesourcemanager-0.1.16/google/cloud/securesourcemanager_v1/services/secure_source_manager/client.py +8368 -0
  13. google_cloud_securesourcemanager-0.1.16/google/cloud/securesourcemanager_v1/services/secure_source_manager/pagers.py +1623 -0
  14. {google_cloud_securesourcemanager-0.1.14 → google_cloud_securesourcemanager-0.1.16}/google/cloud/securesourcemanager_v1/services/secure_source_manager/transports/__init__.py +1 -1
  15. {google_cloud_securesourcemanager-0.1.14 → google_cloud_securesourcemanager-0.1.16}/google/cloud/securesourcemanager_v1/services/secure_source_manager/transports/base.py +542 -1
  16. {google_cloud_securesourcemanager-0.1.14 → google_cloud_securesourcemanager-0.1.16}/google/cloud/securesourcemanager_v1/services/secure_source_manager/transports/grpc.py +1034 -34
  17. {google_cloud_securesourcemanager-0.1.14 → google_cloud_securesourcemanager-0.1.16}/google/cloud/securesourcemanager_v1/services/secure_source_manager/transports/grpc_asyncio.py +1368 -157
  18. google_cloud_securesourcemanager-0.1.16/google/cloud/securesourcemanager_v1/services/secure_source_manager/transports/rest.py +13290 -0
  19. google_cloud_securesourcemanager-0.1.16/google/cloud/securesourcemanager_v1/services/secure_source_manager/transports/rest_base.py +3062 -0
  20. google_cloud_securesourcemanager-0.1.16/google/cloud/securesourcemanager_v1/types/__init__.py +168 -0
  21. google_cloud_securesourcemanager-0.1.16/google/cloud/securesourcemanager_v1/types/secure_source_manager.py +3168 -0
  22. {google_cloud_securesourcemanager-0.1.14 → google_cloud_securesourcemanager-0.1.16/google_cloud_securesourcemanager.egg-info}/PKG-INFO +108 -8
  23. google_cloud_securesourcemanager-0.1.16/google_cloud_securesourcemanager.egg-info/requires.txt +8 -0
  24. {google_cloud_securesourcemanager-0.1.14 → google_cloud_securesourcemanager-0.1.16}/setup.py +7 -7
  25. {google_cloud_securesourcemanager-0.1.14 → google_cloud_securesourcemanager-0.1.16}/tests/__init__.py +1 -1
  26. {google_cloud_securesourcemanager-0.1.14/tests/unit/gapic → google_cloud_securesourcemanager-0.1.16/tests/unit}/__init__.py +1 -1
  27. {google_cloud_securesourcemanager-0.1.14/google/cloud/securesourcemanager_v1/services → google_cloud_securesourcemanager-0.1.16/tests/unit/gapic}/__init__.py +1 -1
  28. google_cloud_securesourcemanager-0.1.16/tests/unit/gapic/securesourcemanager_v1/__init__.py +15 -0
  29. google_cloud_securesourcemanager-0.1.16/tests/unit/gapic/securesourcemanager_v1/test_secure_source_manager.py +46543 -0
  30. google_cloud_securesourcemanager-0.1.14/MANIFEST.in +0 -25
  31. google_cloud_securesourcemanager-0.1.14/README.rst +0 -108
  32. google_cloud_securesourcemanager-0.1.14/google/cloud/securesourcemanager/__init__.py +0 -73
  33. google_cloud_securesourcemanager-0.1.14/google/cloud/securesourcemanager_v1/__init__.py +0 -71
  34. google_cloud_securesourcemanager-0.1.14/google/cloud/securesourcemanager_v1/gapic_metadata.json +0 -268
  35. google_cloud_securesourcemanager-0.1.14/google/cloud/securesourcemanager_v1/services/secure_source_manager/async_client.py +0 -3044
  36. google_cloud_securesourcemanager-0.1.14/google/cloud/securesourcemanager_v1/services/secure_source_manager/client.py +0 -3563
  37. google_cloud_securesourcemanager-0.1.14/google/cloud/securesourcemanager_v1/services/secure_source_manager/pagers.py +0 -515
  38. google_cloud_securesourcemanager-0.1.14/google/cloud/securesourcemanager_v1/services/secure_source_manager/transports/rest.py +0 -5365
  39. google_cloud_securesourcemanager-0.1.14/google/cloud/securesourcemanager_v1/services/secure_source_manager/transports/rest_base.py +0 -1158
  40. google_cloud_securesourcemanager-0.1.14/google/cloud/securesourcemanager_v1/types/__init__.py +0 -60
  41. google_cloud_securesourcemanager-0.1.14/google/cloud/securesourcemanager_v1/types/secure_source_manager.py +0 -1281
  42. google_cloud_securesourcemanager-0.1.14/google_cloud_securesourcemanager.egg-info/requires.txt +0 -8
  43. google_cloud_securesourcemanager-0.1.14/tests/unit/gapic/securesourcemanager_v1/__init__.py +0 -15
  44. google_cloud_securesourcemanager-0.1.14/tests/unit/gapic/securesourcemanager_v1/test_secure_source_manager.py +0 -17266
  45. {google_cloud_securesourcemanager-0.1.14 → google_cloud_securesourcemanager-0.1.16}/LICENSE +0 -0
  46. {google_cloud_securesourcemanager-0.1.14 → google_cloud_securesourcemanager-0.1.16}/google/cloud/securesourcemanager/py.typed +0 -0
  47. {google_cloud_securesourcemanager-0.1.14 → google_cloud_securesourcemanager-0.1.16}/google/cloud/securesourcemanager_v1/py.typed +0 -0
  48. {google_cloud_securesourcemanager-0.1.14 → google_cloud_securesourcemanager-0.1.16}/google_cloud_securesourcemanager.egg-info/SOURCES.txt +0 -0
  49. {google_cloud_securesourcemanager-0.1.14 → google_cloud_securesourcemanager-0.1.16}/google_cloud_securesourcemanager.egg-info/dependency_links.txt +0 -0
  50. {google_cloud_securesourcemanager-0.1.14 → google_cloud_securesourcemanager-0.1.16}/google_cloud_securesourcemanager.egg-info/not-zip-safe +0 -0
  51. {google_cloud_securesourcemanager-0.1.14 → google_cloud_securesourcemanager-0.1.16}/google_cloud_securesourcemanager.egg-info/top_level.txt +0 -0
  52. {google_cloud_securesourcemanager-0.1.14 → google_cloud_securesourcemanager-0.1.16}/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__
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: google-cloud-securesourcemanager
3
- Version: 0.1.14
3
+ Version: 0.1.16
4
4
  Summary: Google Cloud Securesourcemanager API client library
5
5
  Home-page: https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-securesourcemanager
6
6
  Author: Google LLC
@@ -23,12 +23,23 @@ 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.0dev,>=1.34.1
27
- Requires-Dist: google-auth!=2.24.0,!=2.25.0,<3.0.0dev,>=2.14.1
28
- Requires-Dist: proto-plus<2.0.0dev,>=1.22.3
29
- Requires-Dist: proto-plus<2.0.0dev,>=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,<6.0.0dev,>=3.20.2
31
- Requires-Dist: grpc-google-iam-v1<1.0.0dev,>=0.14.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
+ Dynamic: author
33
+ Dynamic: author-email
34
+ Dynamic: classifier
35
+ Dynamic: description
36
+ Dynamic: home-page
37
+ Dynamic: license
38
+ Dynamic: license-file
39
+ Dynamic: platform
40
+ Dynamic: requires-dist
41
+ Dynamic: requires-python
42
+ Dynamic: summary
32
43
 
33
44
  Python Client for Secure Source Manager API
34
45
  ===========================================
@@ -138,3 +149,92 @@ Next Steps
138
149
 
139
150
  .. _Secure Source Manager API Product documentation: https://cloud.google.com/secure-source-manager/docs/overview
140
151
  .. _README: https://github.com/googleapis/google-cloud-python/blob/main/README.rst
152
+
153
+ Logging
154
+ -------
155
+
156
+ This library uses the standard Python :code:`logging` functionality to log some RPC events that could be of interest for debugging and monitoring purposes.
157
+ Note the following:
158
+
159
+ #. 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.
160
+ #. 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**.
161
+ #. By default, the logging events from this library are not handled. You must **explicitly configure log handling** using one of the mechanisms below.
162
+
163
+ Simple, environment-based configuration
164
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
165
+
166
+ 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
167
+ 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
168
+ messages in a structured format. It does not currently allow customizing the logging levels captured nor the handlers, formatters, etc. used for any logging
169
+ event.
170
+
171
+ A logging scope is a period-separated namespace that begins with :code:`google`, identifying the Python module or package to log.
172
+
173
+ - Valid logging scopes: :code:`google`, :code:`google.cloud.asset.v1`, :code:`google.api`, :code:`google.auth`, etc.
174
+ - Invalid logging scopes: :code:`foo`, :code:`123`, etc.
175
+
176
+ **NOTE**: If the logging scope is invalid, the library does not set up any logging handlers.
177
+
178
+ Environment-Based Examples
179
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
180
+
181
+ - Enabling the default handler for all Google-based loggers
182
+
183
+ .. code-block:: console
184
+
185
+ export GOOGLE_SDK_PYTHON_LOGGING_SCOPE=google
186
+
187
+ - Enabling the default handler for a specific Google module (for a client library called :code:`library_v1`):
188
+
189
+ .. code-block:: console
190
+
191
+ export GOOGLE_SDK_PYTHON_LOGGING_SCOPE=google.cloud.library_v1
192
+
193
+
194
+ Advanced, code-based configuration
195
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
196
+
197
+ You can also configure a valid logging scope using Python's standard `logging` mechanism.
198
+
199
+ Code-Based Examples
200
+ ^^^^^^^^^^^^^^^^^^^
201
+
202
+ - Configuring a handler for all Google-based loggers
203
+
204
+ .. code-block:: python
205
+
206
+ import logging
207
+
208
+ from google.cloud import library_v1
209
+
210
+ base_logger = logging.getLogger("google")
211
+ base_logger.addHandler(logging.StreamHandler())
212
+ base_logger.setLevel(logging.DEBUG)
213
+
214
+ - Configuring a handler for a specific Google module (for a client library called :code:`library_v1`):
215
+
216
+ .. code-block:: python
217
+
218
+ import logging
219
+
220
+ from google.cloud import library_v1
221
+
222
+ base_logger = logging.getLogger("google.cloud.library_v1")
223
+ base_logger.addHandler(logging.StreamHandler())
224
+ base_logger.setLevel(logging.DEBUG)
225
+
226
+ Logging details
227
+ ~~~~~~~~~~~~~~~
228
+
229
+ #. 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
230
+ logger from the `google`-level logger. If you need the events to be propagated to the root logger, you must explicitly set
231
+ :code:`logging.getLogger("google").propagate = True` in your code.
232
+ #. You can mix the different logging configurations above for different Google modules. For example, you may want use a code-based logging configuration for
233
+ one library, but decide you need to also set up environment-based logging configuration for another library.
234
+
235
+ #. If you attempt to use both code-based and environment-based configuration for the same module, the environment-based configuration will be ineffectual
236
+ if the code -based configuration gets applied first.
237
+
238
+ #. The Google-specific logging configurations (default handlers for environment-based configuration; not propagating logging events to the root logger) get
239
+ executed the first time *any* client library is instantiated in your application, and only if the affected loggers have not been previously configured.
240
+ (This is the reason for 2.i. above.)
@@ -0,0 +1,197 @@
1
+ Python Client for Secure Source Manager API
2
+ ===========================================
3
+
4
+ |preview| |pypi| |versions|
5
+
6
+ `Secure Source Manager API`_: Regionally deployed, single-tenant managed source code repository hosted on Google Cloud.
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-securesourcemanager.svg
14
+ :target: https://pypi.org/project/google-cloud-securesourcemanager/
15
+ .. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-securesourcemanager.svg
16
+ :target: https://pypi.org/project/google-cloud-securesourcemanager/
17
+ .. _Secure Source Manager API: https://cloud.google.com/secure-source-manager/docs/overview
18
+ .. _Client Library Documentation: https://cloud.google.com/python/docs/reference/securesourcemanager/latest/summary_overview
19
+ .. _Product Documentation: https://cloud.google.com/secure-source-manager/docs/overview
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 Secure Source Manager API.`_
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 Secure Source Manager API.: https://cloud.google.com/secure-source-manager/docs/overview
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-securesourcemanager/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-securesourcemanager
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-securesourcemanager
96
+
97
+ Next Steps
98
+ ~~~~~~~~~~
99
+
100
+ - Read the `Client Library Documentation`_ for Secure Source Manager API
101
+ to see other available methods on the client.
102
+ - Read the `Secure Source Manager API 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
+ .. _Secure Source Manager API Product documentation: https://cloud.google.com/secure-source-manager/docs/overview
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 import library_v1
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 import library_v1
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.)
@@ -0,0 +1,181 @@
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
+ from google.cloud.securesourcemanager import gapic_version as package_version
17
+
18
+ __version__ = package_version.__version__
19
+
20
+
21
+ from google.cloud.securesourcemanager_v1.services.secure_source_manager.async_client import (
22
+ SecureSourceManagerAsyncClient,
23
+ )
24
+ from google.cloud.securesourcemanager_v1.services.secure_source_manager.client import (
25
+ SecureSourceManagerClient,
26
+ )
27
+ from google.cloud.securesourcemanager_v1.types.secure_source_manager import (
28
+ BatchCreatePullRequestCommentsRequest,
29
+ BatchCreatePullRequestCommentsResponse,
30
+ BranchRule,
31
+ CloseIssueRequest,
32
+ ClosePullRequestRequest,
33
+ CreateBranchRuleRequest,
34
+ CreateHookRequest,
35
+ CreateInstanceRequest,
36
+ CreateIssueCommentRequest,
37
+ CreateIssueRequest,
38
+ CreatePullRequestCommentRequest,
39
+ CreatePullRequestRequest,
40
+ CreateRepositoryRequest,
41
+ DeleteBranchRuleRequest,
42
+ DeleteHookRequest,
43
+ DeleteInstanceRequest,
44
+ DeleteIssueCommentRequest,
45
+ DeleteIssueRequest,
46
+ DeletePullRequestCommentRequest,
47
+ DeleteRepositoryRequest,
48
+ FetchBlobRequest,
49
+ FetchBlobResponse,
50
+ FetchTreeRequest,
51
+ FetchTreeResponse,
52
+ FileDiff,
53
+ GetBranchRuleRequest,
54
+ GetHookRequest,
55
+ GetInstanceRequest,
56
+ GetIssueCommentRequest,
57
+ GetIssueRequest,
58
+ GetPullRequestCommentRequest,
59
+ GetPullRequestRequest,
60
+ GetRepositoryRequest,
61
+ Hook,
62
+ Instance,
63
+ Issue,
64
+ IssueComment,
65
+ ListBranchRulesRequest,
66
+ ListBranchRulesResponse,
67
+ ListHooksRequest,
68
+ ListHooksResponse,
69
+ ListInstancesRequest,
70
+ ListInstancesResponse,
71
+ ListIssueCommentsRequest,
72
+ ListIssueCommentsResponse,
73
+ ListIssuesRequest,
74
+ ListIssuesResponse,
75
+ ListPullRequestCommentsRequest,
76
+ ListPullRequestCommentsResponse,
77
+ ListPullRequestFileDiffsRequest,
78
+ ListPullRequestFileDiffsResponse,
79
+ ListPullRequestsRequest,
80
+ ListPullRequestsResponse,
81
+ ListRepositoriesRequest,
82
+ ListRepositoriesResponse,
83
+ MergePullRequestRequest,
84
+ OpenIssueRequest,
85
+ OpenPullRequestRequest,
86
+ OperationMetadata,
87
+ PullRequest,
88
+ PullRequestComment,
89
+ Repository,
90
+ ResolvePullRequestCommentsRequest,
91
+ ResolvePullRequestCommentsResponse,
92
+ TreeEntry,
93
+ UnresolvePullRequestCommentsRequest,
94
+ UnresolvePullRequestCommentsResponse,
95
+ UpdateBranchRuleRequest,
96
+ UpdateHookRequest,
97
+ UpdateIssueCommentRequest,
98
+ UpdateIssueRequest,
99
+ UpdatePullRequestCommentRequest,
100
+ UpdatePullRequestRequest,
101
+ UpdateRepositoryRequest,
102
+ )
103
+
104
+ __all__ = (
105
+ "SecureSourceManagerClient",
106
+ "SecureSourceManagerAsyncClient",
107
+ "BatchCreatePullRequestCommentsRequest",
108
+ "BatchCreatePullRequestCommentsResponse",
109
+ "BranchRule",
110
+ "CloseIssueRequest",
111
+ "ClosePullRequestRequest",
112
+ "CreateBranchRuleRequest",
113
+ "CreateHookRequest",
114
+ "CreateInstanceRequest",
115
+ "CreateIssueCommentRequest",
116
+ "CreateIssueRequest",
117
+ "CreatePullRequestCommentRequest",
118
+ "CreatePullRequestRequest",
119
+ "CreateRepositoryRequest",
120
+ "DeleteBranchRuleRequest",
121
+ "DeleteHookRequest",
122
+ "DeleteInstanceRequest",
123
+ "DeleteIssueCommentRequest",
124
+ "DeleteIssueRequest",
125
+ "DeletePullRequestCommentRequest",
126
+ "DeleteRepositoryRequest",
127
+ "FetchBlobRequest",
128
+ "FetchBlobResponse",
129
+ "FetchTreeRequest",
130
+ "FetchTreeResponse",
131
+ "FileDiff",
132
+ "GetBranchRuleRequest",
133
+ "GetHookRequest",
134
+ "GetInstanceRequest",
135
+ "GetIssueCommentRequest",
136
+ "GetIssueRequest",
137
+ "GetPullRequestCommentRequest",
138
+ "GetPullRequestRequest",
139
+ "GetRepositoryRequest",
140
+ "Hook",
141
+ "Instance",
142
+ "Issue",
143
+ "IssueComment",
144
+ "ListBranchRulesRequest",
145
+ "ListBranchRulesResponse",
146
+ "ListHooksRequest",
147
+ "ListHooksResponse",
148
+ "ListInstancesRequest",
149
+ "ListInstancesResponse",
150
+ "ListIssueCommentsRequest",
151
+ "ListIssueCommentsResponse",
152
+ "ListIssuesRequest",
153
+ "ListIssuesResponse",
154
+ "ListPullRequestCommentsRequest",
155
+ "ListPullRequestCommentsResponse",
156
+ "ListPullRequestFileDiffsRequest",
157
+ "ListPullRequestFileDiffsResponse",
158
+ "ListPullRequestsRequest",
159
+ "ListPullRequestsResponse",
160
+ "ListRepositoriesRequest",
161
+ "ListRepositoriesResponse",
162
+ "MergePullRequestRequest",
163
+ "OpenIssueRequest",
164
+ "OpenPullRequestRequest",
165
+ "OperationMetadata",
166
+ "PullRequest",
167
+ "PullRequestComment",
168
+ "Repository",
169
+ "ResolvePullRequestCommentsRequest",
170
+ "ResolvePullRequestCommentsResponse",
171
+ "TreeEntry",
172
+ "UnresolvePullRequestCommentsRequest",
173
+ "UnresolvePullRequestCommentsResponse",
174
+ "UpdateBranchRuleRequest",
175
+ "UpdateHookRequest",
176
+ "UpdateIssueCommentRequest",
177
+ "UpdateIssueRequest",
178
+ "UpdatePullRequestCommentRequest",
179
+ "UpdatePullRequestRequest",
180
+ "UpdateRepositoryRequest",
181
+ )
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
- # Copyright 2024 Google LLC
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.1.14" # {x-release-please-version}
16
+ __version__ = "0.1.16" # {x-release-please-version}