flyte 0.0.1b0__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.

Potentially problematic release.


This version of flyte might be problematic. Click here for more details.

Files changed (390) hide show
  1. flyte/__init__.py +62 -0
  2. flyte/_api_commons.py +3 -0
  3. flyte/_bin/__init__.py +0 -0
  4. flyte/_bin/runtime.py +126 -0
  5. flyte/_build.py +25 -0
  6. flyte/_cache/__init__.py +12 -0
  7. flyte/_cache/cache.py +146 -0
  8. flyte/_cache/defaults.py +9 -0
  9. flyte/_cache/policy_function_body.py +42 -0
  10. flyte/_cli/__init__.py +0 -0
  11. flyte/_cli/_common.py +287 -0
  12. flyte/_cli/_create.py +42 -0
  13. flyte/_cli/_delete.py +23 -0
  14. flyte/_cli/_deploy.py +140 -0
  15. flyte/_cli/_get.py +235 -0
  16. flyte/_cli/_run.py +152 -0
  17. flyte/_cli/main.py +72 -0
  18. flyte/_code_bundle/__init__.py +8 -0
  19. flyte/_code_bundle/_ignore.py +113 -0
  20. flyte/_code_bundle/_packaging.py +187 -0
  21. flyte/_code_bundle/_utils.py +339 -0
  22. flyte/_code_bundle/bundle.py +178 -0
  23. flyte/_context.py +146 -0
  24. flyte/_datastructures.py +342 -0
  25. flyte/_deploy.py +202 -0
  26. flyte/_doc.py +29 -0
  27. flyte/_docstring.py +32 -0
  28. flyte/_environment.py +43 -0
  29. flyte/_group.py +31 -0
  30. flyte/_hash.py +23 -0
  31. flyte/_image.py +760 -0
  32. flyte/_initialize.py +634 -0
  33. flyte/_interface.py +84 -0
  34. flyte/_internal/__init__.py +3 -0
  35. flyte/_internal/controllers/__init__.py +115 -0
  36. flyte/_internal/controllers/_local_controller.py +118 -0
  37. flyte/_internal/controllers/_trace.py +40 -0
  38. flyte/_internal/controllers/pbhash.py +39 -0
  39. flyte/_internal/controllers/remote/__init__.py +40 -0
  40. flyte/_internal/controllers/remote/_action.py +141 -0
  41. flyte/_internal/controllers/remote/_client.py +43 -0
  42. flyte/_internal/controllers/remote/_controller.py +361 -0
  43. flyte/_internal/controllers/remote/_core.py +402 -0
  44. flyte/_internal/controllers/remote/_informer.py +361 -0
  45. flyte/_internal/controllers/remote/_service_protocol.py +50 -0
  46. flyte/_internal/imagebuild/__init__.py +11 -0
  47. flyte/_internal/imagebuild/docker_builder.py +416 -0
  48. flyte/_internal/imagebuild/image_builder.py +241 -0
  49. flyte/_internal/imagebuild/remote_builder.py +0 -0
  50. flyte/_internal/resolvers/__init__.py +0 -0
  51. flyte/_internal/resolvers/_task_module.py +54 -0
  52. flyte/_internal/resolvers/common.py +31 -0
  53. flyte/_internal/resolvers/default.py +28 -0
  54. flyte/_internal/runtime/__init__.py +0 -0
  55. flyte/_internal/runtime/convert.py +199 -0
  56. flyte/_internal/runtime/entrypoints.py +135 -0
  57. flyte/_internal/runtime/io.py +136 -0
  58. flyte/_internal/runtime/resources_serde.py +138 -0
  59. flyte/_internal/runtime/task_serde.py +210 -0
  60. flyte/_internal/runtime/taskrunner.py +190 -0
  61. flyte/_internal/runtime/types_serde.py +54 -0
  62. flyte/_logging.py +124 -0
  63. flyte/_protos/__init__.py +0 -0
  64. flyte/_protos/common/authorization_pb2.py +66 -0
  65. flyte/_protos/common/authorization_pb2.pyi +108 -0
  66. flyte/_protos/common/authorization_pb2_grpc.py +4 -0
  67. flyte/_protos/common/identifier_pb2.py +71 -0
  68. flyte/_protos/common/identifier_pb2.pyi +82 -0
  69. flyte/_protos/common/identifier_pb2_grpc.py +4 -0
  70. flyte/_protos/common/identity_pb2.py +48 -0
  71. flyte/_protos/common/identity_pb2.pyi +72 -0
  72. flyte/_protos/common/identity_pb2_grpc.py +4 -0
  73. flyte/_protos/common/list_pb2.py +36 -0
  74. flyte/_protos/common/list_pb2.pyi +69 -0
  75. flyte/_protos/common/list_pb2_grpc.py +4 -0
  76. flyte/_protos/common/policy_pb2.py +37 -0
  77. flyte/_protos/common/policy_pb2.pyi +27 -0
  78. flyte/_protos/common/policy_pb2_grpc.py +4 -0
  79. flyte/_protos/common/role_pb2.py +37 -0
  80. flyte/_protos/common/role_pb2.pyi +53 -0
  81. flyte/_protos/common/role_pb2_grpc.py +4 -0
  82. flyte/_protos/common/runtime_version_pb2.py +28 -0
  83. flyte/_protos/common/runtime_version_pb2.pyi +24 -0
  84. flyte/_protos/common/runtime_version_pb2_grpc.py +4 -0
  85. flyte/_protos/logs/dataplane/payload_pb2.py +96 -0
  86. flyte/_protos/logs/dataplane/payload_pb2.pyi +168 -0
  87. flyte/_protos/logs/dataplane/payload_pb2_grpc.py +4 -0
  88. flyte/_protos/secret/definition_pb2.py +49 -0
  89. flyte/_protos/secret/definition_pb2.pyi +93 -0
  90. flyte/_protos/secret/definition_pb2_grpc.py +4 -0
  91. flyte/_protos/secret/payload_pb2.py +62 -0
  92. flyte/_protos/secret/payload_pb2.pyi +94 -0
  93. flyte/_protos/secret/payload_pb2_grpc.py +4 -0
  94. flyte/_protos/secret/secret_pb2.py +38 -0
  95. flyte/_protos/secret/secret_pb2.pyi +6 -0
  96. flyte/_protos/secret/secret_pb2_grpc.py +198 -0
  97. flyte/_protos/secret/secret_pb2_grpc_grpc.py +198 -0
  98. flyte/_protos/validate/validate/validate_pb2.py +76 -0
  99. flyte/_protos/workflow/node_execution_service_pb2.py +26 -0
  100. flyte/_protos/workflow/node_execution_service_pb2.pyi +4 -0
  101. flyte/_protos/workflow/node_execution_service_pb2_grpc.py +32 -0
  102. flyte/_protos/workflow/queue_service_pb2.py +106 -0
  103. flyte/_protos/workflow/queue_service_pb2.pyi +141 -0
  104. flyte/_protos/workflow/queue_service_pb2_grpc.py +172 -0
  105. flyte/_protos/workflow/run_definition_pb2.py +128 -0
  106. flyte/_protos/workflow/run_definition_pb2.pyi +310 -0
  107. flyte/_protos/workflow/run_definition_pb2_grpc.py +4 -0
  108. flyte/_protos/workflow/run_logs_service_pb2.py +41 -0
  109. flyte/_protos/workflow/run_logs_service_pb2.pyi +28 -0
  110. flyte/_protos/workflow/run_logs_service_pb2_grpc.py +69 -0
  111. flyte/_protos/workflow/run_service_pb2.py +133 -0
  112. flyte/_protos/workflow/run_service_pb2.pyi +175 -0
  113. flyte/_protos/workflow/run_service_pb2_grpc.py +412 -0
  114. flyte/_protos/workflow/state_service_pb2.py +58 -0
  115. flyte/_protos/workflow/state_service_pb2.pyi +71 -0
  116. flyte/_protos/workflow/state_service_pb2_grpc.py +138 -0
  117. flyte/_protos/workflow/task_definition_pb2.py +72 -0
  118. flyte/_protos/workflow/task_definition_pb2.pyi +65 -0
  119. flyte/_protos/workflow/task_definition_pb2_grpc.py +4 -0
  120. flyte/_protos/workflow/task_service_pb2.py +44 -0
  121. flyte/_protos/workflow/task_service_pb2.pyi +31 -0
  122. flyte/_protos/workflow/task_service_pb2_grpc.py +104 -0
  123. flyte/_resources.py +226 -0
  124. flyte/_retry.py +32 -0
  125. flyte/_reusable_environment.py +25 -0
  126. flyte/_run.py +411 -0
  127. flyte/_secret.py +61 -0
  128. flyte/_task.py +367 -0
  129. flyte/_task_environment.py +200 -0
  130. flyte/_timeout.py +47 -0
  131. flyte/_tools.py +27 -0
  132. flyte/_trace.py +128 -0
  133. flyte/_utils/__init__.py +20 -0
  134. flyte/_utils/asyn.py +119 -0
  135. flyte/_utils/coro_management.py +25 -0
  136. flyte/_utils/file_handling.py +72 -0
  137. flyte/_utils/helpers.py +108 -0
  138. flyte/_utils/lazy_module.py +54 -0
  139. flyte/_utils/uv_script_parser.py +49 -0
  140. flyte/_version.py +21 -0
  141. flyte/connectors/__init__.py +0 -0
  142. flyte/errors.py +143 -0
  143. flyte/extras/__init__.py +5 -0
  144. flyte/extras/_container.py +273 -0
  145. flyte/io/__init__.py +11 -0
  146. flyte/io/_dataframe.py +0 -0
  147. flyte/io/_dir.py +448 -0
  148. flyte/io/_file.py +468 -0
  149. flyte/io/pickle/__init__.py +0 -0
  150. flyte/io/pickle/transformer.py +117 -0
  151. flyte/io/structured_dataset/__init__.py +129 -0
  152. flyte/io/structured_dataset/basic_dfs.py +219 -0
  153. flyte/io/structured_dataset/structured_dataset.py +1061 -0
  154. flyte/py.typed +0 -0
  155. flyte/remote/__init__.py +25 -0
  156. flyte/remote/_client/__init__.py +0 -0
  157. flyte/remote/_client/_protocols.py +131 -0
  158. flyte/remote/_client/auth/__init__.py +12 -0
  159. flyte/remote/_client/auth/_authenticators/__init__.py +0 -0
  160. flyte/remote/_client/auth/_authenticators/base.py +397 -0
  161. flyte/remote/_client/auth/_authenticators/client_credentials.py +73 -0
  162. flyte/remote/_client/auth/_authenticators/device_code.py +118 -0
  163. flyte/remote/_client/auth/_authenticators/external_command.py +79 -0
  164. flyte/remote/_client/auth/_authenticators/factory.py +200 -0
  165. flyte/remote/_client/auth/_authenticators/pkce.py +516 -0
  166. flyte/remote/_client/auth/_channel.py +184 -0
  167. flyte/remote/_client/auth/_client_config.py +83 -0
  168. flyte/remote/_client/auth/_default_html.py +32 -0
  169. flyte/remote/_client/auth/_grpc_utils/__init__.py +0 -0
  170. flyte/remote/_client/auth/_grpc_utils/auth_interceptor.py +288 -0
  171. flyte/remote/_client/auth/_grpc_utils/default_metadata_interceptor.py +151 -0
  172. flyte/remote/_client/auth/_keyring.py +143 -0
  173. flyte/remote/_client/auth/_token_client.py +260 -0
  174. flyte/remote/_client/auth/errors.py +16 -0
  175. flyte/remote/_client/controlplane.py +95 -0
  176. flyte/remote/_console.py +18 -0
  177. flyte/remote/_data.py +155 -0
  178. flyte/remote/_logs.py +116 -0
  179. flyte/remote/_project.py +86 -0
  180. flyte/remote/_run.py +873 -0
  181. flyte/remote/_secret.py +132 -0
  182. flyte/remote/_task.py +227 -0
  183. flyte/report/__init__.py +3 -0
  184. flyte/report/_report.py +178 -0
  185. flyte/report/_template.html +124 -0
  186. flyte/storage/__init__.py +24 -0
  187. flyte/storage/_remote_fs.py +34 -0
  188. flyte/storage/_storage.py +251 -0
  189. flyte/storage/_utils.py +5 -0
  190. flyte/types/__init__.py +13 -0
  191. flyte/types/_interface.py +25 -0
  192. flyte/types/_renderer.py +162 -0
  193. flyte/types/_string_literals.py +120 -0
  194. flyte/types/_type_engine.py +2210 -0
  195. flyte/types/_utils.py +80 -0
  196. flyte-0.0.1b0.dist-info/METADATA +179 -0
  197. flyte-0.0.1b0.dist-info/RECORD +390 -0
  198. flyte-0.0.1b0.dist-info/WHEEL +5 -0
  199. flyte-0.0.1b0.dist-info/entry_points.txt +3 -0
  200. flyte-0.0.1b0.dist-info/top_level.txt +1 -0
  201. union/__init__.py +54 -0
  202. union/_api_commons.py +3 -0
  203. union/_bin/__init__.py +0 -0
  204. union/_bin/runtime.py +113 -0
  205. union/_build.py +25 -0
  206. union/_cache/__init__.py +12 -0
  207. union/_cache/cache.py +141 -0
  208. union/_cache/defaults.py +9 -0
  209. union/_cache/policy_function_body.py +42 -0
  210. union/_cli/__init__.py +0 -0
  211. union/_cli/_common.py +263 -0
  212. union/_cli/_create.py +40 -0
  213. union/_cli/_delete.py +23 -0
  214. union/_cli/_deploy.py +120 -0
  215. union/_cli/_get.py +162 -0
  216. union/_cli/_params.py +579 -0
  217. union/_cli/_run.py +150 -0
  218. union/_cli/main.py +72 -0
  219. union/_code_bundle/__init__.py +8 -0
  220. union/_code_bundle/_ignore.py +113 -0
  221. union/_code_bundle/_packaging.py +187 -0
  222. union/_code_bundle/_utils.py +342 -0
  223. union/_code_bundle/bundle.py +176 -0
  224. union/_context.py +146 -0
  225. union/_datastructures.py +295 -0
  226. union/_deploy.py +185 -0
  227. union/_doc.py +29 -0
  228. union/_docstring.py +26 -0
  229. union/_environment.py +43 -0
  230. union/_group.py +31 -0
  231. union/_hash.py +23 -0
  232. union/_image.py +760 -0
  233. union/_initialize.py +585 -0
  234. union/_interface.py +84 -0
  235. union/_internal/__init__.py +3 -0
  236. union/_internal/controllers/__init__.py +77 -0
  237. union/_internal/controllers/_local_controller.py +77 -0
  238. union/_internal/controllers/pbhash.py +39 -0
  239. union/_internal/controllers/remote/__init__.py +40 -0
  240. union/_internal/controllers/remote/_action.py +131 -0
  241. union/_internal/controllers/remote/_client.py +43 -0
  242. union/_internal/controllers/remote/_controller.py +169 -0
  243. union/_internal/controllers/remote/_core.py +341 -0
  244. union/_internal/controllers/remote/_informer.py +260 -0
  245. union/_internal/controllers/remote/_service_protocol.py +44 -0
  246. union/_internal/imagebuild/__init__.py +11 -0
  247. union/_internal/imagebuild/docker_builder.py +416 -0
  248. union/_internal/imagebuild/image_builder.py +243 -0
  249. union/_internal/imagebuild/remote_builder.py +0 -0
  250. union/_internal/resolvers/__init__.py +0 -0
  251. union/_internal/resolvers/_task_module.py +31 -0
  252. union/_internal/resolvers/common.py +24 -0
  253. union/_internal/resolvers/default.py +27 -0
  254. union/_internal/runtime/__init__.py +0 -0
  255. union/_internal/runtime/convert.py +163 -0
  256. union/_internal/runtime/entrypoints.py +121 -0
  257. union/_internal/runtime/io.py +136 -0
  258. union/_internal/runtime/resources_serde.py +134 -0
  259. union/_internal/runtime/task_serde.py +202 -0
  260. union/_internal/runtime/taskrunner.py +179 -0
  261. union/_internal/runtime/types_serde.py +53 -0
  262. union/_logging.py +124 -0
  263. union/_protos/__init__.py +0 -0
  264. union/_protos/common/authorization_pb2.py +66 -0
  265. union/_protos/common/authorization_pb2.pyi +106 -0
  266. union/_protos/common/authorization_pb2_grpc.py +4 -0
  267. union/_protos/common/identifier_pb2.py +71 -0
  268. union/_protos/common/identifier_pb2.pyi +82 -0
  269. union/_protos/common/identifier_pb2_grpc.py +4 -0
  270. union/_protos/common/identity_pb2.py +48 -0
  271. union/_protos/common/identity_pb2.pyi +72 -0
  272. union/_protos/common/identity_pb2_grpc.py +4 -0
  273. union/_protos/common/list_pb2.py +36 -0
  274. union/_protos/common/list_pb2.pyi +69 -0
  275. union/_protos/common/list_pb2_grpc.py +4 -0
  276. union/_protos/common/policy_pb2.py +37 -0
  277. union/_protos/common/policy_pb2.pyi +27 -0
  278. union/_protos/common/policy_pb2_grpc.py +4 -0
  279. union/_protos/common/role_pb2.py +37 -0
  280. union/_protos/common/role_pb2.pyi +51 -0
  281. union/_protos/common/role_pb2_grpc.py +4 -0
  282. union/_protos/common/runtime_version_pb2.py +28 -0
  283. union/_protos/common/runtime_version_pb2.pyi +24 -0
  284. union/_protos/common/runtime_version_pb2_grpc.py +4 -0
  285. union/_protos/logs/dataplane/payload_pb2.py +96 -0
  286. union/_protos/logs/dataplane/payload_pb2.pyi +168 -0
  287. union/_protos/logs/dataplane/payload_pb2_grpc.py +4 -0
  288. union/_protos/secret/definition_pb2.py +49 -0
  289. union/_protos/secret/definition_pb2.pyi +93 -0
  290. union/_protos/secret/definition_pb2_grpc.py +4 -0
  291. union/_protos/secret/payload_pb2.py +62 -0
  292. union/_protos/secret/payload_pb2.pyi +94 -0
  293. union/_protos/secret/payload_pb2_grpc.py +4 -0
  294. union/_protos/secret/secret_pb2.py +38 -0
  295. union/_protos/secret/secret_pb2.pyi +6 -0
  296. union/_protos/secret/secret_pb2_grpc.py +198 -0
  297. union/_protos/validate/validate/validate_pb2.py +76 -0
  298. union/_protos/workflow/node_execution_service_pb2.py +26 -0
  299. union/_protos/workflow/node_execution_service_pb2.pyi +4 -0
  300. union/_protos/workflow/node_execution_service_pb2_grpc.py +32 -0
  301. union/_protos/workflow/queue_service_pb2.py +75 -0
  302. union/_protos/workflow/queue_service_pb2.pyi +103 -0
  303. union/_protos/workflow/queue_service_pb2_grpc.py +172 -0
  304. union/_protos/workflow/run_definition_pb2.py +100 -0
  305. union/_protos/workflow/run_definition_pb2.pyi +256 -0
  306. union/_protos/workflow/run_definition_pb2_grpc.py +4 -0
  307. union/_protos/workflow/run_logs_service_pb2.py +41 -0
  308. union/_protos/workflow/run_logs_service_pb2.pyi +28 -0
  309. union/_protos/workflow/run_logs_service_pb2_grpc.py +69 -0
  310. union/_protos/workflow/run_service_pb2.py +133 -0
  311. union/_protos/workflow/run_service_pb2.pyi +173 -0
  312. union/_protos/workflow/run_service_pb2_grpc.py +412 -0
  313. union/_protos/workflow/state_service_pb2.py +58 -0
  314. union/_protos/workflow/state_service_pb2.pyi +69 -0
  315. union/_protos/workflow/state_service_pb2_grpc.py +138 -0
  316. union/_protos/workflow/task_definition_pb2.py +72 -0
  317. union/_protos/workflow/task_definition_pb2.pyi +65 -0
  318. union/_protos/workflow/task_definition_pb2_grpc.py +4 -0
  319. union/_protos/workflow/task_service_pb2.py +44 -0
  320. union/_protos/workflow/task_service_pb2.pyi +31 -0
  321. union/_protos/workflow/task_service_pb2_grpc.py +104 -0
  322. union/_resources.py +226 -0
  323. union/_retry.py +32 -0
  324. union/_reusable_environment.py +25 -0
  325. union/_run.py +374 -0
  326. union/_secret.py +61 -0
  327. union/_task.py +354 -0
  328. union/_task_environment.py +186 -0
  329. union/_timeout.py +47 -0
  330. union/_tools.py +27 -0
  331. union/_utils/__init__.py +11 -0
  332. union/_utils/asyn.py +119 -0
  333. union/_utils/file_handling.py +71 -0
  334. union/_utils/helpers.py +46 -0
  335. union/_utils/lazy_module.py +54 -0
  336. union/_utils/uv_script_parser.py +49 -0
  337. union/_version.py +21 -0
  338. union/connectors/__init__.py +0 -0
  339. union/errors.py +128 -0
  340. union/extras/__init__.py +5 -0
  341. union/extras/_container.py +263 -0
  342. union/io/__init__.py +11 -0
  343. union/io/_dataframe.py +0 -0
  344. union/io/_dir.py +425 -0
  345. union/io/_file.py +418 -0
  346. union/io/pickle/__init__.py +0 -0
  347. union/io/pickle/transformer.py +117 -0
  348. union/io/structured_dataset/__init__.py +122 -0
  349. union/io/structured_dataset/basic_dfs.py +219 -0
  350. union/io/structured_dataset/structured_dataset.py +1057 -0
  351. union/py.typed +0 -0
  352. union/remote/__init__.py +23 -0
  353. union/remote/_client/__init__.py +0 -0
  354. union/remote/_client/_protocols.py +129 -0
  355. union/remote/_client/auth/__init__.py +12 -0
  356. union/remote/_client/auth/_authenticators/__init__.py +0 -0
  357. union/remote/_client/auth/_authenticators/base.py +391 -0
  358. union/remote/_client/auth/_authenticators/client_credentials.py +73 -0
  359. union/remote/_client/auth/_authenticators/device_code.py +120 -0
  360. union/remote/_client/auth/_authenticators/external_command.py +77 -0
  361. union/remote/_client/auth/_authenticators/factory.py +200 -0
  362. union/remote/_client/auth/_authenticators/pkce.py +515 -0
  363. union/remote/_client/auth/_channel.py +184 -0
  364. union/remote/_client/auth/_client_config.py +83 -0
  365. union/remote/_client/auth/_default_html.py +32 -0
  366. union/remote/_client/auth/_grpc_utils/__init__.py +0 -0
  367. union/remote/_client/auth/_grpc_utils/auth_interceptor.py +204 -0
  368. union/remote/_client/auth/_grpc_utils/default_metadata_interceptor.py +144 -0
  369. union/remote/_client/auth/_keyring.py +154 -0
  370. union/remote/_client/auth/_token_client.py +258 -0
  371. union/remote/_client/auth/errors.py +16 -0
  372. union/remote/_client/controlplane.py +86 -0
  373. union/remote/_data.py +149 -0
  374. union/remote/_logs.py +74 -0
  375. union/remote/_project.py +86 -0
  376. union/remote/_run.py +820 -0
  377. union/remote/_secret.py +132 -0
  378. union/remote/_task.py +193 -0
  379. union/report/__init__.py +3 -0
  380. union/report/_report.py +178 -0
  381. union/report/_template.html +124 -0
  382. union/storage/__init__.py +24 -0
  383. union/storage/_remote_fs.py +34 -0
  384. union/storage/_storage.py +247 -0
  385. union/storage/_utils.py +5 -0
  386. union/types/__init__.py +11 -0
  387. union/types/_renderer.py +162 -0
  388. union/types/_string_literals.py +120 -0
  389. union/types/_type_engine.py +2131 -0
  390. union/types/_utils.py +80 -0
@@ -0,0 +1,69 @@
1
+ from google.protobuf.internal import containers as _containers
2
+ from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
3
+ from google.protobuf import descriptor as _descriptor
4
+ from google.protobuf import message as _message
5
+ from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
6
+
7
+ DESCRIPTOR: _descriptor.FileDescriptor
8
+
9
+ class Sort(_message.Message):
10
+ __slots__ = ["key", "direction"]
11
+ class Direction(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
12
+ __slots__ = []
13
+ DESCENDING: _ClassVar[Sort.Direction]
14
+ ASCENDING: _ClassVar[Sort.Direction]
15
+ DESCENDING: Sort.Direction
16
+ ASCENDING: Sort.Direction
17
+ KEY_FIELD_NUMBER: _ClassVar[int]
18
+ DIRECTION_FIELD_NUMBER: _ClassVar[int]
19
+ key: str
20
+ direction: Sort.Direction
21
+ def __init__(self, key: _Optional[str] = ..., direction: _Optional[_Union[Sort.Direction, str]] = ...) -> None: ...
22
+
23
+ class ListRequest(_message.Message):
24
+ __slots__ = ["limit", "token", "sort_by", "filters", "raw_filters", "sort_by_fields"]
25
+ LIMIT_FIELD_NUMBER: _ClassVar[int]
26
+ TOKEN_FIELD_NUMBER: _ClassVar[int]
27
+ SORT_BY_FIELD_NUMBER: _ClassVar[int]
28
+ FILTERS_FIELD_NUMBER: _ClassVar[int]
29
+ RAW_FILTERS_FIELD_NUMBER: _ClassVar[int]
30
+ SORT_BY_FIELDS_FIELD_NUMBER: _ClassVar[int]
31
+ limit: int
32
+ token: str
33
+ sort_by: Sort
34
+ filters: _containers.RepeatedCompositeFieldContainer[Filter]
35
+ raw_filters: _containers.RepeatedScalarFieldContainer[str]
36
+ sort_by_fields: _containers.RepeatedCompositeFieldContainer[Sort]
37
+ def __init__(self, limit: _Optional[int] = ..., token: _Optional[str] = ..., sort_by: _Optional[_Union[Sort, _Mapping]] = ..., filters: _Optional[_Iterable[_Union[Filter, _Mapping]]] = ..., raw_filters: _Optional[_Iterable[str]] = ..., sort_by_fields: _Optional[_Iterable[_Union[Sort, _Mapping]]] = ...) -> None: ...
38
+
39
+ class Filter(_message.Message):
40
+ __slots__ = ["function", "field", "values"]
41
+ class Function(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
42
+ __slots__ = []
43
+ EQUAL: _ClassVar[Filter.Function]
44
+ NOT_EQUAL: _ClassVar[Filter.Function]
45
+ GREATER_THAN: _ClassVar[Filter.Function]
46
+ GREATER_THAN_OR_EQUAL: _ClassVar[Filter.Function]
47
+ LESS_THAN: _ClassVar[Filter.Function]
48
+ LESS_THAN_OR_EQUAL: _ClassVar[Filter.Function]
49
+ CONTAINS: _ClassVar[Filter.Function]
50
+ VALUE_IN: _ClassVar[Filter.Function]
51
+ ENDS_WITH: _ClassVar[Filter.Function]
52
+ NOT_ENDS_WITH: _ClassVar[Filter.Function]
53
+ EQUAL: Filter.Function
54
+ NOT_EQUAL: Filter.Function
55
+ GREATER_THAN: Filter.Function
56
+ GREATER_THAN_OR_EQUAL: Filter.Function
57
+ LESS_THAN: Filter.Function
58
+ LESS_THAN_OR_EQUAL: Filter.Function
59
+ CONTAINS: Filter.Function
60
+ VALUE_IN: Filter.Function
61
+ ENDS_WITH: Filter.Function
62
+ NOT_ENDS_WITH: Filter.Function
63
+ FUNCTION_FIELD_NUMBER: _ClassVar[int]
64
+ FIELD_FIELD_NUMBER: _ClassVar[int]
65
+ VALUES_FIELD_NUMBER: _ClassVar[int]
66
+ function: Filter.Function
67
+ field: str
68
+ values: _containers.RepeatedScalarFieldContainer[str]
69
+ def __init__(self, function: _Optional[_Union[Filter.Function, str]] = ..., field: _Optional[str] = ..., values: _Optional[_Iterable[str]] = ...) -> None: ...
@@ -0,0 +1,4 @@
1
+ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
+ """Client and server classes corresponding to protobuf-defined services."""
3
+ import grpc
4
+
@@ -0,0 +1,37 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: common/policy.proto
4
+ """Generated protocol buffer code."""
5
+ from google.protobuf import descriptor as _descriptor
6
+ from google.protobuf import descriptor_pool as _descriptor_pool
7
+ from google.protobuf import symbol_database as _symbol_database
8
+ from google.protobuf.internal import builder as _builder
9
+ # @@protoc_insertion_point(imports)
10
+
11
+ _sym_db = _symbol_database.Default()
12
+
13
+
14
+ from flyte._protos.common import authorization_pb2 as common_dot_authorization__pb2
15
+ from flyte._protos.common import identifier_pb2 as common_dot_identifier__pb2
16
+ from flyte._protos.validate.validate import validate_pb2 as validate_dot_validate__pb2
17
+
18
+
19
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x13\x63ommon/policy.proto\x12\x0f\x63loudidl.common\x1a\x1a\x63ommon/authorization.proto\x1a\x17\x63ommon/identifier.proto\x1a\x17validate/validate.proto\"\xa3\x01\n\x06Policy\x12;\n\x02id\x18\x01 \x01(\x0b\x32!.cloudidl.common.PolicyIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x02id\x12:\n\x08\x62indings\x18\x02 \x03(\x0b\x32\x1e.cloudidl.common.PolicyBindingR\x08\x62indings\x12 \n\x0b\x64\x65scription\x18\x03 \x01(\tR\x0b\x64\x65scription\"\x94\x01\n\rPolicyBinding\x12\x42\n\x07role_id\x18\x01 \x01(\x0b\x32\x1f.cloudidl.common.RoleIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x06roleId\x12?\n\x08resource\x18\x02 \x01(\x0b\x32\x19.cloudidl.common.ResourceB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x08resourceB\xac\x01\n\x13\x63om.cloudidl.commonB\x0bPolicyProtoH\x02P\x01Z)github.com/unionai/cloud/gen/pb-go/common\xa2\x02\x03\x43\x43X\xaa\x02\x0f\x43loudidl.Common\xca\x02\x0f\x43loudidl\\Common\xe2\x02\x1b\x43loudidl\\Common\\GPBMetadata\xea\x02\x10\x43loudidl::Commonb\x06proto3')
20
+
21
+ _globals = globals()
22
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
23
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'common.policy_pb2', _globals)
24
+ if _descriptor._USE_C_DESCRIPTORS == False:
25
+ DESCRIPTOR._options = None
26
+ DESCRIPTOR._serialized_options = b'\n\023com.cloudidl.commonB\013PolicyProtoH\002P\001Z)github.com/unionai/cloud/gen/pb-go/common\242\002\003CCX\252\002\017Cloudidl.Common\312\002\017Cloudidl\\Common\342\002\033Cloudidl\\Common\\GPBMetadata\352\002\020Cloudidl::Common'
27
+ _POLICY.fields_by_name['id']._options = None
28
+ _POLICY.fields_by_name['id']._serialized_options = b'\372B\005\212\001\002\020\001'
29
+ _POLICYBINDING.fields_by_name['role_id']._options = None
30
+ _POLICYBINDING.fields_by_name['role_id']._serialized_options = b'\372B\005\212\001\002\020\001'
31
+ _POLICYBINDING.fields_by_name['resource']._options = None
32
+ _POLICYBINDING.fields_by_name['resource']._serialized_options = b'\372B\005\212\001\002\020\001'
33
+ _globals['_POLICY']._serialized_start=119
34
+ _globals['_POLICY']._serialized_end=282
35
+ _globals['_POLICYBINDING']._serialized_start=285
36
+ _globals['_POLICYBINDING']._serialized_end=433
37
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,27 @@
1
+ from flyte._protos.common import authorization_pb2 as _authorization_pb2
2
+ from flyte._protos.common import identifier_pb2 as _identifier_pb2
3
+ from flyte._protos.validate.validate import validate_pb2 as _validate_pb2
4
+ from google.protobuf.internal import containers as _containers
5
+ from google.protobuf import descriptor as _descriptor
6
+ from google.protobuf import message as _message
7
+ from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
8
+
9
+ DESCRIPTOR: _descriptor.FileDescriptor
10
+
11
+ class Policy(_message.Message):
12
+ __slots__ = ["id", "bindings", "description"]
13
+ ID_FIELD_NUMBER: _ClassVar[int]
14
+ BINDINGS_FIELD_NUMBER: _ClassVar[int]
15
+ DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
16
+ id: _identifier_pb2.PolicyIdentifier
17
+ bindings: _containers.RepeatedCompositeFieldContainer[PolicyBinding]
18
+ description: str
19
+ def __init__(self, id: _Optional[_Union[_identifier_pb2.PolicyIdentifier, _Mapping]] = ..., bindings: _Optional[_Iterable[_Union[PolicyBinding, _Mapping]]] = ..., description: _Optional[str] = ...) -> None: ...
20
+
21
+ class PolicyBinding(_message.Message):
22
+ __slots__ = ["role_id", "resource"]
23
+ ROLE_ID_FIELD_NUMBER: _ClassVar[int]
24
+ RESOURCE_FIELD_NUMBER: _ClassVar[int]
25
+ role_id: _identifier_pb2.RoleIdentifier
26
+ resource: _authorization_pb2.Resource
27
+ def __init__(self, role_id: _Optional[_Union[_identifier_pb2.RoleIdentifier, _Mapping]] = ..., resource: _Optional[_Union[_authorization_pb2.Resource, _Mapping]] = ...) -> None: ...
@@ -0,0 +1,4 @@
1
+ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
+ """Client and server classes corresponding to protobuf-defined services."""
3
+ import grpc
4
+
@@ -0,0 +1,37 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: common/role.proto
4
+ """Generated protocol buffer code."""
5
+ from google.protobuf import descriptor as _descriptor
6
+ from google.protobuf import descriptor_pool as _descriptor_pool
7
+ from google.protobuf import symbol_database as _symbol_database
8
+ from google.protobuf.internal import builder as _builder
9
+ # @@protoc_insertion_point(imports)
10
+
11
+ _sym_db = _symbol_database.Default()
12
+
13
+
14
+ from flyte._protos.common import authorization_pb2 as common_dot_authorization__pb2
15
+ from flyte._protos.common import identifier_pb2 as common_dot_identifier__pb2
16
+ from flyte._protos.validate.validate import validate_pb2 as validate_dot_validate__pb2
17
+
18
+
19
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x11\x63ommon/role.proto\x12\x0f\x63loudidl.common\x1a\x1a\x63ommon/authorization.proto\x1a\x17\x63ommon/identifier.proto\x1a\x17validate/validate.proto\"\xa7\x02\n\x04Role\x12\x39\n\x02id\x18\x01 \x01(\x0b\x32\x1f.cloudidl.common.RoleIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x02id\x12\x41\n\x0bpermissions\x18\x02 \x03(\x0b\x32\x1b.cloudidl.common.PermissionB\x02\x18\x01R\x0bpermissions\x12\x36\n\trole_spec\x18\x03 \x01(\x0b\x32\x19.cloudidl.common.RoleSpecR\x08roleSpec\x12\x36\n\trole_type\x18\x04 \x01(\x0e\x32\x19.cloudidl.common.RoleTypeR\x08roleType\x12\x31\n\x07\x61\x63tions\x18\x05 \x03(\x0e\x32\x17.cloudidl.common.ActionR\x07\x61\x63tions\",\n\x08RoleSpec\x12 \n\x0b\x64\x65scription\x18\x01 \x01(\tR\x0b\x64\x65scription*\x9a\x02\n\x08RoleType\x12\x12\n\x0eROLE_TYPE_NONE\x10\x00\x12\x13\n\x0fROLE_TYPE_ADMIN\x10\x01\x12\x19\n\x15ROLE_TYPE_CONTRIBUTOR\x10\x02\x12\x14\n\x10ROLE_TYPE_VIEWER\x10\x03\x12\x14\n\x10ROLE_TYPE_CUSTOM\x10\x04\x12\x1d\n\x19ROLE_TYPE_CLUSTER_MANAGER\x10\x05\x12!\n\x1dROLE_TYPE_FLYTE_PROJECT_ADMIN\x10\x06\x12\x1f\n\x1bROLE_TYPE_SERVERLESS_VIEWER\x10\x07\x12$\n ROLE_TYPE_SERVERLESS_CONTRIBUTOR\x10\x08\x12\x15\n\x11ROLE_TYPE_SUPPORT\x10\tB\xaa\x01\n\x13\x63om.cloudidl.commonB\tRoleProtoH\x02P\x01Z)github.com/unionai/cloud/gen/pb-go/common\xa2\x02\x03\x43\x43X\xaa\x02\x0f\x43loudidl.Common\xca\x02\x0f\x43loudidl\\Common\xe2\x02\x1b\x43loudidl\\Common\\GPBMetadata\xea\x02\x10\x43loudidl::Commonb\x06proto3')
20
+
21
+ _globals = globals()
22
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
23
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'common.role_pb2', _globals)
24
+ if _descriptor._USE_C_DESCRIPTORS == False:
25
+ DESCRIPTOR._options = None
26
+ DESCRIPTOR._serialized_options = b'\n\023com.cloudidl.commonB\tRoleProtoH\002P\001Z)github.com/unionai/cloud/gen/pb-go/common\242\002\003CCX\252\002\017Cloudidl.Common\312\002\017Cloudidl\\Common\342\002\033Cloudidl\\Common\\GPBMetadata\352\002\020Cloudidl::Common'
27
+ _ROLE.fields_by_name['id']._options = None
28
+ _ROLE.fields_by_name['id']._serialized_options = b'\372B\005\212\001\002\020\001'
29
+ _ROLE.fields_by_name['permissions']._options = None
30
+ _ROLE.fields_by_name['permissions']._serialized_options = b'\030\001'
31
+ _globals['_ROLETYPE']._serialized_start=461
32
+ _globals['_ROLETYPE']._serialized_end=743
33
+ _globals['_ROLE']._serialized_start=117
34
+ _globals['_ROLE']._serialized_end=412
35
+ _globals['_ROLESPEC']._serialized_start=414
36
+ _globals['_ROLESPEC']._serialized_end=458
37
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,53 @@
1
+ from flyte._protos.common import authorization_pb2 as _authorization_pb2
2
+ from flyte._protos.common import identifier_pb2 as _identifier_pb2
3
+ from flyte._protos.validate.validate import validate_pb2 as _validate_pb2
4
+ from google.protobuf.internal import containers as _containers
5
+ from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
6
+ from google.protobuf import descriptor as _descriptor
7
+ from google.protobuf import message as _message
8
+ from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
9
+
10
+ DESCRIPTOR: _descriptor.FileDescriptor
11
+
12
+ class RoleType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
13
+ __slots__ = []
14
+ ROLE_TYPE_NONE: _ClassVar[RoleType]
15
+ ROLE_TYPE_ADMIN: _ClassVar[RoleType]
16
+ ROLE_TYPE_CONTRIBUTOR: _ClassVar[RoleType]
17
+ ROLE_TYPE_VIEWER: _ClassVar[RoleType]
18
+ ROLE_TYPE_CUSTOM: _ClassVar[RoleType]
19
+ ROLE_TYPE_CLUSTER_MANAGER: _ClassVar[RoleType]
20
+ ROLE_TYPE_FLYTE_PROJECT_ADMIN: _ClassVar[RoleType]
21
+ ROLE_TYPE_SERVERLESS_VIEWER: _ClassVar[RoleType]
22
+ ROLE_TYPE_SERVERLESS_CONTRIBUTOR: _ClassVar[RoleType]
23
+ ROLE_TYPE_SUPPORT: _ClassVar[RoleType]
24
+ ROLE_TYPE_NONE: RoleType
25
+ ROLE_TYPE_ADMIN: RoleType
26
+ ROLE_TYPE_CONTRIBUTOR: RoleType
27
+ ROLE_TYPE_VIEWER: RoleType
28
+ ROLE_TYPE_CUSTOM: RoleType
29
+ ROLE_TYPE_CLUSTER_MANAGER: RoleType
30
+ ROLE_TYPE_FLYTE_PROJECT_ADMIN: RoleType
31
+ ROLE_TYPE_SERVERLESS_VIEWER: RoleType
32
+ ROLE_TYPE_SERVERLESS_CONTRIBUTOR: RoleType
33
+ ROLE_TYPE_SUPPORT: RoleType
34
+
35
+ class Role(_message.Message):
36
+ __slots__ = ["id", "permissions", "role_spec", "role_type", "actions"]
37
+ ID_FIELD_NUMBER: _ClassVar[int]
38
+ PERMISSIONS_FIELD_NUMBER: _ClassVar[int]
39
+ ROLE_SPEC_FIELD_NUMBER: _ClassVar[int]
40
+ ROLE_TYPE_FIELD_NUMBER: _ClassVar[int]
41
+ ACTIONS_FIELD_NUMBER: _ClassVar[int]
42
+ id: _identifier_pb2.RoleIdentifier
43
+ permissions: _containers.RepeatedCompositeFieldContainer[_authorization_pb2.Permission]
44
+ role_spec: RoleSpec
45
+ role_type: RoleType
46
+ actions: _containers.RepeatedScalarFieldContainer[_authorization_pb2.Action]
47
+ def __init__(self, id: _Optional[_Union[_identifier_pb2.RoleIdentifier, _Mapping]] = ..., permissions: _Optional[_Iterable[_Union[_authorization_pb2.Permission, _Mapping]]] = ..., role_spec: _Optional[_Union[RoleSpec, _Mapping]] = ..., role_type: _Optional[_Union[RoleType, str]] = ..., actions: _Optional[_Iterable[_Union[_authorization_pb2.Action, str]]] = ...) -> None: ...
48
+
49
+ class RoleSpec(_message.Message):
50
+ __slots__ = ["description"]
51
+ DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
52
+ description: str
53
+ def __init__(self, description: _Optional[str] = ...) -> None: ...
@@ -0,0 +1,4 @@
1
+ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
+ """Client and server classes corresponding to protobuf-defined services."""
3
+ import grpc
4
+
@@ -0,0 +1,28 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: common/runtime_version.proto
4
+ """Generated protocol buffer code."""
5
+ from google.protobuf import descriptor as _descriptor
6
+ from google.protobuf import descriptor_pool as _descriptor_pool
7
+ from google.protobuf import symbol_database as _symbol_database
8
+ from google.protobuf.internal import builder as _builder
9
+ # @@protoc_insertion_point(imports)
10
+
11
+ _sym_db = _symbol_database.Default()
12
+
13
+
14
+
15
+
16
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x63ommon/runtime_version.proto\x12\x0f\x63loudidl.common\"\xbd\x01\n\x0fRuntimeMetadata\x12@\n\x04type\x18\x01 \x01(\x0e\x32,.cloudidl.common.RuntimeMetadata.RuntimeTypeR\x04type\x12\x18\n\x07version\x18\x02 \x01(\tR\x07version\x12\x16\n\x06\x66lavor\x18\x03 \x01(\tR\x06\x66lavor\"6\n\x0bRuntimeType\x12\t\n\x05OTHER\x10\x00\x12\r\n\tFLYTE_SDK\x10\x01\x12\r\n\tUNION_SDK\x10\x02\x42\xb4\x01\n\x13\x63om.cloudidl.commonB\x13RuntimeVersionProtoH\x02P\x01Z)github.com/unionai/cloud/gen/pb-go/common\xa2\x02\x03\x43\x43X\xaa\x02\x0f\x43loudidl.Common\xca\x02\x0f\x43loudidl\\Common\xe2\x02\x1b\x43loudidl\\Common\\GPBMetadata\xea\x02\x10\x43loudidl::Commonb\x06proto3')
17
+
18
+ _globals = globals()
19
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
20
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'common.runtime_version_pb2', _globals)
21
+ if _descriptor._USE_C_DESCRIPTORS == False:
22
+ DESCRIPTOR._options = None
23
+ DESCRIPTOR._serialized_options = b'\n\023com.cloudidl.commonB\023RuntimeVersionProtoH\002P\001Z)github.com/unionai/cloud/gen/pb-go/common\242\002\003CCX\252\002\017Cloudidl.Common\312\002\017Cloudidl\\Common\342\002\033Cloudidl\\Common\\GPBMetadata\352\002\020Cloudidl::Common'
24
+ _globals['_RUNTIMEMETADATA']._serialized_start=50
25
+ _globals['_RUNTIMEMETADATA']._serialized_end=239
26
+ _globals['_RUNTIMEMETADATA_RUNTIMETYPE']._serialized_start=185
27
+ _globals['_RUNTIMEMETADATA_RUNTIMETYPE']._serialized_end=239
28
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,24 @@
1
+ from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
2
+ from google.protobuf import descriptor as _descriptor
3
+ from google.protobuf import message as _message
4
+ from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
5
+
6
+ DESCRIPTOR: _descriptor.FileDescriptor
7
+
8
+ class RuntimeMetadata(_message.Message):
9
+ __slots__ = ["type", "version", "flavor"]
10
+ class RuntimeType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
11
+ __slots__ = []
12
+ OTHER: _ClassVar[RuntimeMetadata.RuntimeType]
13
+ FLYTE_SDK: _ClassVar[RuntimeMetadata.RuntimeType]
14
+ UNION_SDK: _ClassVar[RuntimeMetadata.RuntimeType]
15
+ OTHER: RuntimeMetadata.RuntimeType
16
+ FLYTE_SDK: RuntimeMetadata.RuntimeType
17
+ UNION_SDK: RuntimeMetadata.RuntimeType
18
+ TYPE_FIELD_NUMBER: _ClassVar[int]
19
+ VERSION_FIELD_NUMBER: _ClassVar[int]
20
+ FLAVOR_FIELD_NUMBER: _ClassVar[int]
21
+ type: RuntimeMetadata.RuntimeType
22
+ version: str
23
+ flavor: str
24
+ def __init__(self, type: _Optional[_Union[RuntimeMetadata.RuntimeType, str]] = ..., version: _Optional[str] = ..., flavor: _Optional[str] = ...) -> None: ...
@@ -0,0 +1,4 @@
1
+ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
+ """Client and server classes corresponding to protobuf-defined services."""
3
+ import grpc
4
+
@@ -0,0 +1,96 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: logs/dataplane/payload.proto
4
+ """Generated protocol buffer code."""
5
+ from google.protobuf import descriptor as _descriptor
6
+ from google.protobuf import descriptor_pool as _descriptor_pool
7
+ from google.protobuf import symbol_database as _symbol_database
8
+ from google.protobuf.internal import builder as _builder
9
+ # @@protoc_insertion_point(imports)
10
+
11
+ _sym_db = _symbol_database.Default()
12
+
13
+
14
+ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
15
+ from flyte._protos.validate.validate import validate_pb2 as validate_dot_validate__pb2
16
+
17
+
18
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1clogs/dataplane/payload.proto\x12\x17\x63loudidl.logs.dataplane\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17validate/validate.proto\"o\n\x0bPodResource\x12%\n\tnamespace\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01R\tnamespace\x12\x1b\n\x04name\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01R\x04name\x12\x1c\n\tcontainer\x18\x03 \x01(\tR\tcontainer\"\xda\x01\n\x1cTailTaskExecutionLogsRequest\x12Z\n\x0flogging_context\x18\x01 \x01(\x0b\x32\'.cloudidl.logs.dataplane.LoggingContextB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x0eloggingContext\x12;\n\x06source\x18\x03 \x01(\x0e\x32#.cloudidl.logs.dataplane.LogsSourceR\x06source\x12\x1b\n\tno_follow\x18\x04 \x01(\x08R\x08noFollowJ\x04\x08\x02\x10\x03\"\xeb\x01\n\x1dTailTaskExecutionLogsResponse\x12Q\n\x04logs\x18\x01 \x01(\x0b\x32;.cloudidl.logs.dataplane.TailTaskExecutionLogsResponse.LogsH\x00R\x04logs\x1am\n\x04Logs\x12\x18\n\x05lines\x18\x01 \x03(\tB\x02\x18\x01R\x05lines\x12K\n\x10structured_lines\x18\x02 \x03(\x0b\x32 .cloudidl.logs.dataplane.LogLineR\x0fstructuredLinesB\x08\n\x06result\"\xb8\x03\n\x0eLoggingContext\x12*\n\x0c\x63luster_name\x18\x03 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01R\x0b\x63lusterName\x12:\n\x14kubernetes_namespace\x18\x04 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01R\x13kubernetesNamespace\x12\x37\n\x13kubernetes_pod_name\x18\x05 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01R\x11kubernetesPodName\x12\x43\n\x19kubernetes_container_name\x18\x06 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01R\x17kubernetesContainerName\x12[\n\x1c\x65xecution_attempt_start_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x19\x65xecutionAttemptStartTime\x12W\n\x1a\x65xecution_attempt_end_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x17\x65xecutionAttemptEndTimeJ\x04\x08\x01\x10\x02J\x04\x08\x02\x10\x03\"\xf2\x01\n\x13\x43ontainerIdentifier\x12*\n\x0c\x63luster_name\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01R\x0b\x63lusterName\x12:\n\x14kubernetes_namespace\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01R\x13kubernetesNamespace\x12\x37\n\x13kubernetes_pod_name\x18\x03 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01R\x11kubernetesPodName\x12:\n\x19kubernetes_container_name\x18\x04 \x01(\tR\x17kubernetesContainerName\"\xb7\x02\n\x11\x43ontainerSelector\x12*\n\x0c\x63luster_name\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01R\x0b\x63lusterName\x12:\n\x14kubernetes_namespace\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01R\x13kubernetesNamespace\x12;\n\x1akubernetes_pod_name_prefix\x18\x03 \x01(\tR\x17kubernetesPodNamePrefix\x12:\n\x19kubernetes_container_name\x18\x04 \x01(\tR\x17kubernetesContainerName\x12\x41\n\x1dkubernetes_pod_label_selector\x18\x05 \x01(\tR\x1akubernetesPodLabelSelector\"^\n\x0fLiveLogsOptions\x12$\n\x0elog_pod_status\x18\x01 \x01(\x08R\x0clogPodStatus\x12%\n\x0elog_timestamps\x18\x02 \x01(\x08R\rlogTimestamps\"\xd5\x03\n\x0fTailLogsRequest\x12L\n\tcontainer\x18\x01 \x01(\x0b\x32,.cloudidl.logs.dataplane.ContainerIdentifierH\x00R\tcontainer\x12[\n\x12\x63ontainer_selector\x18\x02 \x01(\x0b\x32*.cloudidl.logs.dataplane.ContainerSelectorH\x00R\x11\x63ontainerSelector\x12\x43\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x08\xfa\x42\x05\xb2\x01\x02\x08\x01R\tstartTime\x12\x35\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x07\x65ndTime\x12;\n\x06source\x18\x05 \x01(\x0e\x32#.cloudidl.logs.dataplane.LogsSourceR\x06source\x12T\n\x11live_logs_options\x18\x06 \x01(\x0b\x32(.cloudidl.logs.dataplane.LiveLogsOptionsR\x0fliveLogsOptionsB\x08\n\x06target\"\xa9\x01\n\x07LogLine\x12\x38\n\ttimestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\ttimestamp\x12\x18\n\x07message\x18\x02 \x01(\tR\x07message\x12J\n\noriginator\x18\x03 \x01(\x0e\x32*.cloudidl.logs.dataplane.LogLineOriginatorR\noriginator\"\xf0\x01\n\x08LogLines\x12\x18\n\x05lines\x18\x01 \x03(\tB\x02\x18\x01R\x05lines\x12\'\n\x0f\x63ontainer_index\x18\x02 \x01(\rR\x0e\x63ontainerIndex\x12T\n\tcontainer\x18\x03 \x01(\x0b\x32,.cloudidl.logs.dataplane.ContainerIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\tcontainer\x12K\n\x10structured_lines\x18\x04 \x03(\x0b\x32 .cloudidl.logs.dataplane.LogLineR\x0fstructuredLines\"a\n\x11LogContainersList\x12L\n\ncontainers\x18\x01 \x03(\x0b\x32,.cloudidl.logs.dataplane.ContainerIdentifierR\ncontainers\"F\n\rLogLinesBatch\x12\x35\n\x04logs\x18\x01 \x03(\x0b\x32!.cloudidl.logs.dataplane.LogLinesR\x04logs\"\xd9\x01\n\x10TailLogsResponse\x12V\n\ncontainers\x18\x01 \x01(\x0b\x32*.cloudidl.logs.dataplane.LogContainersListB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01H\x00R\ncontainers\x12Z\n\x0flog_lines_batch\x18\x03 \x01(\x0b\x32&.cloudidl.logs.dataplane.LogLinesBatchB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01H\x00R\rlogLinesBatchB\x0b\n\x04resp\x12\x03\xf8\x42\x01J\x04\x08\x02\x10\x03*6\n\x11LogLineOriginator\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x08\n\x04USER\x10\x01\x12\n\n\x06SYSTEM\x10\x02*F\n\nLogsSource\x12\x15\n\x11LIVE_OR_PERSISTED\x10\x00\x12\r\n\tLIVE_ONLY\x10\x01\x12\x12\n\x0ePERSISTED_ONLY\x10\x02\x42\xde\x01\n\x1b\x63om.cloudidl.logs.dataplaneB\x0cPayloadProtoH\x02P\x01Z1github.com/unionai/cloud/gen/pb-go/logs/dataplane\xa2\x02\x03\x43LD\xaa\x02\x17\x43loudidl.Logs.Dataplane\xca\x02\x17\x43loudidl\\Logs\\Dataplane\xe2\x02#Cloudidl\\Logs\\Dataplane\\GPBMetadata\xea\x02\x19\x43loudidl::Logs::Dataplaneb\x06proto3')
19
+
20
+ _globals = globals()
21
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
22
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'logs.dataplane.payload_pb2', _globals)
23
+ if _descriptor._USE_C_DESCRIPTORS == False:
24
+ DESCRIPTOR._options = None
25
+ DESCRIPTOR._serialized_options = b'\n\033com.cloudidl.logs.dataplaneB\014PayloadProtoH\002P\001Z1github.com/unionai/cloud/gen/pb-go/logs/dataplane\242\002\003CLD\252\002\027Cloudidl.Logs.Dataplane\312\002\027Cloudidl\\Logs\\Dataplane\342\002#Cloudidl\\Logs\\Dataplane\\GPBMetadata\352\002\031Cloudidl::Logs::Dataplane'
26
+ _PODRESOURCE.fields_by_name['namespace']._options = None
27
+ _PODRESOURCE.fields_by_name['namespace']._serialized_options = b'\372B\004r\002\020\001'
28
+ _PODRESOURCE.fields_by_name['name']._options = None
29
+ _PODRESOURCE.fields_by_name['name']._serialized_options = b'\372B\004r\002\020\001'
30
+ _TAILTASKEXECUTIONLOGSREQUEST.fields_by_name['logging_context']._options = None
31
+ _TAILTASKEXECUTIONLOGSREQUEST.fields_by_name['logging_context']._serialized_options = b'\372B\005\212\001\002\020\001'
32
+ _TAILTASKEXECUTIONLOGSRESPONSE_LOGS.fields_by_name['lines']._options = None
33
+ _TAILTASKEXECUTIONLOGSRESPONSE_LOGS.fields_by_name['lines']._serialized_options = b'\030\001'
34
+ _LOGGINGCONTEXT.fields_by_name['cluster_name']._options = None
35
+ _LOGGINGCONTEXT.fields_by_name['cluster_name']._serialized_options = b'\372B\004r\002\020\001'
36
+ _LOGGINGCONTEXT.fields_by_name['kubernetes_namespace']._options = None
37
+ _LOGGINGCONTEXT.fields_by_name['kubernetes_namespace']._serialized_options = b'\372B\004r\002\020\001'
38
+ _LOGGINGCONTEXT.fields_by_name['kubernetes_pod_name']._options = None
39
+ _LOGGINGCONTEXT.fields_by_name['kubernetes_pod_name']._serialized_options = b'\372B\004r\002\020\001'
40
+ _LOGGINGCONTEXT.fields_by_name['kubernetes_container_name']._options = None
41
+ _LOGGINGCONTEXT.fields_by_name['kubernetes_container_name']._serialized_options = b'\372B\004r\002\020\001'
42
+ _CONTAINERIDENTIFIER.fields_by_name['cluster_name']._options = None
43
+ _CONTAINERIDENTIFIER.fields_by_name['cluster_name']._serialized_options = b'\372B\004r\002\020\001'
44
+ _CONTAINERIDENTIFIER.fields_by_name['kubernetes_namespace']._options = None
45
+ _CONTAINERIDENTIFIER.fields_by_name['kubernetes_namespace']._serialized_options = b'\372B\004r\002\020\001'
46
+ _CONTAINERIDENTIFIER.fields_by_name['kubernetes_pod_name']._options = None
47
+ _CONTAINERIDENTIFIER.fields_by_name['kubernetes_pod_name']._serialized_options = b'\372B\004r\002\020\001'
48
+ _CONTAINERSELECTOR.fields_by_name['cluster_name']._options = None
49
+ _CONTAINERSELECTOR.fields_by_name['cluster_name']._serialized_options = b'\372B\004r\002\020\001'
50
+ _CONTAINERSELECTOR.fields_by_name['kubernetes_namespace']._options = None
51
+ _CONTAINERSELECTOR.fields_by_name['kubernetes_namespace']._serialized_options = b'\372B\004r\002\020\001'
52
+ _TAILLOGSREQUEST.fields_by_name['start_time']._options = None
53
+ _TAILLOGSREQUEST.fields_by_name['start_time']._serialized_options = b'\372B\005\262\001\002\010\001'
54
+ _LOGLINES.fields_by_name['lines']._options = None
55
+ _LOGLINES.fields_by_name['lines']._serialized_options = b'\030\001'
56
+ _LOGLINES.fields_by_name['container']._options = None
57
+ _LOGLINES.fields_by_name['container']._serialized_options = b'\372B\005\212\001\002\020\001'
58
+ _TAILLOGSRESPONSE.oneofs_by_name['resp']._options = None
59
+ _TAILLOGSRESPONSE.oneofs_by_name['resp']._serialized_options = b'\370B\001'
60
+ _TAILLOGSRESPONSE.fields_by_name['containers']._options = None
61
+ _TAILLOGSRESPONSE.fields_by_name['containers']._serialized_options = b'\372B\005\212\001\002\020\001'
62
+ _TAILLOGSRESPONSE.fields_by_name['log_lines_batch']._options = None
63
+ _TAILLOGSRESPONSE.fields_by_name['log_lines_batch']._serialized_options = b'\372B\005\212\001\002\020\001'
64
+ _globals['_LOGLINEORIGINATOR']._serialized_start=3063
65
+ _globals['_LOGLINEORIGINATOR']._serialized_end=3117
66
+ _globals['_LOGSSOURCE']._serialized_start=3119
67
+ _globals['_LOGSSOURCE']._serialized_end=3189
68
+ _globals['_PODRESOURCE']._serialized_start=115
69
+ _globals['_PODRESOURCE']._serialized_end=226
70
+ _globals['_TAILTASKEXECUTIONLOGSREQUEST']._serialized_start=229
71
+ _globals['_TAILTASKEXECUTIONLOGSREQUEST']._serialized_end=447
72
+ _globals['_TAILTASKEXECUTIONLOGSRESPONSE']._serialized_start=450
73
+ _globals['_TAILTASKEXECUTIONLOGSRESPONSE']._serialized_end=685
74
+ _globals['_TAILTASKEXECUTIONLOGSRESPONSE_LOGS']._serialized_start=566
75
+ _globals['_TAILTASKEXECUTIONLOGSRESPONSE_LOGS']._serialized_end=675
76
+ _globals['_LOGGINGCONTEXT']._serialized_start=688
77
+ _globals['_LOGGINGCONTEXT']._serialized_end=1128
78
+ _globals['_CONTAINERIDENTIFIER']._serialized_start=1131
79
+ _globals['_CONTAINERIDENTIFIER']._serialized_end=1373
80
+ _globals['_CONTAINERSELECTOR']._serialized_start=1376
81
+ _globals['_CONTAINERSELECTOR']._serialized_end=1687
82
+ _globals['_LIVELOGSOPTIONS']._serialized_start=1689
83
+ _globals['_LIVELOGSOPTIONS']._serialized_end=1783
84
+ _globals['_TAILLOGSREQUEST']._serialized_start=1786
85
+ _globals['_TAILLOGSREQUEST']._serialized_end=2255
86
+ _globals['_LOGLINE']._serialized_start=2258
87
+ _globals['_LOGLINE']._serialized_end=2427
88
+ _globals['_LOGLINES']._serialized_start=2430
89
+ _globals['_LOGLINES']._serialized_end=2670
90
+ _globals['_LOGCONTAINERSLIST']._serialized_start=2672
91
+ _globals['_LOGCONTAINERSLIST']._serialized_end=2769
92
+ _globals['_LOGLINESBATCH']._serialized_start=2771
93
+ _globals['_LOGLINESBATCH']._serialized_end=2841
94
+ _globals['_TAILLOGSRESPONSE']._serialized_start=2844
95
+ _globals['_TAILLOGSRESPONSE']._serialized_end=3061
96
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,168 @@
1
+ from google.protobuf import timestamp_pb2 as _timestamp_pb2
2
+ from flyte._protos.validate.validate import validate_pb2 as _validate_pb2
3
+ from google.protobuf.internal import containers as _containers
4
+ from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
5
+ from google.protobuf import descriptor as _descriptor
6
+ from google.protobuf import message as _message
7
+ from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
8
+
9
+ DESCRIPTOR: _descriptor.FileDescriptor
10
+
11
+ class LogLineOriginator(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
12
+ __slots__ = []
13
+ UNKNOWN: _ClassVar[LogLineOriginator]
14
+ USER: _ClassVar[LogLineOriginator]
15
+ SYSTEM: _ClassVar[LogLineOriginator]
16
+
17
+ class LogsSource(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
18
+ __slots__ = []
19
+ LIVE_OR_PERSISTED: _ClassVar[LogsSource]
20
+ LIVE_ONLY: _ClassVar[LogsSource]
21
+ PERSISTED_ONLY: _ClassVar[LogsSource]
22
+ UNKNOWN: LogLineOriginator
23
+ USER: LogLineOriginator
24
+ SYSTEM: LogLineOriginator
25
+ LIVE_OR_PERSISTED: LogsSource
26
+ LIVE_ONLY: LogsSource
27
+ PERSISTED_ONLY: LogsSource
28
+
29
+ class PodResource(_message.Message):
30
+ __slots__ = ["namespace", "name", "container"]
31
+ NAMESPACE_FIELD_NUMBER: _ClassVar[int]
32
+ NAME_FIELD_NUMBER: _ClassVar[int]
33
+ CONTAINER_FIELD_NUMBER: _ClassVar[int]
34
+ namespace: str
35
+ name: str
36
+ container: str
37
+ def __init__(self, namespace: _Optional[str] = ..., name: _Optional[str] = ..., container: _Optional[str] = ...) -> None: ...
38
+
39
+ class TailTaskExecutionLogsRequest(_message.Message):
40
+ __slots__ = ["logging_context", "source", "no_follow"]
41
+ LOGGING_CONTEXT_FIELD_NUMBER: _ClassVar[int]
42
+ SOURCE_FIELD_NUMBER: _ClassVar[int]
43
+ NO_FOLLOW_FIELD_NUMBER: _ClassVar[int]
44
+ logging_context: LoggingContext
45
+ source: LogsSource
46
+ no_follow: bool
47
+ def __init__(self, logging_context: _Optional[_Union[LoggingContext, _Mapping]] = ..., source: _Optional[_Union[LogsSource, str]] = ..., no_follow: bool = ...) -> None: ...
48
+
49
+ class TailTaskExecutionLogsResponse(_message.Message):
50
+ __slots__ = ["logs"]
51
+ class Logs(_message.Message):
52
+ __slots__ = ["lines", "structured_lines"]
53
+ LINES_FIELD_NUMBER: _ClassVar[int]
54
+ STRUCTURED_LINES_FIELD_NUMBER: _ClassVar[int]
55
+ lines: _containers.RepeatedScalarFieldContainer[str]
56
+ structured_lines: _containers.RepeatedCompositeFieldContainer[LogLine]
57
+ def __init__(self, lines: _Optional[_Iterable[str]] = ..., structured_lines: _Optional[_Iterable[_Union[LogLine, _Mapping]]] = ...) -> None: ...
58
+ LOGS_FIELD_NUMBER: _ClassVar[int]
59
+ logs: TailTaskExecutionLogsResponse.Logs
60
+ def __init__(self, logs: _Optional[_Union[TailTaskExecutionLogsResponse.Logs, _Mapping]] = ...) -> None: ...
61
+
62
+ class LoggingContext(_message.Message):
63
+ __slots__ = ["cluster_name", "kubernetes_namespace", "kubernetes_pod_name", "kubernetes_container_name", "execution_attempt_start_time", "execution_attempt_end_time"]
64
+ CLUSTER_NAME_FIELD_NUMBER: _ClassVar[int]
65
+ KUBERNETES_NAMESPACE_FIELD_NUMBER: _ClassVar[int]
66
+ KUBERNETES_POD_NAME_FIELD_NUMBER: _ClassVar[int]
67
+ KUBERNETES_CONTAINER_NAME_FIELD_NUMBER: _ClassVar[int]
68
+ EXECUTION_ATTEMPT_START_TIME_FIELD_NUMBER: _ClassVar[int]
69
+ EXECUTION_ATTEMPT_END_TIME_FIELD_NUMBER: _ClassVar[int]
70
+ cluster_name: str
71
+ kubernetes_namespace: str
72
+ kubernetes_pod_name: str
73
+ kubernetes_container_name: str
74
+ execution_attempt_start_time: _timestamp_pb2.Timestamp
75
+ execution_attempt_end_time: _timestamp_pb2.Timestamp
76
+ def __init__(self, cluster_name: _Optional[str] = ..., kubernetes_namespace: _Optional[str] = ..., kubernetes_pod_name: _Optional[str] = ..., kubernetes_container_name: _Optional[str] = ..., execution_attempt_start_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., execution_attempt_end_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ...
77
+
78
+ class ContainerIdentifier(_message.Message):
79
+ __slots__ = ["cluster_name", "kubernetes_namespace", "kubernetes_pod_name", "kubernetes_container_name"]
80
+ CLUSTER_NAME_FIELD_NUMBER: _ClassVar[int]
81
+ KUBERNETES_NAMESPACE_FIELD_NUMBER: _ClassVar[int]
82
+ KUBERNETES_POD_NAME_FIELD_NUMBER: _ClassVar[int]
83
+ KUBERNETES_CONTAINER_NAME_FIELD_NUMBER: _ClassVar[int]
84
+ cluster_name: str
85
+ kubernetes_namespace: str
86
+ kubernetes_pod_name: str
87
+ kubernetes_container_name: str
88
+ def __init__(self, cluster_name: _Optional[str] = ..., kubernetes_namespace: _Optional[str] = ..., kubernetes_pod_name: _Optional[str] = ..., kubernetes_container_name: _Optional[str] = ...) -> None: ...
89
+
90
+ class ContainerSelector(_message.Message):
91
+ __slots__ = ["cluster_name", "kubernetes_namespace", "kubernetes_pod_name_prefix", "kubernetes_container_name", "kubernetes_pod_label_selector"]
92
+ CLUSTER_NAME_FIELD_NUMBER: _ClassVar[int]
93
+ KUBERNETES_NAMESPACE_FIELD_NUMBER: _ClassVar[int]
94
+ KUBERNETES_POD_NAME_PREFIX_FIELD_NUMBER: _ClassVar[int]
95
+ KUBERNETES_CONTAINER_NAME_FIELD_NUMBER: _ClassVar[int]
96
+ KUBERNETES_POD_LABEL_SELECTOR_FIELD_NUMBER: _ClassVar[int]
97
+ cluster_name: str
98
+ kubernetes_namespace: str
99
+ kubernetes_pod_name_prefix: str
100
+ kubernetes_container_name: str
101
+ kubernetes_pod_label_selector: str
102
+ def __init__(self, cluster_name: _Optional[str] = ..., kubernetes_namespace: _Optional[str] = ..., kubernetes_pod_name_prefix: _Optional[str] = ..., kubernetes_container_name: _Optional[str] = ..., kubernetes_pod_label_selector: _Optional[str] = ...) -> None: ...
103
+
104
+ class LiveLogsOptions(_message.Message):
105
+ __slots__ = ["log_pod_status", "log_timestamps"]
106
+ LOG_POD_STATUS_FIELD_NUMBER: _ClassVar[int]
107
+ LOG_TIMESTAMPS_FIELD_NUMBER: _ClassVar[int]
108
+ log_pod_status: bool
109
+ log_timestamps: bool
110
+ def __init__(self, log_pod_status: bool = ..., log_timestamps: bool = ...) -> None: ...
111
+
112
+ class TailLogsRequest(_message.Message):
113
+ __slots__ = ["container", "container_selector", "start_time", "end_time", "source", "live_logs_options"]
114
+ CONTAINER_FIELD_NUMBER: _ClassVar[int]
115
+ CONTAINER_SELECTOR_FIELD_NUMBER: _ClassVar[int]
116
+ START_TIME_FIELD_NUMBER: _ClassVar[int]
117
+ END_TIME_FIELD_NUMBER: _ClassVar[int]
118
+ SOURCE_FIELD_NUMBER: _ClassVar[int]
119
+ LIVE_LOGS_OPTIONS_FIELD_NUMBER: _ClassVar[int]
120
+ container: ContainerIdentifier
121
+ container_selector: ContainerSelector
122
+ start_time: _timestamp_pb2.Timestamp
123
+ end_time: _timestamp_pb2.Timestamp
124
+ source: LogsSource
125
+ live_logs_options: LiveLogsOptions
126
+ def __init__(self, container: _Optional[_Union[ContainerIdentifier, _Mapping]] = ..., container_selector: _Optional[_Union[ContainerSelector, _Mapping]] = ..., start_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., end_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., source: _Optional[_Union[LogsSource, str]] = ..., live_logs_options: _Optional[_Union[LiveLogsOptions, _Mapping]] = ...) -> None: ...
127
+
128
+ class LogLine(_message.Message):
129
+ __slots__ = ["timestamp", "message", "originator"]
130
+ TIMESTAMP_FIELD_NUMBER: _ClassVar[int]
131
+ MESSAGE_FIELD_NUMBER: _ClassVar[int]
132
+ ORIGINATOR_FIELD_NUMBER: _ClassVar[int]
133
+ timestamp: _timestamp_pb2.Timestamp
134
+ message: str
135
+ originator: LogLineOriginator
136
+ def __init__(self, timestamp: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., message: _Optional[str] = ..., originator: _Optional[_Union[LogLineOriginator, str]] = ...) -> None: ...
137
+
138
+ class LogLines(_message.Message):
139
+ __slots__ = ["lines", "container_index", "container", "structured_lines"]
140
+ LINES_FIELD_NUMBER: _ClassVar[int]
141
+ CONTAINER_INDEX_FIELD_NUMBER: _ClassVar[int]
142
+ CONTAINER_FIELD_NUMBER: _ClassVar[int]
143
+ STRUCTURED_LINES_FIELD_NUMBER: _ClassVar[int]
144
+ lines: _containers.RepeatedScalarFieldContainer[str]
145
+ container_index: int
146
+ container: ContainerIdentifier
147
+ structured_lines: _containers.RepeatedCompositeFieldContainer[LogLine]
148
+ def __init__(self, lines: _Optional[_Iterable[str]] = ..., container_index: _Optional[int] = ..., container: _Optional[_Union[ContainerIdentifier, _Mapping]] = ..., structured_lines: _Optional[_Iterable[_Union[LogLine, _Mapping]]] = ...) -> None: ...
149
+
150
+ class LogContainersList(_message.Message):
151
+ __slots__ = ["containers"]
152
+ CONTAINERS_FIELD_NUMBER: _ClassVar[int]
153
+ containers: _containers.RepeatedCompositeFieldContainer[ContainerIdentifier]
154
+ def __init__(self, containers: _Optional[_Iterable[_Union[ContainerIdentifier, _Mapping]]] = ...) -> None: ...
155
+
156
+ class LogLinesBatch(_message.Message):
157
+ __slots__ = ["logs"]
158
+ LOGS_FIELD_NUMBER: _ClassVar[int]
159
+ logs: _containers.RepeatedCompositeFieldContainer[LogLines]
160
+ def __init__(self, logs: _Optional[_Iterable[_Union[LogLines, _Mapping]]] = ...) -> None: ...
161
+
162
+ class TailLogsResponse(_message.Message):
163
+ __slots__ = ["containers", "log_lines_batch"]
164
+ CONTAINERS_FIELD_NUMBER: _ClassVar[int]
165
+ LOG_LINES_BATCH_FIELD_NUMBER: _ClassVar[int]
166
+ containers: LogContainersList
167
+ log_lines_batch: LogLinesBatch
168
+ def __init__(self, containers: _Optional[_Union[LogContainersList, _Mapping]] = ..., log_lines_batch: _Optional[_Union[LogLinesBatch, _Mapping]] = ...) -> None: ...
@@ -0,0 +1,4 @@
1
+ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
+ """Client and server classes corresponding to protobuf-defined services."""
3
+ import grpc
4
+