gapic-generator 1.30.2__py3-none-any.whl → 1.30.3__py3-none-any.whl
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.
- gapic/templates/%namespace/%name_%version/%sub/services/%service/transports/base.py.j2 +4 -5
- gapic/templates/mypy.ini.j2 +1 -1
- {gapic_generator-1.30.2.dist-info → gapic_generator-1.30.3.dist-info}/METADATA +1 -1
- {gapic_generator-1.30.2.dist-info → gapic_generator-1.30.3.dist-info}/RECORD +26 -26
- tests/integration/goldens/asset/google/cloud/asset_v1/services/asset_service/transports/base.py +4 -5
- tests/integration/goldens/asset/mypy.ini +1 -1
- tests/integration/goldens/credentials/google/iam/credentials_v1/services/iam_credentials/transports/base.py +4 -5
- tests/integration/goldens/credentials/mypy.ini +1 -1
- tests/integration/goldens/eventarc/google/cloud/eventarc_v1/services/eventarc/transports/base.py +4 -5
- tests/integration/goldens/eventarc/mypy.ini +1 -1
- tests/integration/goldens/logging/google/cloud/logging_v2/services/config_service_v2/transports/base.py +4 -5
- tests/integration/goldens/logging/google/cloud/logging_v2/services/logging_service_v2/transports/base.py +4 -5
- tests/integration/goldens/logging/google/cloud/logging_v2/services/metrics_service_v2/transports/base.py +4 -5
- tests/integration/goldens/logging/mypy.ini +1 -1
- tests/integration/goldens/logging_internal/google/cloud/logging_v2/services/config_service_v2/transports/base.py +4 -5
- tests/integration/goldens/logging_internal/google/cloud/logging_v2/services/logging_service_v2/transports/base.py +4 -5
- tests/integration/goldens/logging_internal/google/cloud/logging_v2/services/metrics_service_v2/transports/base.py +4 -5
- tests/integration/goldens/logging_internal/mypy.ini +1 -1
- tests/integration/goldens/redis/google/cloud/redis_v1/services/cloud_redis/transports/base.py +4 -5
- tests/integration/goldens/redis/mypy.ini +1 -1
- tests/integration/goldens/redis_selective/google/cloud/redis_v1/services/cloud_redis/transports/base.py +4 -5
- tests/integration/goldens/redis_selective/mypy.ini +1 -1
- {gapic_generator-1.30.2.dist-info → gapic_generator-1.30.3.dist-info}/WHEEL +0 -0
- {gapic_generator-1.30.2.dist-info → gapic_generator-1.30.3.dist-info}/entry_points.txt +0 -0
- {gapic_generator-1.30.2.dist-info → gapic_generator-1.30.3.dist-info}/licenses/LICENSE +0 -0
- {gapic_generator-1.30.2.dist-info → gapic_generator-1.30.3.dist-info}/top_level.txt +0 -0
|
@@ -108,8 +108,6 @@ class {{ service.name }}Transport(abc.ABC):
|
|
|
108
108
|
self._extended_operations_services: Dict[str, Any] = {}
|
|
109
109
|
{% endif %}
|
|
110
110
|
|
|
111
|
-
scopes_kwargs = {"scopes": scopes, "default_scopes": self.AUTH_SCOPES}
|
|
112
|
-
|
|
113
111
|
# Save the scopes.
|
|
114
112
|
self._scopes = scopes
|
|
115
113
|
if not hasattr(self, "_ignore_credentials"):
|
|
@@ -123,11 +121,12 @@ class {{ service.name }}Transport(abc.ABC):
|
|
|
123
121
|
if credentials_file is not None:
|
|
124
122
|
credentials, _ = google.auth.load_credentials_from_file(
|
|
125
123
|
credentials_file,
|
|
126
|
-
|
|
127
|
-
quota_project_id=quota_project_id
|
|
124
|
+
scopes=scopes,
|
|
125
|
+
quota_project_id=quota_project_id,
|
|
126
|
+
default_scopes=self.AUTH_SCOPES,
|
|
128
127
|
)
|
|
129
128
|
elif credentials is None and not self._ignore_credentials:
|
|
130
|
-
credentials, _ = google.auth.default(
|
|
129
|
+
credentials, _ = google.auth.default(scopes=scopes, quota_project_id=quota_project_id, default_scopes=self.AUTH_SCOPES)
|
|
131
130
|
# Don't apply audience if the credentials file passed from user.
|
|
132
131
|
if hasattr(credentials, "with_gdch_audience"):
|
|
133
132
|
credentials = credentials.with_gdch_audience(api_audience if api_audience else host)
|
gapic/templates/mypy.ini.j2
CHANGED
|
@@ -36,7 +36,7 @@ gapic/templates/README.rst.j2,sha256=Tezd9OpNqiDa4V1zuE7TPRtGKK1k7ZyMVXf7MGN9U-Y
|
|
|
36
36
|
gapic/templates/_base.py.j2,sha256=dHWbvqXFqg7Q9PAOM1eTKfvAVW5GqtzurXqXCKIENqg,122
|
|
37
37
|
gapic/templates/_license.j2,sha256=Uo6Ox63057cG3O2ahnelWqdHzChYgJHfFNIW7EFewZ4,576
|
|
38
38
|
gapic/templates/_pypi_packages.j2,sha256=q5caIgrVbIk2zTJcc4V7U7VdynrlF1OZ8uUf8yCKbjE,1714
|
|
39
|
-
gapic/templates/mypy.ini.j2,sha256=
|
|
39
|
+
gapic/templates/mypy.ini.j2,sha256=4eP5uFdG9IRRjJgG7jIjTbSBhDW4RuLql44H0QDc5To,55
|
|
40
40
|
gapic/templates/noxfile.py.j2,sha256=ye91rOL6y6K1Ydvev95JENZjSds3hzQW0sPo-D6IgZM,19823
|
|
41
41
|
gapic/templates/setup.py.j2,sha256=R1cDIkTBl0_-JkVAdTb_8lP9O-K8o5W2-_iG2toRAX8,4587
|
|
42
42
|
gapic/templates/%namespace/%name/__init__.py.j2,sha256=rQDtpxxreJPnI1fBMEjEM76pkBfjnK5Th_DZB3lCtPM,3226
|
|
@@ -60,7 +60,7 @@ gapic/templates/%namespace/%name_%version/%sub/services/%service/transports/__in
|
|
|
60
60
|
gapic/templates/%namespace/%name_%version/%sub/services/%service/transports/_mixins.py.j2,sha256=h8WbSqvII_GvRb_6c0JyVwDnjnTPLuvPi7CaKWdA9jw,11363
|
|
61
61
|
gapic/templates/%namespace/%name_%version/%sub/services/%service/transports/_rest_mixins.py.j2,sha256=eTKl_3Sn9nfgTdn9rT3fkSjj8B6nROF2k3PezCc4_to,968
|
|
62
62
|
gapic/templates/%namespace/%name_%version/%sub/services/%service/transports/_rest_mixins_base.py.j2,sha256=wjy5VKTLZdBLoB1V7IbKBBYdYOYdrjn10kte7zlBN0g,1909
|
|
63
|
-
gapic/templates/%namespace/%name_%version/%sub/services/%service/transports/base.py.j2,sha256=
|
|
63
|
+
gapic/templates/%namespace/%name_%version/%sub/services/%service/transports/base.py.j2,sha256=xk2JMGei-LrdEV8S5dRXX-v7fT73G9eq7oVqjyEszYI,14439
|
|
64
64
|
gapic/templates/%namespace/%name_%version/%sub/services/%service/transports/grpc.py.j2,sha256=LgPYf9x9hsCgUMkp8J7jB2ta0Zr_MNhISSgOffzdm_o,21168
|
|
65
65
|
gapic/templates/%namespace/%name_%version/%sub/services/%service/transports/grpc_asyncio.py.j2,sha256=ubmt3TTLVBM-SwPeMcXWHevQFpxNzL1_o-Vy4hYXkV4,22012
|
|
66
66
|
gapic/templates/%namespace/%name_%version/%sub/services/%service/transports/rest.py.j2,sha256=2-8wfZBFvuUccEqU1FtvVJrsauGz0b8WOsFgwYKcVIo,15460
|
|
@@ -110,7 +110,7 @@ gapic/utils/reserved_names.py,sha256=M3E9H42wfQFvn2biBKTlxPXQar5Zw5eP3ved2AUUG2c
|
|
|
110
110
|
gapic/utils/rst.py,sha256=Jr-U6whWZcenjdnzyw-VFiIvS9ToqM-_4QaH59lM2fI,2801
|
|
111
111
|
gapic/utils/uri_conv.py,sha256=fiLI3Ga9CAtouQJcg0Uuu3bwzDral2sZWcRxpLwYmYc,1705
|
|
112
112
|
gapic/utils/uri_sample.py,sha256=1NOKPUE_HWqy46CKzigM2aYp8xqO4ioXmDmBDrQLS9M,3191
|
|
113
|
-
gapic_generator-1.30.
|
|
113
|
+
gapic_generator-1.30.3.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
|
114
114
|
rules_python_gapic/pytest.py,sha256=cL3qIqEOyfJdAb3p3ogWvyGBKqjp5J5qxgkIrjc7-JA,612
|
|
115
115
|
rules_python_gapic/test.py,sha256=WCsGlzyjVaAy-C79SmL1nw7iyTPRJrlQOdK7uhDEmyM,346
|
|
116
116
|
test_utils/__init__.py,sha256=uwvIt0wvGRORvAV_5AzMHejrBe2E4R4LHwpCd5x_us4,575
|
|
@@ -172,7 +172,7 @@ tests/integration/goldens/asset/BUILD.bazel,sha256=OV9OCOEYoo56cJPH2Vz4etAK8r8Zx
|
|
|
172
172
|
tests/integration/goldens/asset/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
|
173
173
|
tests/integration/goldens/asset/MANIFEST.in,sha256=ftHd9LxbzvixXj-WoOTAXk-qP0vACe1GZ8A7D8IfANA,764
|
|
174
174
|
tests/integration/goldens/asset/README.rst,sha256=0xtXyFvDFR5TFaEjmKrAL-Vk2WhKprgTzOsyIWj9ms0,5530
|
|
175
|
-
tests/integration/goldens/asset/mypy.ini,sha256=
|
|
175
|
+
tests/integration/goldens/asset/mypy.ini,sha256=4eP5uFdG9IRRjJgG7jIjTbSBhDW4RuLql44H0QDc5To,55
|
|
176
176
|
tests/integration/goldens/asset/noxfile.py,sha256=La54wL5B7bQd2ub-yVTiLHl-ibv9Tn7g5HtarWlZDwM,19479
|
|
177
177
|
tests/integration/goldens/asset/setup.py,sha256=4DUNpSYco2Lj-j1J6n5aEU9bidADiDlkO7wjXURKUxM,3571
|
|
178
178
|
tests/integration/goldens/asset/docs/conf.py,sha256=W9I2__vuXN5muLZV7AcN7lR1Ei-jdWaNOJA6sSyhFIs,12400
|
|
@@ -197,7 +197,7 @@ tests/integration/goldens/asset/google/cloud/asset_v1/services/asset_service/cli
|
|
|
197
197
|
tests/integration/goldens/asset/google/cloud/asset_v1/services/asset_service/pagers.py,sha256=ChGKqULVNs5-zkj5qRdPMIY9SFzRXPPqLXDjMbi_5YA,46765
|
|
198
198
|
tests/integration/goldens/asset/google/cloud/asset_v1/services/asset_service/transports/README.rst,sha256=nq3iujvfUlw1mZwxeumVPHym3TyArCs65o_gRHKcxRk,635
|
|
199
199
|
tests/integration/goldens/asset/google/cloud/asset_v1/services/asset_service/transports/__init__.py,sha256=1mPtl_4FAUvLcgixEToKDp5jtqI0pnSRwAwdNtfxQdE,1390
|
|
200
|
-
tests/integration/goldens/asset/google/cloud/asset_v1/services/asset_service/transports/base.py,sha256=
|
|
200
|
+
tests/integration/goldens/asset/google/cloud/asset_v1/services/asset_service/transports/base.py,sha256=6ui24fIMX30mgFsHe1mSHfXcnsLEwWcUwdhJy25jE1g,21041
|
|
201
201
|
tests/integration/goldens/asset/google/cloud/asset_v1/services/asset_service/transports/grpc.py,sha256=EB6vg--oc-ULf0Aa6JTgvvi_5Hr03q7NsjWiuc_-IjI,48038
|
|
202
202
|
tests/integration/goldens/asset/google/cloud/asset_v1/services/asset_service/transports/grpc_asyncio.py,sha256=bQH7m4riak08nS1bNVtc2A0wvA2udE3y9HdSudaB8k4,56827
|
|
203
203
|
tests/integration/goldens/asset/google/cloud/asset_v1/services/asset_service/transports/rest.py,sha256=prLfS4VmjKSOVNuRPuVa-4hOqPkMuv1rcP0VbMx9oyI,205257
|
|
@@ -271,7 +271,7 @@ tests/integration/goldens/credentials/BUILD.bazel,sha256=OV9OCOEYoo56cJPH2Vz4etA
|
|
|
271
271
|
tests/integration/goldens/credentials/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
|
272
272
|
tests/integration/goldens/credentials/MANIFEST.in,sha256=ftHd9LxbzvixXj-WoOTAXk-qP0vACe1GZ8A7D8IfANA,764
|
|
273
273
|
tests/integration/goldens/credentials/README.rst,sha256=v9SiCcskmp1IunV8wwV9Mz-jmC3rvXDmGTwWND8rdc0,5538
|
|
274
|
-
tests/integration/goldens/credentials/mypy.ini,sha256=
|
|
274
|
+
tests/integration/goldens/credentials/mypy.ini,sha256=4eP5uFdG9IRRjJgG7jIjTbSBhDW4RuLql44H0QDc5To,55
|
|
275
275
|
tests/integration/goldens/credentials/noxfile.py,sha256=_ZX2AbY-qth321p1O2RW7N6dDFobip0oz-KU-BcEAek,19483
|
|
276
276
|
tests/integration/goldens/credentials/setup.py,sha256=AJI2y5w0SC6eOspZqgWoVy70i8o6MxUNC9ssvcqTjd4,3436
|
|
277
277
|
tests/integration/goldens/credentials/docs/conf.py,sha256=StI6nc3_pBSElDLQGFwsBOuF2fOpeKrTHo07FfmuFf0,12446
|
|
@@ -295,7 +295,7 @@ tests/integration/goldens/credentials/google/iam/credentials_v1/services/iam_cre
|
|
|
295
295
|
tests/integration/goldens/credentials/google/iam/credentials_v1/services/iam_credentials/client.py,sha256=s7RxJTBfJeK0xjd58Kcp4dFdALnXlow5Vs9NTAfQUnE,56300
|
|
296
296
|
tests/integration/goldens/credentials/google/iam/credentials_v1/services/iam_credentials/transports/README.rst,sha256=tLg0udJC97jO7gPuxW61VPSpO5aF4BtrmKH7rvKvTGo,645
|
|
297
297
|
tests/integration/goldens/credentials/google/iam/credentials_v1/services/iam_credentials/transports/__init__.py,sha256=p2WZ-53T_NyKvqT9YWjCXgv1dRap7a8dmzrFb0Zt7I0,1418
|
|
298
|
-
tests/integration/goldens/credentials/google/iam/credentials_v1/services/iam_credentials/transports/base.py,sha256=
|
|
298
|
+
tests/integration/goldens/credentials/google/iam/credentials_v1/services/iam_credentials/transports/base.py,sha256=WUXjtFy7N6Su8oNoEaWu8C3OyaEaQjngmEc-ttn52mw,9573
|
|
299
299
|
tests/integration/goldens/credentials/google/iam/credentials_v1/services/iam_credentials/transports/grpc.py,sha256=RtbRkVJS96m9kx_e6ZPv655spq2PricdVOIZQLYJ19g,20098
|
|
300
300
|
tests/integration/goldens/credentials/google/iam/credentials_v1/services/iam_credentials/transports/grpc_asyncio.py,sha256=AvunYBBzn592g6YigH6Vt_cvmc1LQsQT2v9ULKjh6_Q,23431
|
|
301
301
|
tests/integration/goldens/credentials/google/iam/credentials_v1/services/iam_credentials/transports/rest.py,sha256=V7H58Fs4ICb3N-UlEzOabb8uUm-yI1RWf97XQvfT6eY,40954
|
|
@@ -331,7 +331,7 @@ tests/integration/goldens/eventarc/BUILD.bazel,sha256=OV9OCOEYoo56cJPH2Vz4etAK8r
|
|
|
331
331
|
tests/integration/goldens/eventarc/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
|
332
332
|
tests/integration/goldens/eventarc/MANIFEST.in,sha256=ftHd9LxbzvixXj-WoOTAXk-qP0vACe1GZ8A7D8IfANA,764
|
|
333
333
|
tests/integration/goldens/eventarc/README.rst,sha256=MZMGJSbd1fUcyyiR43M1yjOaGNHmNa7J4fMRMJRArGk,5536
|
|
334
|
-
tests/integration/goldens/eventarc/mypy.ini,sha256=
|
|
334
|
+
tests/integration/goldens/eventarc/mypy.ini,sha256=4eP5uFdG9IRRjJgG7jIjTbSBhDW4RuLql44H0QDc5To,55
|
|
335
335
|
tests/integration/goldens/eventarc/noxfile.py,sha256=Cbzva2HXWekwJXh1vbfsuyth4Jv6jTKEf-99Iv0A1yg,19482
|
|
336
336
|
tests/integration/goldens/eventarc/setup.py,sha256=q8ii7cIDUXhuRk23KbPAHyJCHB5br4ugmYA6Nbt2pMI,3479
|
|
337
337
|
tests/integration/goldens/eventarc/docs/conf.py,sha256=Yp9Py3mvpoOcIg601Nq9CLGlhnxzh5-47BOeU77v0Uo,12436
|
|
@@ -353,7 +353,7 @@ tests/integration/goldens/eventarc/google/cloud/eventarc_v1/services/eventarc/cl
|
|
|
353
353
|
tests/integration/goldens/eventarc/google/cloud/eventarc_v1/services/eventarc/pagers.py,sha256=Beodw1VWL-a3PXc55pZg34DeuXmu9E6LbUJVXqYkUgo,26570
|
|
354
354
|
tests/integration/goldens/eventarc/google/cloud/eventarc_v1/services/eventarc/transports/README.rst,sha256=QSlGPq1v3uW8CSzBqfZjuWRWfDYtQqJZRUNZPJ3ATG4,615
|
|
355
355
|
tests/integration/goldens/eventarc/google/cloud/eventarc_v1/services/eventarc/transports/__init__.py,sha256=z189GreXk03XuNugMlWNouYMqcq1XcRfndF7HGnh3qw,1334
|
|
356
|
-
tests/integration/goldens/eventarc/google/cloud/eventarc_v1/services/eventarc/transports/base.py,sha256=
|
|
356
|
+
tests/integration/goldens/eventarc/google/cloud/eventarc_v1/services/eventarc/transports/base.py,sha256=zVUUVTilww1bC_51fVY7snXHSn7tzG3ifE8yXxTGCxk,19376
|
|
357
357
|
tests/integration/goldens/eventarc/google/cloud/eventarc_v1/services/eventarc/transports/grpc.py,sha256=-7NhO-MEUlpJD4ZYtWoX12mzOJM6ce_gqdEEQJwxLgc,45398
|
|
358
358
|
tests/integration/goldens/eventarc/google/cloud/eventarc_v1/services/eventarc/transports/grpc_asyncio.py,sha256=MMcVEpJckC4BOMkrF7aRxOI-e88J0RdwUMPvJpI7j8g,51767
|
|
359
359
|
tests/integration/goldens/eventarc/google/cloud/eventarc_v1/services/eventarc/transports/rest.py,sha256=hN-v2Yb-hSmg9ujbYA6iCMAzBeNma9CCMpLKhfcWJAA,215207
|
|
@@ -421,7 +421,7 @@ tests/integration/goldens/logging/BUILD.bazel,sha256=OV9OCOEYoo56cJPH2Vz4etAK8r8
|
|
|
421
421
|
tests/integration/goldens/logging/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
|
422
422
|
tests/integration/goldens/logging/MANIFEST.in,sha256=ftHd9LxbzvixXj-WoOTAXk-qP0vACe1GZ8A7D8IfANA,764
|
|
423
423
|
tests/integration/goldens/logging/README.rst,sha256=CWnp40Jr_XGK6aoXBq-n64zj35q52UwgJUPv69-e5uw,5534
|
|
424
|
-
tests/integration/goldens/logging/mypy.ini,sha256=
|
|
424
|
+
tests/integration/goldens/logging/mypy.ini,sha256=4eP5uFdG9IRRjJgG7jIjTbSBhDW4RuLql44H0QDc5To,55
|
|
425
425
|
tests/integration/goldens/logging/noxfile.py,sha256=z9Ld2r-suNsu0gSi1HD5xjil_ILlXO3JdoOUYUQmyLU,19481
|
|
426
426
|
tests/integration/goldens/logging/setup.py,sha256=Nn1K-bMSFymrH-W_LwvzeahufNwBr8BC57TBEzLnYhQ,3428
|
|
427
427
|
tests/integration/goldens/logging/docs/conf.py,sha256=c95nfmWXBC4ZCkxZ270Dc7gE74dIBpSD41AYdHgh1AQ,12424
|
|
@@ -448,7 +448,7 @@ tests/integration/goldens/logging/google/cloud/logging_v2/services/config_servic
|
|
|
448
448
|
tests/integration/goldens/logging/google/cloud/logging_v2/services/config_service_v2/pagers.py,sha256=uhIMdtjtXENg2-7nimvhpJrfffXXDxWzUUTkItgCUDQ,32243
|
|
449
449
|
tests/integration/goldens/logging/google/cloud/logging_v2/services/config_service_v2/transports/README.rst,sha256=evytkl3qBXEuekxYSF253yUB6ku2kVRAXEQtTniCH-4,650
|
|
450
450
|
tests/integration/goldens/logging/google/cloud/logging_v2/services/config_service_v2/transports/__init__.py,sha256=wAr-YIGPE3q7KZEbU1NvHWI11C7fzNSH3-UA2w21EcQ,1203
|
|
451
|
-
tests/integration/goldens/logging/google/cloud/logging_v2/services/config_service_v2/transports/base.py,sha256=
|
|
451
|
+
tests/integration/goldens/logging/google/cloud/logging_v2/services/config_service_v2/transports/base.py,sha256=kS1Lb2-arnW2zwK8Dt1TfSH5uy5XDHLZgmUA6MW6osc,25861
|
|
452
452
|
tests/integration/goldens/logging/google/cloud/logging_v2/services/config_service_v2/transports/grpc.py,sha256=erGhOhOWPfONHeqHQi-4bRC-6S12IQVS8mx6wLWJF9M,58405
|
|
453
453
|
tests/integration/goldens/logging/google/cloud/logging_v2/services/config_service_v2/transports/grpc_asyncio.py,sha256=SAJzRl32PDWlcaMY3WPZhGWHdev8jLydwgFIGLovGGE,69622
|
|
454
454
|
tests/integration/goldens/logging/google/cloud/logging_v2/services/logging_service_v2/__init__.py,sha256=j1XcrU7Kt0ixuwcKfoGBuks_M7oCxiqKrtWclC2BWlM,777
|
|
@@ -457,7 +457,7 @@ tests/integration/goldens/logging/google/cloud/logging_v2/services/logging_servi
|
|
|
457
457
|
tests/integration/goldens/logging/google/cloud/logging_v2/services/logging_service_v2/pagers.py,sha256=J269R88bCSTn_gycwd9OdN6bu5vjY2apz8ATZsGuCEM,20414
|
|
458
458
|
tests/integration/goldens/logging/google/cloud/logging_v2/services/logging_service_v2/transports/README.rst,sha256=S_rQuOGJ1kqH4Pf1ZgLPr_Gel1bM1cWpREZG33vXhYc,655
|
|
459
459
|
tests/integration/goldens/logging/google/cloud/logging_v2/services/logging_service_v2/transports/__init__.py,sha256=HJ4KALOz3MxXNONk083PKK7lo01nWBmefFtlDVEOtJM,1212
|
|
460
|
-
tests/integration/goldens/logging/google/cloud/logging_v2/services/logging_service_v2/transports/base.py,sha256=
|
|
460
|
+
tests/integration/goldens/logging/google/cloud/logging_v2/services/logging_service_v2/transports/base.py,sha256=i7Uk5aPFWMiiJuFPO2D6VCMLaMuA0pLQIxEjb2J83Xg,13395
|
|
461
461
|
tests/integration/goldens/logging/google/cloud/logging_v2/services/logging_service_v2/transports/grpc.py,sha256=W3K7kdULg6jyzLVEJyQv9aEFOcJCoFzmVHAAyC3Ukjw,25613
|
|
462
462
|
tests/integration/goldens/logging/google/cloud/logging_v2/services/logging_service_v2/transports/grpc_asyncio.py,sha256=eWBb6NW1vk0pF-YHiIHaV83CjHIpz6HH8GpvjrO3CrA,31131
|
|
463
463
|
tests/integration/goldens/logging/google/cloud/logging_v2/services/metrics_service_v2/__init__.py,sha256=vYzppOoxBRrUbdisYpJgUUyi3FrVTLoCltX4KhIM0h8,777
|
|
@@ -466,7 +466,7 @@ tests/integration/goldens/logging/google/cloud/logging_v2/services/metrics_servi
|
|
|
466
466
|
tests/integration/goldens/logging/google/cloud/logging_v2/services/metrics_service_v2/pagers.py,sha256=8o8QRXQjTWkhXadx47toDDdzq3CZDjU3g3en7FRTFlc,7580
|
|
467
467
|
tests/integration/goldens/logging/google/cloud/logging_v2/services/metrics_service_v2/transports/README.rst,sha256=Q2ppR4qn7eKnh0eDCyuErkRYt8NS_55-AGUvfzsT4v8,655
|
|
468
468
|
tests/integration/goldens/logging/google/cloud/logging_v2/services/metrics_service_v2/transports/__init__.py,sha256=gle3Tt6WQMioZyvFNvfWUwyo-5LKrPnP0KLQzjbBvHk,1212
|
|
469
|
-
tests/integration/goldens/logging/google/cloud/logging_v2/services/metrics_service_v2/transports/base.py,sha256=
|
|
469
|
+
tests/integration/goldens/logging/google/cloud/logging_v2/services/metrics_service_v2/transports/base.py,sha256=dhKZGI9Qc0CxO2bm1QZrWCaEkZCvvZUL_j2p9L8lbig,11974
|
|
470
470
|
tests/integration/goldens/logging/google/cloud/logging_v2/services/metrics_service_v2/transports/grpc.py,sha256=ypBAuOXxC43ee9N_9NhLh6YZvgHkD1CxwLct5um3Mec,23276
|
|
471
471
|
tests/integration/goldens/logging/google/cloud/logging_v2/services/metrics_service_v2/transports/grpc_asyncio.py,sha256=CTapTxUSl-cVfaiidhWBgMFQAuLxuvkHQf3-VscA2Vc,27637
|
|
472
472
|
tests/integration/goldens/logging/google/cloud/logging_v2/types/__init__.py,sha256=HDIRu7v2XwM6gwPn3vfDl7RD66jXwfJSlkjc7Hk8o9w,4482
|
|
@@ -582,7 +582,7 @@ tests/integration/goldens/logging_internal/BUILD.bazel,sha256=OV9OCOEYoo56cJPH2V
|
|
|
582
582
|
tests/integration/goldens/logging_internal/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
|
583
583
|
tests/integration/goldens/logging_internal/MANIFEST.in,sha256=ftHd9LxbzvixXj-WoOTAXk-qP0vACe1GZ8A7D8IfANA,764
|
|
584
584
|
tests/integration/goldens/logging_internal/README.rst,sha256=CWnp40Jr_XGK6aoXBq-n64zj35q52UwgJUPv69-e5uw,5534
|
|
585
|
-
tests/integration/goldens/logging_internal/mypy.ini,sha256=
|
|
585
|
+
tests/integration/goldens/logging_internal/mypy.ini,sha256=4eP5uFdG9IRRjJgG7jIjTbSBhDW4RuLql44H0QDc5To,55
|
|
586
586
|
tests/integration/goldens/logging_internal/noxfile.py,sha256=z9Ld2r-suNsu0gSi1HD5xjil_ILlXO3JdoOUYUQmyLU,19481
|
|
587
587
|
tests/integration/goldens/logging_internal/setup.py,sha256=Nn1K-bMSFymrH-W_LwvzeahufNwBr8BC57TBEzLnYhQ,3428
|
|
588
588
|
tests/integration/goldens/logging_internal/docs/conf.py,sha256=c95nfmWXBC4ZCkxZ270Dc7gE74dIBpSD41AYdHgh1AQ,12424
|
|
@@ -609,7 +609,7 @@ tests/integration/goldens/logging_internal/google/cloud/logging_v2/services/conf
|
|
|
609
609
|
tests/integration/goldens/logging_internal/google/cloud/logging_v2/services/config_service_v2/pagers.py,sha256=uhIMdtjtXENg2-7nimvhpJrfffXXDxWzUUTkItgCUDQ,32243
|
|
610
610
|
tests/integration/goldens/logging_internal/google/cloud/logging_v2/services/config_service_v2/transports/README.rst,sha256=evytkl3qBXEuekxYSF253yUB6ku2kVRAXEQtTniCH-4,650
|
|
611
611
|
tests/integration/goldens/logging_internal/google/cloud/logging_v2/services/config_service_v2/transports/__init__.py,sha256=wAr-YIGPE3q7KZEbU1NvHWI11C7fzNSH3-UA2w21EcQ,1203
|
|
612
|
-
tests/integration/goldens/logging_internal/google/cloud/logging_v2/services/config_service_v2/transports/base.py,sha256=
|
|
612
|
+
tests/integration/goldens/logging_internal/google/cloud/logging_v2/services/config_service_v2/transports/base.py,sha256=kS1Lb2-arnW2zwK8Dt1TfSH5uy5XDHLZgmUA6MW6osc,25861
|
|
613
613
|
tests/integration/goldens/logging_internal/google/cloud/logging_v2/services/config_service_v2/transports/grpc.py,sha256=erGhOhOWPfONHeqHQi-4bRC-6S12IQVS8mx6wLWJF9M,58405
|
|
614
614
|
tests/integration/goldens/logging_internal/google/cloud/logging_v2/services/config_service_v2/transports/grpc_asyncio.py,sha256=SAJzRl32PDWlcaMY3WPZhGWHdev8jLydwgFIGLovGGE,69622
|
|
615
615
|
tests/integration/goldens/logging_internal/google/cloud/logging_v2/services/logging_service_v2/__init__.py,sha256=j1XcrU7Kt0ixuwcKfoGBuks_M7oCxiqKrtWclC2BWlM,777
|
|
@@ -618,7 +618,7 @@ tests/integration/goldens/logging_internal/google/cloud/logging_v2/services/logg
|
|
|
618
618
|
tests/integration/goldens/logging_internal/google/cloud/logging_v2/services/logging_service_v2/pagers.py,sha256=J269R88bCSTn_gycwd9OdN6bu5vjY2apz8ATZsGuCEM,20414
|
|
619
619
|
tests/integration/goldens/logging_internal/google/cloud/logging_v2/services/logging_service_v2/transports/README.rst,sha256=S_rQuOGJ1kqH4Pf1ZgLPr_Gel1bM1cWpREZG33vXhYc,655
|
|
620
620
|
tests/integration/goldens/logging_internal/google/cloud/logging_v2/services/logging_service_v2/transports/__init__.py,sha256=HJ4KALOz3MxXNONk083PKK7lo01nWBmefFtlDVEOtJM,1212
|
|
621
|
-
tests/integration/goldens/logging_internal/google/cloud/logging_v2/services/logging_service_v2/transports/base.py,sha256=
|
|
621
|
+
tests/integration/goldens/logging_internal/google/cloud/logging_v2/services/logging_service_v2/transports/base.py,sha256=i7Uk5aPFWMiiJuFPO2D6VCMLaMuA0pLQIxEjb2J83Xg,13395
|
|
622
622
|
tests/integration/goldens/logging_internal/google/cloud/logging_v2/services/logging_service_v2/transports/grpc.py,sha256=W3K7kdULg6jyzLVEJyQv9aEFOcJCoFzmVHAAyC3Ukjw,25613
|
|
623
623
|
tests/integration/goldens/logging_internal/google/cloud/logging_v2/services/logging_service_v2/transports/grpc_asyncio.py,sha256=eWBb6NW1vk0pF-YHiIHaV83CjHIpz6HH8GpvjrO3CrA,31131
|
|
624
624
|
tests/integration/goldens/logging_internal/google/cloud/logging_v2/services/metrics_service_v2/__init__.py,sha256=oe62LkKEcfB8T463CnUTdUfvGs8pXaj4Fmypk0jlEwc,793
|
|
@@ -627,7 +627,7 @@ tests/integration/goldens/logging_internal/google/cloud/logging_v2/services/metr
|
|
|
627
627
|
tests/integration/goldens/logging_internal/google/cloud/logging_v2/services/metrics_service_v2/pagers.py,sha256=8o8QRXQjTWkhXadx47toDDdzq3CZDjU3g3en7FRTFlc,7580
|
|
628
628
|
tests/integration/goldens/logging_internal/google/cloud/logging_v2/services/metrics_service_v2/transports/README.rst,sha256=Q2ppR4qn7eKnh0eDCyuErkRYt8NS_55-AGUvfzsT4v8,655
|
|
629
629
|
tests/integration/goldens/logging_internal/google/cloud/logging_v2/services/metrics_service_v2/transports/__init__.py,sha256=gle3Tt6WQMioZyvFNvfWUwyo-5LKrPnP0KLQzjbBvHk,1212
|
|
630
|
-
tests/integration/goldens/logging_internal/google/cloud/logging_v2/services/metrics_service_v2/transports/base.py,sha256=
|
|
630
|
+
tests/integration/goldens/logging_internal/google/cloud/logging_v2/services/metrics_service_v2/transports/base.py,sha256=dhKZGI9Qc0CxO2bm1QZrWCaEkZCvvZUL_j2p9L8lbig,11974
|
|
631
631
|
tests/integration/goldens/logging_internal/google/cloud/logging_v2/services/metrics_service_v2/transports/grpc.py,sha256=ypBAuOXxC43ee9N_9NhLh6YZvgHkD1CxwLct5um3Mec,23276
|
|
632
632
|
tests/integration/goldens/logging_internal/google/cloud/logging_v2/services/metrics_service_v2/transports/grpc_asyncio.py,sha256=CTapTxUSl-cVfaiidhWBgMFQAuLxuvkHQf3-VscA2Vc,27637
|
|
633
633
|
tests/integration/goldens/logging_internal/google/cloud/logging_v2/types/__init__.py,sha256=HDIRu7v2XwM6gwPn3vfDl7RD66jXwfJSlkjc7Hk8o9w,4482
|
|
@@ -743,7 +743,7 @@ tests/integration/goldens/redis/BUILD.bazel,sha256=OV9OCOEYoo56cJPH2Vz4etAK8r8Zx
|
|
|
743
743
|
tests/integration/goldens/redis/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
|
744
744
|
tests/integration/goldens/redis/MANIFEST.in,sha256=ftHd9LxbzvixXj-WoOTAXk-qP0vACe1GZ8A7D8IfANA,764
|
|
745
745
|
tests/integration/goldens/redis/README.rst,sha256=mF9pylXti_adqie7oSWJjTtJPggvCPYz8B3uVDzIG1o,5530
|
|
746
|
-
tests/integration/goldens/redis/mypy.ini,sha256=
|
|
746
|
+
tests/integration/goldens/redis/mypy.ini,sha256=4eP5uFdG9IRRjJgG7jIjTbSBhDW4RuLql44H0QDc5To,55
|
|
747
747
|
tests/integration/goldens/redis/noxfile.py,sha256=Sg18FM043ZoN5Tm4Xnkw0Fd6wYBlFMb9pBVelYczJ20,19479
|
|
748
748
|
tests/integration/goldens/redis/setup.py,sha256=kBL5jjR0Gpcaf1w0kjNBVB9DTg1yGxVUiIxhsJ1QStA,3548
|
|
749
749
|
tests/integration/goldens/redis/docs/conf.py,sha256=PFC8LO4vNZnPMc8QZHmWCtgSQNpG18GtbGZH6_KUy1A,12400
|
|
@@ -768,7 +768,7 @@ tests/integration/goldens/redis/google/cloud/redis_v1/services/cloud_redis/clien
|
|
|
768
768
|
tests/integration/goldens/redis/google/cloud/redis_v1/services/cloud_redis/pagers.py,sha256=M4d8mdXxpPuDGMuFriWj1jh1h0RmviTQrk78iVVmGqs,7494
|
|
769
769
|
tests/integration/goldens/redis/google/cloud/redis_v1/services/cloud_redis/transports/README.rst,sha256=IZWH-XXT8_QiIBg0bS4S_W1kp3Fj87cLME3ZbhYJ4K8,625
|
|
770
770
|
tests/integration/goldens/redis/google/cloud/redis_v1/services/cloud_redis/transports/__init__.py,sha256=bfvkCBOXjyflAOdiRr3Eab7sTu0L2UOi_RuaLdT5VYQ,1874
|
|
771
|
-
tests/integration/goldens/redis/google/cloud/redis_v1/services/cloud_redis/transports/base.py,sha256=
|
|
771
|
+
tests/integration/goldens/redis/google/cloud/redis_v1/services/cloud_redis/transports/base.py,sha256=4MFKsS7yMfua36IgjFBG_WjJfeLy6k9_OoTJCsa7ppU,14577
|
|
772
772
|
tests/integration/goldens/redis/google/cloud/redis_v1/services/cloud_redis/transports/grpc.py,sha256=sYSNAFM9HnQ8yq0dsBra4CfTprjXLYTiwm3JYAM9hmM,37118
|
|
773
773
|
tests/integration/goldens/redis/google/cloud/redis_v1/services/cloud_redis/transports/grpc_asyncio.py,sha256=jDYDEQrqqltR-KWKrEA7WkCV7Sv-w7iEYiBVPeQAcTg,41626
|
|
774
774
|
tests/integration/goldens/redis/google/cloud/redis_v1/services/cloud_redis/transports/rest.py,sha256=Wh2-2Wqk3Mkh6IDmTM9dNUk9x0Ti7A3Vm2lUAXIbEMk,144015
|
|
@@ -818,7 +818,7 @@ tests/integration/goldens/redis_selective/BUILD.bazel,sha256=OV9OCOEYoo56cJPH2Vz
|
|
|
818
818
|
tests/integration/goldens/redis_selective/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
|
819
819
|
tests/integration/goldens/redis_selective/MANIFEST.in,sha256=ftHd9LxbzvixXj-WoOTAXk-qP0vACe1GZ8A7D8IfANA,764
|
|
820
820
|
tests/integration/goldens/redis_selective/README.rst,sha256=mF9pylXti_adqie7oSWJjTtJPggvCPYz8B3uVDzIG1o,5530
|
|
821
|
-
tests/integration/goldens/redis_selective/mypy.ini,sha256=
|
|
821
|
+
tests/integration/goldens/redis_selective/mypy.ini,sha256=4eP5uFdG9IRRjJgG7jIjTbSBhDW4RuLql44H0QDc5To,55
|
|
822
822
|
tests/integration/goldens/redis_selective/noxfile.py,sha256=Sg18FM043ZoN5Tm4Xnkw0Fd6wYBlFMb9pBVelYczJ20,19479
|
|
823
823
|
tests/integration/goldens/redis_selective/setup.py,sha256=kBL5jjR0Gpcaf1w0kjNBVB9DTg1yGxVUiIxhsJ1QStA,3548
|
|
824
824
|
tests/integration/goldens/redis_selective/docs/conf.py,sha256=PFC8LO4vNZnPMc8QZHmWCtgSQNpG18GtbGZH6_KUy1A,12400
|
|
@@ -843,7 +843,7 @@ tests/integration/goldens/redis_selective/google/cloud/redis_v1/services/cloud_r
|
|
|
843
843
|
tests/integration/goldens/redis_selective/google/cloud/redis_v1/services/cloud_redis/pagers.py,sha256=M4d8mdXxpPuDGMuFriWj1jh1h0RmviTQrk78iVVmGqs,7494
|
|
844
844
|
tests/integration/goldens/redis_selective/google/cloud/redis_v1/services/cloud_redis/transports/README.rst,sha256=IZWH-XXT8_QiIBg0bS4S_W1kp3Fj87cLME3ZbhYJ4K8,625
|
|
845
845
|
tests/integration/goldens/redis_selective/google/cloud/redis_v1/services/cloud_redis/transports/__init__.py,sha256=bfvkCBOXjyflAOdiRr3Eab7sTu0L2UOi_RuaLdT5VYQ,1874
|
|
846
|
-
tests/integration/goldens/redis_selective/google/cloud/redis_v1/services/cloud_redis/transports/base.py,sha256=
|
|
846
|
+
tests/integration/goldens/redis_selective/google/cloud/redis_v1/services/cloud_redis/transports/base.py,sha256=Zba5Mk89XA8zCngfgPgUzjA1d9980bU1dSf89AT6uIM,11684
|
|
847
847
|
tests/integration/goldens/redis_selective/google/cloud/redis_v1/services/cloud_redis/transports/grpc.py,sha256=Pr9nNyrAQPNjzsX-Ejp_zGiJHtrzpBdMRqY3PYyqJck,29291
|
|
848
848
|
tests/integration/goldens/redis_selective/google/cloud/redis_v1/services/cloud_redis/transports/grpc_asyncio.py,sha256=k2IbZ-xRqkyAJ-lntXC5vHCM33PJ-3ImgWrxNNrQOiQ,32514
|
|
849
849
|
tests/integration/goldens/redis_selective/google/cloud/redis_v1/services/cloud_redis/transports/rest.py,sha256=vPwOzPf5WtrgEpu9SH5Wj4krWF1YXYKSfWX59T8a1fA,93011
|
|
@@ -952,8 +952,8 @@ tests/unit/utils/test_lines.py,sha256=nGhHsbicSOKVAWEwcaZI3XizKT5n6-kpWoOt1GjrKc
|
|
|
952
952
|
tests/unit/utils/test_rst.py,sha256=FoTbSc6qpq6cRPeur4GvT2TCKF5m4YlLDplx8ZG5TOc,2232
|
|
953
953
|
tests/unit/utils/test_uri_conv.py,sha256=OLj51y1N-UukFLZJNWHr-QZ9eOWVk4bA4DwD5ask_TA,1118
|
|
954
954
|
tests/unit/utils/test_uri_sample.py,sha256=lnE8HIRIX1I3qqmu0R0vcS4AfB7r6KJwcbxlcFXBVwc,1187
|
|
955
|
-
gapic_generator-1.30.
|
|
956
|
-
gapic_generator-1.30.
|
|
957
|
-
gapic_generator-1.30.
|
|
958
|
-
gapic_generator-1.30.
|
|
959
|
-
gapic_generator-1.30.
|
|
955
|
+
gapic_generator-1.30.3.dist-info/METADATA,sha256=7E46pfCy42xEtzS32jQNsDJgV3r93vCk3pa2lzVO-5w,4905
|
|
956
|
+
gapic_generator-1.30.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
957
|
+
gapic_generator-1.30.3.dist-info/entry_points.txt,sha256=AJx-UiTN0b_RJbY6QXm7lQ-k1PkRYGX6CnZqQETrleA,110
|
|
958
|
+
gapic_generator-1.30.3.dist-info/top_level.txt,sha256=jCXBy3WahW-Qvc-5x6oG8i9D_JbAUd2buqQt-UfaHKI,42
|
|
959
|
+
gapic_generator-1.30.3.dist-info/RECORD,,
|
tests/integration/goldens/asset/google/cloud/asset_v1/services/asset_service/transports/base.py
CHANGED
|
@@ -85,8 +85,6 @@ class AssetServiceTransport(abc.ABC):
|
|
|
85
85
|
be used for service account credentials.
|
|
86
86
|
"""
|
|
87
87
|
|
|
88
|
-
scopes_kwargs = {"scopes": scopes, "default_scopes": self.AUTH_SCOPES}
|
|
89
|
-
|
|
90
88
|
# Save the scopes.
|
|
91
89
|
self._scopes = scopes
|
|
92
90
|
if not hasattr(self, "_ignore_credentials"):
|
|
@@ -100,11 +98,12 @@ class AssetServiceTransport(abc.ABC):
|
|
|
100
98
|
if credentials_file is not None:
|
|
101
99
|
credentials, _ = google.auth.load_credentials_from_file(
|
|
102
100
|
credentials_file,
|
|
103
|
-
|
|
104
|
-
quota_project_id=quota_project_id
|
|
101
|
+
scopes=scopes,
|
|
102
|
+
quota_project_id=quota_project_id,
|
|
103
|
+
default_scopes=self.AUTH_SCOPES,
|
|
105
104
|
)
|
|
106
105
|
elif credentials is None and not self._ignore_credentials:
|
|
107
|
-
credentials, _ = google.auth.default(
|
|
106
|
+
credentials, _ = google.auth.default(scopes=scopes, quota_project_id=quota_project_id, default_scopes=self.AUTH_SCOPES)
|
|
108
107
|
# Don't apply audience if the credentials file passed from user.
|
|
109
108
|
if hasattr(credentials, "with_gdch_audience"):
|
|
110
109
|
credentials = credentials.with_gdch_audience(api_audience if api_audience else host)
|
|
@@ -82,8 +82,6 @@ class IAMCredentialsTransport(abc.ABC):
|
|
|
82
82
|
be used for service account credentials.
|
|
83
83
|
"""
|
|
84
84
|
|
|
85
|
-
scopes_kwargs = {"scopes": scopes, "default_scopes": self.AUTH_SCOPES}
|
|
86
|
-
|
|
87
85
|
# Save the scopes.
|
|
88
86
|
self._scopes = scopes
|
|
89
87
|
if not hasattr(self, "_ignore_credentials"):
|
|
@@ -97,11 +95,12 @@ class IAMCredentialsTransport(abc.ABC):
|
|
|
97
95
|
if credentials_file is not None:
|
|
98
96
|
credentials, _ = google.auth.load_credentials_from_file(
|
|
99
97
|
credentials_file,
|
|
100
|
-
|
|
101
|
-
quota_project_id=quota_project_id
|
|
98
|
+
scopes=scopes,
|
|
99
|
+
quota_project_id=quota_project_id,
|
|
100
|
+
default_scopes=self.AUTH_SCOPES,
|
|
102
101
|
)
|
|
103
102
|
elif credentials is None and not self._ignore_credentials:
|
|
104
|
-
credentials, _ = google.auth.default(
|
|
103
|
+
credentials, _ = google.auth.default(scopes=scopes, quota_project_id=quota_project_id, default_scopes=self.AUTH_SCOPES)
|
|
105
104
|
# Don't apply audience if the credentials file passed from user.
|
|
106
105
|
if hasattr(credentials, "with_gdch_audience"):
|
|
107
106
|
credentials = credentials.with_gdch_audience(api_audience if api_audience else host)
|
tests/integration/goldens/eventarc/google/cloud/eventarc_v1/services/eventarc/transports/base.py
CHANGED
|
@@ -93,8 +93,6 @@ class EventarcTransport(abc.ABC):
|
|
|
93
93
|
be used for service account credentials.
|
|
94
94
|
"""
|
|
95
95
|
|
|
96
|
-
scopes_kwargs = {"scopes": scopes, "default_scopes": self.AUTH_SCOPES}
|
|
97
|
-
|
|
98
96
|
# Save the scopes.
|
|
99
97
|
self._scopes = scopes
|
|
100
98
|
if not hasattr(self, "_ignore_credentials"):
|
|
@@ -108,11 +106,12 @@ class EventarcTransport(abc.ABC):
|
|
|
108
106
|
if credentials_file is not None:
|
|
109
107
|
credentials, _ = google.auth.load_credentials_from_file(
|
|
110
108
|
credentials_file,
|
|
111
|
-
|
|
112
|
-
quota_project_id=quota_project_id
|
|
109
|
+
scopes=scopes,
|
|
110
|
+
quota_project_id=quota_project_id,
|
|
111
|
+
default_scopes=self.AUTH_SCOPES,
|
|
113
112
|
)
|
|
114
113
|
elif credentials is None and not self._ignore_credentials:
|
|
115
|
-
credentials, _ = google.auth.default(
|
|
114
|
+
credentials, _ = google.auth.default(scopes=scopes, quota_project_id=quota_project_id, default_scopes=self.AUTH_SCOPES)
|
|
116
115
|
# Don't apply audience if the credentials file passed from user.
|
|
117
116
|
if hasattr(credentials, "with_gdch_audience"):
|
|
118
117
|
credentials = credentials.with_gdch_audience(api_audience if api_audience else host)
|
|
@@ -88,8 +88,6 @@ class ConfigServiceV2Transport(abc.ABC):
|
|
|
88
88
|
be used for service account credentials.
|
|
89
89
|
"""
|
|
90
90
|
|
|
91
|
-
scopes_kwargs = {"scopes": scopes, "default_scopes": self.AUTH_SCOPES}
|
|
92
|
-
|
|
93
91
|
# Save the scopes.
|
|
94
92
|
self._scopes = scopes
|
|
95
93
|
if not hasattr(self, "_ignore_credentials"):
|
|
@@ -103,11 +101,12 @@ class ConfigServiceV2Transport(abc.ABC):
|
|
|
103
101
|
if credentials_file is not None:
|
|
104
102
|
credentials, _ = google.auth.load_credentials_from_file(
|
|
105
103
|
credentials_file,
|
|
106
|
-
|
|
107
|
-
quota_project_id=quota_project_id
|
|
104
|
+
scopes=scopes,
|
|
105
|
+
quota_project_id=quota_project_id,
|
|
106
|
+
default_scopes=self.AUTH_SCOPES,
|
|
108
107
|
)
|
|
109
108
|
elif credentials is None and not self._ignore_credentials:
|
|
110
|
-
credentials, _ = google.auth.default(
|
|
109
|
+
credentials, _ = google.auth.default(scopes=scopes, quota_project_id=quota_project_id, default_scopes=self.AUTH_SCOPES)
|
|
111
110
|
# Don't apply audience if the credentials file passed from user.
|
|
112
111
|
if hasattr(credentials, "with_gdch_audience"):
|
|
113
112
|
credentials = credentials.with_gdch_audience(api_audience if api_audience else host)
|
|
@@ -88,8 +88,6 @@ class LoggingServiceV2Transport(abc.ABC):
|
|
|
88
88
|
be used for service account credentials.
|
|
89
89
|
"""
|
|
90
90
|
|
|
91
|
-
scopes_kwargs = {"scopes": scopes, "default_scopes": self.AUTH_SCOPES}
|
|
92
|
-
|
|
93
91
|
# Save the scopes.
|
|
94
92
|
self._scopes = scopes
|
|
95
93
|
if not hasattr(self, "_ignore_credentials"):
|
|
@@ -103,11 +101,12 @@ class LoggingServiceV2Transport(abc.ABC):
|
|
|
103
101
|
if credentials_file is not None:
|
|
104
102
|
credentials, _ = google.auth.load_credentials_from_file(
|
|
105
103
|
credentials_file,
|
|
106
|
-
|
|
107
|
-
quota_project_id=quota_project_id
|
|
104
|
+
scopes=scopes,
|
|
105
|
+
quota_project_id=quota_project_id,
|
|
106
|
+
default_scopes=self.AUTH_SCOPES,
|
|
108
107
|
)
|
|
109
108
|
elif credentials is None and not self._ignore_credentials:
|
|
110
|
-
credentials, _ = google.auth.default(
|
|
109
|
+
credentials, _ = google.auth.default(scopes=scopes, quota_project_id=quota_project_id, default_scopes=self.AUTH_SCOPES)
|
|
111
110
|
# Don't apply audience if the credentials file passed from user.
|
|
112
111
|
if hasattr(credentials, "with_gdch_audience"):
|
|
113
112
|
credentials = credentials.with_gdch_audience(api_audience if api_audience else host)
|
|
@@ -88,8 +88,6 @@ class MetricsServiceV2Transport(abc.ABC):
|
|
|
88
88
|
be used for service account credentials.
|
|
89
89
|
"""
|
|
90
90
|
|
|
91
|
-
scopes_kwargs = {"scopes": scopes, "default_scopes": self.AUTH_SCOPES}
|
|
92
|
-
|
|
93
91
|
# Save the scopes.
|
|
94
92
|
self._scopes = scopes
|
|
95
93
|
if not hasattr(self, "_ignore_credentials"):
|
|
@@ -103,11 +101,12 @@ class MetricsServiceV2Transport(abc.ABC):
|
|
|
103
101
|
if credentials_file is not None:
|
|
104
102
|
credentials, _ = google.auth.load_credentials_from_file(
|
|
105
103
|
credentials_file,
|
|
106
|
-
|
|
107
|
-
quota_project_id=quota_project_id
|
|
104
|
+
scopes=scopes,
|
|
105
|
+
quota_project_id=quota_project_id,
|
|
106
|
+
default_scopes=self.AUTH_SCOPES,
|
|
108
107
|
)
|
|
109
108
|
elif credentials is None and not self._ignore_credentials:
|
|
110
|
-
credentials, _ = google.auth.default(
|
|
109
|
+
credentials, _ = google.auth.default(scopes=scopes, quota_project_id=quota_project_id, default_scopes=self.AUTH_SCOPES)
|
|
111
110
|
# Don't apply audience if the credentials file passed from user.
|
|
112
111
|
if hasattr(credentials, "with_gdch_audience"):
|
|
113
112
|
credentials = credentials.with_gdch_audience(api_audience if api_audience else host)
|
|
@@ -88,8 +88,6 @@ class ConfigServiceV2Transport(abc.ABC):
|
|
|
88
88
|
be used for service account credentials.
|
|
89
89
|
"""
|
|
90
90
|
|
|
91
|
-
scopes_kwargs = {"scopes": scopes, "default_scopes": self.AUTH_SCOPES}
|
|
92
|
-
|
|
93
91
|
# Save the scopes.
|
|
94
92
|
self._scopes = scopes
|
|
95
93
|
if not hasattr(self, "_ignore_credentials"):
|
|
@@ -103,11 +101,12 @@ class ConfigServiceV2Transport(abc.ABC):
|
|
|
103
101
|
if credentials_file is not None:
|
|
104
102
|
credentials, _ = google.auth.load_credentials_from_file(
|
|
105
103
|
credentials_file,
|
|
106
|
-
|
|
107
|
-
quota_project_id=quota_project_id
|
|
104
|
+
scopes=scopes,
|
|
105
|
+
quota_project_id=quota_project_id,
|
|
106
|
+
default_scopes=self.AUTH_SCOPES,
|
|
108
107
|
)
|
|
109
108
|
elif credentials is None and not self._ignore_credentials:
|
|
110
|
-
credentials, _ = google.auth.default(
|
|
109
|
+
credentials, _ = google.auth.default(scopes=scopes, quota_project_id=quota_project_id, default_scopes=self.AUTH_SCOPES)
|
|
111
110
|
# Don't apply audience if the credentials file passed from user.
|
|
112
111
|
if hasattr(credentials, "with_gdch_audience"):
|
|
113
112
|
credentials = credentials.with_gdch_audience(api_audience if api_audience else host)
|
|
@@ -88,8 +88,6 @@ class LoggingServiceV2Transport(abc.ABC):
|
|
|
88
88
|
be used for service account credentials.
|
|
89
89
|
"""
|
|
90
90
|
|
|
91
|
-
scopes_kwargs = {"scopes": scopes, "default_scopes": self.AUTH_SCOPES}
|
|
92
|
-
|
|
93
91
|
# Save the scopes.
|
|
94
92
|
self._scopes = scopes
|
|
95
93
|
if not hasattr(self, "_ignore_credentials"):
|
|
@@ -103,11 +101,12 @@ class LoggingServiceV2Transport(abc.ABC):
|
|
|
103
101
|
if credentials_file is not None:
|
|
104
102
|
credentials, _ = google.auth.load_credentials_from_file(
|
|
105
103
|
credentials_file,
|
|
106
|
-
|
|
107
|
-
quota_project_id=quota_project_id
|
|
104
|
+
scopes=scopes,
|
|
105
|
+
quota_project_id=quota_project_id,
|
|
106
|
+
default_scopes=self.AUTH_SCOPES,
|
|
108
107
|
)
|
|
109
108
|
elif credentials is None and not self._ignore_credentials:
|
|
110
|
-
credentials, _ = google.auth.default(
|
|
109
|
+
credentials, _ = google.auth.default(scopes=scopes, quota_project_id=quota_project_id, default_scopes=self.AUTH_SCOPES)
|
|
111
110
|
# Don't apply audience if the credentials file passed from user.
|
|
112
111
|
if hasattr(credentials, "with_gdch_audience"):
|
|
113
112
|
credentials = credentials.with_gdch_audience(api_audience if api_audience else host)
|
|
@@ -88,8 +88,6 @@ class MetricsServiceV2Transport(abc.ABC):
|
|
|
88
88
|
be used for service account credentials.
|
|
89
89
|
"""
|
|
90
90
|
|
|
91
|
-
scopes_kwargs = {"scopes": scopes, "default_scopes": self.AUTH_SCOPES}
|
|
92
|
-
|
|
93
91
|
# Save the scopes.
|
|
94
92
|
self._scopes = scopes
|
|
95
93
|
if not hasattr(self, "_ignore_credentials"):
|
|
@@ -103,11 +101,12 @@ class MetricsServiceV2Transport(abc.ABC):
|
|
|
103
101
|
if credentials_file is not None:
|
|
104
102
|
credentials, _ = google.auth.load_credentials_from_file(
|
|
105
103
|
credentials_file,
|
|
106
|
-
|
|
107
|
-
quota_project_id=quota_project_id
|
|
104
|
+
scopes=scopes,
|
|
105
|
+
quota_project_id=quota_project_id,
|
|
106
|
+
default_scopes=self.AUTH_SCOPES,
|
|
108
107
|
)
|
|
109
108
|
elif credentials is None and not self._ignore_credentials:
|
|
110
|
-
credentials, _ = google.auth.default(
|
|
109
|
+
credentials, _ = google.auth.default(scopes=scopes, quota_project_id=quota_project_id, default_scopes=self.AUTH_SCOPES)
|
|
111
110
|
# Don't apply audience if the credentials file passed from user.
|
|
112
111
|
if hasattr(credentials, "with_gdch_audience"):
|
|
113
112
|
credentials = credentials.with_gdch_audience(api_audience if api_audience else host)
|
tests/integration/goldens/redis/google/cloud/redis_v1/services/cloud_redis/transports/base.py
CHANGED
|
@@ -85,8 +85,6 @@ class CloudRedisTransport(abc.ABC):
|
|
|
85
85
|
be used for service account credentials.
|
|
86
86
|
"""
|
|
87
87
|
|
|
88
|
-
scopes_kwargs = {"scopes": scopes, "default_scopes": self.AUTH_SCOPES}
|
|
89
|
-
|
|
90
88
|
# Save the scopes.
|
|
91
89
|
self._scopes = scopes
|
|
92
90
|
if not hasattr(self, "_ignore_credentials"):
|
|
@@ -100,11 +98,12 @@ class CloudRedisTransport(abc.ABC):
|
|
|
100
98
|
if credentials_file is not None:
|
|
101
99
|
credentials, _ = google.auth.load_credentials_from_file(
|
|
102
100
|
credentials_file,
|
|
103
|
-
|
|
104
|
-
quota_project_id=quota_project_id
|
|
101
|
+
scopes=scopes,
|
|
102
|
+
quota_project_id=quota_project_id,
|
|
103
|
+
default_scopes=self.AUTH_SCOPES,
|
|
105
104
|
)
|
|
106
105
|
elif credentials is None and not self._ignore_credentials:
|
|
107
|
-
credentials, _ = google.auth.default(
|
|
106
|
+
credentials, _ = google.auth.default(scopes=scopes, quota_project_id=quota_project_id, default_scopes=self.AUTH_SCOPES)
|
|
108
107
|
# Don't apply audience if the credentials file passed from user.
|
|
109
108
|
if hasattr(credentials, "with_gdch_audience"):
|
|
110
109
|
credentials = credentials.with_gdch_audience(api_audience if api_audience else host)
|
|
@@ -85,8 +85,6 @@ class CloudRedisTransport(abc.ABC):
|
|
|
85
85
|
be used for service account credentials.
|
|
86
86
|
"""
|
|
87
87
|
|
|
88
|
-
scopes_kwargs = {"scopes": scopes, "default_scopes": self.AUTH_SCOPES}
|
|
89
|
-
|
|
90
88
|
# Save the scopes.
|
|
91
89
|
self._scopes = scopes
|
|
92
90
|
if not hasattr(self, "_ignore_credentials"):
|
|
@@ -100,11 +98,12 @@ class CloudRedisTransport(abc.ABC):
|
|
|
100
98
|
if credentials_file is not None:
|
|
101
99
|
credentials, _ = google.auth.load_credentials_from_file(
|
|
102
100
|
credentials_file,
|
|
103
|
-
|
|
104
|
-
quota_project_id=quota_project_id
|
|
101
|
+
scopes=scopes,
|
|
102
|
+
quota_project_id=quota_project_id,
|
|
103
|
+
default_scopes=self.AUTH_SCOPES,
|
|
105
104
|
)
|
|
106
105
|
elif credentials is None and not self._ignore_credentials:
|
|
107
|
-
credentials, _ = google.auth.default(
|
|
106
|
+
credentials, _ = google.auth.default(scopes=scopes, quota_project_id=quota_project_id, default_scopes=self.AUTH_SCOPES)
|
|
108
107
|
# Don't apply audience if the credentials file passed from user.
|
|
109
108
|
if hasattr(credentials, "with_gdch_audience"):
|
|
110
109
|
credentials = credentials.with_gdch_audience(api_audience if api_audience else host)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|