py2docfx 0.1.16.dev2064350__py3-none-any.whl → 0.1.17__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.
Files changed (388) hide show
  1. py2docfx/convert_prepare/environment.py +1 -3
  2. py2docfx/convert_prepare/get_source.py +1 -6
  3. py2docfx/convert_prepare/package_info.py +1 -1
  4. py2docfx/docfx_yaml/miss_reference.py +1 -1
  5. py2docfx/docfx_yaml/parameter_utils.py +58 -6
  6. py2docfx/docfx_yaml/tests/roots/test-translator-typing/code_with_typing.py +14 -0
  7. py2docfx/docfx_yaml/tests/roots/test-translator-typing/conf.py +18 -0
  8. py2docfx/docfx_yaml/tests/test_translator_typing.py +39 -0
  9. py2docfx/docfx_yaml/utils.py +2 -2
  10. py2docfx/venv/basevenv/Lib/site-packages/certifi/__init__.py +1 -1
  11. py2docfx/venv/basevenv/Lib/site-packages/certifi/core.py +1 -32
  12. py2docfx/venv/basevenv/Lib/site-packages/charset_normalizer/cli/__main__.py +62 -2
  13. py2docfx/venv/basevenv/Lib/site-packages/charset_normalizer/constant.py +17 -0
  14. py2docfx/venv/basevenv/Lib/site-packages/charset_normalizer/legacy.py +1 -3
  15. py2docfx/venv/basevenv/Lib/site-packages/charset_normalizer/md.py +19 -14
  16. py2docfx/venv/basevenv/Lib/site-packages/charset_normalizer/utils.py +6 -0
  17. py2docfx/venv/basevenv/Lib/site-packages/charset_normalizer/version.py +1 -1
  18. py2docfx/venv/basevenv/Lib/site-packages/packaging/__init__.py +1 -1
  19. py2docfx/venv/basevenv/Lib/site-packages/packaging/_elffile.py +1 -2
  20. py2docfx/venv/basevenv/Lib/site-packages/packaging/_manylinux.py +1 -2
  21. py2docfx/venv/basevenv/Lib/site-packages/packaging/_parser.py +1 -2
  22. py2docfx/venv/basevenv/Lib/site-packages/packaging/_tokenizer.py +5 -4
  23. py2docfx/venv/basevenv/Lib/site-packages/packaging/licenses/__init__.py +1 -1
  24. py2docfx/venv/basevenv/Lib/site-packages/packaging/markers.py +53 -22
  25. py2docfx/venv/basevenv/Lib/site-packages/packaging/metadata.py +1 -2
  26. py2docfx/venv/basevenv/Lib/site-packages/packaging/specifiers.py +1 -2
  27. py2docfx/venv/basevenv/Lib/site-packages/packaging/tags.py +39 -0
  28. py2docfx/venv/basevenv/Lib/site-packages/pkg_resources/__init__.py +6 -7
  29. py2docfx/venv/basevenv/Lib/site-packages/pygments/__init__.py +1 -1
  30. py2docfx/venv/basevenv/Lib/site-packages/pygments/lexers/_sql_builtins.py +106 -0
  31. py2docfx/venv/basevenv/Lib/site-packages/pygments/lexers/scripting.py +5 -3
  32. py2docfx/venv/basevenv/Lib/site-packages/pygments/lexers/sql.py +24 -118
  33. py2docfx/venv/basevenv/Lib/site-packages/requests/__version__.py +2 -2
  34. py2docfx/venv/basevenv/Lib/site-packages/requests/compat.py +12 -0
  35. py2docfx/venv/basevenv/Lib/site-packages/requests/models.py +3 -1
  36. py2docfx/venv/basevenv/Lib/site-packages/requests/utils.py +6 -16
  37. py2docfx/venv/basevenv/Lib/site-packages/setuptools/__init__.py +0 -38
  38. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_discovery.py +33 -0
  39. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/build_scripts.py +1 -1
  40. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/config.py +0 -2
  41. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/tests/test_unix.py +63 -0
  42. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/unix.py +5 -6
  43. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_entry_points.py +4 -0
  44. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_normalization.py +0 -2
  45. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_path.py +12 -3
  46. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_reqs.py +1 -1
  47. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_scripts.py +361 -0
  48. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_shutil.py +6 -0
  49. py2docfx/venv/basevenv/Lib/site-packages/setuptools/build_meta.py +25 -37
  50. py2docfx/venv/basevenv/Lib/site-packages/setuptools/command/bdist_egg.py +9 -11
  51. py2docfx/venv/basevenv/Lib/site-packages/setuptools/command/bdist_wheel.py +1 -1
  52. py2docfx/venv/basevenv/Lib/site-packages/setuptools/command/build_ext.py +29 -28
  53. py2docfx/venv/basevenv/Lib/site-packages/setuptools/command/develop.py +39 -179
  54. py2docfx/venv/basevenv/Lib/site-packages/setuptools/command/easy_install.py +17 -2352
  55. py2docfx/venv/basevenv/Lib/site-packages/setuptools/command/editable_wheel.py +14 -31
  56. py2docfx/venv/basevenv/Lib/site-packages/setuptools/command/egg_info.py +0 -2
  57. py2docfx/venv/basevenv/Lib/site-packages/setuptools/command/install.py +3 -55
  58. py2docfx/venv/basevenv/Lib/site-packages/setuptools/command/install_scripts.py +5 -11
  59. py2docfx/venv/basevenv/Lib/site-packages/setuptools/command/sdist.py +1 -1
  60. py2docfx/venv/basevenv/Lib/site-packages/setuptools/compat/py310.py +11 -0
  61. py2docfx/venv/basevenv/Lib/site-packages/setuptools/dist.py +10 -12
  62. py2docfx/venv/basevenv/Lib/site-packages/setuptools/installer.py +34 -29
  63. py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/contexts.py +0 -14
  64. py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/fixtures.py +235 -0
  65. py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/integration/test_pbr.py +20 -0
  66. py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_build_meta.py +0 -24
  67. py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_develop.py +1 -64
  68. py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_dist.py +2 -2
  69. py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_dist_info.py +0 -63
  70. py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_editable_install.py +15 -41
  71. py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_egg_info.py +3 -2
  72. py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_scripts.py +12 -0
  73. py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_wheel.py +12 -36
  74. py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_windows_wrappers.py +3 -4
  75. py2docfx/venv/basevenv/Lib/site-packages/setuptools/wheel.py +49 -24
  76. py2docfx/venv/basevenv/Lib/site-packages/snowballstemmer/__init__.py +6 -0
  77. py2docfx/venv/basevenv/Lib/site-packages/snowballstemmer/arabic_stemmer.py +798 -797
  78. py2docfx/venv/basevenv/Lib/site-packages/snowballstemmer/armenian_stemmer.py +212 -213
  79. py2docfx/venv/basevenv/Lib/site-packages/snowballstemmer/basestemmer.py +20 -54
  80. py2docfx/venv/basevenv/Lib/site-packages/snowballstemmer/basque_stemmer.py +202 -228
  81. py2docfx/venv/basevenv/Lib/site-packages/snowballstemmer/catalan_stemmer.py +370 -375
  82. py2docfx/venv/basevenv/Lib/site-packages/snowballstemmer/danish_stemmer.py +63 -61
  83. py2docfx/venv/basevenv/Lib/site-packages/snowballstemmer/dutch_porter_stemmer.py +466 -0
  84. py2docfx/venv/basevenv/Lib/site-packages/snowballstemmer/dutch_stemmer.py +1217 -343
  85. py2docfx/venv/basevenv/Lib/site-packages/snowballstemmer/english_stemmer.py +295 -264
  86. py2docfx/venv/basevenv/Lib/site-packages/snowballstemmer/esperanto_stemmer.py +588 -0
  87. py2docfx/venv/basevenv/Lib/site-packages/snowballstemmer/estonian_stemmer.py +850 -0
  88. py2docfx/venv/basevenv/Lib/site-packages/snowballstemmer/finnish_stemmer.py +144 -143
  89. py2docfx/venv/basevenv/Lib/site-packages/snowballstemmer/french_stemmer.py +308 -246
  90. py2docfx/venv/basevenv/Lib/site-packages/snowballstemmer/german_stemmer.py +224 -167
  91. py2docfx/venv/basevenv/Lib/site-packages/snowballstemmer/greek_stemmer.py +1314 -1313
  92. py2docfx/venv/basevenv/Lib/site-packages/snowballstemmer/hindi_stemmer.py +39 -38
  93. py2docfx/venv/basevenv/Lib/site-packages/snowballstemmer/hungarian_stemmer.py +231 -256
  94. py2docfx/venv/basevenv/Lib/site-packages/snowballstemmer/indonesian_stemmer.py +61 -64
  95. py2docfx/venv/basevenv/Lib/site-packages/snowballstemmer/irish_stemmer.py +101 -106
  96. py2docfx/venv/basevenv/Lib/site-packages/snowballstemmer/italian_stemmer.py +272 -272
  97. py2docfx/venv/basevenv/Lib/site-packages/snowballstemmer/lithuanian_stemmer.py +233 -240
  98. py2docfx/venv/basevenv/Lib/site-packages/snowballstemmer/nepali_stemmer.py +108 -134
  99. py2docfx/venv/basevenv/Lib/site-packages/snowballstemmer/norwegian_stemmer.py +108 -63
  100. py2docfx/venv/basevenv/Lib/site-packages/snowballstemmer/porter_stemmer.py +101 -108
  101. py2docfx/venv/basevenv/Lib/site-packages/snowballstemmer/portuguese_stemmer.py +241 -250
  102. py2docfx/venv/basevenv/Lib/site-packages/snowballstemmer/romanian_stemmer.py +332 -296
  103. py2docfx/venv/basevenv/Lib/site-packages/snowballstemmer/russian_stemmer.py +178 -179
  104. py2docfx/venv/basevenv/Lib/site-packages/snowballstemmer/serbian_stemmer.py +2331 -2332
  105. py2docfx/venv/basevenv/Lib/site-packages/snowballstemmer/spanish_stemmer.py +254 -259
  106. py2docfx/venv/basevenv/Lib/site-packages/snowballstemmer/swedish_stemmer.py +143 -70
  107. py2docfx/venv/basevenv/Lib/site-packages/snowballstemmer/tamil_stemmer.py +638 -1491
  108. py2docfx/venv/basevenv/Lib/site-packages/snowballstemmer/turkish_stemmer.py +326 -292
  109. py2docfx/venv/basevenv/Lib/site-packages/snowballstemmer/yiddish_stemmer.py +245 -246
  110. py2docfx/venv/basevenv/Lib/site-packages/urllib3/_version.py +2 -2
  111. py2docfx/venv/basevenv/Lib/site-packages/urllib3/connection.py +87 -38
  112. py2docfx/venv/basevenv/Lib/site-packages/urllib3/contrib/emscripten/fetch.py +20 -0
  113. py2docfx/venv/basevenv/Lib/site-packages/urllib3/poolmanager.py +17 -1
  114. py2docfx/venv/basevenv/Lib/site-packages/urllib3/response.py +53 -24
  115. py2docfx/venv/basevenv/Lib/site-packages/urllib3/util/request.py +12 -4
  116. py2docfx/venv/basevenv/Lib/site-packages/urllib3/util/ssl_.py +1 -1
  117. py2docfx/venv/venv1/Lib/site-packages/azure/core/_version.py +1 -1
  118. py2docfx/venv/venv1/Lib/site-packages/azure/core/pipeline/_base_async.py +1 -1
  119. py2docfx/venv/venv1/Lib/site-packages/azure/core/pipeline/transport/_aiohttp.py +1 -1
  120. py2docfx/venv/venv1/Lib/site-packages/azure/core/pipeline/transport/_base_async.py +2 -1
  121. py2docfx/venv/venv1/Lib/site-packages/azure/core/pipeline/transport/_requests_asyncio.py +1 -1
  122. py2docfx/venv/venv1/Lib/site-packages/azure/core/rest/_aiohttp.py +2 -2
  123. py2docfx/venv/venv1/Lib/site-packages/azure/core/rest/_requests_asyncio.py +1 -1
  124. py2docfx/venv/venv1/Lib/site-packages/azure/core/tracing/opentelemetry.py +13 -1
  125. py2docfx/venv/venv1/Lib/site-packages/azure/core/utils/_pipeline_transport_rest_shared_async.py +2 -1
  126. py2docfx/venv/venv1/Lib/site-packages/azure/core/utils/_utils.py +1 -1
  127. py2docfx/venv/venv1/Lib/site-packages/azure/identity/_constants.py +1 -0
  128. py2docfx/venv/venv1/Lib/site-packages/azure/identity/_credentials/default.py +23 -2
  129. py2docfx/venv/venv1/Lib/site-packages/azure/identity/_credentials/environment.py +12 -16
  130. py2docfx/venv/venv1/Lib/site-packages/azure/identity/_credentials/service_fabric.py +22 -1
  131. py2docfx/venv/venv1/Lib/site-packages/azure/identity/_credentials/user_password.py +10 -6
  132. py2docfx/venv/venv1/Lib/site-packages/azure/identity/_credentials/vscode.py +13 -4
  133. py2docfx/venv/venv1/Lib/site-packages/azure/identity/_internal/auth_code_redirect_handler.py +3 -5
  134. py2docfx/venv/venv1/Lib/site-packages/azure/identity/_internal/msal_client.py +2 -1
  135. py2docfx/venv/venv1/Lib/site-packages/azure/identity/_persistent_cache.py +3 -2
  136. py2docfx/venv/venv1/Lib/site-packages/azure/identity/_version.py +1 -1
  137. py2docfx/venv/venv1/Lib/site-packages/azure/identity/aio/_credentials/azd_cli.py +1 -1
  138. py2docfx/venv/venv1/Lib/site-packages/azure/identity/aio/_credentials/azure_cli.py +1 -1
  139. py2docfx/venv/venv1/Lib/site-packages/azure/identity/aio/_credentials/azure_powershell.py +1 -1
  140. py2docfx/venv/venv1/Lib/site-packages/azure/identity/aio/_credentials/chained.py +1 -1
  141. py2docfx/venv/venv1/Lib/site-packages/azure/identity/aio/_credentials/default.py +22 -2
  142. py2docfx/venv/venv1/Lib/site-packages/azure/identity/aio/_credentials/environment.py +2 -2
  143. py2docfx/venv/venv1/Lib/site-packages/azure/identity/aio/_credentials/service_fabric.py +17 -1
  144. py2docfx/venv/venv1/Lib/site-packages/azure/identity/aio/_credentials/vscode.py +4 -4
  145. py2docfx/venv/venv1/Lib/site-packages/certifi/__init__.py +1 -1
  146. py2docfx/venv/venv1/Lib/site-packages/certifi/core.py +1 -32
  147. py2docfx/venv/venv1/Lib/site-packages/charset_normalizer/cli/__main__.py +62 -2
  148. py2docfx/venv/venv1/Lib/site-packages/charset_normalizer/constant.py +17 -0
  149. py2docfx/venv/venv1/Lib/site-packages/charset_normalizer/legacy.py +1 -3
  150. py2docfx/venv/venv1/Lib/site-packages/charset_normalizer/md.py +19 -14
  151. py2docfx/venv/venv1/Lib/site-packages/charset_normalizer/utils.py +6 -0
  152. py2docfx/venv/venv1/Lib/site-packages/charset_normalizer/version.py +1 -1
  153. py2docfx/venv/venv1/Lib/site-packages/cryptography/__about__.py +2 -2
  154. py2docfx/venv/venv1/Lib/site-packages/cryptography/__init__.py +2 -2
  155. py2docfx/venv/venv1/Lib/site-packages/cryptography/fernet.py +2 -1
  156. py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/_oid.py +35 -2
  157. py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/backends/openssl/backend.py +33 -10
  158. py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/__init__.pyi +14 -5
  159. py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/ocsp.pyi +2 -2
  160. py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/__init__.pyi +3 -0
  161. py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/aead.pyi +49 -45
  162. py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/ciphers.pyi +2 -2
  163. py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/ed25519.pyi +2 -1
  164. py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/ed448.pyi +2 -1
  165. py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/hashes.pyi +10 -1
  166. py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/hmac.pyi +3 -2
  167. py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/kdf.pyi +8 -2
  168. py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/keys.pyi +3 -2
  169. py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/poly1305.pyi +6 -4
  170. py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/x25519.pyi +2 -1
  171. py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/x448.pyi +2 -1
  172. py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/pkcs12.pyi +9 -3
  173. py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/pkcs7.pyi +7 -6
  174. py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/test_support.pyi +2 -1
  175. py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/_rust/x509.pyi +79 -12
  176. py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/openssl/_conditional.py +9 -1
  177. py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/bindings/openssl/binding.py +2 -1
  178. py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/decrepit/ciphers/algorithms.py +5 -0
  179. py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/primitives/_cipheralgorithm.py +4 -2
  180. py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/primitives/_serialization.py +1 -2
  181. py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/primitives/asymmetric/dh.py +12 -0
  182. py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/primitives/asymmetric/dsa.py +16 -3
  183. py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/primitives/asymmetric/ec.py +47 -3
  184. py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/primitives/asymmetric/ed25519.py +16 -3
  185. py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/primitives/asymmetric/ed448.py +16 -3
  186. py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/primitives/asymmetric/rsa.py +14 -0
  187. py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/primitives/asymmetric/x25519.py +14 -1
  188. py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/primitives/asymmetric/x448.py +14 -1
  189. py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/primitives/ciphers/algorithms.py +6 -6
  190. py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/primitives/ciphers/base.py +5 -4
  191. py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/primitives/ciphers/modes.py +18 -18
  192. py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/primitives/hashes.py +5 -1
  193. py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/primitives/kdf/concatkdf.py +5 -4
  194. py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/primitives/kdf/hkdf.py +4 -4
  195. py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/primitives/kdf/kbkdf.py +7 -4
  196. py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/primitives/kdf/pbkdf2.py +1 -1
  197. py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/primitives/kdf/x963kdf.py +1 -1
  198. py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/primitives/padding.py +7 -121
  199. py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/primitives/serialization/__init__.py +2 -0
  200. py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/primitives/serialization/pkcs12.py +21 -1
  201. py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/primitives/serialization/pkcs7.py +48 -6
  202. py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/primitives/serialization/ssh.py +68 -18
  203. py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/primitives/twofactor/hotp.py +3 -2
  204. py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/primitives/twofactor/totp.py +2 -1
  205. py2docfx/venv/venv1/Lib/site-packages/cryptography/utils.py +15 -3
  206. py2docfx/venv/venv1/Lib/site-packages/cryptography/x509/__init__.py +3 -0
  207. py2docfx/venv/venv1/Lib/site-packages/cryptography/x509/base.py +39 -6
  208. py2docfx/venv/venv1/Lib/site-packages/cryptography/x509/extensions.py +100 -49
  209. py2docfx/venv/venv1/Lib/site-packages/cryptography/x509/name.py +27 -15
  210. py2docfx/venv/venv1/Lib/site-packages/cryptography/x509/ocsp.py +60 -25
  211. py2docfx/venv/venv1/Lib/site-packages/cryptography/x509/oid.py +2 -0
  212. py2docfx/venv/venv1/Lib/site-packages/cryptography/x509/verification.py +6 -0
  213. py2docfx/venv/venv1/Lib/site-packages/google/api_core/bidi.py +17 -4
  214. py2docfx/venv/venv1/Lib/site-packages/google/api_core/client_info.py +6 -0
  215. py2docfx/venv/venv1/Lib/site-packages/google/api_core/gapic_v1/client_info.py +1 -0
  216. py2docfx/venv/venv1/Lib/site-packages/google/api_core/retry/retry_base.py +13 -4
  217. py2docfx/venv/venv1/Lib/site-packages/google/api_core/retry/retry_streaming.py +7 -6
  218. py2docfx/venv/venv1/Lib/site-packages/google/api_core/retry/retry_streaming_async.py +8 -5
  219. py2docfx/venv/venv1/Lib/site-packages/google/api_core/retry/retry_unary.py +7 -6
  220. py2docfx/venv/venv1/Lib/site-packages/google/api_core/retry/retry_unary_async.py +7 -6
  221. py2docfx/venv/venv1/Lib/site-packages/google/api_core/version.py +1 -1
  222. py2docfx/venv/venv1/Lib/site-packages/google/auth/_default.py +2 -36
  223. py2docfx/venv/venv1/Lib/site-packages/google/auth/_helpers.py +240 -0
  224. py2docfx/venv/venv1/Lib/site-packages/google/auth/aio/_helpers.py +62 -0
  225. py2docfx/venv/venv1/Lib/site-packages/google/auth/aio/transport/aiohttp.py +6 -0
  226. py2docfx/venv/venv1/Lib/site-packages/google/auth/compute_engine/_metadata.py +5 -1
  227. py2docfx/venv/venv1/Lib/site-packages/google/auth/compute_engine/credentials.py +2 -1
  228. py2docfx/venv/venv1/Lib/site-packages/google/auth/identity_pool.py +91 -2
  229. py2docfx/venv/venv1/Lib/site-packages/google/auth/impersonated_credentials.py +75 -0
  230. py2docfx/venv/venv1/Lib/site-packages/google/auth/transport/__init__.py +1 -0
  231. py2docfx/venv/venv1/Lib/site-packages/google/auth/transport/_aiohttp_requests.py +8 -1
  232. py2docfx/venv/venv1/Lib/site-packages/google/auth/transport/_http_client.py +3 -1
  233. py2docfx/venv/venv1/Lib/site-packages/google/auth/transport/requests.py +4 -1
  234. py2docfx/venv/venv1/Lib/site-packages/google/auth/transport/urllib3.py +15 -5
  235. py2docfx/venv/venv1/Lib/site-packages/google/auth/version.py +1 -1
  236. py2docfx/venv/venv1/Lib/site-packages/google/oauth2/id_token.py +12 -0
  237. py2docfx/venv/venv1/Lib/site-packages/google/oauth2/webauthn_types.py +1 -1
  238. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/__init__.py +1 -1
  239. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/any.py +15 -1
  240. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/any_pb2.py +3 -3
  241. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/api_pb2.py +3 -3
  242. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/compiler/plugin_pb2.py +3 -3
  243. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/descriptor.py +15 -2
  244. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/descriptor_pb2.py +258 -113
  245. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/descriptor_pool.py +22 -8
  246. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/duration_pb2.py +3 -3
  247. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/empty_pb2.py +3 -3
  248. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/field_mask_pb2.py +3 -3
  249. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/internal/decoder.py +106 -23
  250. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/internal/field_mask.py +3 -1
  251. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/internal/python_edition_defaults.py +1 -1
  252. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/internal/python_message.py +21 -18
  253. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/internal/testing_refleaks.py +8 -2
  254. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/internal/well_known_types.py +60 -43
  255. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/json_format.py +4 -5
  256. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/message_factory.py +16 -0
  257. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/runtime_version.py +2 -2
  258. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/source_context_pb2.py +3 -3
  259. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/struct_pb2.py +3 -3
  260. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/text_format.py +11 -7
  261. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/timestamp_pb2.py +3 -3
  262. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/type_pb2.py +3 -3
  263. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/wrappers_pb2.py +3 -3
  264. py2docfx/venv/venv1/Lib/site-packages/google/rpc/error_details_pb2.py +29 -23
  265. py2docfx/venv/venv1/Lib/site-packages/google/rpc/error_details_pb2.pyi +41 -2
  266. py2docfx/venv/venv1/Lib/site-packages/msal/application.py +1 -0
  267. py2docfx/venv/venv1/Lib/site-packages/msal/individual_cache.py +9 -5
  268. py2docfx/venv/venv1/Lib/site-packages/msal/managed_identity.py +4 -5
  269. py2docfx/venv/venv1/Lib/site-packages/msal/sku.py +1 -1
  270. py2docfx/venv/venv1/Lib/site-packages/msal/throttled_http_client.py +58 -30
  271. py2docfx/venv/venv1/Lib/site-packages/opencensus/__init__.py +1 -1
  272. py2docfx/venv/venv1/Lib/site-packages/opencensus/ext/__init__.py +1 -1
  273. py2docfx/venv/venv1/Lib/site-packages/opencensus/ext/azure/__init__.py +1 -1
  274. py2docfx/venv/venv1/Lib/site-packages/opencensus/ext/azure/common/__init__.py +138 -138
  275. py2docfx/venv/venv1/Lib/site-packages/opencensus/ext/azure/common/exporter.py +93 -93
  276. py2docfx/venv/venv1/Lib/site-packages/opencensus/ext/azure/common/processor.py +63 -63
  277. py2docfx/venv/venv1/Lib/site-packages/opencensus/ext/azure/common/protocol.py +206 -206
  278. py2docfx/venv/venv1/Lib/site-packages/opencensus/ext/azure/common/storage.py +205 -205
  279. py2docfx/venv/venv1/Lib/site-packages/opencensus/ext/azure/common/transport.py +355 -355
  280. py2docfx/venv/venv1/Lib/site-packages/opencensus/ext/azure/common/utils.py +79 -79
  281. py2docfx/venv/venv1/Lib/site-packages/opencensus/ext/azure/common/version.py +15 -15
  282. py2docfx/venv/venv1/Lib/site-packages/opencensus/ext/azure/log_exporter/__init__.py +314 -314
  283. py2docfx/venv/venv1/Lib/site-packages/opencensus/ext/azure/metrics_exporter/__init__.py +190 -190
  284. py2docfx/venv/venv1/Lib/site-packages/opencensus/ext/azure/metrics_exporter/standard_metrics/__init__.py +62 -62
  285. py2docfx/venv/venv1/Lib/site-packages/opencensus/ext/azure/metrics_exporter/standard_metrics/cpu.py +50 -50
  286. py2docfx/venv/venv1/Lib/site-packages/opencensus/ext/azure/metrics_exporter/standard_metrics/http_requests.py +176 -176
  287. py2docfx/venv/venv1/Lib/site-packages/opencensus/ext/azure/metrics_exporter/standard_metrics/memory.py +42 -42
  288. py2docfx/venv/venv1/Lib/site-packages/opencensus/ext/azure/metrics_exporter/standard_metrics/process.py +87 -87
  289. py2docfx/venv/venv1/Lib/site-packages/opencensus/ext/azure/statsbeat/__init__.py +1 -1
  290. py2docfx/venv/venv1/Lib/site-packages/opencensus/ext/azure/statsbeat/state.py +50 -50
  291. py2docfx/venv/venv1/Lib/site-packages/opencensus/ext/azure/statsbeat/statsbeat.py +100 -100
  292. py2docfx/venv/venv1/Lib/site-packages/opencensus/ext/azure/statsbeat/statsbeat_metrics.py +480 -480
  293. py2docfx/venv/venv1/Lib/site-packages/opencensus/ext/azure/trace_exporter/__init__.py +236 -236
  294. py2docfx/venv/venv1/Lib/site-packages/packaging/__init__.py +1 -1
  295. py2docfx/venv/venv1/Lib/site-packages/packaging/_elffile.py +1 -2
  296. py2docfx/venv/venv1/Lib/site-packages/packaging/_manylinux.py +1 -2
  297. py2docfx/venv/venv1/Lib/site-packages/packaging/_parser.py +1 -2
  298. py2docfx/venv/venv1/Lib/site-packages/packaging/_tokenizer.py +5 -4
  299. py2docfx/venv/venv1/Lib/site-packages/packaging/licenses/__init__.py +1 -1
  300. py2docfx/venv/venv1/Lib/site-packages/packaging/markers.py +53 -22
  301. py2docfx/venv/venv1/Lib/site-packages/packaging/metadata.py +1 -2
  302. py2docfx/venv/venv1/Lib/site-packages/packaging/specifiers.py +1 -2
  303. py2docfx/venv/venv1/Lib/site-packages/packaging/tags.py +39 -0
  304. py2docfx/venv/venv1/Lib/site-packages/pkg_resources/__init__.py +6 -7
  305. py2docfx/venv/venv1/Lib/site-packages/requests/__version__.py +2 -2
  306. py2docfx/venv/venv1/Lib/site-packages/requests/compat.py +12 -0
  307. py2docfx/venv/venv1/Lib/site-packages/requests/models.py +3 -1
  308. py2docfx/venv/venv1/Lib/site-packages/requests/utils.py +6 -16
  309. py2docfx/venv/venv1/Lib/site-packages/rsa/__init__.py +2 -2
  310. py2docfx/venv/venv1/Lib/site-packages/rsa/asn1.py +52 -52
  311. py2docfx/venv/venv1/Lib/site-packages/rsa/cli.py +321 -321
  312. py2docfx/venv/venv1/Lib/site-packages/rsa/common.py +184 -184
  313. py2docfx/venv/venv1/Lib/site-packages/rsa/core.py +53 -53
  314. py2docfx/venv/venv1/Lib/site-packages/rsa/key.py +858 -858
  315. py2docfx/venv/venv1/Lib/site-packages/rsa/parallel.py +96 -96
  316. py2docfx/venv/venv1/Lib/site-packages/rsa/pem.py +134 -134
  317. py2docfx/venv/venv1/Lib/site-packages/rsa/pkcs1.py +485 -485
  318. py2docfx/venv/venv1/Lib/site-packages/rsa/pkcs1_v2.py +100 -100
  319. py2docfx/venv/venv1/Lib/site-packages/rsa/prime.py +198 -198
  320. py2docfx/venv/venv1/Lib/site-packages/rsa/py.typed +1 -1
  321. py2docfx/venv/venv1/Lib/site-packages/rsa/randnum.py +95 -95
  322. py2docfx/venv/venv1/Lib/site-packages/rsa/transform.py +72 -72
  323. py2docfx/venv/venv1/Lib/site-packages/rsa/util.py +97 -97
  324. py2docfx/venv/venv1/Lib/site-packages/setuptools/__init__.py +0 -38
  325. py2docfx/venv/venv1/Lib/site-packages/setuptools/_discovery.py +33 -0
  326. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/build_scripts.py +1 -1
  327. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/config.py +0 -2
  328. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compilers/C/tests/test_unix.py +63 -0
  329. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compilers/C/unix.py +5 -6
  330. py2docfx/venv/venv1/Lib/site-packages/setuptools/_entry_points.py +4 -0
  331. py2docfx/venv/venv1/Lib/site-packages/setuptools/_normalization.py +0 -2
  332. py2docfx/venv/venv1/Lib/site-packages/setuptools/_path.py +12 -3
  333. py2docfx/venv/venv1/Lib/site-packages/setuptools/_reqs.py +1 -1
  334. py2docfx/venv/venv1/Lib/site-packages/setuptools/_scripts.py +361 -0
  335. py2docfx/venv/venv1/Lib/site-packages/setuptools/_shutil.py +6 -0
  336. py2docfx/venv/venv1/Lib/site-packages/setuptools/build_meta.py +25 -37
  337. py2docfx/venv/venv1/Lib/site-packages/setuptools/command/bdist_egg.py +9 -11
  338. py2docfx/venv/venv1/Lib/site-packages/setuptools/command/bdist_wheel.py +1 -1
  339. py2docfx/venv/venv1/Lib/site-packages/setuptools/command/build_ext.py +29 -28
  340. py2docfx/venv/venv1/Lib/site-packages/setuptools/command/develop.py +39 -179
  341. py2docfx/venv/venv1/Lib/site-packages/setuptools/command/easy_install.py +17 -2352
  342. py2docfx/venv/venv1/Lib/site-packages/setuptools/command/editable_wheel.py +14 -31
  343. py2docfx/venv/venv1/Lib/site-packages/setuptools/command/egg_info.py +0 -2
  344. py2docfx/venv/venv1/Lib/site-packages/setuptools/command/install.py +3 -55
  345. py2docfx/venv/venv1/Lib/site-packages/setuptools/command/install_scripts.py +5 -11
  346. py2docfx/venv/venv1/Lib/site-packages/setuptools/command/sdist.py +1 -1
  347. py2docfx/venv/venv1/Lib/site-packages/setuptools/compat/py310.py +11 -0
  348. py2docfx/venv/venv1/Lib/site-packages/setuptools/dist.py +10 -12
  349. py2docfx/venv/venv1/Lib/site-packages/setuptools/installer.py +34 -29
  350. py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/contexts.py +0 -14
  351. py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/fixtures.py +235 -0
  352. py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/integration/test_pbr.py +20 -0
  353. py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_build_meta.py +0 -24
  354. py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_develop.py +1 -64
  355. py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_dist.py +2 -2
  356. py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_dist_info.py +0 -63
  357. py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_editable_install.py +15 -41
  358. py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_egg_info.py +3 -2
  359. py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_scripts.py +12 -0
  360. py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_wheel.py +12 -36
  361. py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_windows_wrappers.py +3 -4
  362. py2docfx/venv/venv1/Lib/site-packages/setuptools/wheel.py +49 -24
  363. py2docfx/venv/venv1/Lib/site-packages/typing_extensions.py +357 -703
  364. py2docfx/venv/venv1/Lib/site-packages/urllib3/_version.py +2 -2
  365. py2docfx/venv/venv1/Lib/site-packages/urllib3/connection.py +87 -38
  366. py2docfx/venv/venv1/Lib/site-packages/urllib3/contrib/emscripten/fetch.py +20 -0
  367. py2docfx/venv/venv1/Lib/site-packages/urllib3/poolmanager.py +17 -1
  368. py2docfx/venv/venv1/Lib/site-packages/urllib3/response.py +53 -24
  369. py2docfx/venv/venv1/Lib/site-packages/urllib3/util/request.py +12 -4
  370. py2docfx/venv/venv1/Lib/site-packages/urllib3/util/ssl_.py +1 -1
  371. {py2docfx-0.1.16.dev2064350.dist-info → py2docfx-0.1.17.dist-info}/METADATA +1 -1
  372. {py2docfx-0.1.16.dev2064350.dist-info → py2docfx-0.1.17.dist-info}/RECORD +374 -372
  373. {py2docfx-0.1.16.dev2064350.dist-info → py2docfx-0.1.17.dist-info}/WHEEL +1 -1
  374. py2docfx/venv/basevenv/Lib/site-packages/setuptools/package_index.py +0 -1137
  375. py2docfx/venv/basevenv/Lib/site-packages/setuptools/sandbox.py +0 -536
  376. py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/server.py +0 -86
  377. py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_easy_install.py +0 -1476
  378. py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_packageindex.py +0 -267
  379. py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_sandbox.py +0 -134
  380. py2docfx/venv/venv1/Lib/site-packages/azure/identity/_credentials/application.py +0 -119
  381. py2docfx/venv/venv1/Lib/site-packages/azure/identity/aio/_credentials/application.py +0 -121
  382. py2docfx/venv/venv1/Lib/site-packages/setuptools/package_index.py +0 -1137
  383. py2docfx/venv/venv1/Lib/site-packages/setuptools/sandbox.py +0 -536
  384. py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/server.py +0 -86
  385. py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_easy_install.py +0 -1476
  386. py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_packageindex.py +0 -267
  387. py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_sandbox.py +0 -134
  388. {py2docfx-0.1.16.dev2064350.dist-info → py2docfx-0.1.17.dist-info}/top_level.txt +0 -0
@@ -20,9 +20,9 @@ __author__ = 'jieluo@google.com (Jie Luo)'
20
20
  import calendar
21
21
  import collections.abc
22
22
  import datetime
23
+ from typing import Union
23
24
  import warnings
24
25
  from google.protobuf.internal import field_mask
25
- from typing import Union
26
26
 
27
27
  FieldMask = field_mask.FieldMask
28
28
 
@@ -48,8 +48,9 @@ class Any(object):
48
48
 
49
49
  __slots__ = ()
50
50
 
51
- def Pack(self, msg, type_url_prefix='type.googleapis.com/',
52
- deterministic=None):
51
+ def Pack(
52
+ self, msg, type_url_prefix='type.googleapis.com/', deterministic=None
53
+ ):
53
54
  """Packs the specified message into current Any message."""
54
55
  if len(type_url_prefix) < 1 or type_url_prefix[-1] != '/':
55
56
  self.type_url = '%s/%s' % (type_url_prefix, msg.DESCRIPTOR.full_name)
@@ -113,8 +114,8 @@ class Timestamp(object):
113
114
 
114
115
  Args:
115
116
  value: A date string. Any fractional digits (or none) and any offset are
116
- accepted as long as they fit into nano-seconds precision.
117
- Example of accepted format: '1972-01-01T10:00:20.021-05:00'
117
+ accepted as long as they fit into nano-seconds precision. Example of
118
+ accepted format: '1972-01-01T10:00:20.021-05:00'
118
119
 
119
120
  Raises:
120
121
  ValueError: On parsing problems.
@@ -128,7 +129,8 @@ class Timestamp(object):
128
129
  timezone_offset = value.rfind('-')
129
130
  if timezone_offset == -1:
130
131
  raise ValueError(
131
- 'Failed to parse timestamp: missing valid timezone offset.')
132
+ 'Failed to parse timestamp: missing valid timezone offset.'
133
+ )
132
134
  time_value = value[0:timezone_offset]
133
135
  # Parse datetime and nanos.
134
136
  point_position = time_value.find('.')
@@ -137,18 +139,20 @@ class Timestamp(object):
137
139
  nano_value = ''
138
140
  else:
139
141
  second_value = time_value[:point_position]
140
- nano_value = time_value[point_position + 1:]
142
+ nano_value = time_value[point_position + 1 :]
141
143
  if 't' in second_value:
142
144
  raise ValueError(
143
- 'time data \'{0}\' does not match format \'%Y-%m-%dT%H:%M:%S\', '
144
- 'lowercase \'t\' is not accepted'.format(second_value))
145
+ "time data '{0}' does not match format '%Y-%m-%dT%H:%M:%S', "
146
+ "lowercase 't' is not accepted".format(second_value)
147
+ )
145
148
  date_object = datetime.datetime.strptime(second_value, _TIMESTAMPFORMAT)
146
149
  td = date_object - datetime.datetime(1970, 1, 1)
147
150
  seconds = td.seconds + td.days * _SECONDS_PER_DAY
148
151
  if len(nano_value) > 9:
149
152
  raise ValueError(
150
153
  'Failed to parse Timestamp: nanos {0} more than '
151
- '9 fractional digits.'.format(nano_value))
154
+ '9 fractional digits.'.format(nano_value)
155
+ )
152
156
  if nano_value:
153
157
  nanos = round(float('0.' + nano_value) * 1e9)
154
158
  else:
@@ -156,18 +160,20 @@ class Timestamp(object):
156
160
  # Parse timezone offsets.
157
161
  if value[timezone_offset] == 'Z':
158
162
  if len(value) != timezone_offset + 1:
159
- raise ValueError('Failed to parse timestamp: invalid trailing'
160
- ' data {0}.'.format(value))
163
+ raise ValueError(
164
+ 'Failed to parse timestamp: invalid trailing data {0}.'.format(
165
+ value
166
+ )
167
+ )
161
168
  else:
162
169
  timezone = value[timezone_offset:]
163
170
  pos = timezone.find(':')
164
171
  if pos == -1:
165
- raise ValueError(
166
- 'Invalid timezone offset value: {0}.'.format(timezone))
172
+ raise ValueError('Invalid timezone offset value: {0}.'.format(timezone))
167
173
  if timezone[0] == '+':
168
- seconds -= (int(timezone[1:pos])*60+int(timezone[pos+1:]))*60
174
+ seconds -= (int(timezone[1:pos]) * 60 + int(timezone[pos + 1 :])) * 60
169
175
  else:
170
- seconds += (int(timezone[1:pos])*60+int(timezone[pos+1:]))*60
176
+ seconds += (int(timezone[1:pos]) * 60 + int(timezone[pos + 1 :])) * 60
171
177
  # Set seconds and nanos
172
178
  _CheckTimestampValid(seconds, nanos)
173
179
  self.seconds = int(seconds)
@@ -175,7 +181,7 @@ class Timestamp(object):
175
181
 
176
182
  def GetCurrentTime(self):
177
183
  """Get the current UTC into Timestamp."""
178
- self.FromDatetime(datetime.datetime.utcnow())
184
+ self.FromDatetime(datetime.datetime.now(tz=datetime.timezone.utc))
179
185
 
180
186
  def ToNanoseconds(self):
181
187
  """Converts Timestamp to nanoseconds since epoch."""
@@ -185,14 +191,16 @@ class Timestamp(object):
185
191
  def ToMicroseconds(self):
186
192
  """Converts Timestamp to microseconds since epoch."""
187
193
  _CheckTimestampValid(self.seconds, self.nanos)
188
- return (self.seconds * _MICROS_PER_SECOND +
189
- self.nanos // _NANOS_PER_MICROSECOND)
194
+ return (
195
+ self.seconds * _MICROS_PER_SECOND + self.nanos // _NANOS_PER_MICROSECOND
196
+ )
190
197
 
191
198
  def ToMilliseconds(self):
192
199
  """Converts Timestamp to milliseconds since epoch."""
193
200
  _CheckTimestampValid(self.seconds, self.nanos)
194
- return (self.seconds * _MILLIS_PER_SECOND +
195
- self.nanos // _NANOS_PER_MILLISECOND)
201
+ return (
202
+ self.seconds * _MILLIS_PER_SECOND + self.nanos // _NANOS_PER_MILLISECOND
203
+ )
196
204
 
197
205
  def ToSeconds(self):
198
206
  """Converts Timestamp to seconds since epoch."""
@@ -312,7 +320,8 @@ def _CheckTimestampValid(seconds, nanos):
312
320
  if nanos < 0 or nanos >= _NANOS_PER_SECOND:
313
321
  raise ValueError(
314
322
  'Timestamp is not valid: Nanos {} must be in a range '
315
- '[0, 999999].'.format(nanos))
323
+ '[0, 999999].'.format(nanos)
324
+ )
316
325
 
317
326
 
318
327
  class Duration(object):
@@ -332,7 +341,7 @@ class Duration(object):
332
341
  _CheckDurationValid(self.seconds, self.nanos)
333
342
  if self.seconds < 0 or self.nanos < 0:
334
343
  result = '-'
335
- seconds = - self.seconds + int((0 - self.nanos) // 1e9)
344
+ seconds = -self.seconds + int((0 - self.nanos) // 1e9)
336
345
  nanos = (0 - self.nanos) % 1e9
337
346
  else:
338
347
  result = ''
@@ -357,8 +366,8 @@ class Duration(object):
357
366
 
358
367
  Args:
359
368
  value: A string to be converted. The string must end with 's'. Any
360
- fractional digits (or none) are accepted as long as they fit into
361
- precision. For example: "1s", "1.01s", "1.0000001s", "-3.100s
369
+ fractional digits (or none) are accepted as long as they fit into
370
+ precision. For example: "1s", "1.01s", "1.0000001s", "-3.100s
362
371
 
363
372
  Raises:
364
373
  ValueError: On parsing problems.
@@ -366,8 +375,7 @@ class Duration(object):
366
375
  if not isinstance(value, str):
367
376
  raise ValueError('Duration JSON value not a string: {!r}'.format(value))
368
377
  if len(value) < 1 or value[-1] != 's':
369
- raise ValueError(
370
- 'Duration must end with letter "s": {0}.'.format(value))
378
+ raise ValueError('Duration must end with letter "s": {0}.'.format(value))
371
379
  try:
372
380
  pos = value.find('.')
373
381
  if pos == -1:
@@ -376,15 +384,14 @@ class Duration(object):
376
384
  else:
377
385
  seconds = int(value[:pos])
378
386
  if value[0] == '-':
379
- nanos = int(round(float('-0{0}'.format(value[pos: -1])) *1e9))
387
+ nanos = int(round(float('-0{0}'.format(value[pos:-1])) * 1e9))
380
388
  else:
381
- nanos = int(round(float('0{0}'.format(value[pos: -1])) *1e9))
389
+ nanos = int(round(float('0{0}'.format(value[pos:-1])) * 1e9))
382
390
  _CheckDurationValid(seconds, nanos)
383
391
  self.seconds = seconds
384
392
  self.nanos = nanos
385
393
  except ValueError as e:
386
- raise ValueError(
387
- 'Couldn\'t parse duration: {0} : {1}.'.format(value, e))
394
+ raise ValueError("Couldn't parse duration: {0} : {1}.".format(value, e))
388
395
 
389
396
  def ToNanoseconds(self):
390
397
  """Converts a Duration to nanoseconds."""
@@ -406,20 +413,23 @@ class Duration(object):
406
413
 
407
414
  def FromNanoseconds(self, nanos):
408
415
  """Converts nanoseconds to Duration."""
409
- self._NormalizeDuration(nanos // _NANOS_PER_SECOND,
410
- nanos % _NANOS_PER_SECOND)
416
+ self._NormalizeDuration(
417
+ nanos // _NANOS_PER_SECOND, nanos % _NANOS_PER_SECOND
418
+ )
411
419
 
412
420
  def FromMicroseconds(self, micros):
413
421
  """Converts microseconds to Duration."""
414
422
  self._NormalizeDuration(
415
423
  micros // _MICROS_PER_SECOND,
416
- (micros % _MICROS_PER_SECOND) * _NANOS_PER_MICROSECOND)
424
+ (micros % _MICROS_PER_SECOND) * _NANOS_PER_MICROSECOND,
425
+ )
417
426
 
418
427
  def FromMilliseconds(self, millis):
419
428
  """Converts milliseconds to Duration."""
420
429
  self._NormalizeDuration(
421
430
  millis // _MILLIS_PER_SECOND,
422
- (millis % _MILLIS_PER_SECOND) * _NANOS_PER_MILLISECOND)
431
+ (millis % _MILLIS_PER_SECOND) * _NANOS_PER_MILLISECOND,
432
+ )
423
433
 
424
434
  def FromSeconds(self, seconds):
425
435
  """Converts seconds to Duration."""
@@ -429,8 +439,9 @@ class Duration(object):
429
439
  def ToTimedelta(self) -> datetime.timedelta:
430
440
  """Converts Duration to timedelta."""
431
441
  return datetime.timedelta(
432
- seconds=self.seconds, microseconds=_RoundTowardZero(
433
- self.nanos, _NANOS_PER_MICROSECOND))
442
+ seconds=self.seconds,
443
+ microseconds=_RoundTowardZero(self.nanos, _NANOS_PER_MICROSECOND),
444
+ )
434
445
 
435
446
  def FromTimedelta(self, td):
436
447
  """Converts timedelta to Duration."""
@@ -464,22 +475,26 @@ class Duration(object):
464
475
 
465
476
  __radd__ = __add__
466
477
 
467
- def __rsub__(self, dt) -> Union[datetime.datetime, datetime.timedelta]:
468
- return dt - self.ToTimedelta()
478
+ def __sub__(self, value) -> datetime.timedelta:
479
+ return self.ToTimedelta() - value
480
+
481
+ def __rsub__(self, value) -> Union[datetime.datetime, datetime.timedelta]:
482
+ return value - self.ToTimedelta()
469
483
 
470
484
 
471
485
  def _CheckDurationValid(seconds, nanos):
472
486
  if seconds < -_DURATION_SECONDS_MAX or seconds > _DURATION_SECONDS_MAX:
473
487
  raise ValueError(
474
488
  'Duration is not valid: Seconds {0} must be in range '
475
- '[-315576000000, 315576000000].'.format(seconds))
489
+ '[-315576000000, 315576000000].'.format(seconds)
490
+ )
476
491
  if nanos <= -_NANOS_PER_SECOND or nanos >= _NANOS_PER_SECOND:
477
492
  raise ValueError(
478
493
  'Duration is not valid: Nanos {0} must be in range '
479
- '[-999999999, 999999999].'.format(nanos))
494
+ '[-999999999, 999999999].'.format(nanos)
495
+ )
480
496
  if (nanos < 0 and seconds > 0) or (nanos > 0 and seconds < 0):
481
- raise ValueError(
482
- 'Duration is not valid: Sign mismatch.')
497
+ raise ValueError('Duration is not valid: Sign mismatch.')
483
498
 
484
499
 
485
500
  def _RoundTowardZero(value, divider):
@@ -601,6 +616,7 @@ class Struct(object):
601
616
  for key, value in dictionary.items():
602
617
  _SetStructValue(self.fields[key], value)
603
618
 
619
+
604
620
  collections.abc.MutableMapping.register(Struct)
605
621
 
606
622
 
@@ -663,6 +679,7 @@ class ListValue(object):
663
679
  list_value.Clear()
664
680
  return list_value
665
681
 
682
+
666
683
  collections.abc.MutableSequence.register(ListValue)
667
684
 
668
685
 
@@ -316,11 +316,10 @@ class _Printer(object):
316
316
  return _INFINITY
317
317
  if math.isnan(value):
318
318
  return _NAN
319
- if field.cpp_type == descriptor.FieldDescriptor.CPPTYPE_FLOAT:
320
- if self.float_format:
321
- return float(format(value, self.float_format))
322
- else:
323
- return type_checkers.ToShortestFloat(value)
319
+ if self.float_format:
320
+ return float(format(value, self.float_format))
321
+ elif field.cpp_type == descriptor.FieldDescriptor.CPPTYPE_FLOAT:
322
+ return type_checkers.ToShortestFloat(value)
324
323
 
325
324
  return value
326
325
 
@@ -56,6 +56,22 @@ def GetMessageClassesForFiles(files, pool):
56
56
  This will find and resolve dependencies, failing if the descriptor
57
57
  pool cannot satisfy them.
58
58
 
59
+ This will not return the classes for nested types within those classes, for
60
+ those, use GetMessageClass() on the nested types within their containing
61
+ messages.
62
+
63
+ For example, for the message:
64
+
65
+ message NestedTypeMessage {
66
+ message NestedType {
67
+ string data = 1;
68
+ }
69
+ NestedType nested = 1;
70
+ }
71
+
72
+ NestedTypeMessage will be in the result, but not
73
+ NestedTypeMessage.NestedType.
74
+
59
75
  Args:
60
76
  files: The file names to extract messages from.
61
77
  pool: The descriptor pool to find the files including the dependent files.
@@ -28,8 +28,8 @@ class Domain(Enum):
28
28
  # These OSS versions are not stripped to avoid merging conflicts.
29
29
  OSS_DOMAIN = Domain.PUBLIC
30
30
  OSS_MAJOR = 6
31
- OSS_MINOR = 30
32
- OSS_PATCH = 2
31
+ OSS_MINOR = 31
32
+ OSS_PATCH = 1
33
33
  OSS_SUFFIX = ''
34
34
 
35
35
  DOMAIN = OSS_DOMAIN
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: google/protobuf/source_context.proto
5
- # Protobuf Python Version: 6.30.2
5
+ # Protobuf Python Version: 6.31.1
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -12,8 +12,8 @@ from google.protobuf.internal import builder as _builder
12
12
  _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
14
  6,
15
- 30,
16
- 2,
15
+ 31,
16
+ 1,
17
17
  '',
18
18
  'google/protobuf/source_context.proto'
19
19
  )
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: google/protobuf/struct.proto
5
- # Protobuf Python Version: 6.30.2
5
+ # Protobuf Python Version: 6.31.1
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -12,8 +12,8 @@ from google.protobuf.internal import builder as _builder
12
12
  _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
14
  6,
15
- 30,
16
- 2,
15
+ 31,
16
+ 1,
17
17
  '',
18
18
  'google/protobuf/struct.proto'
19
19
  )
@@ -1196,7 +1196,7 @@ class _Parser(object):
1196
1196
  ':') and not tokenizer.LookingAt('{') and not tokenizer.LookingAt('<'):
1197
1197
  self._DetectSilentMarker(tokenizer, immediate_message_type, field_name)
1198
1198
  if tokenizer.LookingAt('['):
1199
- self._SkipRepeatedFieldValue(tokenizer)
1199
+ self._SkipRepeatedFieldValue(tokenizer, immediate_message_type)
1200
1200
  else:
1201
1201
  self._SkipFieldValue(tokenizer)
1202
1202
  else:
@@ -1271,18 +1271,22 @@ class _Parser(object):
1271
1271
  not tokenizer.TryConsumeFloat()):
1272
1272
  raise ParseError('Invalid field value: ' + tokenizer.token)
1273
1273
 
1274
- def _SkipRepeatedFieldValue(self, tokenizer):
1274
+ def _SkipRepeatedFieldValue(self, tokenizer, immediate_message_type):
1275
1275
  """Skips over a repeated field value.
1276
1276
 
1277
1277
  Args:
1278
1278
  tokenizer: A tokenizer to parse the field value.
1279
1279
  """
1280
1280
  tokenizer.Consume('[')
1281
- if not tokenizer.LookingAt(']'):
1282
- self._SkipFieldValue(tokenizer)
1283
- while tokenizer.TryConsume(','):
1284
- self._SkipFieldValue(tokenizer)
1285
- tokenizer.Consume(']')
1281
+ if not tokenizer.TryConsume(']'):
1282
+ while True:
1283
+ if tokenizer.LookingAt('<') or tokenizer.LookingAt('{'):
1284
+ self._SkipFieldMessage(tokenizer, immediate_message_type)
1285
+ else:
1286
+ self._SkipFieldValue(tokenizer)
1287
+ if tokenizer.TryConsume(']'):
1288
+ break
1289
+ tokenizer.Consume(',')
1286
1290
 
1287
1291
 
1288
1292
  class Tokenizer(object):
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: google/protobuf/timestamp.proto
5
- # Protobuf Python Version: 6.30.2
5
+ # Protobuf Python Version: 6.31.1
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -12,8 +12,8 @@ from google.protobuf.internal import builder as _builder
12
12
  _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
14
  6,
15
- 30,
16
- 2,
15
+ 31,
16
+ 1,
17
17
  '',
18
18
  'google/protobuf/timestamp.proto'
19
19
  )
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: google/protobuf/type.proto
5
- # Protobuf Python Version: 6.30.2
5
+ # Protobuf Python Version: 6.31.1
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -12,8 +12,8 @@ from google.protobuf.internal import builder as _builder
12
12
  _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
14
  6,
15
- 30,
16
- 2,
15
+ 31,
16
+ 1,
17
17
  '',
18
18
  'google/protobuf/type.proto'
19
19
  )
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: google/protobuf/wrappers.proto
5
- # Protobuf Python Version: 6.30.2
5
+ # Protobuf Python Version: 6.31.1
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -12,8 +12,8 @@ from google.protobuf.internal import builder as _builder
12
12
  _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
14
  6,
15
- 30,
16
- 2,
15
+ 31,
16
+ 1,
17
17
  '',
18
18
  'google/protobuf/wrappers.proto'
19
19
  )
@@ -31,7 +31,7 @@ _sym_db = _symbol_database.Default()
31
31
  from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2
32
32
 
33
33
  DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
34
- b'\n\x1egoogle/rpc/error_details.proto\x12\ngoogle.rpc\x1a\x1egoogle/protobuf/duration.proto"\x93\x01\n\tErrorInfo\x12\x0e\n\x06reason\x18\x01 \x01(\t\x12\x0e\n\x06\x64omain\x18\x02 \x01(\t\x12\x35\n\x08metadata\x18\x03 \x03(\x0b\x32#.google.rpc.ErrorInfo.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01";\n\tRetryInfo\x12.\n\x0bretry_delay\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration"2\n\tDebugInfo\x12\x15\n\rstack_entries\x18\x01 \x03(\t\x12\x0e\n\x06\x64\x65tail\x18\x02 \x01(\t"y\n\x0cQuotaFailure\x12\x36\n\nviolations\x18\x01 \x03(\x0b\x32".google.rpc.QuotaFailure.Violation\x1a\x31\n\tViolation\x12\x0f\n\x07subject\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t"\x95\x01\n\x13PreconditionFailure\x12=\n\nviolations\x18\x01 \x03(\x0b\x32).google.rpc.PreconditionFailure.Violation\x1a?\n\tViolation\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x0f\n\x07subject\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t"\xcc\x01\n\nBadRequest\x12?\n\x10\x66ield_violations\x18\x01 \x03(\x0b\x32%.google.rpc.BadRequest.FieldViolation\x1a}\n\x0e\x46ieldViolation\x12\r\n\x05\x66ield\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x0e\n\x06reason\x18\x03 \x01(\t\x12\x37\n\x11localized_message\x18\x04 \x01(\x0b\x32\x1c.google.rpc.LocalizedMessage"7\n\x0bRequestInfo\x12\x12\n\nrequest_id\x18\x01 \x01(\t\x12\x14\n\x0cserving_data\x18\x02 \x01(\t"`\n\x0cResourceInfo\x12\x15\n\rresource_type\x18\x01 \x01(\t\x12\x15\n\rresource_name\x18\x02 \x01(\t\x12\r\n\x05owner\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t"V\n\x04Help\x12$\n\x05links\x18\x01 \x03(\x0b\x32\x15.google.rpc.Help.Link\x1a(\n\x04Link\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\x12\x0b\n\x03url\x18\x02 \x01(\t"3\n\x10LocalizedMessage\x12\x0e\n\x06locale\x18\x01 \x01(\t\x12\x0f\n\x07message\x18\x02 \x01(\tBl\n\x0e\x63om.google.rpcB\x11\x45rrorDetailsProtoP\x01Z?google.golang.org/genproto/googleapis/rpc/errdetails;errdetails\xa2\x02\x03RPCb\x06proto3'
34
+ b'\n\x1egoogle/rpc/error_details.proto\x12\ngoogle.rpc\x1a\x1egoogle/protobuf/duration.proto"\x93\x01\n\tErrorInfo\x12\x0e\n\x06reason\x18\x01 \x01(\t\x12\x0e\n\x06\x64omain\x18\x02 \x01(\t\x12\x35\n\x08metadata\x18\x03 \x03(\x0b\x32#.google.rpc.ErrorInfo.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01";\n\tRetryInfo\x12.\n\x0bretry_delay\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration"2\n\tDebugInfo\x12\x15\n\rstack_entries\x18\x01 \x03(\t\x12\x0e\n\x06\x64\x65tail\x18\x02 \x01(\t"\x8f\x03\n\x0cQuotaFailure\x12\x36\n\nviolations\x18\x01 \x03(\x0b\x32".google.rpc.QuotaFailure.Violation\x1a\xc6\x02\n\tViolation\x12\x0f\n\x07subject\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x13\n\x0b\x61pi_service\x18\x03 \x01(\t\x12\x14\n\x0cquota_metric\x18\x04 \x01(\t\x12\x10\n\x08quota_id\x18\x05 \x01(\t\x12Q\n\x10quota_dimensions\x18\x06 \x03(\x0b\x32\x37.google.rpc.QuotaFailure.Violation.QuotaDimensionsEntry\x12\x13\n\x0bquota_value\x18\x07 \x01(\x03\x12\x1f\n\x12\x66uture_quota_value\x18\x08 \x01(\x03H\x00\x88\x01\x01\x1a\x36\n\x14QuotaDimensionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x15\n\x13_future_quota_value"\x95\x01\n\x13PreconditionFailure\x12=\n\nviolations\x18\x01 \x03(\x0b\x32).google.rpc.PreconditionFailure.Violation\x1a?\n\tViolation\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x0f\n\x07subject\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t"\xcc\x01\n\nBadRequest\x12?\n\x10\x66ield_violations\x18\x01 \x03(\x0b\x32%.google.rpc.BadRequest.FieldViolation\x1a}\n\x0e\x46ieldViolation\x12\r\n\x05\x66ield\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x0e\n\x06reason\x18\x03 \x01(\t\x12\x37\n\x11localized_message\x18\x04 \x01(\x0b\x32\x1c.google.rpc.LocalizedMessage"7\n\x0bRequestInfo\x12\x12\n\nrequest_id\x18\x01 \x01(\t\x12\x14\n\x0cserving_data\x18\x02 \x01(\t"`\n\x0cResourceInfo\x12\x15\n\rresource_type\x18\x01 \x01(\t\x12\x15\n\rresource_name\x18\x02 \x01(\t\x12\r\n\x05owner\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t"V\n\x04Help\x12$\n\x05links\x18\x01 \x03(\x0b\x32\x15.google.rpc.Help.Link\x1a(\n\x04Link\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\x12\x0b\n\x03url\x18\x02 \x01(\t"3\n\x10LocalizedMessage\x12\x0e\n\x06locale\x18\x01 \x01(\t\x12\x0f\n\x07message\x18\x02 \x01(\tBl\n\x0e\x63om.google.rpcB\x11\x45rrorDetailsProtoP\x01Z?google.golang.org/genproto/googleapis/rpc/errdetails;errdetails\xa2\x02\x03RPCb\x06proto3'
35
35
  )
36
36
 
37
37
  _globals = globals()
@@ -46,6 +46,10 @@ if _descriptor._USE_C_DESCRIPTORS == False:
46
46
  ]._serialized_options = b"\n\016com.google.rpcB\021ErrorDetailsProtoP\001Z?google.golang.org/genproto/googleapis/rpc/errdetails;errdetails\242\002\003RPC"
47
47
  _globals["_ERRORINFO_METADATAENTRY"]._options = None
48
48
  _globals["_ERRORINFO_METADATAENTRY"]._serialized_options = b"8\001"
49
+ _globals["_QUOTAFAILURE_VIOLATION_QUOTADIMENSIONSENTRY"]._options = None
50
+ _globals[
51
+ "_QUOTAFAILURE_VIOLATION_QUOTADIMENSIONSENTRY"
52
+ ]._serialized_options = b"8\001"
49
53
  _globals["_ERRORINFO"]._serialized_start = 79
50
54
  _globals["_ERRORINFO"]._serialized_end = 226
51
55
  _globals["_ERRORINFO_METADATAENTRY"]._serialized_start = 179
@@ -54,26 +58,28 @@ if _descriptor._USE_C_DESCRIPTORS == False:
54
58
  _globals["_RETRYINFO"]._serialized_end = 287
55
59
  _globals["_DEBUGINFO"]._serialized_start = 289
56
60
  _globals["_DEBUGINFO"]._serialized_end = 339
57
- _globals["_QUOTAFAILURE"]._serialized_start = 341
58
- _globals["_QUOTAFAILURE"]._serialized_end = 462
59
- _globals["_QUOTAFAILURE_VIOLATION"]._serialized_start = 413
60
- _globals["_QUOTAFAILURE_VIOLATION"]._serialized_end = 462
61
- _globals["_PRECONDITIONFAILURE"]._serialized_start = 465
62
- _globals["_PRECONDITIONFAILURE"]._serialized_end = 614
63
- _globals["_PRECONDITIONFAILURE_VIOLATION"]._serialized_start = 551
64
- _globals["_PRECONDITIONFAILURE_VIOLATION"]._serialized_end = 614
65
- _globals["_BADREQUEST"]._serialized_start = 617
66
- _globals["_BADREQUEST"]._serialized_end = 821
67
- _globals["_BADREQUEST_FIELDVIOLATION"]._serialized_start = 696
68
- _globals["_BADREQUEST_FIELDVIOLATION"]._serialized_end = 821
69
- _globals["_REQUESTINFO"]._serialized_start = 823
70
- _globals["_REQUESTINFO"]._serialized_end = 878
71
- _globals["_RESOURCEINFO"]._serialized_start = 880
72
- _globals["_RESOURCEINFO"]._serialized_end = 976
73
- _globals["_HELP"]._serialized_start = 978
74
- _globals["_HELP"]._serialized_end = 1064
75
- _globals["_HELP_LINK"]._serialized_start = 1024
76
- _globals["_HELP_LINK"]._serialized_end = 1064
77
- _globals["_LOCALIZEDMESSAGE"]._serialized_start = 1066
78
- _globals["_LOCALIZEDMESSAGE"]._serialized_end = 1117
61
+ _globals["_QUOTAFAILURE"]._serialized_start = 342
62
+ _globals["_QUOTAFAILURE"]._serialized_end = 741
63
+ _globals["_QUOTAFAILURE_VIOLATION"]._serialized_start = 415
64
+ _globals["_QUOTAFAILURE_VIOLATION"]._serialized_end = 741
65
+ _globals["_QUOTAFAILURE_VIOLATION_QUOTADIMENSIONSENTRY"]._serialized_start = 664
66
+ _globals["_QUOTAFAILURE_VIOLATION_QUOTADIMENSIONSENTRY"]._serialized_end = 718
67
+ _globals["_PRECONDITIONFAILURE"]._serialized_start = 744
68
+ _globals["_PRECONDITIONFAILURE"]._serialized_end = 893
69
+ _globals["_PRECONDITIONFAILURE_VIOLATION"]._serialized_start = 830
70
+ _globals["_PRECONDITIONFAILURE_VIOLATION"]._serialized_end = 893
71
+ _globals["_BADREQUEST"]._serialized_start = 896
72
+ _globals["_BADREQUEST"]._serialized_end = 1100
73
+ _globals["_BADREQUEST_FIELDVIOLATION"]._serialized_start = 975
74
+ _globals["_BADREQUEST_FIELDVIOLATION"]._serialized_end = 1100
75
+ _globals["_REQUESTINFO"]._serialized_start = 1102
76
+ _globals["_REQUESTINFO"]._serialized_end = 1157
77
+ _globals["_RESOURCEINFO"]._serialized_start = 1159
78
+ _globals["_RESOURCEINFO"]._serialized_end = 1255
79
+ _globals["_HELP"]._serialized_start = 1257
80
+ _globals["_HELP"]._serialized_end = 1343
81
+ _globals["_HELP_LINK"]._serialized_start = 1303
82
+ _globals["_HELP_LINK"]._serialized_end = 1343
83
+ _globals["_LOCALIZEDMESSAGE"]._serialized_start = 1345
84
+ _globals["_LOCALIZEDMESSAGE"]._serialized_end = 1396
79
85
  # @@protoc_insertion_point(module_scope)
@@ -74,13 +74,52 @@ class QuotaFailure(_message.Message):
74
74
  __slots__ = ("violations",)
75
75
 
76
76
  class Violation(_message.Message):
77
- __slots__ = ("subject", "description")
77
+ __slots__ = (
78
+ "subject",
79
+ "description",
80
+ "api_service",
81
+ "quota_metric",
82
+ "quota_id",
83
+ "quota_dimensions",
84
+ "quota_value",
85
+ "future_quota_value",
86
+ )
87
+
88
+ class QuotaDimensionsEntry(_message.Message):
89
+ __slots__ = ("key", "value")
90
+ KEY_FIELD_NUMBER: _ClassVar[int]
91
+ VALUE_FIELD_NUMBER: _ClassVar[int]
92
+ key: str
93
+ value: str
94
+ def __init__(
95
+ self, key: _Optional[str] = ..., value: _Optional[str] = ...
96
+ ) -> None: ...
78
97
  SUBJECT_FIELD_NUMBER: _ClassVar[int]
79
98
  DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
99
+ API_SERVICE_FIELD_NUMBER: _ClassVar[int]
100
+ QUOTA_METRIC_FIELD_NUMBER: _ClassVar[int]
101
+ QUOTA_ID_FIELD_NUMBER: _ClassVar[int]
102
+ QUOTA_DIMENSIONS_FIELD_NUMBER: _ClassVar[int]
103
+ QUOTA_VALUE_FIELD_NUMBER: _ClassVar[int]
104
+ FUTURE_QUOTA_VALUE_FIELD_NUMBER: _ClassVar[int]
80
105
  subject: str
81
106
  description: str
107
+ api_service: str
108
+ quota_metric: str
109
+ quota_id: str
110
+ quota_dimensions: _containers.ScalarMap[str, str]
111
+ quota_value: int
112
+ future_quota_value: int
82
113
  def __init__(
83
- self, subject: _Optional[str] = ..., description: _Optional[str] = ...
114
+ self,
115
+ subject: _Optional[str] = ...,
116
+ description: _Optional[str] = ...,
117
+ api_service: _Optional[str] = ...,
118
+ quota_metric: _Optional[str] = ...,
119
+ quota_id: _Optional[str] = ...,
120
+ quota_dimensions: _Optional[_Mapping[str, str]] = ...,
121
+ quota_value: _Optional[int] = ...,
122
+ future_quota_value: _Optional[int] = ...,
84
123
  ) -> None: ...
85
124
  VIOLATIONS_FIELD_NUMBER: _ClassVar[int]
86
125
  violations: _containers.RepeatedCompositeFieldContainer[QuotaFailure.Violation]
@@ -499,6 +499,7 @@ class ClientApplication(object):
499
499
  except (
500
500
  FileNotFoundError, # Or IOError in Python 2
501
501
  pickle.UnpicklingError, # A corrupted http cache file
502
+ AttributeError, # Cache created by a different version of MSAL
502
503
  ):
503
504
  persisted_http_cache = {} # Recover by starting afresh
504
505
  atexit.register(lambda: pickle.dump(