File tree Expand file tree Collapse file tree
gapic/templates/%namespace/%name_%version/%sub
tests/integration/goldens
asset/google/cloud/asset_v1
credentials/google/iam/credentials_v1
eventarc/google/cloud/eventarc_v1
logging_internal/google/cloud/logging_v2
logging/google/cloud/logging_v2
redis_selective/google/cloud/redis_v1
redis/google/cloud/redis_v1
storagebatchoperations/google/cloud/storagebatchoperations_v1 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import uuid
44
55try:
66 from google.api_core.gapic_v1.requests import setup_request_id # type: ignore
7- except ImportError:
7+ except ImportError: # pragma: NO COVER
88 # TODO: Remove this fallback when google-api-core >= 2.18.0 is the minimum required version.
99 def setup_request_id(request, field_name: str, is_proto3_optional: bool):
1010 """Populate a UUID4 field in the request if it is not already set.
Original file line number Diff line number Diff line change 1818
1919try :
2020 from google .api_core .gapic_v1 .requests import setup_request_id # type: ignore
21- except ImportError :
21+ except ImportError : # pragma: NO COVER
2222 # TODO: Remove this fallback when google-api-core >= 2.18.0 is the minimum required version.
2323 def setup_request_id (request , field_name : str , is_proto3_optional : bool ):
2424 """Populate a UUID4 field in the request if it is not already set.
Original file line number Diff line number Diff line change 1818
1919try :
2020 from google .api_core .gapic_v1 .requests import setup_request_id # type: ignore
21- except ImportError :
21+ except ImportError : # pragma: NO COVER
2222 # TODO: Remove this fallback when google-api-core >= 2.18.0 is the minimum required version.
2323 def setup_request_id (request , field_name : str , is_proto3_optional : bool ):
2424 """Populate a UUID4 field in the request if it is not already set.
Original file line number Diff line number Diff line change 1818
1919try :
2020 from google .api_core .gapic_v1 .requests import setup_request_id # type: ignore
21- except ImportError :
21+ except ImportError : # pragma: NO COVER
2222 # TODO: Remove this fallback when google-api-core >= 2.18.0 is the minimum required version.
2323 def setup_request_id (request , field_name : str , is_proto3_optional : bool ):
2424 """Populate a UUID4 field in the request if it is not already set.
Original file line number Diff line number Diff line change 1818
1919try :
2020 from google .api_core .gapic_v1 .requests import setup_request_id # type: ignore
21- except ImportError :
21+ except ImportError : # pragma: NO COVER
2222 # TODO: Remove this fallback when google-api-core >= 2.18.0 is the minimum required version.
2323 def setup_request_id (request , field_name : str , is_proto3_optional : bool ):
2424 """Populate a UUID4 field in the request if it is not already set.
Original file line number Diff line number Diff line change 1818
1919try :
2020 from google .api_core .gapic_v1 .requests import setup_request_id # type: ignore
21- except ImportError :
21+ except ImportError : # pragma: NO COVER
2222 # TODO: Remove this fallback when google-api-core >= 2.18.0 is the minimum required version.
2323 def setup_request_id (request , field_name : str , is_proto3_optional : bool ):
2424 """Populate a UUID4 field in the request if it is not already set.
Original file line number Diff line number Diff line change 1818
1919try :
2020 from google .api_core .gapic_v1 .requests import setup_request_id # type: ignore
21- except ImportError :
21+ except ImportError : # pragma: NO COVER
2222 # TODO: Remove this fallback when google-api-core >= 2.18.0 is the minimum required version.
2323 def setup_request_id (request , field_name : str , is_proto3_optional : bool ):
2424 """Populate a UUID4 field in the request if it is not already set.
Original file line number Diff line number Diff line change 1818
1919try :
2020 from google .api_core .gapic_v1 .requests import setup_request_id # type: ignore
21- except ImportError :
21+ except ImportError : # pragma: NO COVER
2222 # TODO: Remove this fallback when google-api-core >= 2.18.0 is the minimum required version.
2323 def setup_request_id (request , field_name : str , is_proto3_optional : bool ):
2424 """Populate a UUID4 field in the request if it is not already set.
Original file line number Diff line number Diff line change 1818
1919try :
2020 from google .api_core .gapic_v1 .requests import setup_request_id # type: ignore
21- except ImportError :
21+ except ImportError : # pragma: NO COVER
2222 # TODO: Remove this fallback when google-api-core >= 2.18.0 is the minimum required version.
2323 def setup_request_id (request , field_name : str , is_proto3_optional : bool ):
2424 """Populate a UUID4 field in the request if it is not already set.
You can’t perform that action at this time.
0 commit comments