flyte 2.0.0b22__py3-none-any.whl → 2.0.0b30__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 (197) hide show
  1. flyte/__init__.py +18 -2
  2. flyte/_bin/runtime.py +43 -5
  3. flyte/_cache/cache.py +4 -2
  4. flyte/_cache/local_cache.py +216 -0
  5. flyte/_code_bundle/_ignore.py +1 -1
  6. flyte/_code_bundle/_packaging.py +4 -4
  7. flyte/_code_bundle/_utils.py +14 -8
  8. flyte/_code_bundle/bundle.py +13 -5
  9. flyte/_constants.py +1 -0
  10. flyte/_context.py +4 -1
  11. flyte/_custom_context.py +73 -0
  12. flyte/_debug/constants.py +0 -1
  13. flyte/_debug/vscode.py +6 -1
  14. flyte/_deploy.py +223 -59
  15. flyte/_environment.py +5 -0
  16. flyte/_excepthook.py +1 -1
  17. flyte/_image.py +144 -82
  18. flyte/_initialize.py +95 -12
  19. flyte/_interface.py +2 -0
  20. flyte/_internal/controllers/_local_controller.py +65 -24
  21. flyte/_internal/controllers/_trace.py +1 -1
  22. flyte/_internal/controllers/remote/_action.py +13 -11
  23. flyte/_internal/controllers/remote/_client.py +1 -1
  24. flyte/_internal/controllers/remote/_controller.py +9 -4
  25. flyte/_internal/controllers/remote/_core.py +16 -16
  26. flyte/_internal/controllers/remote/_informer.py +4 -4
  27. flyte/_internal/controllers/remote/_service_protocol.py +7 -7
  28. flyte/_internal/imagebuild/docker_builder.py +139 -84
  29. flyte/_internal/imagebuild/image_builder.py +7 -13
  30. flyte/_internal/imagebuild/remote_builder.py +65 -13
  31. flyte/_internal/imagebuild/utils.py +51 -3
  32. flyte/_internal/resolvers/_task_module.py +5 -38
  33. flyte/_internal/resolvers/default.py +2 -2
  34. flyte/_internal/runtime/convert.py +42 -20
  35. flyte/_internal/runtime/entrypoints.py +24 -1
  36. flyte/_internal/runtime/io.py +21 -8
  37. flyte/_internal/runtime/resources_serde.py +20 -6
  38. flyte/_internal/runtime/reuse.py +1 -1
  39. flyte/_internal/runtime/rusty.py +20 -5
  40. flyte/_internal/runtime/task_serde.py +33 -27
  41. flyte/_internal/runtime/taskrunner.py +10 -1
  42. flyte/_internal/runtime/trigger_serde.py +160 -0
  43. flyte/_internal/runtime/types_serde.py +1 -1
  44. flyte/_keyring/file.py +39 -9
  45. flyte/_logging.py +79 -12
  46. flyte/_map.py +31 -12
  47. flyte/_module.py +70 -0
  48. flyte/_pod.py +2 -2
  49. flyte/_resources.py +213 -31
  50. flyte/_run.py +107 -41
  51. flyte/_task.py +66 -10
  52. flyte/_task_environment.py +96 -24
  53. flyte/_task_plugins.py +4 -2
  54. flyte/_trigger.py +1000 -0
  55. flyte/_utils/__init__.py +2 -1
  56. flyte/_utils/asyn.py +3 -1
  57. flyte/_utils/docker_credentials.py +173 -0
  58. flyte/_utils/module_loader.py +17 -2
  59. flyte/_version.py +3 -3
  60. flyte/cli/_abort.py +3 -3
  61. flyte/cli/_build.py +1 -3
  62. flyte/cli/_common.py +78 -7
  63. flyte/cli/_create.py +178 -3
  64. flyte/cli/_delete.py +23 -1
  65. flyte/cli/_deploy.py +49 -11
  66. flyte/cli/_get.py +79 -34
  67. flyte/cli/_params.py +8 -6
  68. flyte/cli/_plugins.py +209 -0
  69. flyte/cli/_run.py +127 -11
  70. flyte/cli/_serve.py +64 -0
  71. flyte/cli/_update.py +37 -0
  72. flyte/cli/_user.py +17 -0
  73. flyte/cli/main.py +30 -4
  74. flyte/config/_config.py +2 -0
  75. flyte/config/_internal.py +1 -0
  76. flyte/config/_reader.py +3 -3
  77. flyte/connectors/__init__.py +11 -0
  78. flyte/connectors/_connector.py +270 -0
  79. flyte/connectors/_server.py +197 -0
  80. flyte/connectors/utils.py +135 -0
  81. flyte/errors.py +10 -1
  82. flyte/extend.py +8 -1
  83. flyte/extras/_container.py +6 -1
  84. flyte/git/_config.py +11 -9
  85. flyte/io/__init__.py +2 -0
  86. flyte/io/_dataframe/__init__.py +2 -0
  87. flyte/io/_dataframe/basic_dfs.py +1 -1
  88. flyte/io/_dataframe/dataframe.py +12 -8
  89. flyte/io/_dir.py +551 -120
  90. flyte/io/_file.py +538 -141
  91. flyte/models.py +57 -12
  92. flyte/remote/__init__.py +6 -1
  93. flyte/remote/_action.py +18 -16
  94. flyte/remote/_client/_protocols.py +39 -4
  95. flyte/remote/_client/auth/_channel.py +10 -6
  96. flyte/remote/_client/controlplane.py +17 -5
  97. flyte/remote/_console.py +3 -2
  98. flyte/remote/_data.py +4 -3
  99. flyte/remote/_logs.py +3 -3
  100. flyte/remote/_run.py +47 -7
  101. flyte/remote/_secret.py +26 -17
  102. flyte/remote/_task.py +21 -9
  103. flyte/remote/_trigger.py +306 -0
  104. flyte/remote/_user.py +33 -0
  105. flyte/storage/__init__.py +6 -1
  106. flyte/storage/_parallel_reader.py +274 -0
  107. flyte/storage/_storage.py +185 -103
  108. flyte/types/__init__.py +16 -0
  109. flyte/types/_interface.py +2 -2
  110. flyte/types/_pickle.py +17 -4
  111. flyte/types/_string_literals.py +8 -9
  112. flyte/types/_type_engine.py +26 -19
  113. flyte/types/_utils.py +1 -1
  114. {flyte-2.0.0b22.data → flyte-2.0.0b30.data}/scripts/runtime.py +43 -5
  115. {flyte-2.0.0b22.dist-info → flyte-2.0.0b30.dist-info}/METADATA +8 -1
  116. flyte-2.0.0b30.dist-info/RECORD +192 -0
  117. flyte/_protos/__init__.py +0 -0
  118. flyte/_protos/common/authorization_pb2.py +0 -66
  119. flyte/_protos/common/authorization_pb2.pyi +0 -108
  120. flyte/_protos/common/authorization_pb2_grpc.py +0 -4
  121. flyte/_protos/common/identifier_pb2.py +0 -99
  122. flyte/_protos/common/identifier_pb2.pyi +0 -120
  123. flyte/_protos/common/identifier_pb2_grpc.py +0 -4
  124. flyte/_protos/common/identity_pb2.py +0 -48
  125. flyte/_protos/common/identity_pb2.pyi +0 -72
  126. flyte/_protos/common/identity_pb2_grpc.py +0 -4
  127. flyte/_protos/common/list_pb2.py +0 -36
  128. flyte/_protos/common/list_pb2.pyi +0 -71
  129. flyte/_protos/common/list_pb2_grpc.py +0 -4
  130. flyte/_protos/common/policy_pb2.py +0 -37
  131. flyte/_protos/common/policy_pb2.pyi +0 -27
  132. flyte/_protos/common/policy_pb2_grpc.py +0 -4
  133. flyte/_protos/common/role_pb2.py +0 -37
  134. flyte/_protos/common/role_pb2.pyi +0 -53
  135. flyte/_protos/common/role_pb2_grpc.py +0 -4
  136. flyte/_protos/common/runtime_version_pb2.py +0 -28
  137. flyte/_protos/common/runtime_version_pb2.pyi +0 -24
  138. flyte/_protos/common/runtime_version_pb2_grpc.py +0 -4
  139. flyte/_protos/imagebuilder/definition_pb2.py +0 -60
  140. flyte/_protos/imagebuilder/definition_pb2.pyi +0 -153
  141. flyte/_protos/imagebuilder/definition_pb2_grpc.py +0 -4
  142. flyte/_protos/imagebuilder/payload_pb2.py +0 -32
  143. flyte/_protos/imagebuilder/payload_pb2.pyi +0 -21
  144. flyte/_protos/imagebuilder/payload_pb2_grpc.py +0 -4
  145. flyte/_protos/imagebuilder/service_pb2.py +0 -29
  146. flyte/_protos/imagebuilder/service_pb2.pyi +0 -5
  147. flyte/_protos/imagebuilder/service_pb2_grpc.py +0 -66
  148. flyte/_protos/logs/dataplane/payload_pb2.py +0 -100
  149. flyte/_protos/logs/dataplane/payload_pb2.pyi +0 -177
  150. flyte/_protos/logs/dataplane/payload_pb2_grpc.py +0 -4
  151. flyte/_protos/secret/definition_pb2.py +0 -49
  152. flyte/_protos/secret/definition_pb2.pyi +0 -93
  153. flyte/_protos/secret/definition_pb2_grpc.py +0 -4
  154. flyte/_protos/secret/payload_pb2.py +0 -62
  155. flyte/_protos/secret/payload_pb2.pyi +0 -94
  156. flyte/_protos/secret/payload_pb2_grpc.py +0 -4
  157. flyte/_protos/secret/secret_pb2.py +0 -38
  158. flyte/_protos/secret/secret_pb2.pyi +0 -6
  159. flyte/_protos/secret/secret_pb2_grpc.py +0 -198
  160. flyte/_protos/secret/secret_pb2_grpc_grpc.py +0 -198
  161. flyte/_protos/validate/validate/validate_pb2.py +0 -76
  162. flyte/_protos/workflow/common_pb2.py +0 -27
  163. flyte/_protos/workflow/common_pb2.pyi +0 -14
  164. flyte/_protos/workflow/common_pb2_grpc.py +0 -4
  165. flyte/_protos/workflow/environment_pb2.py +0 -29
  166. flyte/_protos/workflow/environment_pb2.pyi +0 -12
  167. flyte/_protos/workflow/environment_pb2_grpc.py +0 -4
  168. flyte/_protos/workflow/node_execution_service_pb2.py +0 -26
  169. flyte/_protos/workflow/node_execution_service_pb2.pyi +0 -4
  170. flyte/_protos/workflow/node_execution_service_pb2_grpc.py +0 -32
  171. flyte/_protos/workflow/queue_service_pb2.py +0 -111
  172. flyte/_protos/workflow/queue_service_pb2.pyi +0 -168
  173. flyte/_protos/workflow/queue_service_pb2_grpc.py +0 -172
  174. flyte/_protos/workflow/run_definition_pb2.py +0 -123
  175. flyte/_protos/workflow/run_definition_pb2.pyi +0 -352
  176. flyte/_protos/workflow/run_definition_pb2_grpc.py +0 -4
  177. flyte/_protos/workflow/run_logs_service_pb2.py +0 -41
  178. flyte/_protos/workflow/run_logs_service_pb2.pyi +0 -28
  179. flyte/_protos/workflow/run_logs_service_pb2_grpc.py +0 -69
  180. flyte/_protos/workflow/run_service_pb2.py +0 -137
  181. flyte/_protos/workflow/run_service_pb2.pyi +0 -185
  182. flyte/_protos/workflow/run_service_pb2_grpc.py +0 -446
  183. flyte/_protos/workflow/state_service_pb2.py +0 -67
  184. flyte/_protos/workflow/state_service_pb2.pyi +0 -76
  185. flyte/_protos/workflow/state_service_pb2_grpc.py +0 -138
  186. flyte/_protos/workflow/task_definition_pb2.py +0 -82
  187. flyte/_protos/workflow/task_definition_pb2.pyi +0 -88
  188. flyte/_protos/workflow/task_definition_pb2_grpc.py +0 -4
  189. flyte/_protos/workflow/task_service_pb2.py +0 -60
  190. flyte/_protos/workflow/task_service_pb2.pyi +0 -59
  191. flyte/_protos/workflow/task_service_pb2_grpc.py +0 -138
  192. flyte-2.0.0b22.dist-info/RECORD +0 -250
  193. {flyte-2.0.0b22.data → flyte-2.0.0b30.data}/scripts/debug.py +0 -0
  194. {flyte-2.0.0b22.dist-info → flyte-2.0.0b30.dist-info}/WHEEL +0 -0
  195. {flyte-2.0.0b22.dist-info → flyte-2.0.0b30.dist-info}/entry_points.txt +0 -0
  196. {flyte-2.0.0b22.dist-info → flyte-2.0.0b30.dist-info}/licenses/LICENSE +0 -0
  197. {flyte-2.0.0b22.dist-info → flyte-2.0.0b30.dist-info}/top_level.txt +0 -0
@@ -1,27 +0,0 @@
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: ...
@@ -1,4 +0,0 @@
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
-
@@ -1,37 +0,0 @@
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)
@@ -1,53 +0,0 @@
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: ...
@@ -1,4 +0,0 @@
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
-
@@ -1,28 +0,0 @@
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)
@@ -1,24 +0,0 @@
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: ...
@@ -1,4 +0,0 @@
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
-
@@ -1,60 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- # Generated by the protocol buffer compiler. DO NOT EDIT!
3
- # source: imagebuilder/definition.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 flyteidl.core import security_pb2 as flyteidl_dot_core_dot_security__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\x1dimagebuilder/definition.proto\x12\x15\x63loudidl.imagebuilder\x1a\x1c\x66lyteidl/core/security.proto\x1a\x17validate/validate.proto\".\n\x0fImageIdentifier\x12\x1b\n\x04name\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01R\x04name\"S\n\x05Image\x12\x36\n\x02id\x18\x01 \x01(\x0b\x32&.cloudidl.imagebuilder.ImageIdentifierR\x02id\x12\x12\n\x04\x66qin\x18\x02 \x01(\tR\x04\x66qin\"e\n\x0b\x41ptPackages\x12\x1a\n\x08packages\x18\x01 \x03(\tR\x08packages\x12:\n\rsecret_mounts\x18\x02 \x03(\x0b\x32\x15.flyteidl.core.SecretR\x0csecretMounts\"\x84\x01\n\nPipOptions\x12\x1b\n\tindex_url\x18\x02 \x01(\tR\x08indexUrl\x12(\n\x10\x65xtra_index_urls\x18\x03 \x03(\tR\x0e\x65xtraIndexUrls\x12\x10\n\x03pre\x18\x04 \x01(\x08R\x03pre\x12\x1d\n\nextra_args\x18\x05 \x01(\tR\textraArgs\"\xa2\x01\n\x0bPipPackages\x12\x1a\n\x08packages\x18\x01 \x03(\tR\x08packages\x12;\n\x07options\x18\x02 \x01(\x0b\x32!.cloudidl.imagebuilder.PipOptionsR\x07options\x12:\n\rsecret_mounts\x18\x03 \x03(\x0b\x32\x15.flyteidl.core.SecretR\x0csecretMounts\"\x9b\x01\n\x0cRequirements\x12\x12\n\x04\x66ile\x18\x01 \x01(\tR\x04\x66ile\x12;\n\x07options\x18\x02 \x01(\x0b\x32!.cloudidl.imagebuilder.PipOptionsR\x07options\x12:\n\rsecret_mounts\x18\x03 \x03(\x0b\x32\x15.flyteidl.core.SecretR\x0csecretMounts\"\x99\x01\n\x0cPythonWheels\x12\x10\n\x03\x64ir\x18\x01 \x01(\tR\x03\x64ir\x12;\n\x07options\x18\x02 \x01(\x0b\x32!.cloudidl.imagebuilder.PipOptionsR\x07options\x12:\n\rsecret_mounts\x18\x03 \x03(\x0b\x32\x15.flyteidl.core.SecretR\x0csecretMounts\"\xba\x01\n\tUVProject\x12\x1c\n\tpyproject\x18\x01 \x01(\tR\tpyproject\x12\x16\n\x06uvlock\x18\x02 \x01(\tR\x06uvlock\x12;\n\x07options\x18\x03 \x01(\x0b\x32!.cloudidl.imagebuilder.PipOptionsR\x07options\x12:\n\rsecret_mounts\x18\x04 \x03(\x0b\x32\x15.flyteidl.core.SecretR\x0csecretMounts\"X\n\x08\x43ommands\x12\x10\n\x03\x63md\x18\x02 \x03(\tR\x03\x63md\x12:\n\rsecret_mounts\x18\x03 \x03(\x0b\x32\x15.flyteidl.core.SecretR\x0csecretMounts\"#\n\x07WorkDir\x12\x18\n\x07workdir\x18\x01 \x01(\tR\x07workdir\"0\n\nCopyConfig\x12\x10\n\x03src\x18\x01 \x01(\tR\x03src\x12\x10\n\x03\x64st\x18\x02 \x01(\tR\x03\x64st\"\x99\x01\n\x03\x45nv\x12Q\n\renv_variables\x18\x01 \x03(\x0b\x32,.cloudidl.imagebuilder.Env.EnvVariablesEntryR\x0c\x65nvVariables\x1a?\n\x11\x45nvVariablesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\xed\x04\n\x05Layer\x12G\n\x0c\x61pt_packages\x18\x01 \x01(\x0b\x32\".cloudidl.imagebuilder.AptPackagesH\x00R\x0b\x61ptPackages\x12G\n\x0cpip_packages\x18\x02 \x01(\x0b\x32\".cloudidl.imagebuilder.PipPackagesH\x00R\x0bpipPackages\x12=\n\x08\x63ommands\x18\x03 \x01(\x0b\x32\x1f.cloudidl.imagebuilder.CommandsH\x00R\x08\x63ommands\x12I\n\x0crequirements\x18\x04 \x01(\x0b\x32#.cloudidl.imagebuilder.RequirementsH\x00R\x0crequirements\x12J\n\rpython_wheels\x18\x05 \x01(\x0b\x32#.cloudidl.imagebuilder.PythonWheelsH\x00R\x0cpythonWheels\x12:\n\x07workdir\x18\x06 \x01(\x0b\x32\x1e.cloudidl.imagebuilder.WorkDirH\x00R\x07workdir\x12\x44\n\x0b\x63opy_config\x18\x07 \x01(\x0b\x32!.cloudidl.imagebuilder.CopyConfigH\x00R\ncopyConfig\x12\x41\n\nuv_project\x18\x08 \x01(\x0b\x32 .cloudidl.imagebuilder.UVProjectH\x00R\tuvProject\x12.\n\x03\x65nv\x18\t \x01(\x0b\x32\x1a.cloudidl.imagebuilder.EnvH\x00R\x03\x65nvB\x07\n\x05layer\"\xa3\x01\n\tImageSpec\x12\x1d\n\nbase_image\x18\x01 \x01(\tR\tbaseImage\x12%\n\x0epython_version\x18\x02 \x01(\tR\rpythonVersion\x12\x34\n\x06layers\x18\x03 \x03(\x0b\x32\x1c.cloudidl.imagebuilder.LayerR\x06layers\x12\x1a\n\x08platform\x18\x04 \x03(\tR\x08platformB\xd4\x01\n\x19\x63om.cloudidl.imagebuilderB\x0f\x44\x65\x66initionProtoH\x02P\x01Z/github.com/unionai/cloud/gen/pb-go/imagebuilder\xa2\x02\x03\x43IX\xaa\x02\x15\x43loudidl.Imagebuilder\xca\x02\x15\x43loudidl\\Imagebuilder\xe2\x02!Cloudidl\\Imagebuilder\\GPBMetadata\xea\x02\x16\x43loudidl::Imagebuilderb\x06proto3')
19
-
20
- _globals = globals()
21
- _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
22
- _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'imagebuilder.definition_pb2', _globals)
23
- if _descriptor._USE_C_DESCRIPTORS == False:
24
- DESCRIPTOR._options = None
25
- DESCRIPTOR._serialized_options = b'\n\031com.cloudidl.imagebuilderB\017DefinitionProtoH\002P\001Z/github.com/unionai/cloud/gen/pb-go/imagebuilder\242\002\003CIX\252\002\025Cloudidl.Imagebuilder\312\002\025Cloudidl\\Imagebuilder\342\002!Cloudidl\\Imagebuilder\\GPBMetadata\352\002\026Cloudidl::Imagebuilder'
26
- _IMAGEIDENTIFIER.fields_by_name['name']._options = None
27
- _IMAGEIDENTIFIER.fields_by_name['name']._serialized_options = b'\372B\004r\002\020\001'
28
- _ENV_ENVVARIABLESENTRY._options = None
29
- _ENV_ENVVARIABLESENTRY._serialized_options = b'8\001'
30
- _globals['_IMAGEIDENTIFIER']._serialized_start=111
31
- _globals['_IMAGEIDENTIFIER']._serialized_end=157
32
- _globals['_IMAGE']._serialized_start=159
33
- _globals['_IMAGE']._serialized_end=242
34
- _globals['_APTPACKAGES']._serialized_start=244
35
- _globals['_APTPACKAGES']._serialized_end=345
36
- _globals['_PIPOPTIONS']._serialized_start=348
37
- _globals['_PIPOPTIONS']._serialized_end=480
38
- _globals['_PIPPACKAGES']._serialized_start=483
39
- _globals['_PIPPACKAGES']._serialized_end=645
40
- _globals['_REQUIREMENTS']._serialized_start=648
41
- _globals['_REQUIREMENTS']._serialized_end=803
42
- _globals['_PYTHONWHEELS']._serialized_start=806
43
- _globals['_PYTHONWHEELS']._serialized_end=959
44
- _globals['_UVPROJECT']._serialized_start=962
45
- _globals['_UVPROJECT']._serialized_end=1148
46
- _globals['_COMMANDS']._serialized_start=1150
47
- _globals['_COMMANDS']._serialized_end=1238
48
- _globals['_WORKDIR']._serialized_start=1240
49
- _globals['_WORKDIR']._serialized_end=1275
50
- _globals['_COPYCONFIG']._serialized_start=1277
51
- _globals['_COPYCONFIG']._serialized_end=1325
52
- _globals['_ENV']._serialized_start=1328
53
- _globals['_ENV']._serialized_end=1481
54
- _globals['_ENV_ENVVARIABLESENTRY']._serialized_start=1418
55
- _globals['_ENV_ENVVARIABLESENTRY']._serialized_end=1481
56
- _globals['_LAYER']._serialized_start=1484
57
- _globals['_LAYER']._serialized_end=2105
58
- _globals['_IMAGESPEC']._serialized_start=2108
59
- _globals['_IMAGESPEC']._serialized_end=2271
60
- # @@protoc_insertion_point(module_scope)
@@ -1,153 +0,0 @@
1
- from flyteidl.core import security_pb2 as _security_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 import descriptor as _descriptor
5
- from google.protobuf import message as _message
6
- from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
7
-
8
- DESCRIPTOR: _descriptor.FileDescriptor
9
-
10
- class ImageIdentifier(_message.Message):
11
- __slots__ = ["name"]
12
- NAME_FIELD_NUMBER: _ClassVar[int]
13
- name: str
14
- def __init__(self, name: _Optional[str] = ...) -> None: ...
15
-
16
- class Image(_message.Message):
17
- __slots__ = ["id", "fqin"]
18
- ID_FIELD_NUMBER: _ClassVar[int]
19
- FQIN_FIELD_NUMBER: _ClassVar[int]
20
- id: ImageIdentifier
21
- fqin: str
22
- def __init__(self, id: _Optional[_Union[ImageIdentifier, _Mapping]] = ..., fqin: _Optional[str] = ...) -> None: ...
23
-
24
- class AptPackages(_message.Message):
25
- __slots__ = ["packages", "secret_mounts"]
26
- PACKAGES_FIELD_NUMBER: _ClassVar[int]
27
- SECRET_MOUNTS_FIELD_NUMBER: _ClassVar[int]
28
- packages: _containers.RepeatedScalarFieldContainer[str]
29
- secret_mounts: _containers.RepeatedCompositeFieldContainer[_security_pb2.Secret]
30
- def __init__(self, packages: _Optional[_Iterable[str]] = ..., secret_mounts: _Optional[_Iterable[_Union[_security_pb2.Secret, _Mapping]]] = ...) -> None: ...
31
-
32
- class PipOptions(_message.Message):
33
- __slots__ = ["index_url", "extra_index_urls", "pre", "extra_args"]
34
- INDEX_URL_FIELD_NUMBER: _ClassVar[int]
35
- EXTRA_INDEX_URLS_FIELD_NUMBER: _ClassVar[int]
36
- PRE_FIELD_NUMBER: _ClassVar[int]
37
- EXTRA_ARGS_FIELD_NUMBER: _ClassVar[int]
38
- index_url: str
39
- extra_index_urls: _containers.RepeatedScalarFieldContainer[str]
40
- pre: bool
41
- extra_args: str
42
- def __init__(self, index_url: _Optional[str] = ..., extra_index_urls: _Optional[_Iterable[str]] = ..., pre: bool = ..., extra_args: _Optional[str] = ...) -> None: ...
43
-
44
- class PipPackages(_message.Message):
45
- __slots__ = ["packages", "options", "secret_mounts"]
46
- PACKAGES_FIELD_NUMBER: _ClassVar[int]
47
- OPTIONS_FIELD_NUMBER: _ClassVar[int]
48
- SECRET_MOUNTS_FIELD_NUMBER: _ClassVar[int]
49
- packages: _containers.RepeatedScalarFieldContainer[str]
50
- options: PipOptions
51
- secret_mounts: _containers.RepeatedCompositeFieldContainer[_security_pb2.Secret]
52
- def __init__(self, packages: _Optional[_Iterable[str]] = ..., options: _Optional[_Union[PipOptions, _Mapping]] = ..., secret_mounts: _Optional[_Iterable[_Union[_security_pb2.Secret, _Mapping]]] = ...) -> None: ...
53
-
54
- class Requirements(_message.Message):
55
- __slots__ = ["file", "options", "secret_mounts"]
56
- FILE_FIELD_NUMBER: _ClassVar[int]
57
- OPTIONS_FIELD_NUMBER: _ClassVar[int]
58
- SECRET_MOUNTS_FIELD_NUMBER: _ClassVar[int]
59
- file: str
60
- options: PipOptions
61
- secret_mounts: _containers.RepeatedCompositeFieldContainer[_security_pb2.Secret]
62
- def __init__(self, file: _Optional[str] = ..., options: _Optional[_Union[PipOptions, _Mapping]] = ..., secret_mounts: _Optional[_Iterable[_Union[_security_pb2.Secret, _Mapping]]] = ...) -> None: ...
63
-
64
- class PythonWheels(_message.Message):
65
- __slots__ = ["dir", "options", "secret_mounts"]
66
- DIR_FIELD_NUMBER: _ClassVar[int]
67
- OPTIONS_FIELD_NUMBER: _ClassVar[int]
68
- SECRET_MOUNTS_FIELD_NUMBER: _ClassVar[int]
69
- dir: str
70
- options: PipOptions
71
- secret_mounts: _containers.RepeatedCompositeFieldContainer[_security_pb2.Secret]
72
- def __init__(self, dir: _Optional[str] = ..., options: _Optional[_Union[PipOptions, _Mapping]] = ..., secret_mounts: _Optional[_Iterable[_Union[_security_pb2.Secret, _Mapping]]] = ...) -> None: ...
73
-
74
- class UVProject(_message.Message):
75
- __slots__ = ["pyproject", "uvlock", "options", "secret_mounts"]
76
- PYPROJECT_FIELD_NUMBER: _ClassVar[int]
77
- UVLOCK_FIELD_NUMBER: _ClassVar[int]
78
- OPTIONS_FIELD_NUMBER: _ClassVar[int]
79
- SECRET_MOUNTS_FIELD_NUMBER: _ClassVar[int]
80
- pyproject: str
81
- uvlock: str
82
- options: PipOptions
83
- secret_mounts: _containers.RepeatedCompositeFieldContainer[_security_pb2.Secret]
84
- def __init__(self, pyproject: _Optional[str] = ..., uvlock: _Optional[str] = ..., options: _Optional[_Union[PipOptions, _Mapping]] = ..., secret_mounts: _Optional[_Iterable[_Union[_security_pb2.Secret, _Mapping]]] = ...) -> None: ...
85
-
86
- class Commands(_message.Message):
87
- __slots__ = ["cmd", "secret_mounts"]
88
- CMD_FIELD_NUMBER: _ClassVar[int]
89
- SECRET_MOUNTS_FIELD_NUMBER: _ClassVar[int]
90
- cmd: _containers.RepeatedScalarFieldContainer[str]
91
- secret_mounts: _containers.RepeatedCompositeFieldContainer[_security_pb2.Secret]
92
- def __init__(self, cmd: _Optional[_Iterable[str]] = ..., secret_mounts: _Optional[_Iterable[_Union[_security_pb2.Secret, _Mapping]]] = ...) -> None: ...
93
-
94
- class WorkDir(_message.Message):
95
- __slots__ = ["workdir"]
96
- WORKDIR_FIELD_NUMBER: _ClassVar[int]
97
- workdir: str
98
- def __init__(self, workdir: _Optional[str] = ...) -> None: ...
99
-
100
- class CopyConfig(_message.Message):
101
- __slots__ = ["src", "dst"]
102
- SRC_FIELD_NUMBER: _ClassVar[int]
103
- DST_FIELD_NUMBER: _ClassVar[int]
104
- src: str
105
- dst: str
106
- def __init__(self, src: _Optional[str] = ..., dst: _Optional[str] = ...) -> None: ...
107
-
108
- class Env(_message.Message):
109
- __slots__ = ["env_variables"]
110
- class EnvVariablesEntry(_message.Message):
111
- __slots__ = ["key", "value"]
112
- KEY_FIELD_NUMBER: _ClassVar[int]
113
- VALUE_FIELD_NUMBER: _ClassVar[int]
114
- key: str
115
- value: str
116
- def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
117
- ENV_VARIABLES_FIELD_NUMBER: _ClassVar[int]
118
- env_variables: _containers.ScalarMap[str, str]
119
- def __init__(self, env_variables: _Optional[_Mapping[str, str]] = ...) -> None: ...
120
-
121
- class Layer(_message.Message):
122
- __slots__ = ["apt_packages", "pip_packages", "commands", "requirements", "python_wheels", "workdir", "copy_config", "uv_project", "env"]
123
- APT_PACKAGES_FIELD_NUMBER: _ClassVar[int]
124
- PIP_PACKAGES_FIELD_NUMBER: _ClassVar[int]
125
- COMMANDS_FIELD_NUMBER: _ClassVar[int]
126
- REQUIREMENTS_FIELD_NUMBER: _ClassVar[int]
127
- PYTHON_WHEELS_FIELD_NUMBER: _ClassVar[int]
128
- WORKDIR_FIELD_NUMBER: _ClassVar[int]
129
- COPY_CONFIG_FIELD_NUMBER: _ClassVar[int]
130
- UV_PROJECT_FIELD_NUMBER: _ClassVar[int]
131
- ENV_FIELD_NUMBER: _ClassVar[int]
132
- apt_packages: AptPackages
133
- pip_packages: PipPackages
134
- commands: Commands
135
- requirements: Requirements
136
- python_wheels: PythonWheels
137
- workdir: WorkDir
138
- copy_config: CopyConfig
139
- uv_project: UVProject
140
- env: Env
141
- def __init__(self, apt_packages: _Optional[_Union[AptPackages, _Mapping]] = ..., pip_packages: _Optional[_Union[PipPackages, _Mapping]] = ..., commands: _Optional[_Union[Commands, _Mapping]] = ..., requirements: _Optional[_Union[Requirements, _Mapping]] = ..., python_wheels: _Optional[_Union[PythonWheels, _Mapping]] = ..., workdir: _Optional[_Union[WorkDir, _Mapping]] = ..., copy_config: _Optional[_Union[CopyConfig, _Mapping]] = ..., uv_project: _Optional[_Union[UVProject, _Mapping]] = ..., env: _Optional[_Union[Env, _Mapping]] = ...) -> None: ...
142
-
143
- class ImageSpec(_message.Message):
144
- __slots__ = ["base_image", "python_version", "layers", "platform"]
145
- BASE_IMAGE_FIELD_NUMBER: _ClassVar[int]
146
- PYTHON_VERSION_FIELD_NUMBER: _ClassVar[int]
147
- LAYERS_FIELD_NUMBER: _ClassVar[int]
148
- PLATFORM_FIELD_NUMBER: _ClassVar[int]
149
- base_image: str
150
- python_version: str
151
- layers: _containers.RepeatedCompositeFieldContainer[Layer]
152
- platform: _containers.RepeatedScalarFieldContainer[str]
153
- def __init__(self, base_image: _Optional[str] = ..., python_version: _Optional[str] = ..., layers: _Optional[_Iterable[_Union[Layer, _Mapping]]] = ..., platform: _Optional[_Iterable[str]] = ...) -> None: ...
@@ -1,4 +0,0 @@
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
-
@@ -1,32 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- # Generated by the protocol buffer compiler. DO NOT EDIT!
3
- # source: imagebuilder/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 flyte._protos.imagebuilder import definition_pb2 as imagebuilder_dot_definition__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\x1aimagebuilder/payload.proto\x12\x15\x63loudidl.imagebuilder\x1a\x1dimagebuilder/definition.proto\x1a\x17validate/validate.proto\"w\n\x0fGetImageRequest\x12@\n\x02id\x18\x01 \x01(\x0b\x32&.cloudidl.imagebuilder.ImageIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x02id\x12\"\n\x0corganization\x18\x02 \x01(\tR\x0corganization\"F\n\x10GetImageResponse\x12\x32\n\x05image\x18\x01 \x01(\x0b\x32\x1c.cloudidl.imagebuilder.ImageR\x05imageB\xd1\x01\n\x19\x63om.cloudidl.imagebuilderB\x0cPayloadProtoH\x02P\x01Z/github.com/unionai/cloud/gen/pb-go/imagebuilder\xa2\x02\x03\x43IX\xaa\x02\x15\x43loudidl.Imagebuilder\xca\x02\x15\x43loudidl\\Imagebuilder\xe2\x02!Cloudidl\\Imagebuilder\\GPBMetadata\xea\x02\x16\x43loudidl::Imagebuilderb\x06proto3')
19
-
20
- _globals = globals()
21
- _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
22
- _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'imagebuilder.payload_pb2', _globals)
23
- if _descriptor._USE_C_DESCRIPTORS == False:
24
- DESCRIPTOR._options = None
25
- DESCRIPTOR._serialized_options = b'\n\031com.cloudidl.imagebuilderB\014PayloadProtoH\002P\001Z/github.com/unionai/cloud/gen/pb-go/imagebuilder\242\002\003CIX\252\002\025Cloudidl.Imagebuilder\312\002\025Cloudidl\\Imagebuilder\342\002!Cloudidl\\Imagebuilder\\GPBMetadata\352\002\026Cloudidl::Imagebuilder'
26
- _GETIMAGEREQUEST.fields_by_name['id']._options = None
27
- _GETIMAGEREQUEST.fields_by_name['id']._serialized_options = b'\372B\005\212\001\002\020\001'
28
- _globals['_GETIMAGEREQUEST']._serialized_start=109
29
- _globals['_GETIMAGEREQUEST']._serialized_end=228
30
- _globals['_GETIMAGERESPONSE']._serialized_start=230
31
- _globals['_GETIMAGERESPONSE']._serialized_end=300
32
- # @@protoc_insertion_point(module_scope)
@@ -1,21 +0,0 @@
1
- from flyte._protos.imagebuilder import definition_pb2 as _definition_pb2
2
- from flyte._protos.validate.validate import validate_pb2 as _validate_pb2
3
- from google.protobuf import descriptor as _descriptor
4
- from google.protobuf import message as _message
5
- from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union
6
-
7
- DESCRIPTOR: _descriptor.FileDescriptor
8
-
9
- class GetImageRequest(_message.Message):
10
- __slots__ = ["id", "organization"]
11
- ID_FIELD_NUMBER: _ClassVar[int]
12
- ORGANIZATION_FIELD_NUMBER: _ClassVar[int]
13
- id: _definition_pb2.ImageIdentifier
14
- organization: str
15
- def __init__(self, id: _Optional[_Union[_definition_pb2.ImageIdentifier, _Mapping]] = ..., organization: _Optional[str] = ...) -> None: ...
16
-
17
- class GetImageResponse(_message.Message):
18
- __slots__ = ["image"]
19
- IMAGE_FIELD_NUMBER: _ClassVar[int]
20
- image: _definition_pb2.Image
21
- def __init__(self, image: _Optional[_Union[_definition_pb2.Image, _Mapping]] = ...) -> None: ...
@@ -1,4 +0,0 @@
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
-
@@ -1,29 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- # Generated by the protocol buffer compiler. DO NOT EDIT!
3
- # source: imagebuilder/service.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.imagebuilder import payload_pb2 as imagebuilder_dot_payload__pb2
15
-
16
-
17
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1aimagebuilder/service.proto\x12\x15\x63loudidl.imagebuilder\x1a\x1aimagebuilder/payload.proto2p\n\x0cImageService\x12`\n\x08GetImage\x12&.cloudidl.imagebuilder.GetImageRequest\x1a\'.cloudidl.imagebuilder.GetImageResponse\"\x03\x90\x02\x01\x42\xd1\x01\n\x19\x63om.cloudidl.imagebuilderB\x0cServiceProtoH\x02P\x01Z/github.com/unionai/cloud/gen/pb-go/imagebuilder\xa2\x02\x03\x43IX\xaa\x02\x15\x43loudidl.Imagebuilder\xca\x02\x15\x43loudidl\\Imagebuilder\xe2\x02!Cloudidl\\Imagebuilder\\GPBMetadata\xea\x02\x16\x43loudidl::Imagebuilderb\x06proto3')
18
-
19
- _globals = globals()
20
- _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
21
- _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'imagebuilder.service_pb2', _globals)
22
- if _descriptor._USE_C_DESCRIPTORS == False:
23
- DESCRIPTOR._options = None
24
- DESCRIPTOR._serialized_options = b'\n\031com.cloudidl.imagebuilderB\014ServiceProtoH\002P\001Z/github.com/unionai/cloud/gen/pb-go/imagebuilder\242\002\003CIX\252\002\025Cloudidl.Imagebuilder\312\002\025Cloudidl\\Imagebuilder\342\002!Cloudidl\\Imagebuilder\\GPBMetadata\352\002\026Cloudidl::Imagebuilder'
25
- _IMAGESERVICE.methods_by_name['GetImage']._options = None
26
- _IMAGESERVICE.methods_by_name['GetImage']._serialized_options = b'\220\002\001'
27
- _globals['_IMAGESERVICE']._serialized_start=81
28
- _globals['_IMAGESERVICE']._serialized_end=193
29
- # @@protoc_insertion_point(module_scope)
@@ -1,5 +0,0 @@
1
- from flyte._protos.imagebuilder import payload_pb2 as _payload_pb2
2
- from google.protobuf import descriptor as _descriptor
3
- from typing import ClassVar as _ClassVar
4
-
5
- DESCRIPTOR: _descriptor.FileDescriptor
@@ -1,66 +0,0 @@
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
-
5
- from flyte._protos.imagebuilder import payload_pb2 as imagebuilder_dot_payload__pb2
6
-
7
-
8
- class ImageServiceStub(object):
9
- """Missing associated documentation comment in .proto file."""
10
-
11
- def __init__(self, channel):
12
- """Constructor.
13
-
14
- Args:
15
- channel: A grpc.Channel.
16
- """
17
- self.GetImage = channel.unary_unary(
18
- '/cloudidl.imagebuilder.ImageService/GetImage',
19
- request_serializer=imagebuilder_dot_payload__pb2.GetImageRequest.SerializeToString,
20
- response_deserializer=imagebuilder_dot_payload__pb2.GetImageResponse.FromString,
21
- )
22
-
23
-
24
- class ImageServiceServicer(object):
25
- """Missing associated documentation comment in .proto file."""
26
-
27
- def GetImage(self, request, context):
28
- """Missing associated documentation comment in .proto file."""
29
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
30
- context.set_details('Method not implemented!')
31
- raise NotImplementedError('Method not implemented!')
32
-
33
-
34
- def add_ImageServiceServicer_to_server(servicer, server):
35
- rpc_method_handlers = {
36
- 'GetImage': grpc.unary_unary_rpc_method_handler(
37
- servicer.GetImage,
38
- request_deserializer=imagebuilder_dot_payload__pb2.GetImageRequest.FromString,
39
- response_serializer=imagebuilder_dot_payload__pb2.GetImageResponse.SerializeToString,
40
- ),
41
- }
42
- generic_handler = grpc.method_handlers_generic_handler(
43
- 'cloudidl.imagebuilder.ImageService', rpc_method_handlers)
44
- server.add_generic_rpc_handlers((generic_handler,))
45
-
46
-
47
- # This class is part of an EXPERIMENTAL API.
48
- class ImageService(object):
49
- """Missing associated documentation comment in .proto file."""
50
-
51
- @staticmethod
52
- def GetImage(request,
53
- target,
54
- options=(),
55
- channel_credentials=None,
56
- call_credentials=None,
57
- insecure=False,
58
- compression=None,
59
- wait_for_ready=None,
60
- timeout=None,
61
- metadata=None):
62
- return grpc.experimental.unary_unary(request, target, '/cloudidl.imagebuilder.ImageService/GetImage',
63
- imagebuilder_dot_payload__pb2.GetImageRequest.SerializeToString,
64
- imagebuilder_dot_payload__pb2.GetImageResponse.FromString,
65
- options, channel_credentials,
66
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)