@@ -78,7 +78,7 @@ def test_delete_operation(transport: str = "grpc"):
78
78
)
79
79
{% else %}
80
80
client = {{ service.async_client_name }}(
81
- credentials=ga_credentials.AnonymousCredentials (), transport=transport,
81
+ credentials=async_anonymous_credentials (), transport=transport,
82
82
)
83
83
{% endif %}
84
84
@@ -120,7 +120,7 @@ def test_delete_operation_field_headers():
120
120
)
121
121
{% else %}
122
122
client = {{ service.async_client_name }}(
123
- credentials=ga_credentials.AnonymousCredentials (),
123
+ credentials=async_anonymous_credentials (),
124
124
)
125
125
{% endif %}
126
126
@@ -164,7 +164,7 @@ def test_delete_operation_from_dict():
164
164
)
165
165
{% else %}
166
166
client = {{ service.async_client_name }}(
167
- credentials=ga_credentials.AnonymousCredentials (),
167
+ credentials=async_anonymous_credentials (),
168
168
)
169
169
{% endif %}
170
170
# Mock the actual call within the gRPC stub, and fake the request.
@@ -207,7 +207,7 @@ def test_cancel_operation(transport: str = "grpc"):
207
207
)
208
208
{% else %}
209
209
client = {{ service.async_client_name }}(
210
- credentials=ga_credentials.AnonymousCredentials (), transport=transport,
210
+ credentials=async_anonymous_credentials (), transport=transport,
211
211
)
212
212
{% endif %}
213
213
@@ -249,7 +249,7 @@ def test_cancel_operation_field_headers():
249
249
)
250
250
{% else %}
251
251
client = {{ service.async_client_name }}(
252
- credentials=ga_credentials.AnonymousCredentials (),
252
+ credentials=async_anonymous_credentials (),
253
253
)
254
254
{% endif %}
255
255
@@ -293,7 +293,7 @@ def test_cancel_operation_from_dict():
293
293
)
294
294
{% else %}
295
295
client = {{ service.async_client_name }}(
296
- credentials=ga_credentials.AnonymousCredentials (),
296
+ credentials=async_anonymous_credentials (),
297
297
)
298
298
{% endif %}
299
299
# Mock the actual call within the gRPC stub, and fake the request.
@@ -335,7 +335,7 @@ def test_wait_operation(transport: str = "grpc"):
335
335
)
336
336
{% else %}
337
337
client = {{ service.async_client_name }}(
338
- credentials=ga_credentials.AnonymousCredentials (), transport=transport,
338
+ credentials=async_anonymous_credentials (), transport=transport,
339
339
)
340
340
{% endif %}
341
341
@@ -377,7 +377,7 @@ def test_wait_operation_field_headers():
377
377
)
378
378
{% else %}
379
379
client = {{ service.async_client_name }}(
380
- credentials=ga_credentials.AnonymousCredentials (),
380
+ credentials=async_anonymous_credentials (),
381
381
)
382
382
{% endif %}
383
383
@@ -421,7 +421,7 @@ def test_wait_operation_from_dict():
421
421
)
422
422
{% else %}
423
423
client = {{ service.async_client_name }}(
424
- credentials=ga_credentials.AnonymousCredentials (),
424
+ credentials=async_anonymous_credentials (),
425
425
)
426
426
{% endif %}
427
427
# Mock the actual call within the gRPC stub, and fake the request.
@@ -464,7 +464,7 @@ def test_get_operation(transport: str = "grpc"):
464
464
)
465
465
{% else %}
466
466
client = {{ service.async_client_name }}(
467
- credentials=ga_credentials.AnonymousCredentials (), transport=transport,
467
+ credentials=async_anonymous_credentials (), transport=transport,
468
468
)
469
469
{% endif %}
470
470
@@ -506,7 +506,7 @@ def test_get_operation_field_headers():
506
506
)
507
507
{% else %}
508
508
client = {{ service.async_client_name }}(
509
- credentials=ga_credentials.AnonymousCredentials (),
509
+ credentials=async_anonymous_credentials (),
510
510
)
511
511
{% endif %}
512
512
@@ -550,7 +550,7 @@ def test_get_operation_from_dict():
550
550
)
551
551
{% else %}
552
552
client = {{ service.async_client_name }}(
553
- credentials=ga_credentials.AnonymousCredentials (),
553
+ credentials=async_anonymous_credentials (),
554
554
)
555
555
{% endif %}
556
556
# Mock the actual call within the gRPC stub, and fake the request.
@@ -593,7 +593,7 @@ def test_list_operations(transport: str = "grpc"):
593
593
)
594
594
{% else %}
595
595
client = {{ service.async_client_name }}(
596
- credentials=ga_credentials.AnonymousCredentials (), transport=transport,
596
+ credentials=async_anonymous_credentials (), transport=transport,
597
597
)
598
598
{% endif %}
599
599
@@ -635,7 +635,7 @@ def test_list_operations_field_headers():
635
635
)
636
636
{% else %}
637
637
client = {{ service.async_client_name }}(
638
- credentials=ga_credentials.AnonymousCredentials (),
638
+ credentials=async_anonymous_credentials (),
639
639
)
640
640
{% endif %}
641
641
@@ -679,7 +679,7 @@ def test_list_operations_from_dict():
679
679
)
680
680
{% else %}
681
681
client = {{ service.async_client_name }}(
682
- credentials=ga_credentials.AnonymousCredentials (),
682
+ credentials=async_anonymous_credentials (),
683
683
)
684
684
{% endif %}
685
685
# Mock the actual call within the gRPC stub, and fake the request.
@@ -728,7 +728,7 @@ def test_list_locations(transport: str = "grpc"):
728
728
)
729
729
{% else %}
730
730
client = {{ service.async_client_name }}(
731
- credentials=ga_credentials.AnonymousCredentials (), transport=transport,
731
+ credentials=async_anonymous_credentials (), transport=transport,
732
732
)
733
733
{% endif %}
734
734
@@ -770,7 +770,7 @@ def test_list_locations_field_headers():
770
770
)
771
771
{% else %}
772
772
client = {{ service.async_client_name }}(
773
- credentials=ga_credentials.AnonymousCredentials (),
773
+ credentials=async_anonymous_credentials (),
774
774
)
775
775
{% endif %}
776
776
@@ -814,7 +814,7 @@ def test_list_locations_from_dict():
814
814
)
815
815
{% else %}
816
816
client = {{ service.async_client_name }}(
817
- credentials=ga_credentials.AnonymousCredentials (),
817
+ credentials=async_anonymous_credentials (),
818
818
)
819
819
{% endif %}
820
820
# Mock the actual call within the gRPC stub, and fake the request.
@@ -859,7 +859,7 @@ def test_get_location(transport: str = "grpc"):
859
859
)
860
860
{% else %}
861
861
client = {{ service.async_client_name }}(
862
- credentials=ga_credentials.AnonymousCredentials (), transport=transport,
862
+ credentials=async_anonymous_credentials (), transport=transport,
863
863
)
864
864
{% endif %}
865
865
@@ -900,7 +900,7 @@ def test_get_location_field_headers():
900
900
credentials=ga_credentials.AnonymousCredentials())
901
901
{% else %}
902
902
client = {{ service.async_client_name }}(
903
- credentials=ga_credentials.AnonymousCredentials ()
903
+ credentials=async_anonymous_credentials ()
904
904
)
905
905
{% endif %}
906
906
@@ -944,7 +944,7 @@ def test_get_location_from_dict():
944
944
)
945
945
{% else %}
946
946
client = {{ service.async_client_name }}(
947
- credentials=ga_credentials.AnonymousCredentials (),
947
+ credentials=async_anonymous_credentials (),
948
948
)
949
949
{% endif %}
950
950
# Mock the actual call within the gRPC stub, and fake the request.
@@ -990,7 +990,7 @@ def test_set_iam_policy(transport: str = "grpc"):
990
990
)
991
991
{% else %}
992
992
client = {{ service.async_client_name }}(
993
- credentials=ga_credentials.AnonymousCredentials (), transport=transport,
993
+ credentials=async_anonymous_credentials (), transport=transport,
994
994
)
995
995
{% endif %}
996
996
@@ -1038,7 +1038,7 @@ def test_set_iam_policy_field_headers():
1038
1038
)
1039
1039
{% else %}
1040
1040
client = {{ service.async_client_name }}(
1041
- credentials=ga_credentials.AnonymousCredentials (),
1041
+ credentials=async_anonymous_credentials (),
1042
1042
)
1043
1043
{% endif %}
1044
1044
@@ -1090,7 +1090,7 @@ def test_set_iam_policy_from_dict():
1090
1090
@pytest.mark.asyncio
1091
1091
async def test_set_iam_policy_from_dict_async():
1092
1092
client = {{ service.async_client_name }}(
1093
- credentials=ga_credentials.AnonymousCredentials (),
1093
+ credentials=async_anonymous_credentials (),
1094
1094
)
1095
1095
# Mock the actual call within the gRPC stub, and fake the request.
1096
1096
with mock.patch.object(type(client.transport.set_iam_policy), "__call__") as call:
@@ -1141,7 +1141,7 @@ def test_get_iam_policy(transport: str = "grpc"):
1141
1141
@pytest.mark.asyncio
1142
1142
async def test_get_iam_policy_async(transport: str = "grpc_asyncio"):
1143
1143
client = {{ service.async_client_name }}(
1144
- credentials=ga_credentials.AnonymousCredentials (), transport=transport,
1144
+ credentials=async_anonymous_credentials (), transport=transport,
1145
1145
)
1146
1146
1147
1147
# Everything is optional in proto3 as far as the runtime is concerned,
@@ -1202,7 +1202,7 @@ def test_get_iam_policy_field_headers():
1202
1202
@pytest.mark.asyncio
1203
1203
async def test_get_iam_policy_field_headers_async():
1204
1204
client = {{ service.async_client_name }}(
1205
- credentials=ga_credentials.AnonymousCredentials (),
1205
+ credentials=async_anonymous_credentials (),
1206
1206
)
1207
1207
1208
1208
# Any value that is part of the HTTP/1.1 URI should be sent as
@@ -1248,7 +1248,7 @@ def test_get_iam_policy_from_dict():
1248
1248
@pytest.mark.asyncio
1249
1249
async def test_get_iam_policy_from_dict_async():
1250
1250
client = {{ service.async_client_name }}(
1251
- credentials=ga_credentials.AnonymousCredentials (),
1251
+ credentials=async_anonymous_credentials (),
1252
1252
)
1253
1253
# Mock the actual call within the gRPC stub, and fake the request.
1254
1254
with mock.patch.object(type(client.transport.get_iam_policy), "__call__") as call:
@@ -1301,7 +1301,7 @@ def test_test_iam_permissions(transport: str = "grpc"):
1301
1301
@pytest.mark.asyncio
1302
1302
async def test_test_iam_permissions_async(transport: str = "grpc_asyncio"):
1303
1303
client = {{ service.async_client_name }}(
1304
- credentials=ga_credentials.AnonymousCredentials (), transport=transport,
1304
+ credentials=async_anonymous_credentials (), transport=transport,
1305
1305
)
1306
1306
1307
1307
# Everything is optional in proto3 as far as the runtime is concerned,
@@ -1362,7 +1362,7 @@ def test_test_iam_permissions_field_headers():
1362
1362
@pytest.mark.asyncio
1363
1363
async def test_test_iam_permissions_field_headers_async():
1364
1364
client = {{ service.async_client_name }}(
1365
- credentials=ga_credentials.AnonymousCredentials (),
1365
+ credentials=async_anonymous_credentials (),
1366
1366
)
1367
1367
1368
1368
# Any value that is part of the HTTP/1.1 URI should be sent as
@@ -1412,7 +1412,7 @@ def test_test_iam_permissions_from_dict():
1412
1412
@pytest.mark.asyncio
1413
1413
async def test_test_iam_permissions_from_dict_async():
1414
1414
client = {{ service.async_client_name }}(
1415
- credentials=ga_credentials.AnonymousCredentials (),
1415
+ credentials=async_anonymous_credentials (),
1416
1416
)
1417
1417
# Mock the actual call within the gRPC stub, and fake the request.
1418
1418
with mock.patch.object(
@@ -1449,7 +1449,7 @@ def test_set_iam_policy(transport: str = "grpc"):
1449
1449
)
1450
1450
{% else %}
1451
1451
client = {{ service.async_client_name }}(
1452
- credentials=ga_credentials.AnonymousCredentials (), transport=transport,
1452
+ credentials=async_anonymous_credentials (), transport=transport,
1453
1453
)
1454
1454
{% endif %}
1455
1455
@@ -1497,7 +1497,7 @@ def test_set_iam_policy_field_headers():
1497
1497
)
1498
1498
{% else %}
1499
1499
client = {{ service.async_client_name }}(
1500
- credentials=ga_credentials.AnonymousCredentials (),
1500
+ credentials=async_anonymous_credentials (),
1501
1501
)
1502
1502
{% endif %}
1503
1503
@@ -1549,7 +1549,7 @@ def test_set_iam_policy_from_dict():
1549
1549
@pytest.mark.asyncio
1550
1550
async def test_set_iam_policy_from_dict_async():
1551
1551
client = {{ service.async_client_name }}(
1552
- credentials=ga_credentials.AnonymousCredentials (),
1552
+ credentials=async_anonymous_credentials (),
1553
1553
)
1554
1554
# Mock the actual call within the gRPC stub, and fake the request.
1555
1555
with mock.patch.object(type(client.transport.set_iam_policy), "__call__") as call:
@@ -1601,7 +1601,7 @@ def test_get_iam_policy(transport: str = "grpc"):
1601
1601
@pytest.mark.asyncio
1602
1602
async def test_get_iam_policy_async(transport: str = "grpc_asyncio"):
1603
1603
client = {{ service.async_client_name }}(
1604
- credentials=ga_credentials.AnonymousCredentials (), transport=transport,
1604
+ credentials=async_anonymous_credentials (), transport=transport,
1605
1605
)
1606
1606
1607
1607
# Everything is optional in proto3 as far as the runtime is concerned,
@@ -1662,7 +1662,7 @@ def test_get_iam_policy_field_headers():
1662
1662
@pytest.mark.asyncio
1663
1663
async def test_get_iam_policy_field_headers_async():
1664
1664
client = {{ service.async_client_name }}(
1665
- credentials=ga_credentials.AnonymousCredentials (),
1665
+ credentials=async_anonymous_credentials (),
1666
1666
)
1667
1667
1668
1668
# Any value that is part of the HTTP/1.1 URI should be sent as
@@ -1708,7 +1708,7 @@ def test_get_iam_policy_from_dict():
1708
1708
@pytest.mark.asyncio
1709
1709
async def test_get_iam_policy_from_dict_async():
1710
1710
client = {{ service.async_client_name }}(
1711
- credentials=ga_credentials.AnonymousCredentials (),
1711
+ credentials=async_anonymous_credentials (),
1712
1712
)
1713
1713
# Mock the actual call within the gRPC stub, and fake the request.
1714
1714
with mock.patch.object(type(client.transport.get_iam_policy), "__call__") as call:
@@ -1762,7 +1762,7 @@ def test_test_iam_permissions(transport: str = "grpc"):
1762
1762
@pytest.mark.asyncio
1763
1763
async def test_test_iam_permissions_async(transport: str = "grpc_asyncio"):
1764
1764
client = {{ service.async_client_name }}(
1765
- credentials=ga_credentials.AnonymousCredentials (), transport=transport,
1765
+ credentials=async_anonymous_credentials (), transport=transport,
1766
1766
)
1767
1767
1768
1768
# Everything is optional in proto3 as far as the runtime is concerned,
@@ -1823,7 +1823,7 @@ def test_test_iam_permissions_field_headers():
1823
1823
@pytest.mark.asyncio
1824
1824
async def test_test_iam_permissions_field_headers_async():
1825
1825
client = {{ service.async_client_name }}(
1826
- credentials=ga_credentials.AnonymousCredentials (),
1826
+ credentials=async_anonymous_credentials (),
1827
1827
)
1828
1828
1829
1829
# Any value that is part of the HTTP/1.1 URI should be sent as
@@ -1873,7 +1873,7 @@ def test_test_iam_permissions_from_dict():
1873
1873
@pytest.mark.asyncio
1874
1874
async def test_test_iam_permissions_from_dict_async():
1875
1875
client = {{ service.async_client_name }}(
1876
- credentials=ga_credentials.AnonymousCredentials (),
1876
+ credentials=async_anonymous_credentials (),
1877
1877
)
1878
1878
# Mock the actual call within the gRPC stub, and fake the request.
1879
1879
with mock.patch.object(
0 commit comments