Skip to content

Commit 08a6cd9

Browse files
1 parent aa73417 commit 08a6cd9

File tree

93 files changed

+48
-23409
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+48
-23409
lines changed

β€Žgoogle/cloud/errorreporting_v1beta1/services/error_group_service/async_client.pyβ€Ž

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,10 @@ async def sample_get_group():
375375
# Create or coerce a protobuf request object.
376376
# - Quick check: If we got a request object, we should *not* have
377377
# gotten any keyword arguments that map to the request.
378-
has_flattened_params = any([group_name])
378+
flattened_params = [group_name]
379+
has_flattened_params = (
380+
len([param for param in flattened_params if param is not None]) > 0
381+
)
379382
if request is not None and has_flattened_params:
380383
raise ValueError(
381384
"If the `request` argument is set, then none of "
@@ -485,7 +488,10 @@ async def sample_update_group():
485488
# Create or coerce a protobuf request object.
486489
# - Quick check: If we got a request object, we should *not* have
487490
# gotten any keyword arguments that map to the request.
488-
has_flattened_params = any([group])
491+
flattened_params = [group]
492+
has_flattened_params = (
493+
len([param for param in flattened_params if param is not None]) > 0
494+
)
489495
if request is not None and has_flattened_params:
490496
raise ValueError(
491497
"If the `request` argument is set, then none of "

β€Žgoogle/cloud/errorreporting_v1beta1/services/error_group_service/client.pyβ€Ž

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -791,7 +791,10 @@ def sample_get_group():
791791
# Create or coerce a protobuf request object.
792792
# - Quick check: If we got a request object, we should *not* have
793793
# gotten any keyword arguments that map to the request.
794-
has_flattened_params = any([group_name])
794+
flattened_params = [group_name]
795+
has_flattened_params = (
796+
len([param for param in flattened_params if param is not None]) > 0
797+
)
795798
if request is not None and has_flattened_params:
796799
raise ValueError(
797800
"If the `request` argument is set, then none of "
@@ -898,7 +901,10 @@ def sample_update_group():
898901
# Create or coerce a protobuf request object.
899902
# - Quick check: If we got a request object, we should *not* have
900903
# gotten any keyword arguments that map to the request.
901-
has_flattened_params = any([group])
904+
flattened_params = [group]
905+
has_flattened_params = (
906+
len([param for param in flattened_params if param is not None]) > 0
907+
)
902908
if request is not None and has_flattened_params:
903909
raise ValueError(
904910
"If the `request` argument is set, then none of "

β€Žgoogle/cloud/errorreporting_v1beta1/services/error_stats_service/async_client.pyβ€Ž

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,10 @@ async def sample_list_group_stats():
403403
# Create or coerce a protobuf request object.
404404
# - Quick check: If we got a request object, we should *not* have
405405
# gotten any keyword arguments that map to the request.
406-
has_flattened_params = any([project_name, time_range])
406+
flattened_params = [project_name, time_range]
407+
has_flattened_params = (
408+
len([param for param in flattened_params if param is not None]) > 0
409+
)
407410
if request is not None and has_flattened_params:
408411
raise ValueError(
409412
"If the `request` argument is set, then none of "
@@ -555,7 +558,10 @@ async def sample_list_events():
555558
# Create or coerce a protobuf request object.
556559
# - Quick check: If we got a request object, we should *not* have
557560
# gotten any keyword arguments that map to the request.
558-
has_flattened_params = any([project_name, group_id])
561+
flattened_params = [project_name, group_id]
562+
has_flattened_params = (
563+
len([param for param in flattened_params if param is not None]) > 0
564+
)
559565
if request is not None and has_flattened_params:
560566
raise ValueError(
561567
"If the `request` argument is set, then none of "
@@ -688,7 +694,10 @@ async def sample_delete_events():
688694
# Create or coerce a protobuf request object.
689695
# - Quick check: If we got a request object, we should *not* have
690696
# gotten any keyword arguments that map to the request.
691-
has_flattened_params = any([project_name])
697+
flattened_params = [project_name]
698+
has_flattened_params = (
699+
len([param for param in flattened_params if param is not None]) > 0
700+
)
692701
if request is not None and has_flattened_params:
693702
raise ValueError(
694703
"If the `request` argument is set, then none of "

β€Žgoogle/cloud/errorreporting_v1beta1/services/error_stats_service/client.pyβ€Ž

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,10 @@ def sample_list_group_stats():
819819
# Create or coerce a protobuf request object.
820820
# - Quick check: If we got a request object, we should *not* have
821821
# gotten any keyword arguments that map to the request.
822-
has_flattened_params = any([project_name, time_range])
822+
flattened_params = [project_name, time_range]
823+
has_flattened_params = (
824+
len([param for param in flattened_params if param is not None]) > 0
825+
)
823826
if request is not None and has_flattened_params:
824827
raise ValueError(
825828
"If the `request` argument is set, then none of "
@@ -968,7 +971,10 @@ def sample_list_events():
968971
# Create or coerce a protobuf request object.
969972
# - Quick check: If we got a request object, we should *not* have
970973
# gotten any keyword arguments that map to the request.
971-
has_flattened_params = any([project_name, group_id])
974+
flattened_params = [project_name, group_id]
975+
has_flattened_params = (
976+
len([param for param in flattened_params if param is not None]) > 0
977+
)
972978
if request is not None and has_flattened_params:
973979
raise ValueError(
974980
"If the `request` argument is set, then none of "
@@ -1098,7 +1104,10 @@ def sample_delete_events():
10981104
# Create or coerce a protobuf request object.
10991105
# - Quick check: If we got a request object, we should *not* have
11001106
# gotten any keyword arguments that map to the request.
1101-
has_flattened_params = any([project_name])
1107+
flattened_params = [project_name]
1108+
has_flattened_params = (
1109+
len([param for param in flattened_params if param is not None]) > 0
1110+
)
11021111
if request is not None and has_flattened_params:
11031112
raise ValueError(
11041113
"If the `request` argument is set, then none of "

β€Žgoogle/cloud/errorreporting_v1beta1/services/report_errors_service/async_client.pyβ€Ž

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,10 @@ async def sample_report_error_event():
392392
# Create or coerce a protobuf request object.
393393
# - Quick check: If we got a request object, we should *not* have
394394
# gotten any keyword arguments that map to the request.
395-
has_flattened_params = any([project_name, event])
395+
flattened_params = [project_name, event]
396+
has_flattened_params = (
397+
len([param for param in flattened_params if param is not None]) > 0
398+
)
396399
if request is not None and has_flattened_params:
397400
raise ValueError(
398401
"If the `request` argument is set, then none of "

β€Žgoogle/cloud/errorreporting_v1beta1/services/report_errors_service/client.pyβ€Ž

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,10 @@ def sample_report_error_event():
795795
# Create or coerce a protobuf request object.
796796
# - Quick check: If we got a request object, we should *not* have
797797
# gotten any keyword arguments that map to the request.
798-
has_flattened_params = any([project_name, event])
798+
flattened_params = [project_name, event]
799+
has_flattened_params = (
800+
len([param for param in flattened_params if param is not None]) > 0
801+
)
799802
if request is not None and has_flattened_params:
800803
raise ValueError(
801804
"If the `request` argument is set, then none of "

β€Žowl-bot-staging/v1beta1/.coveragercβ€Ž

Lines changed: 0 additions & 13 deletions
This file was deleted.

β€Žowl-bot-staging/v1beta1/.flake8β€Ž

Lines changed: 0 additions & 33 deletions
This file was deleted.

β€Žowl-bot-staging/v1beta1/MANIFEST.inβ€Ž

Lines changed: 0 additions & 2 deletions
This file was deleted.

β€Žowl-bot-staging/v1beta1/README.rstβ€Ž

Lines changed: 0 additions & 143 deletions
This file was deleted.

0 commit comments

Comments
Β (0)