google-api-core 2.18.0__tar.gz → 2.19.0__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 (112) hide show
  1. {google-api-core-2.18.0/google_api_core.egg-info → google-api-core-2.19.0}/PKG-INFO +1 -1
  2. {google-api-core-2.18.0 → google-api-core-2.19.0}/google/api_core/version.py +1 -1
  3. google-api-core-2.19.0/google/api_core/version_header.py +29 -0
  4. {google-api-core-2.18.0 → google-api-core-2.19.0/google_api_core.egg-info}/PKG-INFO +1 -1
  5. {google-api-core-2.18.0 → google-api-core-2.19.0}/google_api_core.egg-info/SOURCES.txt +2 -0
  6. google-api-core-2.19.0/tests/unit/test_version_header.py +23 -0
  7. {google-api-core-2.18.0 → google-api-core-2.19.0}/LICENSE +0 -0
  8. {google-api-core-2.18.0 → google-api-core-2.19.0}/MANIFEST.in +0 -0
  9. {google-api-core-2.18.0 → google-api-core-2.19.0}/README.rst +0 -0
  10. {google-api-core-2.18.0 → google-api-core-2.19.0}/google/api_core/__init__.py +0 -0
  11. {google-api-core-2.18.0 → google-api-core-2.19.0}/google/api_core/bidi.py +0 -0
  12. {google-api-core-2.18.0 → google-api-core-2.19.0}/google/api_core/client_info.py +0 -0
  13. {google-api-core-2.18.0 → google-api-core-2.19.0}/google/api_core/client_options.py +0 -0
  14. {google-api-core-2.18.0 → google-api-core-2.19.0}/google/api_core/datetime_helpers.py +0 -0
  15. {google-api-core-2.18.0 → google-api-core-2.19.0}/google/api_core/exceptions.py +0 -0
  16. {google-api-core-2.18.0 → google-api-core-2.19.0}/google/api_core/extended_operation.py +0 -0
  17. {google-api-core-2.18.0 → google-api-core-2.19.0}/google/api_core/future/__init__.py +0 -0
  18. {google-api-core-2.18.0 → google-api-core-2.19.0}/google/api_core/future/_helpers.py +0 -0
  19. {google-api-core-2.18.0 → google-api-core-2.19.0}/google/api_core/future/async_future.py +0 -0
  20. {google-api-core-2.18.0 → google-api-core-2.19.0}/google/api_core/future/base.py +0 -0
  21. {google-api-core-2.18.0 → google-api-core-2.19.0}/google/api_core/future/polling.py +0 -0
  22. {google-api-core-2.18.0 → google-api-core-2.19.0}/google/api_core/gapic_v1/__init__.py +0 -0
  23. {google-api-core-2.18.0 → google-api-core-2.19.0}/google/api_core/gapic_v1/client_info.py +0 -0
  24. {google-api-core-2.18.0 → google-api-core-2.19.0}/google/api_core/gapic_v1/config.py +0 -0
  25. {google-api-core-2.18.0 → google-api-core-2.19.0}/google/api_core/gapic_v1/config_async.py +0 -0
  26. {google-api-core-2.18.0 → google-api-core-2.19.0}/google/api_core/gapic_v1/method.py +0 -0
  27. {google-api-core-2.18.0 → google-api-core-2.19.0}/google/api_core/gapic_v1/method_async.py +0 -0
  28. {google-api-core-2.18.0 → google-api-core-2.19.0}/google/api_core/gapic_v1/routing_header.py +0 -0
  29. {google-api-core-2.18.0 → google-api-core-2.19.0}/google/api_core/general_helpers.py +0 -0
  30. {google-api-core-2.18.0 → google-api-core-2.19.0}/google/api_core/grpc_helpers.py +0 -0
  31. {google-api-core-2.18.0 → google-api-core-2.19.0}/google/api_core/grpc_helpers_async.py +0 -0
  32. {google-api-core-2.18.0 → google-api-core-2.19.0}/google/api_core/iam.py +0 -0
  33. {google-api-core-2.18.0 → google-api-core-2.19.0}/google/api_core/operation.py +0 -0
  34. {google-api-core-2.18.0 → google-api-core-2.19.0}/google/api_core/operation_async.py +0 -0
  35. {google-api-core-2.18.0 → google-api-core-2.19.0}/google/api_core/operations_v1/__init__.py +0 -0
  36. {google-api-core-2.18.0 → google-api-core-2.19.0}/google/api_core/operations_v1/abstract_operations_client.py +0 -0
  37. {google-api-core-2.18.0 → google-api-core-2.19.0}/google/api_core/operations_v1/operations_async_client.py +0 -0
  38. {google-api-core-2.18.0 → google-api-core-2.19.0}/google/api_core/operations_v1/operations_client.py +0 -0
  39. {google-api-core-2.18.0 → google-api-core-2.19.0}/google/api_core/operations_v1/operations_client_config.py +0 -0
  40. {google-api-core-2.18.0 → google-api-core-2.19.0}/google/api_core/operations_v1/pagers.py +0 -0
  41. {google-api-core-2.18.0 → google-api-core-2.19.0}/google/api_core/operations_v1/transports/__init__.py +0 -0
  42. {google-api-core-2.18.0 → google-api-core-2.19.0}/google/api_core/operations_v1/transports/base.py +0 -0
  43. {google-api-core-2.18.0 → google-api-core-2.19.0}/google/api_core/operations_v1/transports/rest.py +0 -0
  44. {google-api-core-2.18.0 → google-api-core-2.19.0}/google/api_core/page_iterator.py +0 -0
  45. {google-api-core-2.18.0 → google-api-core-2.19.0}/google/api_core/page_iterator_async.py +0 -0
  46. {google-api-core-2.18.0 → google-api-core-2.19.0}/google/api_core/path_template.py +0 -0
  47. {google-api-core-2.18.0 → google-api-core-2.19.0}/google/api_core/protobuf_helpers.py +0 -0
  48. {google-api-core-2.18.0 → google-api-core-2.19.0}/google/api_core/py.typed +0 -0
  49. {google-api-core-2.18.0 → google-api-core-2.19.0}/google/api_core/rest_helpers.py +0 -0
  50. {google-api-core-2.18.0 → google-api-core-2.19.0}/google/api_core/rest_streaming.py +0 -0
  51. {google-api-core-2.18.0 → google-api-core-2.19.0}/google/api_core/retry/__init__.py +0 -0
  52. {google-api-core-2.18.0 → google-api-core-2.19.0}/google/api_core/retry/retry_base.py +0 -0
  53. {google-api-core-2.18.0 → google-api-core-2.19.0}/google/api_core/retry/retry_streaming.py +0 -0
  54. {google-api-core-2.18.0 → google-api-core-2.19.0}/google/api_core/retry/retry_streaming_async.py +0 -0
  55. {google-api-core-2.18.0 → google-api-core-2.19.0}/google/api_core/retry/retry_unary.py +0 -0
  56. {google-api-core-2.18.0 → google-api-core-2.19.0}/google/api_core/retry/retry_unary_async.py +0 -0
  57. {google-api-core-2.18.0 → google-api-core-2.19.0}/google/api_core/retry_async.py +0 -0
  58. {google-api-core-2.18.0 → google-api-core-2.19.0}/google/api_core/timeout.py +0 -0
  59. {google-api-core-2.18.0 → google-api-core-2.19.0}/google/api_core/universe.py +0 -0
  60. {google-api-core-2.18.0 → google-api-core-2.19.0}/google_api_core.egg-info/dependency_links.txt +0 -0
  61. {google-api-core-2.18.0 → google-api-core-2.19.0}/google_api_core.egg-info/not-zip-safe +0 -0
  62. {google-api-core-2.18.0 → google-api-core-2.19.0}/google_api_core.egg-info/requires.txt +0 -0
  63. {google-api-core-2.18.0 → google-api-core-2.19.0}/google_api_core.egg-info/top_level.txt +0 -0
  64. {google-api-core-2.18.0 → google-api-core-2.19.0}/setup.cfg +0 -0
  65. {google-api-core-2.18.0 → google-api-core-2.19.0}/setup.py +0 -0
  66. {google-api-core-2.18.0 → google-api-core-2.19.0}/tests/__init__.py +0 -0
  67. {google-api-core-2.18.0 → google-api-core-2.19.0}/tests/asyncio/__init__.py +0 -0
  68. {google-api-core-2.18.0 → google-api-core-2.19.0}/tests/asyncio/future/__init__.py +0 -0
  69. {google-api-core-2.18.0 → google-api-core-2.19.0}/tests/asyncio/future/test_async_future.py +0 -0
  70. {google-api-core-2.18.0 → google-api-core-2.19.0}/tests/asyncio/gapic/test_config_async.py +0 -0
  71. {google-api-core-2.18.0 → google-api-core-2.19.0}/tests/asyncio/gapic/test_method_async.py +0 -0
  72. {google-api-core-2.18.0 → google-api-core-2.19.0}/tests/asyncio/operations_v1/__init__.py +0 -0
  73. {google-api-core-2.18.0 → google-api-core-2.19.0}/tests/asyncio/operations_v1/test_operations_async_client.py +0 -0
  74. {google-api-core-2.18.0 → google-api-core-2.19.0}/tests/asyncio/retry/__init__.py +0 -0
  75. {google-api-core-2.18.0 → google-api-core-2.19.0}/tests/asyncio/retry/test_retry_streaming_async.py +0 -0
  76. {google-api-core-2.18.0 → google-api-core-2.19.0}/tests/asyncio/retry/test_retry_unary_async.py +0 -0
  77. {google-api-core-2.18.0 → google-api-core-2.19.0}/tests/asyncio/test_grpc_helpers_async.py +0 -0
  78. {google-api-core-2.18.0 → google-api-core-2.19.0}/tests/asyncio/test_operation_async.py +0 -0
  79. {google-api-core-2.18.0 → google-api-core-2.19.0}/tests/asyncio/test_page_iterator_async.py +0 -0
  80. {google-api-core-2.18.0 → google-api-core-2.19.0}/tests/unit/__init__.py +0 -0
  81. {google-api-core-2.18.0 → google-api-core-2.19.0}/tests/unit/future/__init__.py +0 -0
  82. {google-api-core-2.18.0 → google-api-core-2.19.0}/tests/unit/future/test__helpers.py +0 -0
  83. {google-api-core-2.18.0 → google-api-core-2.19.0}/tests/unit/future/test_polling.py +0 -0
  84. {google-api-core-2.18.0 → google-api-core-2.19.0}/tests/unit/gapic/test_client_info.py +0 -0
  85. {google-api-core-2.18.0 → google-api-core-2.19.0}/tests/unit/gapic/test_config.py +0 -0
  86. {google-api-core-2.18.0 → google-api-core-2.19.0}/tests/unit/gapic/test_method.py +0 -0
  87. {google-api-core-2.18.0 → google-api-core-2.19.0}/tests/unit/gapic/test_routing_header.py +0 -0
  88. {google-api-core-2.18.0 → google-api-core-2.19.0}/tests/unit/operations_v1/__init__.py +0 -0
  89. {google-api-core-2.18.0 → google-api-core-2.19.0}/tests/unit/operations_v1/test_operations_client.py +0 -0
  90. {google-api-core-2.18.0 → google-api-core-2.19.0}/tests/unit/operations_v1/test_operations_rest_client.py +0 -0
  91. {google-api-core-2.18.0 → google-api-core-2.19.0}/tests/unit/retry/__init__.py +0 -0
  92. {google-api-core-2.18.0 → google-api-core-2.19.0}/tests/unit/retry/test_retry_base.py +0 -0
  93. {google-api-core-2.18.0 → google-api-core-2.19.0}/tests/unit/retry/test_retry_imports.py +0 -0
  94. {google-api-core-2.18.0 → google-api-core-2.19.0}/tests/unit/retry/test_retry_streaming.py +0 -0
  95. {google-api-core-2.18.0 → google-api-core-2.19.0}/tests/unit/retry/test_retry_unary.py +0 -0
  96. {google-api-core-2.18.0 → google-api-core-2.19.0}/tests/unit/test_bidi.py +0 -0
  97. {google-api-core-2.18.0 → google-api-core-2.19.0}/tests/unit/test_client_info.py +0 -0
  98. {google-api-core-2.18.0 → google-api-core-2.19.0}/tests/unit/test_client_options.py +0 -0
  99. {google-api-core-2.18.0 → google-api-core-2.19.0}/tests/unit/test_datetime_helpers.py +0 -0
  100. {google-api-core-2.18.0 → google-api-core-2.19.0}/tests/unit/test_exceptions.py +0 -0
  101. {google-api-core-2.18.0 → google-api-core-2.19.0}/tests/unit/test_extended_operation.py +0 -0
  102. {google-api-core-2.18.0 → google-api-core-2.19.0}/tests/unit/test_grpc_helpers.py +0 -0
  103. {google-api-core-2.18.0 → google-api-core-2.19.0}/tests/unit/test_iam.py +0 -0
  104. {google-api-core-2.18.0 → google-api-core-2.19.0}/tests/unit/test_operation.py +0 -0
  105. {google-api-core-2.18.0 → google-api-core-2.19.0}/tests/unit/test_packaging.py +0 -0
  106. {google-api-core-2.18.0 → google-api-core-2.19.0}/tests/unit/test_page_iterator.py +0 -0
  107. {google-api-core-2.18.0 → google-api-core-2.19.0}/tests/unit/test_path_template.py +0 -0
  108. {google-api-core-2.18.0 → google-api-core-2.19.0}/tests/unit/test_protobuf_helpers.py +0 -0
  109. {google-api-core-2.18.0 → google-api-core-2.19.0}/tests/unit/test_rest_helpers.py +0 -0
  110. {google-api-core-2.18.0 → google-api-core-2.19.0}/tests/unit/test_rest_streaming.py +0 -0
  111. {google-api-core-2.18.0 → google-api-core-2.19.0}/tests/unit/test_timeout.py +0 -0
  112. {google-api-core-2.18.0 → google-api-core-2.19.0}/tests/unit/test_universe.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: google-api-core
3
- Version: 2.18.0
3
+ Version: 2.19.0
4
4
  Summary: Google API client core library
5
5
  Home-page: https://github.com/googleapis/python-api-core
6
6
  Author: Google LLC
@@ -12,4 +12,4 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
- __version__ = "2.18.0"
15
+ __version__ = "2.19.0"
@@ -0,0 +1,29 @@
1
+ # Copyright 2024 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ API_VERSION_METADATA_KEY = "x-goog-api-version"
16
+
17
+
18
+ def to_api_version_header(version_identifier):
19
+ """Returns data for the API Version header for the given `version_identifier`.
20
+
21
+ Args:
22
+ version_identifier (str): The version identifier to be used in the
23
+ tuple returned.
24
+
25
+ Returns:
26
+ Tuple(str, str): A tuple containing the API Version metadata key and
27
+ value.
28
+ """
29
+ return (API_VERSION_METADATA_KEY, version_identifier)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: google-api-core
3
- Version: 2.18.0
3
+ Version: 2.19.0
4
4
  Summary: Google API client core library
5
5
  Home-page: https://github.com/googleapis/python-api-core
6
6
  Author: Google LLC
@@ -27,6 +27,7 @@ google/api_core/retry_async.py
27
27
  google/api_core/timeout.py
28
28
  google/api_core/universe.py
29
29
  google/api_core/version.py
30
+ google/api_core/version_header.py
30
31
  google/api_core/future/__init__.py
31
32
  google/api_core/future/_helpers.py
32
33
  google/api_core/future/async_future.py
@@ -92,6 +93,7 @@ tests/unit/test_rest_helpers.py
92
93
  tests/unit/test_rest_streaming.py
93
94
  tests/unit/test_timeout.py
94
95
  tests/unit/test_universe.py
96
+ tests/unit/test_version_header.py
95
97
  tests/unit/future/__init__.py
96
98
  tests/unit/future/test__helpers.py
97
99
  tests/unit/future/test_polling.py
@@ -0,0 +1,23 @@
1
+ # Copyright 2024 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ import pytest
16
+
17
+ from google.api_core import version_header
18
+
19
+
20
+ @pytest.mark.parametrize("version_identifier", ["some_value", ""])
21
+ def test_to_api_version_header(version_identifier):
22
+ value = version_header.to_api_version_header(version_identifier)
23
+ assert value == (version_header.API_VERSION_METADATA_KEY, version_identifier)